pub struct RuntimeApiImpl<Block: BlockT, C: CallApiAt<Block> + 'static> { /* private fields */ }
Expand description

Implements all runtime apis for the client side.

Trait Implementations

Get current account nonce of given AccountId.

Get current account nonce of given AccountId.

The state backend that is used to store the block states.

Execute the given closure inside a new transaction. Read more

Checks if the given api is implemented and versions match.

Check if the given api is implemented and the version passes a predicate.

Returns the version of the given api.

Start recording all accessed trie nodes for generating proofs.

Returns the current active proof recorder.

Extract the recorded proof. Read more

Convert the api object into the storage changes that were done while executing runtime api functions. Read more

Retrieve authority identifiers of the current and next authority set.

Retrieve authority identifiers of the current and next authority set.

Return the genesis configuration for BABE. The configuration is only read on genesis.

Return the genesis configuration for BABE. The configuration is only read on genesis.

👎 Deprecated

Return the configuration for BABE. Version 1.

👎 Deprecated

Return the configuration for BABE. Version 1.

Returns the slot that started the current epoch.

Returns the slot that started the current epoch.

Returns information regarding the current epoch.

Returns information regarding the current epoch.

Returns information regarding the next epoch (which was already previously announced). Read more

Returns information regarding the next epoch (which was already previously announced). Read more

Generates a proof of key ownership for the given authority in the current epoch. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a slot as parameter the current implementations ignores this parameter and instead relies on this method being called at the correct block height, i.e. any point at which the epoch for the given slot is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available. Read more

Generates a proof of key ownership for the given authority in the current epoch. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a slot as parameter the current implementations ignores this parameter and instead relies on this method being called at the correct block height, i.e. any point at which the epoch for the given slot is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available. Read more

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context. Read more

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context. Read more

Apply the given extrinsic. Read more

Apply the given extrinsic. Read more

Finish the current block.

Finish the current block.

Generate inherent extrinsics. The inherent data will vary from chain to chain.

Generate inherent extrinsics. The inherent data will vary from chain to chain.

Check that the inherents are valid. The inherent data will vary from chain to chain.

Check that the inherents are valid. The inherent data will vary from chain to chain.

👎 Deprecated
👎 Deprecated

Returns the version of the runtime.

Returns the version of the runtime.

Execute the given block.

Execute the given block.

Initialize a block with the given header.

Initialize a block with the given header.

👎 Deprecated
👎 Deprecated

Returns runtime defined pallet_evm::ChainId.

Returns runtime defined pallet_evm::ChainId.

Returns pallet_evm::Accounts by address.

Returns pallet_evm::Accounts by address.

Returns FixedGasPrice::min_gas_price

Returns FixedGasPrice::min_gas_price

For a given account address, returns pallet_evm::AccountCodes.

For a given account address, returns pallet_evm::AccountCodes.

Returns the converted FindAuthor::find_author authority id.

Returns the converted FindAuthor::find_author authority id.

For a given account address and index, returns pallet_evm::AccountStorages.

For a given account address and index, returns pallet_evm::AccountStorages.

👎 Deprecated

Returns a frame_ethereum::call response. If estimate is true,

👎 Deprecated

Returns a frame_ethereum::call response. If estimate is true,

👎 Deprecated
👎 Deprecated
👎 Deprecated

Returns a frame_ethereum::create response.

👎 Deprecated

Returns a frame_ethereum::create response.

👎 Deprecated
👎 Deprecated
👎 Deprecated

Return the current block. Legacy.

👎 Deprecated

Return the current block. Legacy.

Return the current block.

Return the current block.

👎 Deprecated

Return the current receipt.

👎 Deprecated

Return the current receipt.

Return the current receipt.

Return the current receipt.

Return the current transaction status.

Return the current transaction status.

👎 Deprecated

Return all the current data for a block in a single runtime call. Legacy.

👎 Deprecated

Return all the current data for a block in a single runtime call. Legacy.

👎 Deprecated

Return all the current data for a block in a single runtime call.

👎 Deprecated

Return all the current data for a block in a single runtime call.

👎 Deprecated

Receives a Vec<OpaqueExtrinsic> and filters all the ethereum transactions. Legacy.

👎 Deprecated

Receives a Vec<OpaqueExtrinsic> and filters all the ethereum transactions. Legacy.

Receives a Vec<OpaqueExtrinsic> and filters all the ethereum transactions.

Receives a Vec<OpaqueExtrinsic> and filters all the ethereum transactions.

Return the elasticity multiplier.

Return the elasticity multiplier.

Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more

Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context. Read more

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context. Read more

Generates a proof of key ownership for the given authority in the given set. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a set_id as parameter the current implementations ignore this parameter and instead rely on this method being called at the correct block height, i.e. any point at which the given set id is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available. Read more

Generates a proof of key ownership for the given authority in the given set. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a set_id as parameter the current implementations ignore this parameter and instead rely on this method being called at the correct block height, i.e. any point at which the given set id is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available. Read more

Get current GRANDPA authority set id.

Get current GRANDPA authority set id.

Returns the metadata of a runtime.

Returns the metadata of a runtime.

👎 Deprecated

Starts the off-chain task for given block number.

👎 Deprecated

Starts the off-chain task for given block number.

Starts the off-chain task for given block header.

Starts the off-chain task for given block header.

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more

Decode the given public session keys. Read more

Decode the given public session keys. Read more

👎 Deprecated

Validate the transaction.

👎 Deprecated

Validate the transaction.

👎 Deprecated

Validate the transaction.

👎 Deprecated

Validate the transaction.

Validate the transaction. Read more

Validate the transaction. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert from a value of T into an equivalent instance of Option<Self>. Read more

Consume self to return Some equivalent value of Option<T>. Read more

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Cast reference.

Cast reference.

Cast mutable reference.

Cast mutable reference.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Should always be Self

Convert from a value of T into an equivalent instance of Self. Read more

Consume self to return an equivalent value of T. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The counterpart to unchecked_from.

Consume self to return an equivalent value of T.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more