24
loading...
This website collects cookies to deliver better user experience
https://api.blockcypher.com/v1/btc/main/addrs
https://api.blockcypher.com/v1/btc/test3/addrs
var xhr = new XMLHttpRequest();
xhr.open("POST", url);
xhr.setRequestHeader("Content-Type", "application/json");
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
var data = JSON.parse(xhr.responseText);
}};
xhr.send();
{
"private": "81ee75559d37cbe4b7cbbfb9931ab1ba32172c5cdfc3ac2d020259b4c1104198",
"public": "0231ff9ec76820cb36b69061f6ffb125db3793b4aced468a1261b0680e1ef4883a",
"address": "mvpW7fMSi1nbZhJJDySNS2PUau8ppnu4kY",
"wif": "cRwGhRjCuuNtPgLcoYd1CuAqjFXCV5YNCQ1LB8RsFCvu61VfSsgR"
}
wallet-address-validator
.npm install wallet-address-validator
<script src="wallet-address-validator.min.js"></script>
var address = document.getElementById('addr').value;
var valid = WAValidator.validate(address, 'bitcoin');
if(valid)
alert('This is a valid address');
else
alert('Address INVALID');
https://api.blockcypher.com/v1/btc/test3/addrs/{address}/balance
https://api.blockcypher.com/v1/btc/test3/addrs/{address}/balance
{
"address": "mx52XPqpzygzadkk8n1rCZPrC7B4h4UcwT",
"total_received": 2404904,
"total_sent": 0,
"balance": 2404904,
"unconfirmed_balance": 0,
"final_balance": 2404904,
"n_tx": 4,
"unconfirmed_n_tx": 0,
"final_n_tx": 4
}