Skip to main content

Author

hasKey

Returns true if the keystore has private keys for the given public key and key type.
This method is only active with appropriate flags.
Interface
JSON

hasSessionKeys

Returns true if the keystore has private keys for the given session public keys.
This method is only active with appropriate flags.
Interface
JSON

insertKey

Insert a key into the keystore.
This method is only active with appropriate flags.
Interface
JSON

pendingExtrinsics

Returns all pending extrinsics, potentially grouped by sender Interface
JSON

removeExtrinsic

Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
This method is only active with appropriate flags.
Interface
JSON

rotateKeys

Generate new session keys and returns the corresponding public keys
This method is only active with appropriate flags.
Interface
JSON

submitAndWatchExtrinsic

Submit and subscribe to watch an extrinsic until unsubscribed Interface
JSON

submitExtrinsic

Submit a fully formatted extrinsic for block inclusion Interface
JSON

Babe

epochAuthorship

Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
This method is only active with appropriate flags.
Interface
JSON

Chain

getBlock

Get header and body of a relay chain block Interface
JSON

getBlockHash

Get the block hash for a specific block Interface
JSON

getFinalizedHead

Get hash of the last finalized block in the canon chain Interface
JSON

getHeader

Retrieves the header for a specific block Interface
JSON

subscribeAllHeads

Retrieves the newest header via subscription Interface
JSON

subscribeFinalizedHeads

Retrieves the best finalized header via subscription Interface
JSON

subscribeNewHeads

Retrieves the best header via subscription Interface
JSON

Childstate

getKeys

Returns the keys with prefix from a child storage, leave empty to get all the keys Interface
JSON

getKeysPaged

Returns the keys with prefix from a child storage with pagination support Interface
JSON

getStorage

Returns a child storage entry at a specific block state Interface
JSON

getStorageEntries

Returns child storage entries for multiple keys at a specific block state Interface
JSON

getStorageHash

Returns the hash of a child storage entry at a block state Interface
JSON

getStorageSize

Returns the size of a child storage entry at a block state Interface
JSON

Dex

getAmountsIn

Given an array of AssetIds, return amounts in for an amount out Interface
JSON

getAmountsOut

Given an array of AssetIds, return amounts out for an amount in Interface
JSON

getLPTokenID

Given two AssetIds, return liquidity token created for the pair Interface
JSON

getLiquidity

Given two AssetIds, return liquidity Interface
JSON

getTradingPairStatus

Given two AssetIds, return whether trading pair is enabled or disabled Interface
JSON

quote

Given some amount of an asset and pair reserves, returns an equivalent amount of the other asset Interface
JSON

Eth

accounts

Returns accounts list. Interface
JSON

blockNumber

Returns the blockNumber Interface
JSON

call

Call contract, returning the output data. Interface
JSON

chainId

Returns the chain ID used for transaction signing at the current best block. None is returned if not available. Interface
JSON

coinbase

Returns block author. Interface
JSON

estimateGas

Estimate gas needed for execution of given contract. Interface
JSON

feeHistory

Returns fee history for given block count & reward percentiles Interface
JSON

gasPrice

Returns current gas price. Interface
JSON

getBalance

Returns balance of the given account. Interface
JSON

getBlockByHash

Returns block with given hash. Interface
JSON

getBlockByNumber

Returns block with given number. Interface
JSON

getBlockTransactionCountByHash

Returns the number of transactions in a block with given hash. Interface
JSON

getBlockTransactionCountByNumber

Returns the number of transactions in a block with given block number. Interface
JSON

getCode

Returns the code at given address at given time (block number). Interface
JSON

getFilterChanges

Returns filter changes since last poll. Interface
JSON

getFilterLogs

Returns all logs matching given filter (in a range ‘from’ - ‘to’). Interface
JSON

getLogs

Returns logs matching given filter object. Interface
JSON

getStorageAt

Returns content of the storage at given address. Interface
JSON

getTransactionByBlockHashAndIndex

Returns transaction at given block hash and index. Interface
JSON

getTransactionByBlockNumberAndIndex

Returns transaction by given block number and index. Interface
JSON

getTransactionByHash

Get transaction by its hash. Interface
JSON

getTransactionCount

Returns the number of transactions sent from given address at given time (block number). Interface
JSON

getTransactionReceipt

Returns transaction receipt by transaction hash. Interface
JSON

getUncleByBlockHashAndIndex

Returns an uncles at given block and index. Interface
JSON

getUncleByBlockNumberAndIndex

Returns an uncles at given block and index. Interface
JSON

getUncleCountByBlockHash

Returns the number of uncles in a block with given hash. Interface
JSON

getUncleCountByBlockNumber

Returns the number of uncles in a block with given block number. Interface
JSON

getWork

Returns the hash of the current block, the seedHash, and the boundary condition to be met. Interface
JSON

hashrate

Returns the number of hashes per second that the node is mining with. Interface
JSON

maxPriorityFeePerGas

Returns max priority fee per gas Interface
JSON

mining

Returns true if client is actively mining new blocks. Interface
JSON

newBlockFilter

Returns id of new block filter. Interface
JSON

newFilter

Returns id of new filter. Interface
JSON

newPendingTransactionFilter

Returns id of new block filter. Interface
JSON

protocolVersion

