MCPcopy Create free account
hub / github.com/base/base / call

Method call

etc/systems/src/b20.rs:507–517  ·  view source on GitHub ↗

Executes an `eth_call` against `to`.

(&self, to: Address, call: C)

Source from the content-addressed store, hash-verified

505
506 /// Executes an `eth_call` against `to`.
507 pub async fn call<C>(&self, to: Address, call: C) -> Result<Bytes>
508 where
509 C: SolCall,
510 {
511 let request = BaseTransactionRequest::default()
512 .from(self.signer.address())
513 .to(to)
514 .input(TransactionInput::new(Bytes::from(call.abi_encode())));
515
516 self.provider.call(request).await.wrap_err("B-20 eth_call failed")
517 }
518
519 /// Signs, sends, and waits for a transaction against `to`.
520 pub async fn send_call<C>(&self, to: Address, call: C, label: &'static str) -> Result<()>

Callers 15

ensure_feature_activeMethod · 0.45
balance_ofMethod · 0.45
decimals_ofMethod · 0.45
nameMethod · 0.45
symbolMethod · 0.45
total_supplyMethod · 0.45
allowanceMethod · 0.45
supply_capMethod · 0.45
contract_uriMethod · 0.45
currencyMethod · 0.45
pausedMethod · 0.45
is_b20Method · 0.45

Calls 4

inputMethod · 0.45
toMethod · 0.45
fromMethod · 0.45
addressMethod · 0.45

Tested by 15

create_policyFunction · 0.36
is_authorizedFunction · 0.36
asset_wordFunction · 0.36
asset_stringFunction · 0.36
asset_boolFunction · 0.36
create_policyFunction · 0.36
policy_existsFunction · 0.36