Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Get information about an asset.
assetid
- string - The id of the asset for which the information is requested.
assetID
- string - The id of the asset for which the information is requested.
name
- string - The asset’s human-readable, not necessarily unique name.
symbol
- string - The asset’s symbol.
denomination
- int - determines how balances of this asset are displayed by user interfaces. If denomination is 0, 100 units of this asset are displayed as 100. If denomination is 1, 100 units of this asset are displayed as 10.0. If denomination is 2, 100 units of this asset are displays as .100, etc.
Get the balances of all assets controlled by a given address.
address
- string - Address you want to fetch balances for.
balances
[] - object
asset
- string - The symbol of the asset
balance
- int - The balance of the asset.
Get the balance of an asset controlled by a given address. Get information about an asset.
Supported JSON-RPC methods for Avalanche mainnet and fuji testnet.
Exchange Chain (X-Chain):
The X-chain is used for sending and receiving funds, however, it is not used for Defi platforms. Also, note that x-chain cannot be used with MetaMask or similar wallets. Your X-chain address is accessed from the Avalanche web wallet, and you get a new address after every deposit (note that your old addresses remain valid too). The format is different from Ethereum-style 0x addresses and begins with an "X-avax". The trailing endpoint for X-Chain calls is:
The trailing endpoint for X-Chain calls is:
Get the status of a transaction sent to the network.
A transaction is said to change an address's balance if either is true:
A UTXO that the transaction consumes was at least partially owned by the address.
A UTXO that the transaction produces is at least partially owned by the address.
txID
- string - A specific transaction ID.
status
- string - status is one of:
Accepted - string - The transaction is (or will be) accepted by every node
Processing
- string - The transaction is being voted on by this node
Rejected
- string - The transaction will never be accepted by any node in the network
Unknown
- string - The transaction hasn’t been seen by this node
Returns all transactions that change the balance of the given address. Note: Indexing (index-transactions) must be enabled in the X-chain config.
A transaction is said to change an address's balance if either is true:
A UTXO that the transaction consumes was at least partially owned by the address.
A UTXO that the transaction produces is at least partially owned by the address.
address
- string - The address for which we're fetching related transactions
cursor
- uint64 - (optional) The page number or offset. Leave empty to get the first page.
assetID
- string - Only return transactions that changed the balance of this asset. Must be an ID or an alias for an asset.
pageSize
- uint64 - (optional) The number of items to return per page. Optional. Defaults to 1024.
txIDs - []string - The list of transaction IDs that affected the balance of this address.
cursor - uint64 - The page number or offset. Use this in request to get the next page.
Returns the specified transaction. The encoding parameter sets the format of the returned transaction. Can be either "hex" or "json". Defaults to "hex".
A transaction is said to change an address's balance if either is true:
A UTXO that the transaction consumes was at least partially owned by the address.
A UTXO that the transaction produces is at least partially owned by the address.
txID - string - A specific transaction ID.
encoding - string - The encoding parameter sets the format of the returned transaction. Can be, "cb58", "hex" or "json". Defaults to "cb58".
tx - object - The transaction object of the requested txID.
encoding - string - The encoding format.