Reject a transaction
curl --request POST \
--url https://api.anchorage-staging.com/v2/transactions/{transactionId}/reject \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/transactions/{transactionId}/reject"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/transactions/{transactionId}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Reject a transaction
Permissions required: Reject Operations
Reject an in-progress transaction. The caller’s API key must hold the
Reject Operations permission for the source vault. Operations already
in a final state return 409 Conflict.
Only withdrawals, transfers, delegations, and generic operations (including bridge transactions) can be rejected via this endpoint; rejecting any other operation type returns 409 Conflict.
A transaction can only be rejected before it has been submitted for signing and broadcast to the network. This endpoint cannot be used to cancel a transaction stuck in the broadcasting state due to a low gas fee.
POST
/
transactions
/
{transactionId}
/
reject
Reject a transaction
curl --request POST \
--url https://api.anchorage-staging.com/v2/transactions/{transactionId}/reject \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/transactions/{transactionId}/reject"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/transactions/{transactionId}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Was this page helpful?