Skip to main content
POST
/
api
/
{blockchain}
/
order
TypeScript
// Check guide https://docs.8dx.io/guide

const orderBody = prepareOrderForApi(order, signature, decodeMakerTraits(order.makerTraits));

const options = {
  method: 'POST',
  body: JSON.stringify(orderBody)
  // ...
};

const blockchain = 'ethereum'; 

fetch(`https://swap.ggp.gg/api/${blockchain}/order`, 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

Order params with signatures and extenstions

maker
string
required
makerSrcOrToken
string
required
orderType
enum<string>
required
Available options:
limit,
twap
params
object
required
takerSrcOrToken
string
required
recipient
string | null

Response

Success creation order

success
boolean
required