cURL
curl --request POST \
--url https://api.relay.link/execute/permits/v2 \
--header 'Content-Type: application/json' \
--data '
{
"kind": "<string>",
"requestId": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({kind: '<string>', requestId: '<string>'})
};
fetch('https://api.relay.link/execute/permits/v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/execute/permits/v2"
payload = {
"kind": "<string>",
"requestId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"steps": [
{
"id": "<string>",
"action": "<string>",
"description": "<string>",
"kind": "<string>",
"status": "<string>",
"data": {
"to": "<string>",
"data": "<string>",
"value": "<string>",
"chainId": 123,
"gas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"gasPrice": "<string>"
},
"depositAddress": {
"address": "<string>",
"type": "strict",
"depositor": "<string>",
"depositTxHash": "<string>",
"recoveryAddress": "<string>"
},
"depositAddressId": "<string>",
"check": {
"endpoint": "<string>",
"method": "GET"
}
}
]
}{
"message": "<string>",
"errorCode": "<string>",
"requestId": "<string>",
"errorData": {
"chainId": 123,
"currency": "<string>",
"required": "<string>",
"available": "<string>",
"spender": "<string>"
}
}{
"message": "<string>",
"errorCode": "<string>",
"requestId": "<string>"
}API Reference
Submit Permit
This API is used to submit a permit from the quote API.
POST
/
execute
/
permits
/
v2
cURL
curl --request POST \
--url https://api.relay.link/execute/permits/v2 \
--header 'Content-Type: application/json' \
--data '
{
"kind": "<string>",
"requestId": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({kind: '<string>', requestId: '<string>'})
};
fetch('https://api.relay.link/execute/permits/v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/execute/permits/v2"
payload = {
"kind": "<string>",
"requestId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"steps": [
{
"id": "<string>",
"action": "<string>",
"description": "<string>",
"kind": "<string>",
"status": "<string>",
"data": {
"to": "<string>",
"data": "<string>",
"value": "<string>",
"chainId": 123,
"gas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"gasPrice": "<string>"
},
"depositAddress": {
"address": "<string>",
"type": "strict",
"depositor": "<string>",
"depositTxHash": "<string>",
"recoveryAddress": "<string>"
},
"depositAddressId": "<string>",
"check": {
"endpoint": "<string>",
"method": "GET"
}
}
]
}{
"message": "<string>",
"errorCode": "<string>",
"requestId": "<string>",
"errorData": {
"chainId": 123,
"currency": "<string>",
"required": "<string>",
"available": "<string>",
"spender": "<string>"
}
}{
"message": "<string>",
"errorCode": "<string>",
"requestId": "<string>"
}Signature steps from
POST /quote/v3 post here, and the response returns flat steps in the same shape. Upgrading from POST /execute/permits? See the migration guide.Body
application/json
Was this page helpful?