Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Integrating Bitcoin services with the help of PHP-based frameworks or using PHP

0
votes
0answers
17 views

Error: “1 private keys do not correspond to any input. Please check private keys provided.”

I get this error message "1 private keys do not correspond to any input. Please check private keys provided." using blockcypher PHP API Although I am using the right private key for the right input ...
0
votes
1answer
16 views

Calculate fees with Blocktrail/btc.com SDK

First of all hi and thanks for your support and your time. I want to calculate the fees of a blocktrail transaction with blocktrail SDK, before making the transaction, in order to let the recipient ...
3
votes
1answer
154 views

Sweeping a bitcoin private key using PHP

Is there a PHP script where it validates a bitcoin private key and also gets the public address from the key? My goal was to: verify the private key Get the public address using that private key ...
0
votes
0answers
19 views

Bitcoin Paymen php

How to check when a address get paid in php . I m using this to get api into php and $rpcUser = "wallet1"; $rpcPass = "12345"; $url = "http://localhost:8888"; $epic = new Bitcoin($...
0
votes
1answer
46 views

how can i get data from GDAX Bitfinex using API and show like bottom

how can i get and show below link data, can someone please help me https://runcoders.com/live-bitcoin/ i am trying by this but failed to show like up link <?php //define API endpoint $url = "...
0
votes
0answers
25 views

Using the comment parameter in SendToAddress, is it accessible by the GetTransaction label?

So when sending a transaction, i would like to include the username of the sender in the comment field. $transaction = $bitcoind->SendToAddress($toaddress, $dAmount, $username, "", true); Then ...
0
votes
1answer
75 views

Handling change addresses without using rawtransactions?

Since I'm using the wonderful accounts feature which is soon to be deprecated (shame on me, i know - but i simply didn't have resources and time as a single person to do an internal accounting system ...
0
votes
1answer
48 views

How to get lost passphrase?

I set up the bitcoin daemon and galaxycash daemon on my server. And i was using this library easybitcoin.php to contact the daemon via rpc . Somehow i remeber that i used this function ...
1
vote
1answer
346 views

Is there a way to generate new addresses for someone else's wallet?

I thought I saw this feature existed somewhere but I can't find the reference. Use Case: Alice needs to keep sending multiple bitcoin transactions to Bob, and wants to use a different payment address ...
0
votes
0answers
164 views

PHP Curl not connecting to Electrum port

I have a php script, same server as Electrum, that is attempting to Curl into the electrum port and run some commands. Below my code: $URL='http://127.0.0.1'; $port = 7777; $username = '...
1
vote
2answers
230 views

PHP functions not working in bitcoin JSON-RPC version 16 (bitcoin-cli is working properly)

Trying to implement Bitcoin JSON-RPC using Digital Ocean Ubuntu using bitcoin version 16. Here is my php code <?php require_once('easybitcoin.php'); $bitcoin = new Bitcoin('someusername', '...
0
votes
0answers
25 views

Where to get api to fetch list of all crypto exchange and their available pairs

I have searched too much but I didn't find any php or js api to fetch list of all crypto exchange with available pairs. Please help me.
0
votes
0answers
53 views

Paid reward for Masternodes

Hi, everyone. I have no experience in Masternode, sorry in advance if I am thinking wrong. I want to get the values such as "Paid rewards for masternodes" and "AVG masternode reward frequency" same as ...
0
votes
0answers
119 views

Masternode reward frequency

I am new in this field, so sorry if I am wrong with my description in advance. I wanna get the data for the AVG masternode reward frequency. But I don`t know which method I can use such as API or ...
1
vote
2answers
358 views

How to create hex of raw transaction

Below is my response after creating the transaction. How do I create the hex encoded string of raw transaction in PHP. Is there package for it in PHP ? { "tx": { "block_height": -1, ...
0
votes
1answer
232 views

bitcoind is refusing to connect to my other server

I am trying to make calls to bitcoind with php on a different server. I am using this library: https://github.com/aceat64/EasyBitcoin-PHP $bitcoin = new Bitcoin('***','***','xxx.xxx.xxx.xxx','8332');...
0
votes
1answer
114 views

Recognize Bitcoin address from block hash, and transaction hash

I'm building a block explorer using blockchain.info and their API https://github.com/blockchain/api-v1-client-php/blob/master/docs/blockexplorer.md but what I don't understand is, what is the best ...
0
votes
0answers
90 views

blockchain api missing file?

https://github.com/blockchain/api-v1-client-php <== php files im working with. When i do my first test with this new api i start off with the inits <?PHP // Include the autoload.php from its ...
1
vote
2answers
222 views

How to send bitcoins with commission extracted from payment in PHP or bitcoind

First, I have simple problem. I want to send customer some bitcoins, but I dont want to pay fees for him. I'd like to substruct fees from payment, so all commissions would be payed by customer. I ...
0
votes
0answers
383 views

Extracting RSI from bitfinex

I' using the code below to calculate the RSI from bitfinex <?php date_default_timezone_set( 'UTC' ); $start = strtotime( "-14 days" ) * 1000; $end = time() * 1000; $source = json_decode( ...
0
votes
1answer
170 views

how to get change address using derived BIP44 publicKey?

I have generated a private key using my master seed private key. PHP Code: $bip44 = HierarchicalKeyFactory::fromExtended($result['masterPrivKey']); $publicKey = $bip44->derivePath("m/44'/0'/0'")...
0
votes
1answer
338 views

Port 8333 and Issues to have a connection

So, I have a website, and that website is going to use Bitcoins. Right now, I'm trying to connect the bitcoin core with the website. But I have a lot of issues with port 8333: This is my error: http:...
0
votes
2answers
152 views

How to confirm transaction any altcoin PHP

I'm working on a webapp right now (for me personally) and I now come to the part where I want to validate if someone send me a certain amount of altcoin, lets say Verge, and if I received said amount ...
0
votes
0answers
165 views

How to sign a transaction hash in PHP?

Given the following example hash: 1ee917ec6ab6339e563d55abee50a49ccdb7d827cf087c0884f3da3b86e0dff4, and the following example private key: ...
3
votes
0answers
135 views

HD Wallets - Generating P2SH-P2WSH Addresses from a ypub-type mpks in PHP?

I am writing a webapp in PHP that needs to generate Bitcoin addresses from their mpk. I have successfully done it for P2SH addresses (starting with a 1, with a xpub mpk) using the BitWasp php library,...
0
votes
0answers
118 views

no earnings with unomp + php-mpos

my mining hardware point to my new php-mpos instance with 100% work efficiency, but always i see 0.00000000 earnings although the time continue.... When crontab start, i can see the status list in ...
1
vote
1answer
277 views

send bitcoin to mobile number or email address

How I can send bitcoins to someone's phone number or email address. I explored this api but they have documentation only for sending bitcoins to an address directly. But here they have explained how ...
0
votes
0answers
128 views

How to use multisig address with PHP

I want to create a little website for sell bitcoin in my country... Actually I started the design and view some banks for use it as payments gateway... And the concept initially was: --- (customer ...
1
vote
0answers
137 views

php call to getnewaddress through rpc gives isValid false address

I am using easybitcoin.php to make rpc calls to bitcoind running on my server. When I call $result = $bitcoin->getnewaddress(); from the php code, I get back an address, however when I run that ...
0
votes
0answers
112 views

PHP: Change variable/line to use specific private key instead of random private key

What I want to do: I have a private key and want to convert it to a public key via PHP. The code currently converts a RANDOM privatekey to a public key - but I need to convert a SPECIFIC private key ...
1
vote
2answers
363 views

PHP: is there a way to convert a private ECDSA key to its corresponding public key?

As described here (https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses) I am trying to convert a private ECDSA key to its corresponding public key. (See step1 and step2). I ...
0
votes
1answer
407 views

Creating Payment system using Blockchain API

I see a whole lot of websites using the blockchain API to create bitcoin wallets (if i am correct), send and receive payments, I know how to ordinarily make a payment system using C#/MSSQL or PHP/...
0
votes
1answer
97 views

Dynamic Transaction Hash Confirmation

I am working on a donation based community website (using PHP) where participants register for an account to participate. Each account carries the participant's bitcoin address. A participant makes a ...
0
votes
0answers
122 views

Is There an API to Move Litecoin from Wallet To Wallet?

I'm a PHP developer. I want to build a cart that accepts Litecoin payments and then it deposits into my Exodus Litecoin wallet. Is there an API somewhere that's free, open source that I can tie into ...
0
votes
1answer
320 views

How to get an average bitcoin to USD price from different sources [closed]

I created a very simple php function to get the current price of bitcoin to USD here, //get from coin market $getCoinMarketPrice = getPrice('https://api.coinmarketcap.com/v1/ticker/bitcoin/?...
0
votes
0answers
339 views

I want to send BTC from a public address to another BTC Wallet using PHP

I have created a BTC Wallet using PHP COIN ADDRESS library ( https://github.com/zamgo/PHPCoinAddress ). And I have the private key for this wallet too. This BTC Wallet has a little bit of BTC in it as ...
0
votes
2answers
292 views

development of bitcoin-abe like software

I am trying to develop something similar to bitcoin-abe, e.g. import whole blockchain into database. For database I currently using Redis - I know it will took lots of RAM, but lets suppose that is ...
0
votes
0answers
78 views

Bitcoin payment PHP(or other web techonology) SDK

I have gone through most of the similar questions however none of them was able to fully answer my questions. I'm new to bitcoin technology, but looks like a good solution for accepting payments via ...
1
vote
1answer
278 views

Connect to Bitcoin Node behind tor network

I configured my full bitcoin node behind tor (nowadays there aren't much bitcoin nodes behind tor network, this website: https://bitnodes.21.co/nodes/?q=Tor%20network tell us that there are just 323 ...
0
votes
0answers
87 views

http auth method for RPC access?

I am able to connect to the RPC server after setting up an SSH tunnel and then using curl. The programmers involved tell me that they cannot do this with PHP request and that they need an http auth ...
0
votes
1answer
51 views

does anyone know how to send the “exp” parameter in an Electrum request

I tried modifying the request so it would include a 3600 second expire time. (minutes - 1 hour) as shown in the example it returned an error the parameter was invalid. It shows - but as "null" curl ...
1
vote
2answers
117 views

trying to get text of a field in json rpc 2.0 response into ar PHP variable

I use json_decode to vardump a return which yields array(3) { ["jsonrpc"]=> string(3) "2.0" ["result"]=> array(13) { ["status"]=> string(7) "Pending" ["amount (BTC)"]=> string(10) "0.05130899" ["...
0
votes
1answer
118 views

Online bitcoin game

I'm trying to create multiplayer game using BTC to make bets. I have server and I am using PHP to let users create an account. How would I write a script where when a new user creates an account the ...
0
votes
1answer
112 views

Can I sign a text with a Bitcoin address using PHP only?

I have the following... Bitcoin Address: 1H2zzoAncRcQYihgTMYtX55ioXYErmYQQC Public Key: 021FE07FBBB27AD176F1E082950474CD6252FB86751B893BC0887962B008830798 WIF Key: ...
0
votes
1answer
1k views

how to generate a bitcoin address for each user that registers

I'm working on a marketplace type website and i want a bitcoin address to be generated for each user that registers an account. this needs to be done in php with no javascript
2
votes
1answer
192 views

How would I be able to show 24 open, high & low on my site made with php

I'm a self thought designer/developer that knows basic photoshp/css3/html5 and a little python/php. I have never used an API to fetch stats, so can you please point me in the right direction? I ...
0
votes
1answer
100 views

Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS

I have a server at DigitalOcean with Ubuntu installed and bitcoind with rpc which IS working. With my Amazon AWS CentOs server bitcoin-cli is working but not EasyBitcoin-PHP, it's returning 0: $...
1
vote
0answers
285 views

How to install correctly this PiWallet Script in Ubuntu?

Good evening everyone.   I'm trying to set up the piWallet wallet (https://github.com/johnathanmartin/piWallet) on Linux.  I was able to successfully install the "Bitcoind Server" (which works very ...
0
votes
1answer
394 views

Send payment from one user to another via API?

I am looking to have users on my website submit their bitcoin id and be able to accept bitcoin from other bitcoin user as donations. I am brand new to this. I'm using PHP. So basically this is what ...
0
votes
2answers
308 views

To create a new bitcoin address cloned Bit-Wasp/bitcoin-php code

I am using code from GitHub. Once I run composer its gives error as: C:\wamp64\www\bitcoin-php-master>composer require bitwasp/bitcoin Using version v0.0.33.1 for bitwasp/bitcoin ./composer....