Skip to content

Add `blockchain.utxo.get`

Dagur Valberg Johannsson requested to merge github/fork/dagurval/utxo-info into master

Created by: dagurval

Add RPC call blockchain.utxo.get

Example output:

{
    "amount": 4999999000,
    "height": 100000,
    "scripthash": "2e6d15f1a36288b55d5cb14d21f00324cbf767b459dc37e5054e383e434e0b16",
    "spent": {
        "height": -1,
        "tx_hash": "90adba10cdb91546b9c17e93ee300fe7940c6c3dda80f83bb791df5895d83aff",
        "tx_pos": 0
    },
    "status": "spent"
},

See the document updated in this PR for details.

Test plan

Test added: BCHUnlimited!2474 (merged)

./contrib/run_functional_tests.sh

@gandrewstone also has a test for this RPC in libbitcoincashkotlin

Merge request reports