Skip to content

Parse raw transaction to get output address? #744

@maxsummers

Description

@maxsummers

Hello!

Is it possible to use this module in order to parse raw transaction data and get destination Bitcoin addresses from it?

I've managed to parse raw transaction from hex string:

const bitcoinJs = require('bitcoinjs-lib');

const rawTx = '010...000';

const tx = bitcoinJs.Transaction.fromHex(rawTx);

console.log(JSON.stringify(tx, null, 4));

But how do I get destinations addresses from it?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions