Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mrbianchi on github.
  • I am mrb000 (https://keybase.io/mrb000) on keybase.
  • I have a public key ASAYsG57EziBwM1oVyv8ORPlu4O4uyzQiL6Yy0yPrf9wQgo

To claim this, I am signing this object:

@mrbianchi
mrbianchi / gist:39b1d00104f7183e9eb68cb172dc90b1
Last active August 12, 2023 06:31
Get BTC addresses from ETH Transaction
const { Web3 } = require('web3');
const {TransactionFactory} = require('@ethereumjs/tx')
const bitcoin = require('bitcoinjs-lib');
// Conéctate a un nodo local (puedes cambiar la URL si es necesario)
const web3 = new Web3('QUICKNODE API EP');
async function getRawTransaction(txHash) {
return new Promise((resolve, reject) => {