Bitcoin Forum

Bitcoin => Electrum => Topic started by: brian9876 on December 11, 2018, 10:29:05 AM



Title: how to verify transaction from php script
Post by: brian9876 on December 11, 2018, 10:29:05 AM
Hi
Is there any way to verify transaction from php script? Or get transaction information from php script somehow.
Any information is much appreciated


Title: Re: how to verify transaction from php script
Post by: OmegaStarScream on December 11, 2018, 11:46:41 AM
It's unclear what you're trying to do but you could start from here: https://bitcoin.stackexchange.com/questions/44373/how-would-one-monitor-an-address-for-a-transaction-and-1-confirmation-in-php

If your goal is to build a blockexplorer, then using third party APIs wouldn't make sense in that case. Try to look for open source projects (Insight, Blockcypther etc.)


Title: Re: how to verify transaction from php script
Post by: mocacinno on December 11, 2018, 11:57:12 AM
Like OmegaStarScream, i'm unsure about your intentions...
If you're trying to monitor an address for transactions funding it, follow OmegaStarScream's advice and use an api, or install bitcoind and use the json-rpc interface (both are quite easy to do using a php script).

If you're trying to verify if a transaction is valid, i guess https://github.com/Bit-Wasp/bitcoin-php might be usefull for you.

Anyways, before we're able to give you advice tailored to your situation, we need more info...