Parameters
| Property | Description | Required |
|---|---|---|
| chainId | The chain id to deposit funds on | ✅ |
| toChainId | The chain id to execute the txs on | ✅ |
| value | Amount in wei to bridge | ✅ |
| wallet | A valid WalletClient from viem or an adapted wallet generated from an adapter that meets this interface. | ✅ |
| to | A valid address to send the funds to | ❌ |
Example
import { getClient } from '@reservoir0x/relay-sdk'
import { useWalletClient } from 'wagmi'
const { data: wallet } = useWalletClient()
const quote = await getClient()?.methods.getBridgeQuote({
chainId,
toChainId,
value: '10000000000000000', // 0.01 ETH
wallet,
})