Public Relayer
Public Relayer: First JSON-RPC Call
Verify connectivity and run an end-to-end gas-abstracted transaction on the testnet relayer.
Full TypeScript example
Below are two complete examples showing how to do end-to-end gas abstracted transactions on the testnet relayer. You can copy them to a local project. You will need the @viem and @metamask/smart-accounts-kit packages installed. You can get testnet USDC from the Circle faucet to pay for the transactions.
Loading example...