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.
hasSessionKeys
Returns true if the keystore has private keys for the given session public keys.
This method is only active with appropriate flags.
insertKey
Insert a key into the keystore.
This method is only active with appropriate flags.
pendingExtrinsics
Returns all pending extrinsics, potentially grouped by sender
Interface
removeExtrinsic
Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
This method is only active with appropriate flags.
rotateKeys
Generate new session keys and returns the corresponding public keys
This method is only active with appropriate flags.
submitAndWatchExtrinsic
Submit and subscribe to watch an extrinsic until unsubscribed
Interface
submitExtrinsic
Submit a fully formatted extrinsic for block inclusion
Interface
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.
Chain
getBlock
Get header and body of a relay chain block
Interface
getBlockHash
Get the block hash for a specific block
Interface
getFinalizedHead
Get hash of the last finalized block in the canon chain
Interface
getHeader
Retrieves the header for a specific block
Interface
subscribeAllHeads
Retrieves the newest header via subscription
Interface
subscribeFinalizedHeads
Retrieves the best finalized header via subscription
Interface
subscribeNewHeads
Retrieves the best header via subscription
Interface
Childstate
getKeys
Returns the keys with prefix from a child storage, leave empty to get all the keys
Interface
getKeysPaged
Returns the keys with prefix from a child storage with pagination support
Interface
getStorage
Returns a child storage entry at a specific block state
Interface
getStorageEntries
Returns child storage entries for multiple keys at a specific block state
Interface
getStorageHash
Returns the hash of a child storage entry at a block state
Interface
getStorageSize
Returns the size of a child storage entry at a block state
Interface
Dex
getAmountsIn
Given an array of AssetIds, return amounts in for an amount out
Interface
getAmountsOut
Given an array of AssetIds, return amounts out for an amount in
Interface
getLPTokenID
Given two AssetIds, return liquidity token created for the pair
Interface
getLiquidity
Given two AssetIds, return liquidity
Interface
getTradingPairStatus
Given two AssetIds, return whether trading pair is enabled or disabled
Interface
quote
Given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
Interface
Eth
accounts
Returns accounts list.
Interface
blockNumber
Returns the blockNumber
Interface
call
Call contract, returning the output data.
Interface
chainId
Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
Interface
coinbase
Returns block author.
Interface
estimateGas
Estimate gas needed for execution of given contract.
Interface
feeHistory
Returns fee history for given block count & reward percentiles
Interface
gasPrice
Returns current gas price.
Interface
getBalance
Returns balance of the given account.
Interface
getBlockByHash
Returns block with given hash.
Interface
getBlockByNumber
Returns block with given number.
Interface
getBlockTransactionCountByHash
Returns the number of transactions in a block with given hash.
Interface
getBlockTransactionCountByNumber
Returns the number of transactions in a block with given block number.
Interface
getCode
Returns the code at given address at given time (block number).
Interface
getFilterChanges
Returns filter changes since last poll.
Interface
getFilterLogs
Returns all logs matching given filter (in a range ‘from’ - ‘to’).
Interface
getLogs
Returns logs matching given filter object.
Interface
getStorageAt
Returns content of the storage at given address.
Interface
getTransactionByBlockHashAndIndex
Returns transaction at given block hash and index.
Interface
getTransactionByBlockNumberAndIndex
Returns transaction by given block number and index.
Interface
getTransactionByHash
Get transaction by its hash.
Interface
getTransactionCount
Returns the number of transactions sent from given address at given time (block number).
Interface
getTransactionReceipt
Returns transaction receipt by transaction hash.
Interface
getUncleByBlockHashAndIndex
Returns an uncles at given block and index.
Interface
getUncleByBlockNumberAndIndex
Returns an uncles at given block and index.
Interface
getUncleCountByBlockHash
Returns the number of uncles in a block with given hash.
Interface
getUncleCountByBlockNumber
Returns the number of uncles in a block with given block number.
Interface
getWork
Returns the hash of the current block, the seedHash, and the boundary condition to be met.
Interface
hashrate
Returns the number of hashes per second that the node is mining with.
Interface
maxPriorityFeePerGas
Returns max priority fee per gas
Interface
mining
Returns true if client is actively mining new blocks.
Interface
newBlockFilter
Returns id of new block filter.
Interface
newFilter
Returns id of new filter.
Interface
newPendingTransactionFilter
Returns id of new block filter.
Interface
protocolVersion
Returns protocol version encoded as a string (quotes are necessary).
Interface
sendRawTransaction
Sends signed transaction, returning its hash.
Interface
sendTransaction
Sends transaction; will block waiting for signer to return the transaction hash
Interface
submitHashrate
Used for submitting mining hashrate.
Interface
submitWork
Used for submitting a proof-of-work solution.
Interface
subscribe
Subscribe to Eth subscription.
Interface
syncing
Returns an object with data about the sync status or false.
Interface
uninstallFilter
Uninstalls filter.
Interface
Ethy
getEventProof
Get ETH event proof for event Id
Interface
getXrplTxProof
Get XRPL event proof for event Id
Interface
Grandpa
proveFinality
Prove finality for the given block number, returning the Justification for the last block in the set.
Interface
roundState
Returns the state of the current best round state as well as the ongoing background rounds
Interface
subscribeJustifications
Subscribes to grandpa justifications
Interface
Net
listening
Returns true if client is actively listening for network connections. Otherwise false.
Interface
peerCount
Returns number of peers connected to node.
Interface
version
Returns protocol version.
Interface
Nft
ownedTokens
Get all NFTs owned by an account
Interface
tokenUri
Get the URI of a token
Interface
Offchain
localStorageGet
Get offchain local storage under given key and prefix
This method is only active with appropriate flags
Interface
localStorageSet
Set offchain local storage under given key and prefix
This method is only active with appropriate flags
Interface
Payment
queryFeeDetails
Query the detailed fee of a given encoded extrinsic
Interface
api.call.transactionPaymentApi.queryFeeDetails instead
queryInfo
Retrieves the fee information for an encoded extrinsic
Interface
api.call.transactionPaymentApi.queryInfo instead
Rpc
methods
Retrieves the list of RPC methods that are exposed by the node
Interface
State
call
Perform a call to a builtin on the chain
Interface
getChildReadProof
Returns proof of storage for child key entries at a specific block state.
Interface
getKeys
Retrieves the keys with a certain prefix
Interface
api.rpc.state.getKeysPaged to retrieve keys
getKeysPaged
Returns the keys with prefix with pagination support.
Interface
getMetadata
Returns the runtime metadata
Interface
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
api.rpc.state.getKeysPaged to retrieve keys
getReadProof
Returns proof of storage entries at a specific block state
Interface
getRuntimeVersion
Get the runtime version
Interface
getStorage
Retrieves the storage for a key
Interface
getStorageHash
Retrieves the storage hash
Interface
getStorageSize
Retrieves the storage size
Interface
queryStorage
Query historical storage entries (by key) starting from a start block.
This method is only active with appropriate flags.
queryStorageAt
Query storage entries (by key) starting at block hash given as the second parameter
Interface
subscribeRuntimeVersion
Retrieves the runtime version via subscription
Interface
subscribeStorage
Subscribes to storage changes for the provided keys
Interface
traceBlock
Provides a way to trace the re-execution of a single block
This method is only active with appropriate flags.
System
accountNextIndex
Retrieves the next accountIndex as available on the node
Interface
addLogFilter
Adds the supplied directives to the current log filter.
Info: This method is only active with appropriate flags.
Interface
addReservedPeer
Adds a reserved peer
This method is only active with appropriate flags.
chain
Retrieves the chain
Interface
chainType
Retrieves the chain type
Interface
dryRun
Dry run an extrinsic at a given block.
This method is only active with appropriate flags.
health
Return health status of the node
Interface
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
localPeerId
Returns the base58-encoded PeerId of the node
Interface
name
Retrieves the node name
Interface
nodeRoles
Returns the roles the node is running as
Interface
peers
Returns the currently connected peers.
This method is only active with appropriate flags.
properties
Get a custom set of properties as a JSON object, defined in the chain spec
Interface
removeReservedPeer
Remove a reserved peer.
This method is only active with appropriate flags.
reservedPeers
Returns the list of reserved peers
Interface
resetLogFilter
Resets the log filter to Substrate defaults
This method is only active with appropriate flags.