Skip to main content
POST
/
widget
/
crosschain-transfer
curl --request POST \
  --url http://localhost:4000/v1/widget/crosschain-transfer \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Transfer AVAX to ETH",
  "description": "Transfer AVAX from Avalanche and receive ETH on Ethereum",
  "icon": "https://example.com/transfer-icon.png",
  "url": "https://example.com/transfer",
  "sourceChainId": 43114,
  "destinationChainId": 1,
  "address": "0xb00D916688FEE4aB6646994104E1441446947fc9"
}
'
{
  "success": true,
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Body

application/json

Parameters for generating crosschain native token transfer metadata

title
string
required

The title of the Application

description
string
required

The description of the Application

url
string
required

The URL of the Application

sourceChainId
number
required

The source chain ID for the cross-chain transfer

destinationChainId
number
required

The destination chain ID for the cross-chain transfer

address
string
required

The recipient address for the cross-chain transfer

icon
string

The icon URL of the Application

Response

Crosschain transfer metadata generated successfully

success
boolean
Example:

true

metadata
object

Generated metadata for crosschain transfer