Best laravel framework open-source packages.

J4FCore

J4F - PHP Blockchain with Smart Contracts
Updated 1 year ago

Just4Fun Just4Fun

PHP Blockchain from scratch with Smart Contracts

PoW sha3-256d + sha3-512
Total coins: Unlimited
Blocks every: Mainnet ?? (average) | Testnet: 5 sec (average)

php >= 7.3 GPL 3.0

Requirements

Links

Explorer TESTNET

Wallet Web

Smart Contract Funity Compiler

JSON-RPC/HTTP API

How run

  • Clone repository
  • Install react with composer
    • composer require react/react:^1.0
  • Create a MySQL database UTF8 RocksDB
  • Edit CONFIG.php and set MySQL info & PHP Run command
  • Navigate into bin folder and start node

For miner node:

./node_miner.sh

For viewer node:

./node_viewer.sh

NODE available arguments

ARGUMENT Description
user <name> Set the node name
ip <ip> Set the IP that the node will use
port <port> Set the port that the node will use
miner Activate mining mode
testnet Connect to TESTNET network
sanity <num blocks to remove> Sanity Blockchain

Examples of use:

php client.php -u USER1 -ip 0.0.0.0 -port 6969
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -testnet
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -miner
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -miner -testnet
php client.php -u USER1 -ip 0.0.0.0 -port 6969 -testnet -sanity 100

CLI CLIENT

Examples of use:

php cli.php

Contribute

Anyone is welcome to contribute to J4FCore! If you have a fix or code change, feel free to submit it as a pull request directly to the "master" branch.

Blockchain under construction

Currency is still in early development phase, it may not be stable 100%

The mainnet has not yet been released.
Tags contracts php