Transactions
https://platform.enjin.io/graphql
Use these queries to look up the state of transactions you've submitted (GetTransaction / GetTransactions) and to read the underlying blocks and extrinsics they ended up in (GetBlock / GetBlocks, GetExtrinsic / GetExtrinsics) — including the on-chain events each extrinsic emitted.
GetTransaction
Returns a single transaction by uuid, idempotencyKey, or extrinsicHash — pass exactly one. The most common use is to look up the live state of a transaction you submitted via CreateTransaction.
- GraphQL
- Response
query GetTransaction {
GetTransaction(
network: ENJIN
chain: MATRIX
uuid: "a90ded41-4262-40a2-95c0-98255b660bf1"
) {
uuid
idempotencyKey
action
state
encodedData
extrinsic {
id
hash
success
}
createdAt
updatedAt
}
}
{
"data": {
"GetTransaction": {
"uuid": "a90ded41-4262-40a2-95c0-98255b660bf1",
"idempotencyKey": "61f0b8e1-e0b9-4ecd-b445-84dc4cd2b495",
"action": "MultiTokens.create_collection",
"state": "FINALIZED",
"encodedData": "0x280dc56f04985e66eaff2d50e6635942b20efb5690191c5da56adc3a2720e64b8bf534d050...",
"extrinsic": {
"id": "402865-2",
"hash": "0xbafe459e8248b802f3aef98d2e4a695bbb238899edf40519b082366e3ff8b98f",
"success": true
},
"createdAt": "2026-05-13T05:20:52+00:00",
"updatedAt": "2026-05-13T05:21:26+00:00"
}
}
}
See the state argument for the full list of transaction states.
The extrinsic object is null until the transaction has been included in a block and indexed by the platform. Once populated, it exposes the extrinsic's id (blockNumber-index), hash, on-chain success flag, pallet / method, signer, containing block, and the events it emitted — see Working with Events for reading event payloads.
GetTransactions
Returns a paginated list of transactions. Pagination is cursor-based — pass the previous response's nextCursor to fetch the next page. You can filter by uuids, idempotencyKeys, or extrinsicHashes.
- GraphQL
- Response
query GetTransactions {
GetTransactions(
network: ENJIN
chain: MATRIX
limit: 15
) {
data {
uuid
action
state
extrinsic {
hash
}
createdAt
}
perPage
nextCursor
previousCursor
}
}
{
"data": {
"GetTransactions": {
"data": [
{
"uuid": "a90ded41-4262-40a2-95c0-98255b660bf1",
"action": "MultiTokens.create_collection",
"state": "FINALIZED",
"extrinsic": { "hash": "0xbafe459e..." },
"createdAt": "2026-05-13T05:20:52+00:00"
},
{
"uuid": "b80aed52-3171-50b3-a4d0-87366b771b02",
"action": "MultiTokens.mint",
"state": "BROADCAST",
"extrinsic": null,
"createdAt": "2026-05-13T05:24:11+00:00"
}
],
"perPage": 15,
"nextCursor": "eyJpZCI6MTUwfQ==",
"previousCursor": null
}
}
}
GetBlock
Returns a single block by id (block number) or hash.
- GraphQL
- Response
query GetBlock {
GetBlock(
network: ENJIN
chain: MATRIX
id: 402865
) {
number
hash
validator
createdAt
extrinsics {
id
pallet
method
success
}
}
}
{
"data": {
"GetBlock": {
"number": 402865,
"hash": "0xf0b3cee1c36a99e24aaef7da06aec2ecd79a599c19ad4ae6fb4b40b3e497a322",
"validator": "0x60820310ea5b09bef944c50a7f3ae82166304dd637263b1ba7e0fa0bab1f3f7b",
"createdAt": "2026-05-13T05:20:48+00:00",
"extrinsics": [
{
"id": "402865-2",
"pallet": "MultiTokens",
"method": "mint",
"success": true
}
]
}
}
}
validator is the block validator's public key (hex). Each entry in extrinsics also exposes the events it emitted — see GetExtrinsic below for the full extrinsic shape.
GetBlocks
Returns a list of blocks. Pass ids (block numbers) or hashes — one of the two is required.
- GraphQL
- Response
query GetBlocks {
GetBlocks(
network: ENJIN
chain: MATRIX
ids: [402865, 402866]
) {
number
hash
createdAt
}
}
{
"data": {
"GetBlocks": [
{
"number": 402865,
"hash": "0xf0b3cee1c36a99e24aaef7da06aec2ecd79a599c19ad4ae6fb4b40b3e497a322",
"createdAt": "2026-05-13T05:20:48+00:00"
},
{
"number": 402866,
"hash": "0xa1b2c3d4e5...",
"createdAt": "2026-05-13T05:20:54+00:00"
}
]
}
}
GetExtrinsic
Returns a single extrinsic by hash, including the on-chain events it emitted — useful when you have an extrinsic hash (e.g. from a block explorer or an external system) rather than a platform transaction uuid.
- GraphQL
- Response
query GetExtrinsic {
GetExtrinsic(
network: ENJIN
chain: MATRIX
hash: "0xbafe459e8248b802f3aef98d2e4a695bbb238899edf40519b082366e3ff8b98f"
) {
id
hash
pallet
method
success
nonce
signer {
address
}
block {
number
}
events {
id
name
collectionId
tokenId
data
}
}
}
{
"data": {
"GetExtrinsic": {
"id": "402865-2",
"hash": "0xbafe459e8248b802f3aef98d2e4a695bbb238899edf40519b082366e3ff8b98f",
"pallet": "MultiTokens",
"method": "mint",
"success": true,
"nonce": 132,
"signer": { "address": "efRC9jw5LeZFqmaWBBDxZRTyaLP9dLAqixy32tSnqW9wCsb6y" },
"block": { "number": 402865 },
"events": [
{
"id": "1234567-2",
"name": "MultiTokens Minted",
"collectionId": "12345",
"tokenId": "12345-1",
"data": { "amount": "1" }
}
]
}
}
}
See Working with Events for what each Event field carries.
GetExtrinsics
Returns a list of extrinsics by hashes.
- GraphQL
query GetExtrinsics {
GetExtrinsics(
network: ENJIN
chain: MATRIX
hashes: [
"0xbafe459e8248b802f3aef98d2e4a695bbb238899edf40519b082366e3ff8b98f"
"0x12ab34cd56ef78ab90cd12ef34ab56cd78ef90ab12cd34ef56ab78cd90ef12ab"
]
) {
hash
pallet
method
success
}
}