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
308 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,700 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,350 points
749 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
683 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,210 points
4,640 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,210 points
1,101 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,450 points
1,129 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,663 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
2,883 views
0 votes
1 answer

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

 The answer to your question is located here:  function ...READ MORE

answered Apr 11, 2022 in Blockchain by Soham
• 9,700 points
1,590 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