JSON-RPC methods supported on Polkadot Asset Hub Mainnet through Tatum RPC Gateway, with base URLs and an example request.
Call Polkadot Asset Hub JSON-RPC methods through Tatum RPC Gateway. Send an HTTP POST request with a JSON-RPC 2.0 body to the network's base URL, with your API key in the x-api-key header. See Authentication.
Base URLs
| Network | Base URL |
|---|---|
| Polkadot Asset Hub Mainnet | https://polkadot-assethub.gateway.tatum.io |
Example request
curl 'https://polkadot-assethub.gateway.tatum.io' \
--header 'content-type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{"jsonrpc":"2.0","method":"chain_getHeader","params":[],"id":1}'Methods
45 methods. Parameters and responses are described in the Polkadot.js JSON-RPC reference.
| Method | Description |
|---|---|
author_pendingExtrinsics | Returns all extrinsics pending in the transaction pool. |
author_removeExtrinsic | Removes extrinsics from the transaction pool and temporarily bans them. Unsafe; only on nodes that allow unsafe RPC methods. |
author_submitAndWatchExtrinsic | Submits an extrinsic and subscribes to its status until unsubscribed. Needs a WebSocket connection. |
author_submitExtrinsic | Submits a signed extrinsic for inclusion in a block and returns its hash. |
beefy_getFinalizedHead | Returns the hash of the latest block finalized by BEEFY. |
chain_getBlock | Returns the header and body of a block by hash, or of the latest block. |
chain_getBlockHash | Returns the hash of a block by number, or of the latest block. |
chain_getFinalizedHead | Returns the hash of the last finalized block. |
chain_getHead | Alias of chain_getBlockHash. |
chain_getHeader | Returns the header of a block by hash, or of the latest block. |
childstate_getKeys | Returns the keys with a given prefix from a child storage. |
childstate_getKeysPaged | Returns the keys with a given prefix from a child storage, with pagination. |
childstate_getStorage | Returns a child storage entry at a given block. |
childstate_getStorageEntries | Returns child storage entries for multiple keys at a given block. |
childstate_getStorageHash | Returns the hash of a child storage entry at a given block. |
childstate_getStorageSize | Returns the size of a child storage entry at a given block. |
grandpa_proveFinality | Returns a finality proof (justification) for a given block number. |
grandpa_roundState | Returns the state of the current best GRANDPA round and background rounds. |
mmr_generateProof | Generates a Merkle Mountain Range (MMR) proof for given block numbers. |
mmr_root | Returns the Merkle Mountain Range (MMR) root hash for the current best block. |
mmr_verifyProof | Verifies a Merkle Mountain Range (MMR) proof against the on-chain root. |
mmr_verifyProofStateless | Verifies a Merkle Mountain Range (MMR) proof against a given MMR root. |
payment_queryFeeDetails | Returns the detailed fee breakdown of an encoded extrinsic. Deprecated in favor of the TransactionPaymentApi runtime API. |
payment_queryInfo | Returns the weight, class and partial fee of an encoded extrinsic. Deprecated in favor of the TransactionPaymentApi runtime API. |
rpc_methods | Lists the RPC methods exposed by the node. |
state_call | Calls a runtime API function at a given block and returns the SCALE-encoded result. |
state_getChildReadProof | Returns a storage proof for child storage keys at a given block. |
state_getKeys | Deprecated. Use state_getKeysPaged instead. |
state_getKeysPaged | Returns the storage keys with a given prefix, with pagination. |
state_getMetadata | Returns the SCALE-encoded runtime metadata. |
state_getReadProof | Returns a storage proof for given keys at a given block. |
state_getRuntimeVersion | Returns the runtime version at a given block. |
state_getStorage | Returns the value of a storage key at a given block. |
state_getStorageHash | Returns the hash of a storage entry at a given block. |
state_getStorageSize | Returns the size of a storage entry at a given block. |
state_queryStorageAt | Returns the values of given storage keys at a given block. |
sync_state_genSyncSpec | Returns the JSON-serialized chain spec of the node, with its sync state. |
system_chain | Returns the chain name. |
system_chainType | Returns the chain type, such as Live or Development. |
system_health | Returns the node's health: peer count, sync status and whether it should have peers. |
system_name | Returns the node implementation name. |
system_nodeRoles | Returns the roles the node is running as. |
system_properties | Returns the chain properties from the chain spec, such as token symbol and decimals. |
system_syncState | Returns the node's sync state: starting, current and highest known block. |
system_version | Returns the node implementation version. |
The gateway lists its supported methods at runtime:
Method unavailable?If you need a method we don't support yet, contact support.