Skip to main content
POST
/
api
/
{blockchain}
/
orders
/
cancel
TypeScript
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));
{
  "orderHash": "<string>"
}

Path Parameters

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

Body

application/json

Cancel order params with hash and signature

deadline
integer<int64>
required

Deadline in seconds

Required range: x >= 0
maker
string
required

Maker wallet or contract address

orderHash
string
required

Order hash (id in bytes32)

signature
string
required

Signature of the limit order typed data (using signTypedData_v4)

Response

Cancel order

orderHash
string
required

Order hash (id in bytes32)