Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

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

1 Answer

0 votes
by (29.5k points)
edited by

You need to check your block chain API code  it should be something like this

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

If you need an API code, you can go to the link below

https://api.blockchain.info/customer/signup

If you want to be an expert in your field, then enroll in Blockchain Certification by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 23, 2020 in Blockchain by dev_sk2311 (45k points)
0 votes
1 answer
asked Dec 23, 2020 in Blockchain by dev_sk2311 (45k points)

Browse Categories

...