balance
Returns the Balance!
of a specific address for a given asset id.
args:
owner
: Address!
The owner address.
assetId
: AssetId!
The asset id.
balances
Returns a BalanceConnection!
for an array of balances for each asset owned by a given address.
args:
filter
: BalanceFilterInput!
A filter to specify the wallet owner address.
block
Returns information about a certain Block
. Accepts either the block id or block height as an argument.
args:
id
: BlockId
The block id.
height
: U64
The block height.
blocks
Returns a BlockConnection!
for an array of all blocks produced.
chain
Returns ChainInfo!
about the target Fuel network used for the API.
coin
Returns details about a specific Coin
.
args:
utxoId
: UtxoId!
A unique 32 byte identifier for the UTXO.
coins
Returns a CoinConnection!
for an array of coins based on a given owner and/or asset id
args:
filter
: CoinFilterInput!
A filter with the owner address and optionally the asset id.
coinsToSpend
Returns an array of spendable [[CoinType!]!]!
per asset.
args:
owner
: Address
The owner address of the coins.
queryPerAsset
: [SpendQueryElementInput!]!
The list of requested asset resources. Several entries with the same asset id are not allowed.
excludedIds
: ExcludeInput
The resources to exclude.
contract
Returns the Contract
information for a given contract id.
args:
id
: ContractId!
The contract id of the requested contract.
contractBalance
Returns the ContractBalance!
for a given contract and asset id.
args:
contract
: ContractId!
The contract that owns the balance.
asset
: AssetId!
The asset id for the balance.
contractBalances
Returns a ContractBalanceConnection!
for an arrray of balances for all assets owned by a given contract
args:
filter
: ContractBalanceFilterInput!
A filter for the contract balances.
estimatePredicates
Estimate the predicate gas and returns a Transaction!
.
tx:
HexString!
The transaction hex string.
health
Returns true
if the API is running or false
if the API is down.
messageProof
Returns the MessageProof
for a given message id or transaction.
args:
transactionId
: TransactionId!
The transaction id for the message.
messageId
: MessageId!
The id of the message.
id
: BlockId
The block id.
height
: U64
The block height.
messages
Returns a MessageConnection!
for an array of messages for a given owner.
args:
owner
: Address
The owner address of the messages.
nodeInfo
Returns NodeInfo!
about the current node.
resourcesToSpend
(beta-3 only) Returns the list of spendable [[Resource!]!]!
per asset from the query. The length of the result is the same as the length of query_per_asset
. The ordering of assets and query_per_asset
is the same.
args:
owner
: Address!
The address to send coins to.
queryPerAsset
: [SpendQueryElementInput!]!
The list of requested asset resources. Several entries with the same asset id are not allowed.
excludedIds
: ExcludeInput
The resources to exclude.
transaction
Returns Transaction
details for a given transaction id.
args:
id
: TransactionId!
The id for the transaction.
transactions
Returns a TransactionConnection!
for an array of all transactions.
transactionsByOwner
Returns a TransactionConnection!
for an array of all transactions from a given address.
args:
owner
: Address!
The owner address of the transactions.
Was this page helpful?