Retrieve all orders of C2 token contract
Retrieves all C2 market maker orders from the specified C2 token contract. C2 orders are Ask orders where market makers sell L1 tokens for CWEB. The response includes all orders regardless of their activity status (ACTIVE, PENDING, or DISABLED).
Query Parameters
contractAddressstring
The L2 contract address of the C2 (market maker) contract. This is the contract address where the market maker orders are stored. The endpoint will retrieve all orders from this contract.
backendUrl?string
Backend URL. Default is https://api-cloud.coinweb.io/wallet. This URL is used to query the contract's claim storage to retrieve all orders.
Format
uriResponse Body
curl -X GET "https://cwap-api.coinhq.store/pactswap_cm/getAllC2Orders?contractAddress=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&backendUrl=https%3A%2F%2Fapi-cloud.coinweb.io%2Fwallet"[
{
"id": "order-123-abc",
"baseAmount": "1000000000000000000",
"l1Amount": "50000000",
"minL1Amount": "40000000",
"collateral": "1000000000000000000",
"covering": "500000000000000000",
"createdAt": 1704067200000,
"expirationDate": 1704153600000,
"activityStatus": "ACTIVE",
"marketMaker": {
"auth": "EcdsaContract",
"payload": "020a89e0698443aaf4ecd613317d2fdf90ef73b99244182fc7bb3c6b85f375b876"
},
"baseRecipient": {
"auth": "EcdsaContract",
"payload": "020a89e0698443aaf4ecd613317d2fdf90ef73b99244182fc7bb3c6b85f375b876"
},
"txId": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
]Was this documentation helpful? Any suggestions?