cURL
curl --request POST \
--url https://api.relay.link/withdrawals/attest-deposit \
--header 'Content-Type: application/json' \
--data '
{
"chainId": 123,
"transactionId": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({chainId: 123, transactionId: '<string>'})
};
fetch('https://api.relay.link/withdrawals/attest-deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/withdrawals/attest-deposit"
payload = {
"chainId": 123,
"transactionId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Withdrawals
Attest Deposit
Attest a deposit transaction so its funds become claimable via the withdrawal flow
POST
/
withdrawals
/
attest-deposit
cURL
curl --request POST \
--url https://api.relay.link/withdrawals/attest-deposit \
--header 'Content-Type: application/json' \
--data '
{
"chainId": 123,
"transactionId": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({chainId: 123, transactionId: '<string>'})
};
fetch('https://api.relay.link/withdrawals/attest-deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/withdrawals/attest-deposit"
payload = {
"chainId": 123,
"transactionId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)How do programmatic withdrawals work?
Unlike the other withdrawal endpoints,
chainId here is the numeric Relay chain id. These endpoints power relay.link/withdraw and are not yet a versioned API surface.Was this page helpful?