Skip to main content
POST
/
api
/
{blockchain}
/
orders
/
cancel
JavaScript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({deadline: 1, maker: '<string>', orderHash: '<string>', signature: '<string>'})
};

fetch('https://swap.ggp.gg/api/{blockchain}/orders/cancel', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true
}

Path Parameters

blockchain
enum<string>
required
Available options:
ethereum,
bsc,
arbitrum

Body

application/json
deadline
integer<int64>
required
Required range: x >= 0
maker
string
required
orderHash
string
required
signature
string
required

Response

success
boolean
required