Skip to main content

Documentation Index

Fetch the complete documentation index at: https://unevenlabs-ted-sdk-integration-docs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Parameters

PropertyDescriptionRequired
chainIdThe chain id to deposit funds on
toChainIdThe chain id to execute the txs on
valueAmount in wei to bridge
walletA valid WalletClient from viem or an adapted wallet generated from an adapter that meets this interface.
toA valid address to send the funds to
precheckIf set to true this will just fetch the quote without executing the bridge. Use this to display an estimated quote.
onProgressCallback to update UI state as execution progresses. Can also be used to get the transaction hash for a given step item.

Example

import { getClient, Execute } from "@reservoir0x/relay-sdk";
import { createWalletClient, http } from 'viem'

...

wallet = createWalletClient({
  account: address,
  transport: http()
})

getClient().actions.bridge({
  chainId: 7777777,
  toChainId: 8453,
  value: "1000000"
  wallet: wallet,
  onProgress: (steps) => {
    console.log(steps)
  },
})