SystemApi<P extends Provider, H, N> class

Substrate system RPC API

Constructors

SystemApi(P _provider)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accountNextIndex(String account) Future<int>
Returns the next valid index (aka nonce) for given account.
addLogFilter(String directives) Future
Adds the supplied directives to the current log filter
addReservedPeer(String peer) Future<String?>
Adds a reserved peer. Returns the empty string or an error. The string parameter should encode a p2p multiaddr.
chain() Future<String>
Get the chain's name. Given as a string identifier.
chainType() Future<ChainType>
Get the chain's type.
dryRun(Uint8List extrinsic, {BlockHash? at}) Future<Uint8List>
Dry run an extrinsic at a given block. Return SCALE encoded ApplyExtrinsicResult.
health() Future<Health>
Return health status of the node.
localListenAddresses() Future<List<String>>
Returns the multi-addresses that the local node is listening on
localPeerId() Future<String>
Returns the base58-encoded PeerId of the node.
name() Future<String>
Get the node's implementation name. Plain old string.
nodeRoles() Future<List<String>>
Returns the roles the node is running as.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peers() Future<List<PeerInfo<H, N>>>
Returns currently connected peers
properties() Future<Map<String, dynamic>>
Get a custom set of properties as a JSON object, defined in the chain spec.
removeReservedPeer(String peerId) Future<String?>
Remove a reserved peer. Returns the empty string or an error. The string should encode only the PeerId e.g. QmSk5HQbn6LhUwDiNMseVUjuRYhEtYj4aUZ6WfWoGURpdV.
reservedPeers() Future<List<String>>
Returns the list of reserved peers
resetLogFilter() Future
Resets the log filter to Substrate defaults
syncState() Future<SyncState>
Returns the state of the syncing of the node: starting block, current best block, highest known block.
toString() String
A string representation of this object.
inherited
version() Future<String>
Get the node implementation's version. Should be a semver string.

Operators

operator ==(Object other) bool
The equality operator.
inherited