MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / transaction

Function transaction

web3/src/transaction.rs:135–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 use utils::crypto::keypair;
134
135 async fn transaction() -> Transaction {
136 let nonce = increment_account_1_nonce().await;
137 Transaction::new(
138 *ACCOUNT_1,
139 Some(*ACCOUNT_2),
140 U256::from(10),
141 Some(nonce),
142 None,
143 )
144 .unwrap()
145 }
146
147 async fn function_call_transaction(contract_account: Account, data: Bytes) -> Transaction {
148 let nonce = increment_account_1_nonce().await;

Callers 2

send_transactionFunction · 0.85

Calls 1

Tested by

no test coverage detected