Ethereum: How to get the list of transactions of input/outputs for a bitcoin address in JSON format?

Obtain binsaction data for a special address *

In Thist art, we explore how to recover the list of transactions for specified bitcacet variant methods and tools.

Metod 1: Use of blockchain.info

**

Blockchain.innfo is one of the most blockchain explosions, and it is access to the richness of transaction data. You can search for a bitcoin address on their website and consult the history in JSON format.

How is it:

  • Go to [Blockchaair.com] (http: // blockchaair.com) (not blockchain.in.in.in.in.in.in.

  • Enter the Briter and to recover the transactions for.

  • Click on “Get Wantion History” under the “Transactions” tab.

  • Select the “JSON” output.

  • Click on “Get data”.

  • The transaction data must be displayed in JSON format.

Metod 2: Use of Explorer Blockchain (TH) *

The Ethereum Blockchain Explod, [Blockchair.com] (htch] (http: // blockchaair.com), Alleo gives access to Bitcoin transactions. You can search for a bitcoin address and display the transactions history in JSON format.

How is it:

  • Go to [Blockchaair.com] (http: // blockchaair.com).

  • Enter the Briter and to recover the transactions for.

  • Click on “Get Wantion History” under the “Transactions” tab.

  • Select the “JSON” output.

  • Click on “Get data”.

  • The transaction data must be displayed in JSON format.

Metod 3: Use of a Python script *

You can use a Python script to recover Bitcoin transaction data for a specific address in JSON format. He’

`comfort

Import requests

Refusal (admission, outings, outings):

URL = F "htps: //api.blockchain.info/p/1.0/ {transcation}/transactions"

paramms = {"format: output_formate}

pursone = receipts.ge (URL, paraisms)

data = manager.json ()

reputation

Get transactions for a specified address

Address = "BC A-BCK-BC1-HERE"

output_formate = "JSON

Transactions = net_ transfers (dress)

Transformation transport:

Principal (Transactive ["Txid"], Transaction ["Blockhash], Transaction [" Block "])

s

This script a request for Get to the API Blockchain Ethereum with the Specfire address and the output format. It is returning a list of transactions in JSON format.

Metod 4: Use of web3.js

Keently, you use the book web3.JS (available on GitHub) to interact with the Ethereum blockchain and recover Bitcoin transaction data for a specified address.

Ovasscript

Const web3 = require ("web3");

Web3 consumption = Man Web3 (New Web3. "Providers.httpprovider (’ http: // localhost: 8545 ’));

Consent = "Bck-Bck-BC1-Here";

Asc fictions of touge duge de leget, {) {

Const txs txs = wait web3.th.gettransActionhistory (Dressing, {theressdinblockheaders: trunes});

For (constant txs) {

console.log (THX);

}

}

Threwctions ();

s

This SICT uses the Library Web3 library. These are each transaction newspaper in JSON format.

Semple exit

Regardless of what is happening, it is an explanation outing:

s

[

{

"TXID": "00012345",

"Index": 1,

"Blockhash": "0C566D6…."

}

{

"Txid": "000689890",

"Index": 2,

"Blockhash": "0b3455df8…."

}

]]

` s

This outing shows the transaction ID, index and blocking of blocks for each transaction in JSON format.