All Projects → gxchain → Gxb Core

gxchain / Gxb Core

Licence: gpl-3.0
GXChain Blockchain implementation

Projects that are alternatives of or similar to Gxb Core

Octopus
Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)
Stars: ✭ 261 (+15.49%)
Mutual labels:  blockchain, webassembly
Eosocial
Deprecated - 📝 Sample dApp of Votable SNS run by EOS Testnet.
Stars: ✭ 14 (-93.81%)
Mutual labels:  blockchain, webassembly
Ssvm
SSVM is a high performance, extensible, and hardware optimized WebAssembly Virtual Machine for cloud, AI, and blockchain applications.
Stars: ✭ 751 (+232.3%)
Mutual labels:  blockchain, webassembly
Create Near App
Create a starter app hooked up to the NEAR blockchain
Stars: ✭ 66 (-70.8%)
Mutual labels:  blockchain, webassembly
Nearcore
Reference client for NEAR Protocol
Stars: ✭ 840 (+271.68%)
Mutual labels:  blockchain, webassembly
Wavelet
Write once, run forever. Deploy robust, scalable, decentralized WebAssembly applications on Wavelet.
Stars: ✭ 224 (-0.88%)
Mutual labels:  blockchain, webassembly
Protocol
Enzyme Protocol Implementation
Stars: ✭ 211 (-6.64%)
Mutual labels:  blockchain
Way Of Life
Conway's game of life implemented in JavaScript & WebAssembly, rendered to canvas.
Stars: ✭ 218 (-3.54%)
Mutual labels:  webassembly
Porcupine
On-device wake word detection powered by deep learning.
Stars: ✭ 2,606 (+1053.1%)
Mutual labels:  webassembly
Quilt
Hyperledger Quilt - An implementation of the Interledger Protocol
Stars: ✭ 212 (-6.19%)
Mutual labels:  blockchain
Wasm By Example
Wasm By Example is a website with a set of hands-on introduction examples and tutorials for WebAssembly (Wasm)
Stars: ✭ 226 (+0%)
Mutual labels:  webassembly
Asm Dom
A minimal WebAssembly virtual DOM to build C++ SPA (Single page applications)
Stars: ✭ 2,604 (+1052.21%)
Mutual labels:  webassembly
Blockchainnetwork Compositejourney
Part 1 in a series of patterns showing the building blocks of a Blockchain application
Stars: ✭ 217 (-3.98%)
Mutual labels:  blockchain
Sdk
Write your own dat app!
Stars: ✭ 215 (-4.87%)
Mutual labels:  blockchain
Redwood
A highly-configurable, distributed, realtime database that manages a state tree shared among many peers.
Stars: ✭ 218 (-3.54%)
Mutual labels:  blockchain
Wasm Worker
Move a WebAssembly module into its own thread
Stars: ✭ 215 (-4.87%)
Mutual labels:  webassembly
Timidity
Play MIDI files in the browser w/ Web Audio, WebAssembly, and libtimidity
Stars: ✭ 221 (-2.21%)
Mutual labels:  webassembly
Customasm
💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Stars: ✭ 211 (-6.64%)
Mutual labels:  webassembly
Derosuite
DERO: Secure, Anonymous Blockchain with Smart Contracts. Subscribe to Dero announcements by sending mail to [email protected] with subject: subscribe announcements
Stars: ✭ 216 (-4.42%)
Mutual labels:  blockchain
Rusty Typescript
A TypeScript compiler written in Rust
Stars: ✭ 222 (-1.77%)
Mutual labels:  webassembly

GXB-Core

GXB-Core is the GXChain implementation and command-line interface. Current binary version of the GXB-Core software for ubuntu 14.04 LTS, see here.


Docs

Technical document is available here

Getting Started

Building

  1. Build on Ubuntu
  2. Build on OS X
  3. Build on CentOS7

Running

After building, the witness node can be launched with:

    ./programs/witness_node/witness_node --rpc-endpoint="127.0.0.1:8090" --max-ops-per-account=0 --partial-operations=true --data-transaction-lifetime=1

The node will automatically create a data directory including a config file. It may take several minutes to fully synchronize the blockchain.

After starting the witness node, in a separate terminal you can run cli_wallet:

 ./programs/cli_wallet/cli_wallet -s ws://127.0.0.1:8090

Set your inital password:

new >>> set_password <PASSWORD>
locked >>> unlock <PASSWORD>

To import your wif_key(active key):

unlocked >>> import_key <ACCOUNT NAME> [<WIF_KEY>] true

Import balances:

unlocked >>> import_balance <ACCOUNT NAME> [<WIF_KEY>] true

Transferring Currency:

unlocked >>> transfer <FROM ACCOUNT> <TO ACCOUNT> 100 GXC "" true

If you send private keys over this connection, rpc-endpoint should be bound to localhost for security.

Use help to see all available wallet commands.

Smart Contract Getting Started


Create Contract

create contract use gxx:

gxx -n helloworld

build contract:

gxx -g helloworld/helloworld.abi helloworld/helloworld.cpp

generate wast:

gxx -o helloworld/helloworld.wast helloworld/helloworld.cpp

generate abi:

gxx -g helloworld/helloworld.abi helloworld/helloworld.cpp

Deploy Contract

You can deploy and call contract with cli_wallet.

unlocked >>> deploy_contract helloworld nathan 0 0 ./helloworld GXC true

Call Contract

unlocked >>> call_contract nathan helloworld null hi "{\"user\":\"albert\"}" GXC true

Smart Contract QuickStart for testnet, see here

Support


Report bugs, issues using GitHub issues.

Technical support is also available in the GXS forum

License


GXB-Core is under the GNU General Public License v3. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].