Search code examples
javascriptblockchainethereumbitcoin

How to get value of transactions in blockchain from transaction hash?


I have create a file with hash address. There any methods found this amount via API?


Solution

  • If you are using web3.js you can pass transaction hash to a function like web3.eth.getTransaction(transactionHash [, callback]) to get information about the transaction. It will also include a value field which you have passed to the transaction

    Read more about transaction receipts and logs here