assetID- string - The id of the asset for which the information is requested.
Returns
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.
Returns the specified transaction. The encoding parameter sets the format of the returned transaction. Can be either "hex" or "json". Defaults to "hex".
Parameters
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".
Returns
tx - object - The transaction object of the requested txID.
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:
To interact with X-Chain via the JSON-RPC endpoint:
/ext/bc/X
To interact with other instances of the EVM via the JSON-RPC endpoint:
/ext/bc/blockchainID/rpc
(where "blockchainID" is the ID of the EVM chain)