Confirm a swap
curl --request POST \
--url http://localhost:3000/api/integrations/swaps/{intentId}/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"txHash": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({txHash: '<string>'})
};
fetch('http://localhost:3000/api/integrations/swaps/{intentId}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3000/api/integrations/swaps/{intentId}/confirm"
payload = { "txHash": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>",
"errorCode": "below_minimum"
}Swaps
Confirm a swap
POST
/
api
/
integrations
/
swaps
/
{intentId}
/
confirm
Confirm a swap
curl --request POST \
--url http://localhost:3000/api/integrations/swaps/{intentId}/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"txHash": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({txHash: '<string>'})
};
fetch('http://localhost:3000/api/integrations/swaps/{intentId}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3000/api/integrations/swaps/{intentId}/confirm"
payload = { "txHash": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>",
"errorCode": "below_minimum"
}