Author

Topic: How make a wallet? (Read 244 times)

brand new
Activity: 0
Merit: 0
December 15, 2020, 08:31:00 PM
#4
get it
newbie
Activity: 16
Merit: 2
December 06, 2020, 09:07:02 PM
#3
You can create a wallet using the API.

API Docs
https://docs.blocksdk.com/bitcoin#createwallet

SDK Github
https://github.com/Block-Chen/blocksdk-php

Code:

use BlockSDK;

$blockSDK = new BlockSDK("YOU_TOKEN");
$btcClient = $blockSDK->createBitcoin();

$wallet = $btcClient->createWallet([
    "name" => "test"
]);

var_dump($wallet);

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
December 06, 2020, 01:53:18 AM
#2
You can use the JSON-RPC interface of Bitcoin Core from PHP to create a wallet from a full node. You need to setup a full node if you don't already have one, and then call the createwallet RPC function.

There's a library for PHP called JSON-RPC PHP that can help you with using it.


Code:
require_once 'jsonRPCClient.php';
 
  $bitcoin = new jsonRPCClient('http://user:[email protected]:8332/');
   
  echo "
\n";
  # replace these methods with createwallet()
  # https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/createwallet/
  print_r($bitcoin->getblockchaininfo()); echo "\n";
  echo "Received: ".$bitcoin->getreceivedbylabel("Your Address")."\n";
  echo "
";
newbie
Activity: 2
Merit: 0
December 05, 2020, 06:11:11 PM
#1
Hello, I have a question.
I search in google how make a wallet with PHP, and the result of this search not like so much, because dont have much information about of theme, Securly exist themes open in this forum, but I get lost in so many open topics. I would like get the algorithm to create my wallet

What is your recommendation create a wallet right from the start or with api?

Jump to: