Installation
Import
Transmissions Client Context
The hooks packages provides aReact.Context
that can be used to access the transmissions client in a react component tree. The context provider should wrap your component tree beneath your wallet providers.
Below is an example using the NextJS app router, rainbowkit, and coinbase smart wallet. The context provider pairs very nicely with wagmi hooks.
Usage
Returns
TranmissionsClient
Parameters
chainId
- type:
8453 | 84532
publicClient (optional)
- type:
PublicClient<Transport, Chain>
walletClient (optional)
- type:
WalletClient<Transport, Chain, Account>
paymasterConfig (optional)
- type:
PaymasterConfig