0

I am using ElectrumX I am developing a cryptowallet, and when I ask for the historic data about a specific XPUB I get a list of transactions id, and when I ask for the information of those transactions id I get a lot of data, like the vins and vouts, but I don't know if I have sent that money in the vouts or if I have received it. I was using NBXplorer, and with this it was really easy, because it displays it in a manner of your balance before and after the transaction, and also has a BalanceChanged property, but this current answer I don't know. This is the answer of ElectrumX about a tx.

"hex": "020000000149098192c1915a14b7973db7c02e56819094b51bfe947bc87380885cd67a701c010000006b483045022100c3a9b5ec4f46fea733da7409dbcad32b269643ef4ffe0269d03d68e917a5d8e602207569f8974457f513a4eca86b795e07325ab693a6bf1c11c8bc57eadcee74594c01210353aa3e3c84d28c528f75461588724416a6b25086338d4d77340d70724f86847bffffffff0280f0fa02000000001976a914aecb98ceb5ab6520460949f6d8513eb607a9334288ac7c651903000000001976a914289575d3a73826e9103aa3960ab9be82d5ccb61e88ac00000000",
"txid": "2ed817f38eb6edd66d6e8091183d699386dfd8e1e20c4aca719dd10a2e007664",
"size": 226,
"version": 2,
"locktime": 0,
"vin": [
    {
        "txid": "1c707ad65c888073c87b94fe1bb5949081562ec0b73d97b7145a91c192810949",
        "vout": 1,
        "scriptSig": {
            "asm": "3045022100c3a9b5ec4f46fea733da7409dbcad32b269643ef4ffe0269d03d68e917a5d8e602207569f8974457f513a4eca86b795e07325ab693a6bf1c11c8bc57eadcee74594c[ALL] 0353aa3e3c84d28c528f75461588724416a6b25086338d4d77340d70724f86847b",
            "hex": "483045022100c3a9b5ec4f46fea733da7409dbcad32b269643ef4ffe0269d03d68e917a5d8e602207569f8974457f513a4eca86b795e07325ab693a6bf1c11c8bc57eadcee74594c01210353aa3e3c84d28c528f75461588724416a6b25086338d4d77340d70724f86847b"
        },
        "sequence": 4294967295
    }
],
"vout": [
    {
        "value": 0.5,
        "valueSat": 50000000,
        "n": 0,
        "scriptPubKey": {
            "asm": "OP_DUP OP_HASH160 aecb98ceb5ab6520460949f6d8513eb607a93342 OP_EQUALVERIFY OP_CHECKSIG",
            "hex": "76a914aecb98ceb5ab6520460949f6d8513eb607a9334288ac",
            "reqSigs": 1,
            "type": "pubkeyhash",
            "addresses": [
                "PQXQdWgMo51xS1adhCU6DkfEQpAbZ8mmmw"
            ]
        }
    },
    {
        "value": 0.51996028,
        "valueSat": 51996028,
        "n": 1,
        "scriptPubKey": {
            "asm": "OP_DUP OP_HASH160 289575d3a73826e9103aa3960ab9be82d5ccb61e OP_EQUALVERIFY OP_CHECKSIG",
            "hex": "76a914289575d3a73826e9103aa3960ab9be82d5ccb61e88ac",
            "reqSigs": 1,
            "type": "pubkeyhash",
            "addresses": [
                "PCHmEKwMcuJyD3ZzUX8p35PtW3M8VFtB1X"
            ]
        }
    }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.