New answers tagged php
0
I found the solution replicating https://github.com/janoside/btc-rpc-explorer/blob/master/app/api/electrumAddressApi.js
$scriptPubKey = '76a914e0ad60c897901128662623c500a4a6079e99cd3e88ac';
$addrScripthash = hash('sha256', hex2bin($scriptPubKey));
$re = '/.{2}/';
preg_match_all($re, $addrScripthash, $matches, PREG_PATTERN_ORDER, 0);
$addrScripthash = ...
Top 50 recent answers are included
Related Tags
php × 152bitcoind × 39
json-rpc × 33
api × 22
blockchain.info × 13
blockchain × 12
bitcoin-core × 10
coinbase.com × 8
transactions × 7
wallet × 6
address × 6
client × 6
server × 5
private-key × 4
electrum × 4
development × 4
public-key × 4
exchange-rate × 4
address-generation × 4
bitcoin-cli × 4
balance × 4
litecoin × 3
payment × 3
error × 3
javascript × 3