Skip to main content
POST
/
api
/
{blockchain}
/
order
JavaScript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    maker: '<string>',
    makerSrcOrToken: '<string>',
    orderType: 'limit',
    params: {
      makerTraits: {
        allowMultipleFills: true,
        allowPartialFills: true,
        allowedSenderSuffix: '<string>',
        expiration: 1,
        hasExtension: true,
        needCheckEpochManager: true,
        needPostInteractionCall: true,
        needPreInteractionCall: true,
        nonceOrEpoch: 1,
        series: 1,
        unwrapWeth: true,
        usePermit2: true
      },
      makingAmount: '<string>',
      salt: '<string>',
      signature: '<string>',
      takingAmount: '<string>',
      extension: '<string>'
    },
    takerSrcOrToken: '<string>',
    recipient: '<string>'
  })
};

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
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
boolean
required