pub trait APITrait:
Sync
+ Send
+ Debug {
type Error: Error + Send + Sync + 'static;
type Provider: JsonRpcProvider;
Show 90 methods
// Required methods
fn rpc_client(&self) -> &RpcClient<Self::Provider>;
fn network<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_best_block_hash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<H256, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_hash<'life0, 'async_trait>(
&'life0 self,
block_index: u32,
) -> Pin<Box<dyn Future<Output = Result<H256, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
full_tx: bool,
) -> Pin<Box<dyn Future<Output = Result<NeoBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_block<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_header_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_header<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<NeoBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_header_by_index<'life0, 'async_trait>(
&'life0 self,
index: u32,
) -> Pin<Box<dyn Future<Output = Result<NeoBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_block_header<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_block_header_by_index<'life0, 'async_trait>(
&'life0 self,
index: u32,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_native_contracts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<NativeContractState>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_contract_state<'life0, 'async_trait>(
&'life0 self,
hash: H160,
) -> Pin<Box<dyn Future<Output = Result<ContractState, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_contract_state_by_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<ContractState, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_native_contract_state<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ContractState, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_mem_pool<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MemPoolDetails, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_mem_pool<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<H256>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_transaction<'life0, 'async_trait>(
&'life0 self,
hash: H256,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_storage<'life0, 'life1, 'async_trait>(
&'life0 self,
contract_hash: H160,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn find_storage<'life0, 'life1, 'async_trait>(
&'life0 self,
contract_hash: H160,
prefix_hex_string: &'life1 str,
start_index: u64,
) -> Pin<Box<dyn Future<Output = Result<String, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn find_storage_with_id<'life0, 'life1, 'async_trait>(
&'life0 self,
contract_id: i64,
prefix_hex_string: &'life1 str,
start_index: u64,
) -> Pin<Box<dyn Future<Output = Result<String, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_transaction_height<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_next_block_validators<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Validator>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_committee<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_connection_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_peers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Peers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<NeoVersion, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_raw_transaction<'life0, 'async_trait>(
&'life0 self,
hex: String,
) -> Pin<Box<dyn Future<Output = Result<RawTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_transaction<'a, 'life0, 'async_trait>(
&'life0 self,
tx: Transaction<'a, Self::Provider>,
) -> Pin<Box<dyn Future<Output = Result<H256, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn submit_block<'life0, 'async_trait>(
&'life0 self,
hex: String,
) -> Pin<Box<dyn Future<Output = Result<SubmitBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn invoke_function<'life0, 'life1, 'async_trait>(
&'life0 self,
contract_hash: &'life1 H160,
method: String,
params: Vec<ContractParameter>,
signers: Option<Vec<Signer>>,
) -> Pin<Box<dyn Future<Output = Result<InvocationResult, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn invoke_script<'life0, 'async_trait>(
&'life0 self,
hex: String,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<InvocationResult, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_unclaimed_gas<'life0, 'async_trait>(
&'life0 self,
hash: H160,
) -> Pin<Box<dyn Future<Output = Result<UnclaimedGas, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_plugins<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Plugin>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn validate_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ValidateAddress, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn close_wallet<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn dump_priv_key<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_wallet_balance<'life0, 'async_trait>(
&'life0 self,
token_hash: H160,
) -> Pin<Box<dyn Future<Output = Result<Balance, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_new_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_wallet_unclaimed_gas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn import_priv_key<'life0, 'async_trait>(
&'life0 self,
priv_key: String,
) -> Pin<Box<dyn Future<Output = Result<NeoAddress, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn calculate_network_fee<'life0, 'async_trait>(
&'life0 self,
hex: String,
) -> Pin<Box<dyn Future<Output = Result<NeoNetworkFee, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<NeoAddress>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn open_wallet<'life0, 'async_trait>(
&'life0 self,
path: String,
password: String,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_from<'life0, 'async_trait>(
&'life0 self,
token_hash: H160,
from: H160,
to: H160,
amount: u32,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_many<'life0, 'async_trait>(
&'life0 self,
from: Option<H160>,
send_tokens: Vec<TransactionSendToken>,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_to_address<'life0, 'async_trait>(
&'life0 self,
token_hash: H160,
to: H160,
amount: u32,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn cancel_transaction<'life0, 'async_trait>(
&'life0 self,
txHash: H256,
signers: Vec<H160>,
extra_fee: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_application_log<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<ApplicationLog, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep17_balances<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
) -> Pin<Box<dyn Future<Output = Result<Nep17Balances, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep17_transfers<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
) -> Pin<Box<dyn Future<Output = Result<Nep17Transfers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep17_transfers_from<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
from: u64,
) -> Pin<Box<dyn Future<Output = Result<Nep17Transfers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep17_transfers_range<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
from: u64,
to: u64,
) -> Pin<Box<dyn Future<Output = Result<Nep17Transfers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep11_balances<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
) -> Pin<Box<dyn Future<Output = Result<Nep11Balances, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep11_transfers<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
) -> Pin<Box<dyn Future<Output = Result<Nep11Transfers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep11_transfers_from<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
from: u64,
) -> Pin<Box<dyn Future<Output = Result<Nep11Transfers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep11_transfers_range<'life0, 'async_trait>(
&'life0 self,
script_hash: H160,
from: u64,
to: u64,
) -> Pin<Box<dyn Future<Output = Result<Nep11Transfers, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_nep11_properties<'life0, 'life1, 'async_trait>(
&'life0 self,
script_hash: H160,
token_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_state_root<'life0, 'async_trait>(
&'life0 self,
block_index: u32,
) -> Pin<Box<dyn Future<Output = Result<StateRoot, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_proof<'life0, 'life1, 'async_trait>(
&'life0 self,
root_hash: H256,
contract_hash: H160,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn verify_proof<'life0, 'life1, 'async_trait>(
&'life0 self,
root_hash: H256,
proof: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_state_height<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StateHeight, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_state<'life0, 'life1, 'async_trait>(
&'life0 self,
root_hash: H256,
contract_hash: H160,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn find_states<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root_hash: H256,
contract_hash: H160,
key_prefix: &'life1 str,
start_key: Option<&'life2 str>,
count: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<States, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_block_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
full_tx: bool,
) -> Pin<Box<dyn Future<Output = Result<NeoBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn broadcast_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn broadcast_block<'life0, 'async_trait>(
&'life0 self,
block: NeoBlock,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn broadcast_get_blocks<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
count: u32,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn broadcast_transaction<'life0, 'async_trait>(
&'life0 self,
tx: RTransaction,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_contract_deployment_transaction<'life0, 'async_trait>(
&'life0 self,
nef: NefFile,
manifest: ContractManifest,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<TransactionBuilder<'_, Self::Provider>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_contract_update_transaction<'life0, 'async_trait>(
&'life0 self,
contract_hash: H160,
nef: NefFile,
manifest: ContractManifest,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<TransactionBuilder<'_, Self::Provider>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_invocation_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
contract_hash: H160,
method: &'life1 str,
params: Vec<ContractParameter>,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<TransactionBuilder<'_, Self::Provider>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_block_by_index<'life0, 'async_trait>(
&'life0 self,
index: u32,
full_tx: bool,
) -> Pin<Box<dyn Future<Output = Result<NeoBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_block_by_index<'life0, 'async_trait>(
&'life0 self,
index: u32,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn invoke_function_diagnostics<'life0, 'async_trait>(
&'life0 self,
contract_hash: H160,
name: String,
params: Vec<ContractParameter>,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<InvocationResult, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn invoke_script_diagnostics<'life0, 'async_trait>(
&'life0 self,
hex: String,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<InvocationResult, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn traverse_iterator<'life0, 'async_trait>(
&'life0 self,
session_id: String,
iterator_id: String,
count: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<StackItem>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn terminate_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn invoke_contract_verify<'life0, 'async_trait>(
&'life0 self,
hash: H160,
params: Vec<ContractParameter>,
signers: Vec<Signer>,
) -> Pin<Box<dyn Future<Output = Result<InvocationResult, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_mempool<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MemPoolDetails, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn import_private_key<'life0, 'async_trait>(
&'life0 self,
wif: String,
) -> Pin<Box<dyn Future<Output = Result<NeoAddress, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_header_hash<'life0, 'async_trait>(
&'life0 self,
hash: H256,
) -> Pin<Box<dyn Future<Output = Result<NeoBlock, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_to_address_send_token<'life0, 'life1, 'async_trait>(
&'life0 self,
send_token: &'life1 TransactionSendToken,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_from_send_token<'life0, 'life1, 'async_trait>(
&'life0 self,
send_token: &'life1 TransactionSendToken,
from: H160,
) -> Pin<Box<dyn Future<Output = Result<RTransaction, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn nns_resolver(&self) -> H160 { ... }
fn block_interval(&self) -> u32 { ... }
fn polling_interval(&self) -> u32 { ... }
fn max_valid_until_block_increment(&self) -> u32 { ... }
}
Required Associated Types§
Sourcetype Provider: JsonRpcProvider
type Provider: JsonRpcProvider
The JSON-RPC client type at the bottom of the stack
Required Methods§
Sourcefn rpc_client(&self) -> &RpcClient<Self::Provider>
fn rpc_client(&self) -> &RpcClient<Self::Provider>
The HTTP or Websocket provider.