Skip to main content
POST
/
execute
/
bridge
cURL
curl --request POST \
  --url https://api.relay.link/execute/bridge \
  --header 'Content-Type: application/json' \
  --data '{
  "user": "<string>",
  "recipient": "<string>",
  "originChainId": 123,
  "destinationChainId": 123,
  "currency": "anime",
  "amount": "<string>",
  "appFees": [
    "<string>"
  ],
  "source": "<string>",
  "refundTo": "<string>",
  "refundOnOrigin": true,
  "useExactInput": true,
  "useExternalLiquidity": true,
  "useFallbacks": true,
  "useForwarder": true,
  "usePermit": true
}'
{
  "steps": [
    {
      "id": "deposit",
      "action": "Confirm transaction in your wallet",
      "description": "Deposit funds for executing the calls",
      "kind": "transaction",
      "items": [
        {
          "status": "incomplete",
          "data": {
            "from": "0x03508bB71268BBA25ECaCC8F620e01866650532c",
            "to": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",
            "data": "0x58109c",
            "value": "995010715204139091",
            "maxFeePerGas": "18044119466",
            "maxPriorityFeePerGas": "2060264926",
            "chainId": 1,
            "gas": 21064
          },
          "check": {
            "endpoint": "/intents/status?requestId=0x341b28c6467bfbffb72ad78ec5ddf1f77b8f9c79be134223e3248a7d4fcd43b6",
            "method": "GET"
          }
        }
      ]
    }
  ],
  "fees": {
    "gas": "384398515652800",
    "gasCurrency": "eth",
    "relayer": "-4989478842712964",
    "relayerGas": "521157287036",
    "relayerService": "-4990000000000000",
    "relayerCurrency": "eth"
  },
  "breakdown": [
    {
      "value": "1000000000000000000",
      "timeEstimate": 10
    }
  ],
  "balances": {
    "userBalance": "54764083517303347",
    "requiredToSolve": "995010521157287036"
  }
}
This API has been replaced by the Get Quote API, which supports bridging, swapping and calling through a single unified API.

Body

application/json
user
string
required
originChainId
number
required
destinationChainId
number
required
currency
enum<string>
required
Available options:
anime,
btc,
cgt,
degen,
eth,
omi,
pop,
power,
sipher,
tg7,
tia,
topia,
usdc,
usdc.e,
usdt,
sol,
xai,
weth,
apeeth,
ape,
g,
dmt,
g7,
god,
pengu,
plume,
wbtc,
pusd,
gun,
somi,
synd,
xpl,
usde,
mon,
usdh
amount
string
required
recipient
string
appFees
string[]
source
string
refundTo
string
refundOnOrigin
boolean
deprecated
useExactInput
boolean
useExternalLiquidity
boolean
useFallbacks
boolean
useForwarder
boolean
default:true
usePermit
boolean

Response

steps
object[]
Example:
fees
object
Example:
breakdown
object[]
balances
object
Example: