anvil_zksync_api_decl/namespaces/eth_test.rs
1use jsonrpsee::core::RpcResult;
2use jsonrpsee::proc_macros::rpc;
3use zksync_types::transaction_request::CallRequest;
4use zksync_types::H256;
5
6/// API bindings for the `eth` namespace that are not normally supported by core ZKsync.
7#[rpc(server, namespace = "eth")]
8pub trait EthTestNamespace {
9 #[method(name = "sendTransaction")]
10 async fn send_transaction(&self, tx: CallRequest) -> RpcResult<H256>;
11}