Expand description
The client to access ether blockchain functions.
Fields§
§provider: Provider§signer: Option<Signer>Implementations§
source§impl Client
impl Client
pub async fn eth_call(
&mut self,
to: Address,
call_data: Vec<u8>
) -> Result<Vec<u8>>
pub async fn deploy_contract(
&mut self,
call_data: Vec<u8>,
ops: TxOptions
) -> Result<Address>
sourcepub async fn send_raw_transaction(
&mut self,
tag: &str,
to: Option<Address>,
call_data: Vec<u8>,
ops: TxOptions
) -> Result<H256>
pub async fn send_raw_transaction(
&mut self,
tag: &str,
to: Option<Address>,
call_data: Vec<u8>,
ops: TxOptions
) -> Result<H256>
Send raw transaction to contract address.
Parameters
value- Amount of native token transferring to contract.call_data- Invoke contract method call data. visit solidityabifor more information