const options = {method: 'GET'};
fetch('https://swap.ggp.gg/api/{blockchain}/orders/{order_hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"createdAt": 1,
"filledTxHashes": [
"<string>"
],
"maker": "<string>",
"makerSrcOrToken": "<string>",
"makerToken": "<string>",
"makerTraits": "<string>",
"makingAmount": "<string>",
"orderHash": "<string>",
"orderType": "limit",
"parsedMakerTraits": {
"allowMultipleFills": true,
"allowPartialFills": true,
"allowedSenderSuffix": "<string>",
"expiration": 1,
"hasExtension": true,
"needCheckEpochManager": true,
"needPostInteractionCall": true,
"needPreInteractionCall": true,
"nonceOrEpoch": 1,
"series": 1,
"unwrapWeth": true,
"usePermit2": true
},
"status": "<string>",
"takerSrcOrToken": "<string>",
"takerToken": "<string>",
"takingAmount": "<string>",
"cancelledAt": 1,
"extension": "<string>",
"filledAt": 1,
"meta": {
"makerToken": {
"address": "<string>",
"blockchain": "ethereum",
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
},
"takerToken": {
"address": "<string>",
"blockchain": "ethereum",
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
}
},
"recipient": "<string>"
}GET order by hash
const options = {method: 'GET'};
fetch('https://swap.ggp.gg/api/{blockchain}/orders/{order_hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"createdAt": 1,
"filledTxHashes": [
"<string>"
],
"maker": "<string>",
"makerSrcOrToken": "<string>",
"makerToken": "<string>",
"makerTraits": "<string>",
"makingAmount": "<string>",
"orderHash": "<string>",
"orderType": "limit",
"parsedMakerTraits": {
"allowMultipleFills": true,
"allowPartialFills": true,
"allowedSenderSuffix": "<string>",
"expiration": 1,
"hasExtension": true,
"needCheckEpochManager": true,
"needPostInteractionCall": true,
"needPreInteractionCall": true,
"nonceOrEpoch": 1,
"series": 1,
"unwrapWeth": true,
"usePermit2": true
},
"status": "<string>",
"takerSrcOrToken": "<string>",
"takerToken": "<string>",
"takingAmount": "<string>",
"cancelledAt": 1,
"extension": "<string>",
"filledAt": 1,
"meta": {
"makerToken": {
"address": "<string>",
"blockchain": "ethereum",
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
},
"takerToken": {
"address": "<string>",
"blockchain": "ethereum",
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
}
},
"recipient": "<string>"
}ethereum, bsc, arbitrum Maker order by hash
Timestamp when the order was created (Unix time in seconds)
x >= 0List of transaction hashes where the order was filled (partial or full executions)
Maker wallet or contract address
Address of the maker asset (ERC20 token contract)
ERC20 token contract
Encoded maker traits represented as a 256-bit value
Amount of the maker token to swap (in token's smallest unit, e.g., wei for ETH)
Order hash (id in bytes32)
Order type
limit, twap Parsed representation of maker traits with readable fields
Show child attributes
Current order status
Address of the taker asset (ERC20 token contract)
ERC20 token contract
Amount of the taker token to receive (in token's smallest unit, e.g., wei for ETH)
Timestamp when the order was cancelled, if applicable
x >= 0Timestamp when the order was completely filled, if applicable
x >= 0Deserialized tokens metadata
Show child attributes
Recipient address (maker or contract)