cURL
curl --request GET \
--url https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transferimport requests
url = "https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer")
.asString();require 'uri'
require 'net/http'
url = URI("https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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"
}ofts
Get transfer
Create an OFT transfer transaction between chains
GET
/
transfer
cURL
curl --request GET \
--url https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transferimport requests
url = "https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer")
.asString();require 'uri'
require 'net/http'
url = URI("https://metadata.layerzero-api.com/v1/metadata/experiment/ofts/transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
Query Parameters
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\"}]}}"
Response
200 - application/json
Successfully created OFT transfer transaction
Was this page helpful?