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
• 27,620 points
49 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,040 points

Related Questions In Blockchain

+1 vote
3 answers

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

Consider following tutorial from Hyperledger Fabric "Getting Started" pages. Basically ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
63 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
111 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 2, 2018 in Blockchain by Christine
• 15,790 points
37 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
• 27,620 points
1,511 views
0 votes
1 answer

How to send Bitcoins with node.js?

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

answered Jul 20, 2018 in Blockchain by Christine
• 15,790 points
202 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,040 points
51 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,040 points
27 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.