Fuel Tanks
https://platform.beta.enjin.io/graphql
The Fuel Tank API is currently being rebuilt — the queries on this page are out of date and will not work against the current Enjin Platform API. Refer back to this page once support lands.
This is a detailed reference guide that explains the most commonly used operations.
GetAccounts
The GetAccounts query allows you to retrieve a comprehensive list of account details associated with a specific fuel tank in the Enjin API. Fuel tanks are a feature used to subsidize transaction fees on the Enjin Blockchain. This query provides a detailed overview of all accounts participating in the specified fuel tank.
- GraphQL
- Response
query GetAccounts {
GetAccounts(tankId: "cxNC9WmJa55k3EoXS3Fm4Bc69NaMGuY7qarchqPPn6jcWMA92") {
totalCount
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
edges {
node {
id
externalId
account {
publicKey
address
}
}
}
}
}
{
"data": {
"GetFuelTanks": {
"totalCount": 1,
"pageInfo": {
"startCursor": "",
"endCursor": "",
"hasPreviousPage": false,
"hasNextPage": false
},
"edges": [
{
"node": {
"name": "lhjb4xu2",
"providesDeposit": false,
"tankId": {
"publicKey": "0xa6b0ba89304439830fa19e0523ad8afa4180bb0960d35a80b7423836dd7b1276",
"address": "cxNC9WmJa55k3EoXS3Fm4Bc69NaMGuY7qarchqPPn6jcWMA92"
},
"owner": {
"account": {
"publicKey": "0x087c3fdc6566230578362759d99e42ed300f5560c305262843b2c61aa2f1d11e",
"address": "cxJciMkfdBqR8C9ftA8qmgzP9bAQNzMzXZmwUDZ2qW5mFVgvm"
}
},
"accounts": [
{
"id": 8177,
"account": {
"publicKey": "0x087c3fdc6566230578362759d99e42ed300f5560c305262843b2c61aa2f1d11e",
"address": "cxJciMkfdBqR8C9ftA8qmgzP9bAQNzMzXZmwUDZ2qW5mFVgvm"
},
"externalId": null
}
],
"accountRules": [],
"dispatchRules": []
}
}
]
}
}
}
GetFuelTank
The GetFuelTank query allows you to retrieve detailed information about a specific fuel tank within the Enjin API. Fuel tanks are utilized for subsidizing transaction fees on the Enjin Blockchain. This query provides an extensive overview of the fuel tank's configuration, ownership, and associated rules.
- GraphQL
- Response
query GetFuelTank {
GetFuelTank(tankId: "cxNC9WmJa55k3EoXS3Fm4Bc69NaMGuY7qarchqPPn6jcWMA92") {
name
providesDeposit
tankId {
publicKey
address
}
owner {
account {
publicKey
address
}
}
accounts {
id
account {
publicKey
address
}
externalId
}
accountRules {
rule
value
}
dispatchRules {
rule
value
isFrozen
}
}
}
{
"data": {
"GetFuelTank": {
"name": "lhjb4xu2",
"providesDeposit": false,
"tankId": {
"publicKey": "0xa6b0ba89304439830fa19e0523ad8afa4180bb0960d35a80b7423836dd7b1276",
"address": "cxNC9WmJa55k3EoXS3Fm4Bc69NaMGuY7qarchqPPn6jcWMA92"
},
"owner": {
"account": {
"publicKey": "0x087c3fdc6566230578362759d99e42ed300f5560c305262843b2c61aa2f1d11e",
"address": "cxJciMkfdBqR8C9ftA8qmgzP9bAQNzMzXZmwUDZ2qW5mFVgvm"
}
},
"accounts": [
{
"id": 8177,
"account": {
"publicKey": "0x087c3fdc6566230578362759d99e42ed300f5560c305262843b2c61aa2f1d11e",
"address": "cxJciMkfdBqR8C9ftA8qmgzP9bAQNzMzXZmwUDZ2qW5mFVgvm"
},
"externalId": null
}
],
"accountRules": [],
"dispatchRules": []
}
}
}
GetFuelTanks
The GetFuelTanks query allows you to retrieve detailed information about multiple fuel tanks within the Enjin API simultaneously. This query is particularly useful when you need to obtain an overview or compare details of various fuel tanks within a system.
To learn how to use GraphQL cursors for pagination, head to Using the API → Pagination.
- GraphQL
- Response
query GetFuelTanks{
GetFuelTanks(tankIds: ["0xa6b0ba89304439830fa19e0523ad8afa4180bb0960d35a80b7423836dd7b1276"]) {
totalCount
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
edges {
node {
name
providesDeposit
tankId {
publicKey
address
}
owner {
account {
publicKey
address
}
}
accounts {
id
account {
publicKey
address
}
externalId
}
accountRules {
rule
value
}
dispatchRules {
rule
value
isFrozen
}
}
}
}
}
{
"data": {
"GetFuelTanks": {
"totalCount": 1,
"pageInfo": {
"startCursor": "",
"endCursor": "",
"hasPreviousPage": false,
"hasNextPage": false
},
"edges": [
{
"node": {
"name": "lhjb4xu2",
"providesDeposit": false,
"tankId": {
"publicKey": "0xa6b0ba89304439830fa19e0523ad8afa4180bb0960d35a80b7423836dd7b1276",
"address": "cxNC9WmJa55k3EoXS3Fm4Bc69NaMGuY7qarchqPPn6jcWMA92"
},
"owner": {
"account": {
"publicKey": "0x087c3fdc6566230578362759d99e42ed300f5560c305262843b2c61aa2f1d11e",
"address": "cxJciMkfdBqR8C9ftA8qmgzP9bAQNzMzXZmwUDZ2qW5mFVgvm"
}
},
"accounts": [
{
"id": 8177,
"account": {
"publicKey": "0x087c3fdc6566230578362759d99e42ed300f5560c305262843b2c61aa2f1d11e",
"address": "cxJciMkfdBqR8C9ftA8qmgzP9bAQNzMzXZmwUDZ2qW5mFVgvm"
},
"externalId": null
}
],
"accountRules": [],
"dispatchRules": []
}
}
]
}
}
}