blockchain info api code is missing

0 votes

I use php api for blockchain.info.

here is my code:

$Blockchain = new \Blockchain\Blockchain();

$Blockchain->setServiceUrl('http://localhost:' . env('BTCPORT') . '/');

$Blockchain->Wallet->credentials($w_id, $w_password);

// $w_id is wallet id

$response = $Blockchain->Wallet->send($account, $amount, null, $fee, 'my comment');

And here my node.js process says 'error: Missing query parameter: api_code'. I use this php library https://github.com/blockchain/api-v1-client-php

Aug 22, 2018 in Blockchain by digger
• 26,740 points
1,182 views

1 answer to this question.

0 votes

Check the blockchain api. it should be


$Blockchain = new \Blockchain\Blockchain($url, $my_api_code);

If you need an API code, you can get it from the following link: https://blockchain.info/api/api_create_code

answered Aug 22, 2018 by slayer
• 29,370 points

Related Questions In Blockchain

+1 vote
3 answers

Is it possible to store data about arbitrary objects on the blockchain using smart contracts?

Basically you implement requested logic on by ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
1,443 views
+4 votes
5 answers

How is Blockchain a distributed database?

Think of blockchain as a relatively slow, ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points
1,499 views
+1 vote
1 answer

What is Ethereum Blockchain? Where is it being used?

Blockchain is a decentralized distributed database of immutable records, ...READ MORE

answered Apr 3, 2018 in Blockchain by Christine
• 15,790 points
1,051 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,740 points
45,006 views
0 votes
1 answer

How to send Bitcoins with node.js?

This website https://blockr.io/tx/push will successfully do the ...READ MORE

answered Jul 20, 2018 in Blockchain by Christine
• 15,790 points
3,353 views
0 votes
1 answer

Where is the data stored in blockchain?

The smart contract is just the business ...READ MORE

answered Jun 29, 2018 in Blockchain by slayer
• 29,370 points
1,404 views
0 votes
1 answer

How to check history of blockchain.info wallet?

In the link you mentioned(https://blockchain.info/q), there are ...READ MORE

answered Jul 23, 2018 in Blockchain by slayer
• 29,370 points
1,770 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