send
send
is a method on EthersProviderAdapter
that uses that adapter's SmartAccountClient
's EIP-1193-compliant request
method.
Usage
example.ts
import { provider } from "./ethers-provider";
// EIP-1193 compliant requests
const chainId = await provider.send("eth_chainId", []);
Returns
Promise<any>
The result of the RPC call
Parameters
method: string
The RPC method to call
params: any[]
The params required by the RPC method