Links

Set-up a Fuel Tank

The following page explains how to set up a Fuel Tank using the Enjin Platform UI or the Enjin Platform API.

Set up a Fuel Tank using the Enjin Platform UI

Log into the Platform UI and navigate to the Fuel Tanks page. Next, click the Create Fuel Tank button and fill in the form to set up the transaction that will create your Fuel Tank on-chain.

Set up a Fuel Tank using the Enjin Platform API

Please refer to the API Docs for the CreateFuelTank mutation, or use the GraphiQL Docs Explorer (available once you have set an Authorization header, or are logged in to the Platform UI).
mutation CreateFuelTank {
CreateFuelTank(
name: "My Fuel Tank"
reservesExistentialDeposit: false
reservesAccountCreationDeposit: false
providesDeposit: false
accountRules: {requireToken: {collectionId: "7406", tokenId: {integer: 5839}}, whitelistedCallers: ["0x66f522f1e17f25b3942916dcc60d92f0f8bc27d40083fadf5d65e9dd5f646009"]}
dispatchRules: [{requireToken: {collectionId: "7406", tokenId: {integer: 5839}}, whitelistedCallers: ["0x66f522f1e17f25b3942916dcc60d92f0f8bc27d40083fadf5d65e9dd5f646009"], whitelistedCollections: null, maxFuelBurnPerTransaction: 0, userFuelBudget: {amount: 1, resetPeriod: 1}, tankFuelBudget: {amount: 1, resetPeriod: 1}}]
) {
id
transactionId
transactionHash
state
encodedData
method
wallet {
account {
publicKey
address
}
}
idempotencyKey
}
}
This mutation will set up a new transaction that once finalized on-chain will create the new fuel tank on-chain. A WebSocket event will also be fired so you can pick up the creation in real time by listening to the app channel on the WebSocket.
© 2023 Enjin Pte. Ltd.