cURL
curl --request POST \
--url https://api.relay.link/execute/permits \
--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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/execute/permits"
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>",
"items": [
{
"status": "<string>",
"data": {
"to": "<string>",
"data": "<string>",
"value": "<string>",
"chainId": 123
},
"check": {
"endpoint": "<string>",
"method": "<string>"
}
}
]
}
]
}{
"message": "<string>"
}API Reference
Submit Permit
This API is used to submit a permit from the quote API.
POST
/
execute
/
permits
cURL
curl --request POST \
--url https://api.relay.link/execute/permits \
--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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/execute/permits"
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>",
"items": [
{
"status": "<string>",
"data": {
"to": "<string>",
"data": "<string>",
"value": "<string>",
"chainId": 123
},
"check": {
"endpoint": "<string>",
"method": "<string>"
}
}
]
}
]
}{
"message": "<string>"
}Headers
Optional API key for authentication and higher rate limits.
Query Parameters
The permit signature.
Body
application/json
The kind of signature. This value is returned in the quote API steps body field. e.g eip3009, permit2 or multicall-authorization (the extra EIP-712 signature of the approval proxy 3.1+ EIP-3009 flow, to be posted before the eip3009 signature)
The requestId of the quote this permit signature applies to. Returned in the quote API steps body field.
The API value returned from the quote API steps body field.
Available options:
bridge, swap, user-swap Was this page helpful?