Skip to main content
GET
/
transfer
cURL
curl --request GET \
  --url https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer
{
  "created": 1750332889266,
  "dstChainName": "ethereum",
  "metadata": {
    "properties": {
      "dstOftAddress": "0x3dc96399109df5ceb2c226664a086140bd0379cb",
      "dstOftType": "OFT_ADAPTER",
      "dstChainName": "bera",
      "approvalRequired": true,
      "amount": "1000000",
      "sharedDecimals": 6,
      "localDecimals": 6
    },
    "timestamps": {
      "created": 1750332889266
    }
  },
  "transactionData": {
    "populatedTransaction": {
      "data": "0xc7c7f5b30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000007625075988a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d8538fa8fdd5872e68c4040449f64452ae536fa6000000000000000000000000000000000000000000000000000000000000769a000000000000000000000000d8538fa8fdd5872e68c4040449f64452ae536fa600000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "to": "0x6C96dE32CEa08842dcc4058c14d3aaAD7Fa41dee",
      "gasLimit": "500000",
      "value": "8118838073482"
    },
    "approvalTransaction": {
      "data": "0x095ea7b30000000000000000000000006c96de32cea08842dcc4058c14d3aaad7fa41dee00000000000000000000000000000000000000000000000000000000000f4240",
      "to": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "gasLimit": "100000"
    }
  },
  "transactionType": "OFT_SEND"
}

Headers

x-layerzero-api-key
string

LayerZero API key for authentication

Example:

"c017d03d-5860-4b33-aeff-92e7bccb5d87"

Query Parameters

srcChainName
string
required

Source chain name where the OFT transfer originates

Example:

"ethereum"

dstChainName
string
required

Destination chain name where the OFT will be received

Example:

"bera"

oftAddress
string
required

Address of the OFT contract on the source chain

Example:

"0x6c96de32cea08842dcc4058c14d3aaad7fa41dee"

amount
string
required

Amount to transfer in the smallest unit (wei/satoshi equivalent)

Example:

"1000000"

from
string
required

Address of the sender wallet

Example:

"0xd8538FA8FDd5872E68c4040449F64452ae536fA6"

to
string
required

Address of the recipient wallet (EVM hex or Solana base58)

Example:

"0xd8538FA8FDd5872E68c4040449F64452ae536fA6"

validate

Whether to validate balances before creating transaction

Example:

false

options
string

Structured LayerZero execution options as JSON string. EXECUTOR OPTIONS: - lzReceive: Set gas limit and optional native drop for lzReceive execution - nativeDrops: Array of native token drops to specific addresses - composeOptions: Array of compose message execution settings with gas and native drop All numeric values for gas limits and native drops should be strings or numbers. Native drop amounts are in wei (e.g., "1000000000000000" = 0.001 ETH).

Example:

"{\"executor\":{\"lzReceive\":{\"gasLimit\":300000},\"nativeDrops\":[{\"amount\":\"1\",\"receiver\":\"0xd8538fa8fdd5872e68c4040449f64452ae536fa6\"}]}}"

composeMsg
string

Compose message for advanced OFT operations (hex encoded)

Example:

"0x"

oftCmd
string

OFT command for advanced operations (hex encoded)

Example:

"0x"

Response

200 - application/json

Successfully created OFT transfer transaction

Transaction object ready for signing and submission

created
number
required
dstChainName
string
required
transactionData
object
required
wallet
object
dstTxError
string
nextInlineSince
number
transactionType
string
metadata
object
parallelizingKey
string