Get amount of Bitcoins at an address with PHP

0 votes
I'm using Coinbase, but they don't have an API call to get the amount of Bitcoins per address, but only per account, which is a collection of addresses. Does anyone have an API call for this?
Feb 28, 2022 in Blockchain by Aditya
• 7,680 points
517 views

1 answer to this question.

0 votes

While checking the Coinbase address balance, the expected outcome might not work due to the shuffling of the bitcoins in the Coinbase which shuffles the bitcoin to different addresses internally. Using the account is the only realistic way to get the precise balance. Please use:-

<?php 
$accountId = '<Account Id>'; $account = 
$client->getAccount($accountId); 
$balance = $account->getBalance(); 
$btc = $balance->getAmount();

answered Feb 28, 2022 by Soham
• 9,710 points

Related Questions In Blockchain

0 votes
1 answer

How to get amount of bitcoins in php?

I’ve tried this code and it works: <?php function ...READ MORE

answered Aug 24, 2018 in Blockchain by slayer
• 29,370 points
1,056 views
0 votes
1 answer

How do I get the total amount sent to an address?

If you are using web3JS you can ...READ MORE

answered Jul 19, 2018 in Blockchain by Johnathon
• 9,090 points
918 views
0 votes
2 answers

How to generate ethereum qr code address with amount?

You implement this package: ethereum-qr-code. It implements the EIP67 standard which uses ...READ MORE

answered Sep 6, 2018 in Blockchain by Omkar
• 69,220 points
5,107 views
0 votes
1 answer

Blockchain: Installing an earlier version of ethereum using apt-get on

geth does not make the previous version available ...READ MORE

answered Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
1,435 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,462 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,947 views
0 votes
2 answers

how to integrate coinbase api in php for transfer bitcoine

Here the code for php please have ...READ MORE

answered Sep 17, 2018 in Blockchain by Suresh
3,155 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,473 views
0 votes
1 answer

PHP - Validate Multisig Bitcoin Wallet Address (with Leading 2 or 3)

 The answer to your question is given ...READ MORE

answered Apr 11, 2022 in Blockchain by Soham
• 9,710 points
2,040 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP