Bitcoin Forum
May 04, 2024, 12:14:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / New cryptocurrency fantasy trading simulator on: December 14, 2018, 06:22:42 AM
Over at Bagholders.com, there is a new fantasy crypto trading tool, where you get $100,000 in virtual currency to trade Bitcoin and hundreds of alt coins.

You're competing against other traders to see who's not only the best, but the worst. A league is currently running and ends at the end of this year. Starting next year, there will be leagues run on a monthly basis.

The league runs real-time data on all cryptocurrencies.
2  Economy / Exchanges / OKEX withdraw error 10006 on: April 27, 2018, 06:24:05 AM
  • OS: CentOS
  • Programming Language version: PHP 5.6.35
  • CCXT version: 1.13.49
  • Exchange: OKEX
  • Method: withdraw

I am getting error_code 10006 from the OKEX API when attempting to make a withdrawal. Is anyone else having this issue?

Other methods such as placing orders, checking balances etc. work fine with the exact same API key and secret. withdraw_info however also gives error 10006.

I've checked and Withdraw privileges is definitely turned on for the API key in my OKEX account.

I've also contacted OKEX customer support and they've been telling me to change the withdrawal symbol from btc_usd to btc_usdt, and then from btc_usdt back to btc_usd over and over for a couple of days now.

If anyone has had the same problem please do let me know. Thank you very much in advance.

Here is the dump from CCXT:

Code:
strong textFatal error: Uncaught exception 'ccxt\ExchangeError' with message 'okex {"result":false,"error_code":10006}' in /home/php/okcoinusd.php:721

Stack trace:

#0 /home/php/Exchange.php(957): ccxt\okcoinusd->handle_errors(200, '', 'https://www.oke...', 'POST', Array, '{"result":false...')
#1 /home/php/Exchange.php(801): ccxt\Exchange->fetch('https://www.oke...', 'POST', Array, 'api_key=cff1b19...')
#2 /home/php/Exchange.php(805): ccxt\Exchange->fetch2('withdraw', 'private', 'POST', Array, NULL, NULL)
#3 [internal function]: ccxt\Exchange->request('withdraw', 'private', 'POST', Array)
#4 /home/php/Exchange.php(740): call_user_func(Array, 'withdraw', 'private', 'POST', Array)
#5 [internal function]: ccxt\Exchange->ccxt{closure}(Array)
#6 /home/php/Exchange.php(1752): call_user_func_array(Object(Closure), Array)
#7 /home/php/okcoinusd.php(678): ccxt\Exchange->__call('privatePostWith...', Array)
#8 /home/p in /home/php/okcoinusd.php on line 721
3  Bitcoin / Project Development / Where can I find a list of payment methods? on: July 30, 2017, 07:16:42 PM
I am making a list of all payment methods, processors and gateways available, global, national and local and sorting them by availability per country.

Does anyone know if there is a large list/database of this which can be acquired somehow? I need it for a Bitcoin project.

Thanks in advance.
4  Bitcoin / Project Development / Re: BlockCypher signing Bitcoin transaction incorrect private key format on: July 30, 2017, 01:37:16 AM
cloverme,

Thank you for your advice, I tried again and the actual txSkeleton appears to be fine.

I'm sure the key has to be in hex, if I try to sign the transaction with the xprv key as it is then I get as follows with one error for each character in the key: (x, p, r, v etc.)

Warning: pack(): Type H: illegal hex digit x in .../BlockCypher-php-client-1.5.0/php-client/bitwasp/buffertools/src/Buffertools/Buffer.php on line 57

And then it aborts with:

Fatal error: Uncaught exception 'BlockCypher\Exception\BlockCypherSignatureException' with message '1 private keys do not correspond to any input. Please check private keys provided.' in .../BlockCypher-php-client-1.5.0/php-client/blockcypher/php-client/lib/BlockCypher/Api/TXSkeleton.php:164

If I change the key to any hex, then I only get the last fatal error. Which is pretty expected since the (random) key I am providing then is not matching with the address I am using to fund the transaction.

Do you have any idea how to get from a xprv prefixed key to the 64 digit long hex key that BlockCypher is expecting as input?

Thank you so much in advance.
5  Bitcoin / Project Development / BlockCypher signing Bitcoin transaction incorrect private key format on: July 29, 2017, 02:41:28 PM
I am trying to sign a Bitcoin transaction using the BlockCypher API but I am failing because I don't have my private key in the correct format.

According to their documentation:

Quote
"One of the most common errors in the signing process is a data format mismatch. We always return and expect hex-encoded data, but oftentimes, standard signing libraries require byte arrays. Remember to convert your data, and always send hex-encoded signatures to BlockCypher."

The PHP code should be as follows:

$privateKeys = array("2c2cc015519b79782bd9c5af66f568e808f573714f3c4dc6df7d79c183783cff");
$txSkeleton = $txClient->sign($txSkeleton, $privateKeys);

But my private key is in the format xprv9s21ZrQH143K4NejhhRcspQdS2g7JgnSVwmT2dkXQuszJaQqjYD3wdUdsXyqmfetdUZ2SS25uM7 nAfnUwNDGA75bfqYxKwYZ8zDdaCv6meL, ie not in hex.

I have tried simply converting it to hex, which obviously was a bit overoptimistic of me but the transaction signing fails.

I have Googled and Googled this for weeks and have been unable to figure out how to convert a xprv prefix key into the correct format as required by the BlockCypher API.

I am a paying customer of theirs and have e-mailed them but no reply after two weeks of waiting.

I'm at my wits end and any help would be very much appreciated.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!