Build claimRedeem calldata.
curl --request POST \
--url https://portal.signalite.ai/api/v1/actions/claim/build \
--header 'Content-Type: application/json' \
--data '
{
"id": "1",
"account": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiver": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiveChainId": 8453
}
'import requests
url = "https://portal.signalite.ai/api/v1/actions/claim/build"
payload = {
"id": "1",
"account": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiver": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiveChainId": 8453
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '1',
account: '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
receiver: '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
receiveChainId: 8453
})
};
fetch('https://portal.signalite.ai/api/v1/actions/claim/build', 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://portal.signalite.ai/api/v1/actions/claim/build",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '1',
'account' => '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
'receiver' => '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
'receiveChainId' => 8453
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://portal.signalite.ai/api/v1/actions/claim/build"
payload := strings.NewReader("{\n \"id\": \"1\",\n \"account\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiver\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiveChainId\": 8453\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://portal.signalite.ai/api/v1/actions/claim/build")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"1\",\n \"account\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiver\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiveChainId\": 8453\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://portal.signalite.ai/api/v1/actions/claim/build")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"1\",\n \"account\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiver\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiveChainId\": 8453\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"action": "<string>",
"tx": {
"to": "<string>",
"data": "<string>",
"value": "0",
"chainId": 999
},
"account": "<string>",
"receiver": "<string>",
"metadata": {
"withdrawal": {
"requestedDestination": {
"chainId": 8453,
"chainName": "Base",
"usdcAddress": "<string>",
"enabled": true
},
"settlement": {
"chainId": 999,
"chainName": "HyperEVM",
"usdcAddress": "<string>",
"receiver": "<string>"
},
"postSettlementBridge": {
"required": true,
"provider": "relay",
"from": {
"chainId": 999,
"chainName": "HyperEVM",
"usdcAddress": "<string>"
},
"to": {
"chainId": 8453,
"chainName": "Base",
"usdcAddress": "<string>"
},
"recipient": "<string>",
"amountSource": "quote.expected.assets",
"mode": "deposit-address",
"relay": {
"provider": "relay",
"requestId": "0x17e6a5970c7ce45246e57e2cec28e65db34736c9850bdfd955147fb18a087fea",
"depositAddress": "<string>",
"statusUrl": "<string>",
"originChainId": 999,
"destinationChainId": 8453,
"amountRaw": "1000000",
"recipient": "<string>",
"refundTo": "<string>",
"originCurrency": "<string>",
"destinationCurrency": "<string>"
},
"submitRule": "<string>"
}
}
},
"quoteBlock": "<string>",
"requirements": [
{
"type": "approval",
"token": "<string>",
"spender": "<string>",
"amount": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
},
"tx": {
"to": "<string>",
"data": "<string>",
"value": "0",
"chainId": 999
}
}
],
"expected": {
"assets": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
},
"shares": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
},
"minShares": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
}
},
"slippageBps": 123,
"expiresAt": "2023-11-07T05:31:56Z"
},
"meta": {
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}Operations
Build claimRedeem calldata.
POST
/
api
/
v1
/
actions
/
claim
/
build
Build claimRedeem calldata.
curl --request POST \
--url https://portal.signalite.ai/api/v1/actions/claim/build \
--header 'Content-Type: application/json' \
--data '
{
"id": "1",
"account": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiver": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiveChainId": 8453
}
'import requests
url = "https://portal.signalite.ai/api/v1/actions/claim/build"
payload = {
"id": "1",
"account": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiver": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
"receiveChainId": 8453
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '1',
account: '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
receiver: '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
receiveChainId: 8453
})
};
fetch('https://portal.signalite.ai/api/v1/actions/claim/build', 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://portal.signalite.ai/api/v1/actions/claim/build",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '1',
'account' => '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
'receiver' => '0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1',
'receiveChainId' => 8453
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://portal.signalite.ai/api/v1/actions/claim/build"
payload := strings.NewReader("{\n \"id\": \"1\",\n \"account\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiver\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiveChainId\": 8453\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://portal.signalite.ai/api/v1/actions/claim/build")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"1\",\n \"account\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiver\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiveChainId\": 8453\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://portal.signalite.ai/api/v1/actions/claim/build")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"1\",\n \"account\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiver\": \"0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1\",\n \"receiveChainId\": 8453\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"action": "<string>",
"tx": {
"to": "<string>",
"data": "<string>",
"value": "0",
"chainId": 999
},
"account": "<string>",
"receiver": "<string>",
"metadata": {
"withdrawal": {
"requestedDestination": {
"chainId": 8453,
"chainName": "Base",
"usdcAddress": "<string>",
"enabled": true
},
"settlement": {
"chainId": 999,
"chainName": "HyperEVM",
"usdcAddress": "<string>",
"receiver": "<string>"
},
"postSettlementBridge": {
"required": true,
"provider": "relay",
"from": {
"chainId": 999,
"chainName": "HyperEVM",
"usdcAddress": "<string>"
},
"to": {
"chainId": 8453,
"chainName": "Base",
"usdcAddress": "<string>"
},
"recipient": "<string>",
"amountSource": "quote.expected.assets",
"mode": "deposit-address",
"relay": {
"provider": "relay",
"requestId": "0x17e6a5970c7ce45246e57e2cec28e65db34736c9850bdfd955147fb18a087fea",
"depositAddress": "<string>",
"statusUrl": "<string>",
"originChainId": 999,
"destinationChainId": 8453,
"amountRaw": "1000000",
"recipient": "<string>",
"refundTo": "<string>",
"originCurrency": "<string>",
"destinationCurrency": "<string>"
},
"submitRule": "<string>"
}
}
},
"quoteBlock": "<string>",
"requirements": [
{
"type": "approval",
"token": "<string>",
"spender": "<string>",
"amount": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
},
"tx": {
"to": "<string>",
"data": "<string>",
"value": "0",
"chainId": 999
}
}
],
"expected": {
"assets": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
},
"shares": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
},
"minShares": {
"raw": "1000000",
"decimals": 6,
"formatted": "1.000000"
}
},
"slippageBps": 123,
"expiresAt": "2023-11-07T05:31:56Z"
},
"meta": {
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "ACTION_BUILD_FAILED",
"message": "<string>"
}
}Body
application/json