Trait fp_rpc::EthereumRuntimeRPCApi[][src]

pub trait EthereumRuntimeRPCApi<Block: BlockT>: Core<Block> {
    fn chain_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<u64, Self::Error> { ... }
fn chain_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<u64, Self::Error> { ... }
fn account_basic(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        address: H160
    ) -> Result<Account, Self::Error> { ... }
fn account_basic_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        address: H160
    ) -> Result<Account, Self::Error> { ... }
fn gas_price(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<U256, Self::Error> { ... }
fn gas_price_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<U256, Self::Error> { ... }
fn account_code_at(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        address: H160
    ) -> Result<Vec<u8>, Self::Error> { ... }
fn account_code_at_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        address: H160
    ) -> Result<Vec<u8>, Self::Error> { ... }
fn author(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<H160, Self::Error> { ... }
fn author_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<H160, Self::Error> { ... }
fn storage_at(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        address: H160,
        index: U256
    ) -> Result<H256, Self::Error> { ... }
fn storage_at_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        address: H160,
        index: U256
    ) -> Result<H256, Self::Error> { ... }
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> { ... }
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> { ... }
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> { ... }
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> { ... }
fn current_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Option<EthereumBlock>, Self::Error> { ... }
fn current_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Option<EthereumBlock>, Self::Error> { ... }
fn current_receipts(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Option<Vec<Receipt>>, Self::Error> { ... }
fn current_receipts_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Option<Vec<Receipt>>, Self::Error> { ... }
fn current_transaction_statuses(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Option<Vec<TransactionStatus>>, Self::Error> { ... }
fn current_transaction_statuses_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Option<Vec<TransactionStatus>>, Self::Error> { ... }
fn current_all(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<(Option<EthereumBlock>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>), Self::Error> { ... }
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> { ... } }

API necessary for Ethereum-compatibility layer.

Provided methods

fn chain_id(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, Self::Error>
[src]

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]

Returns runtime defined pallet_evm::ChainId.

fn account_basic(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    address: H160
) -> Result<Account, Self::Error>
[src]

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]

Returns pallet_evm::Accounts by address.

fn gas_price(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<U256, Self::Error>
[src]

Returns FixedGasPrice::min_gas_price

fn gas_price_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<U256, Self::Error>
[src]

Returns FixedGasPrice::min_gas_price

fn account_code_at(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    address: H160
) -> Result<Vec<u8>, Self::Error>
[src]

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]

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

fn author(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<H160, Self::Error>
[src]

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]

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]

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]

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]

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]

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]

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]

Returns a frame_ethereum::create response.

fn current_block(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<EthereumBlock>, Self::Error>
[src]

Return the current block.

fn current_block_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<Option<EthereumBlock>, Self::Error>
[src]

Return the current block.

fn current_receipts(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<Receipt>>, Self::Error>
[src]

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]

Return the current receipt.

fn current_transaction_statuses(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<Vec<TransactionStatus>>, Self::Error>
[src]

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]

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]

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]

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

Loading content...

Trait Implementations

impl<Block: BlockT, __Sr_Api_Error__> RuntimeApiInfo for dyn EthereumRuntimeRPCApi<Block, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...