Trait fp_rpc::EthereumRuntimeRPCApi [−][src]
API necessary for Ethereum-compatibility layer.
Provided methods
fn chain_id(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, Self::Error>
Returns runtime defined pallet_evm::ChainId.
fn chain_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u64, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u64, Self::Error>
Returns runtime defined pallet_evm::ChainId.
fn account_basic(
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160
) -> Result<Account, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160
) -> Result<Account, Self::Error>
Returns pallet_evm::Accounts by address.
fn account_basic_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160
) -> Result<Account, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160
) -> Result<Account, Self::Error>
Returns pallet_evm::Accounts by address.
fn gas_price(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<U256, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<U256, Self::Error>
Returns FixedGasPrice::min_gas_price
fn gas_price_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<U256, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<U256, Self::Error>
Returns FixedGasPrice::min_gas_price
fn account_code_at(
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160
) -> Result<Vec<u8>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160
) -> Result<Vec<u8>, Self::Error>
For a given account address, returns pallet_evm::AccountCodes.
fn account_code_at_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160
) -> Result<Vec<u8>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160
) -> Result<Vec<u8>, Self::Error>
For a given account address, returns pallet_evm::AccountCodes.
fn author(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<H160, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<H160, Self::Error>
Returns the converted FindAuthor::find_author authority id.
fn author_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<H160, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<H160, Self::Error>
Returns the converted FindAuthor::find_author authority id.
fn storage_at(
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160,
index: U256
) -> Result<H256, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
address: H160,
index: U256
) -> Result<H256, Self::Error>
For a given account address and index, returns pallet_evm::AccountStorages.
fn storage_at_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160,
index: U256
) -> Result<H256, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
address: H160,
index: U256
) -> Result<H256, Self::Error>
For a given account address and index, returns pallet_evm::AccountStorages.
fn call(
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
to: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CallInfo, DispatchError>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
to: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CallInfo, DispatchError>, Self::Error>
Returns a frame_ethereum::call response. If estimate
is true,
fn call_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
to: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CallInfo, DispatchError>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
to: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CallInfo, DispatchError>, Self::Error>
Returns a frame_ethereum::call response. If estimate
is true,
fn create(
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CreateInfo, DispatchError>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
from: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CreateInfo, DispatchError>, Self::Error>
Returns a frame_ethereum::create response.
fn create_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CreateInfo, DispatchError>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
from: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
gas_price: Option<U256>,
nonce: Option<U256>,
estimate: bool
) -> Result<Result<CreateInfo, DispatchError>, Self::Error>
Returns a frame_ethereum::create response.
fn current_block(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<EthereumBlock>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<EthereumBlock>, Self::Error>
Return the current block.
fn current_block_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<EthereumBlock>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<EthereumBlock>, Self::Error>
Return the current block.
fn current_receipts(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<Receipt>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<Receipt>>, Self::Error>
Return the current receipt.
fn current_receipts_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<Receipt>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<Receipt>>, Self::Error>
Return the current receipt.
fn current_transaction_statuses(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<TransactionStatus>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<TransactionStatus>>, Self::Error>
Return the current transaction status.
fn current_transaction_statuses_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<TransactionStatus>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<Vec<TransactionStatus>>, Self::Error>
Return the current transaction status.
fn current_all(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Option<EthereumBlock>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>), Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Option<EthereumBlock>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>), Self::Error>
Return all the current data for a block in a single runtime call.
fn current_all_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Option<EthereumBlock>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>), Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Option<EthereumBlock>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>), Self::Error>
Return all the current data for a block in a single runtime call.