Skip to main content

Retrieve pending mint vouchers

You can issue a POST request to /mint-vouchers/{eth_address} to retrieve all the pending vouchers for a given ethereum address.

GET https://public-api.phosphor.xyz/v1​/mint-vouchers/{eth_address}

This endpoint also supports query by token contract address and network ID:

GET https://public-api.phosphor.xyz/v1/mint-vouchers/{eth_address}?contract_address=0x309B691Dfd12fa35FD5228e5a243c27488a899c7&network_id=12345

It is a paginated endpoint that returns results up to a certain limit.

  • Specify the cursor from the previous response to return the next batch of results from the offset.
  • Specify an order_direction of ASC or DESC to sort results in an ascending or descending order.
GET https://public-api.phosphor.xyz/v1/mint-vouchers/{eth_address}?limit=1&order_direction=DESC
Example response
{
"cursor": "ZHQAMTY3NTcyODY4MC4w",
"has_more": false,
"results": [
{
"contract": "0x309B691Dfd12fa35FD5228e5a243c27488a899c7",
"minter": "0x86e1678D75D9249F6A60c8aD76dd8dFF49225d18",
"network_id": 59140,
"signature": "0xbe0c0e2d9e476cebd692d074dc04d9b88012f58f528b98ed1435de8b024538543ce983d843869fb15b90a282fc0c5a7a71efde95cae4ddb1586436885318d50e1c",
"voucher": {
"currency": "0x0000000000000000000000000000000000000000",
"expiry": 1675728680,
"initial_recipient": "0xdf50409aBe6B503B3F6bA64E7e26e1312048A84E",
"initial_recipient_amount": "0",
"net_recipient": "0x86e1678D75D9249F6A60c8aD76dd8dFF49225d18",
"nonce": 20,
"price": "0",
"quantity": 1,
"token_id": "1002"
}
}
],
"total_results": 1
}