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

Questions tagged [php]

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

0
votes
0answers
11 views

PHP generate address

I have a problem with generating addresses using PHP. So I have a electrum cold storage and took there a Master Public Key. So in my online server I want to generate addresses using PHP only and ...
0
votes
1answer
48 views

Raw Transaction Fee - 256: absurdly-high-fee error [duplicate]

I'm running the following codes, respectively. bitcoin-cli -testnet createrawtransaction ''' [ { "txid":"751b6361cd8d621de00466363120e5da2176c3cc092cb3f0b7373b02591372d2", "vout" : ...
1
vote
0answers
30 views

block.io + scan generated QR code

So i created a block.io account and playing around with bitcoin address generation, as well QR codes. My source code for generating a new bitcoin address is that one: include_once("payment/block_io/...
0
votes
2answers
36 views

blockchain official documentation

I am developing a system of administrative management. The project is migrating from PHP to C ++. With the new requirements we want to work with blockchain. But when looking for more about it, ...
0
votes
0answers
17 views

EasyBitcoin RPC lockunspent… cannot get it to work

Has anyone succeeded in using the EasyBitcoin.php RPC tools for locking transactions? I have been trying with no avail to use that method. here is what I have been trying to do; $json = { "txid"...
0
votes
0answers
30 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
41 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
285 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
20 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
80 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
27 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
84 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
66 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
490 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
247 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
346 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
30 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
76 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
139 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
453 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
284 views

bitcoind is refusing to connect to my other server [closed]

bitcoind is refusing to connect to my other server
0
votes
1answer
140 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
107 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
321 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
454 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
217 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
448 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
170 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
236 views

How to sign a transaction hash in PHP?

Given the following example hash: 1ee917ec6ab6339e563d55abee50a49ccdb7d827cf087c0884f3da3b86e0dff4, and the following example private key: ...
3
votes
0answers
171 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
123 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
317 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
138 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
155 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
119 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
415 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
434 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
115 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
123 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
354 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
365 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
306 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
90 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
290 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
1answer
54 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
134 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
119 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
131 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
202 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 ...