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,670 points
170 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,300 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
249 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,810 points
371 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,810 points
107 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,670 points
17,824 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,810 points
916 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,300 points
485 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,300 points
205 views