Coinset
UsageCoins

get_coin_records_by_hint

Retrieves coins by hint, by default returns unspent coins.

POST
/get_coin_records_by_hint
/get_coin_records_by_hint

Request Body

application/jsonRequired

The hint.

hint
Required
string

Format: "hex"

start_heightinteger

Format: "uint32"

end_heightinteger

Format: "uint32"

include_spent_coinsboolean

curl -X POST "https://api.coinset.org/get_coin_records_by_hint" \
  -H "Content-Type: application/json" \
  -d '{
    "hint": "string",
    "start_height": 0,
    "end_height": 0,
    "include_spent_coins": true
  }'

OK

{
  "coin_records": [
    {
      "coin": {
        "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000004082",
        "puzzle_hash": "0x94c6db00186900418ef7c1f05e127ee1a647cbe6e514ec3bc57acb7bbe6dfb10",
        "amount": 1750000000000
      },
      "confirmed_block_index": 922637,
      "spent_block_index": 922641,
      "spent": true,
      "coinbase": false,
      "timestamp": 1632832094
    }
  ],
  "success": true,
  "error": "string"
}