Coinset
UsageBlocks

get_additions_and_removals

Retrieves the additions and removals (state transitions) for a certain block. Returns coin records for each addition and removal.

POST
/get_additions_and_removals
/get_additions_and_removals

Request Body

application/jsonRequired

the block's header_hash

header_hash
Required
string

Format: "hex"
curl -X POST "https://api.coinset.org/get_additions_and_removals" \
  -H "Content-Type: application/json" \
  -d '{
    "header_hash": "0x88a8e404c419e12bb11e809ff7afc8b1fcda77270fe3f157cff8a2fab4f44e8b"
  }'

OK

{
  "additions": [
    {
      "coin": {
        "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000004082",
        "puzzle_hash": "0x94c6db00186900418ef7c1f05e127ee1a647cbe6e514ec3bc57acb7bbe6dfb10",
        "amount": 1750000000000
      },
      "confirmed_block_index": 922637,
      "spent_block_index": 922641,
      "spent": true,
      "coinbase": false,
      "timestamp": 1632832094
    }
  ],
  "removals": [
    {
      "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"
}