Returns protocol version encoded as a string (quotes are necessary). Interface
JSON

sendRawTransaction

Sends signed transaction, returning its hash. Interface
JSON

sendTransaction

Sends transaction; will block waiting for signer to return the transaction hash Interface
JSON

submitHashrate

Used for submitting mining hashrate. Interface
JSON

submitWork

Used for submitting a proof-of-work solution. Interface
JSON

subscribe

Subscribe to Eth subscription. Interface
JSON

syncing

Returns an object with data about the sync status or false. Interface
JSON

uninstallFilter

Uninstalls filter. Interface
JSON

Ethy

getEventProof

Get ETH event proof for event Id Interface
JSON

getXrplTxProof

Get XRPL event proof for event Id Interface
JSON

Grandpa

proveFinality

Prove finality for the given block number, returning the Justification for the last block in the set. Interface
JSON

roundState

Returns the state of the current best round state as well as the ongoing background rounds Interface
JSON

subscribeJustifications

Subscribes to grandpa justifications Interface
JSON

Net

listening

Returns true if client is actively listening for network connections. Otherwise false. Interface
JSON

peerCount

Returns number of peers connected to node. Interface
JSON

version

Returns protocol version. Interface
JSON

Nft

ownedTokens

Get all NFTs owned by an account Interface
JSON

tokenUri

Get the URI of a token Interface
JSON

Offchain

localStorageGet

Get offchain local storage under given key and prefix This method is only active with appropriate flags Interface
JSON

localStorageSet

Set offchain local storage under given key and prefix This method is only active with appropriate flags Interface
JSON

Payment

queryFeeDetails

Query the detailed fee of a given encoded extrinsic Interface
JSON
Deprecated Use api.call.transactionPaymentApi.queryFeeDetails instead

queryInfo

Retrieves the fee information for an encoded extrinsic Interface
JSON
Deprecated Use api.call.transactionPaymentApi.queryInfo instead

Rpc

methods

Retrieves the list of RPC methods that are exposed by the node Interface
JSON

State

call

Perform a call to a builtin on the chain Interface
JSON

getChildReadProof

Returns proof of storage for child key entries at a specific block state. Interface
JSON

getKeys

Retrieves the keys with a certain prefix Interface
JSON
Deprecated Use api.rpc.state.getKeysPaged to retrieve keys

getKeysPaged

Returns the keys with prefix with pagination support. Interface
JSON

getMetadata

Returns the runtime metadata Interface
JSON

getPairs

Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged) This method is only active with appropriate flags Interface
JSON
Deprecated Use api.rpc.state.getKeysPaged to retrieve keys

getReadProof

Returns proof of storage entries at a specific block state Interface
JSON

getRuntimeVersion

Get the runtime version Interface
JSON

getStorage

Retrieves the storage for a key Interface
JSON

getStorageHash

Retrieves the storage hash Interface
JSON

getStorageSize

Retrieves the storage size Interface
JSON

queryStorage

Query historical storage entries (by key) starting from a start block.
This method is only active with appropriate flags.
Interface
JSON

queryStorageAt

Query storage entries (by key) starting at block hash given as the second parameter Interface
JSON

subscribeRuntimeVersion

Retrieves the runtime version via subscription Interface
JSON

subscribeStorage

Subscribes to storage changes for the provided keys Interface
JSON

traceBlock

Provides a way to trace the re-execution of a single block
This method is only active with appropriate flags.
Interface
JSON

System

accountNextIndex

Retrieves the next accountIndex as available on the node Interface
JSON

addLogFilter

Adds the supplied directives to the current log filter. Info: This method is only active with appropriate flags. Interface
JSON

addReservedPeer

Adds a reserved peer
This method is only active with appropriate flags.
Interface
JSON

chain

Retrieves the chain Interface
JSON

chainType

Retrieves the chain type Interface
JSON

dryRun

Dry run an extrinsic at a given block.
This method is only active with appropriate flags.
Interface
JSON

health

Return health status of the node Interface
JSON

localListenAddresses

The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example Interface
JSON

localPeerId

Returns the base58-encoded PeerId of the node Interface
JSON

name

Retrieves the node name Interface
JSON

nodeRoles

Returns the roles the node is running as Interface
JSON

peers

Returns the currently connected peers.
This method is only active with appropriate flags.
Interface
JSON

properties

Get a custom set of properties as a JSON object, defined in the chain spec Interface
JSON

removeReservedPeer

Remove a reserved peer.
This method is only active with appropriate flags.
Interface
JSON

reservedPeers

Returns the list of reserved peers Interface
JSON

resetLogFilter

Resets the log filter to Substrate defaults
This method is only active with appropriate flags.
Interface
JSON

syncState

Returns the state of the syncing of the node Interface
JSON

version

Retrieves the version of the node Interface
JSON

Web3

clientVersion

Returns current client version. Interface
JSON

sha3

Returns sha3 of the given data Interface
JSON

SyloDataPermissions

getPermissions

Queries the pallet’s storage for all available permissions for a given set data ids that have been granted to the specified account. The response value will include a mapping from each data id to a vector of onchain permissions that relate to that account.It will also include the off-chain permission reference if it exists. Clients can use this RPC call to avoid making multiple separate queries to onchain storage. Interface
JSON