Skip to content

Creating address

Your Name edited this page Oct 28, 2024 · 15 revisions

Creating PHPCoin address

Address is basic identifier on PHPCoin network.

It is public and open to everyone, but protected with private key in user possession.

Address can be created im many different ways:

Create address in online wallet

Online wallet is available as decentralized app (dapp) on every node.

As an example for main node it can be accessed on link:

https://wallet.phpcoin.net/apps/wallet.

Visit wallet and click on link "Authenticate" and then "Create new one".

Note and copy (or write down) generated data.

Most important is that generated private key is never given or revealed to other party. It must be stored securely somewhere.

Without private key account can not be restored.

GUI wallet

GUI wallet is standalone desktop application with versions for Windows and Linux.

With starting wallet if not found it will create account and address and store it in user system.

Address is available and visible in header of application.

CLI wallet

CLI wallet is application without user interface which is executed in console.

It is available only for Linux (Ubuntu 20.04) on link

After downloading wallet:

wget https://phpcoin.net/download/phpcoin-wallet

make it executable:

chmod +x phpcoin-wallet

and start it with command:

./phpcoin-wallet

On start, wallet with automatically create account and address.

Account data is then stored on user system.

If user wants wallet can be encrypted also.

Generate address through code

While standalone CLI or GUI wallet are only available for supported systems, account can be also created on any system that is able to run php.

User need to download or clone PHPCoin source code.

git clone https://github.com/phpcoinn/node

Then wallet can be accessed through command

cd node/utils
php wallet.php

Or simple executing PHP code using PHPCoin SDK

require_once './utils/sdk.php';
$account = Account::generateAcccount();
print_r($account);

Generate address through node API

On each node is available API which can be used to generate account.

Simply visit url:

https://main1.phpcoin.net/api.php?q=generateAccount

and write down generated data.

Clone this wiki locally