Retrieve all the information, including signatures, needed to fulfill a listing directly onchain.
POST
/open/v1/{network_id}/orders/sign
curl \
-X POST https://api.dewapi.com/open/v1/137/orders/sign \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"source":1,"order_hashes":["0x1234"]}'
Request example
{
"source": 1,
"order_hashes": [
"0x1234"
]
}
Response examples (200)
{
"code": 0,
"data": [
{
"order_hash": "0x41a2753400f805db148079f60355df470aece45941a45cb96a25ab5d24e4c243",
"data": {
"signature": "0x1234",
"parameters": {
"offerer": "string",
"offer": [
{
"itemType": 2,
"token": "string",
"identifierOrCriteria": 42,
"startAmount": 42,
"endAmount": 42
}
],
"consideration": [
{
"itemType": 0,
"token": "string",
"identifierOrCriteria": 42,
"startAmount": 42,
"endAmount": 42,
"recipient": "string"
}
],
"startTime": 42,
"endTime": 42,
"orderType": 0,
"zone": "0x0000000000000000000000000000000000000000",
"zoneHash": "string",
"salt": "string",
"conduitKey": "string",
"totalOriginalConsiderationItems": 42,
"counter": "1"
}
},
"error": "string"
}
],
"total": 0
}
Response examples (400)
{
"code": 3000,
"error": "this is an error message",
"errors": [
{
"field": [
"error message"
]
}
]
}