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
}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
}ethereum, bsc, arbitrum