Giter VIP home page Giter VIP logo

drep-testnet-euler's Introduction

DREP

The DREP Chain is a high-performance public chain fully developed by the DREP team. It is compatible with Smart Contracts in the EVM and WASM format with a dual layer structure constituting of a root chain and sub-chains.

Features

  1. Provides a decentralized ID system and data privacy protection
  2. Integrates the underlying chain with both smart contracts and novel smart reputation pipes.
  3. Provides the DREP reputation protocols and reputation templates.
  4. Has high performance and high compatibilities.

Installation

Linux

  1. Download the executable from here, and place it under the directory: /usr/local/bin

  2. Place the configuration file config.json under the directory: /usr/local/bin

  3. Start the node using command: ./drep console

Windows

  1. Download the executable from here

  2. Place the configuration file config.json under the directory: C:\Users\$Username$\AppData\Local\Drep

  3. Open the command-line interface (cmd.exe), navigate into the directory at which the executable is placed.

  4. Start the node using command: drep.exe console

Usage

Balance of the account requested

 curl -H "Content-Type: application/json" -X post --data '{"jsonrpc":"2.0","method":"chain_getBalance","params":["0xb527326623a499f7ea550f1be98a9a6e3b56ee29"],"id":1}' http://127.0.0.1:15645

Params

  • account: hex string, account address.

List the accounts in the local wallet

 curl -H "Content-Type: application/json" -X post --data '{"jsonrpc":"2.0","method":"account_listAddress","params":[],"id":1}' http://127.0.0.1:15645

Sending a transaction

curl -H "Content-Type: application/json" -X post --data '{"jsonrpc":"2.0","method":"account_transfer","params":["0x7923a30bbfbcb998a6534d56b313e68c8e0c594a","0xb527326623a499f7ea550f1be98a9a6e3b56ee29","0x111","0x110","0x30000",""],"id":1}' http://127.0.0.1:15645

Params

  • from: hex string, Sender address.
  • to: hex string, Receiver address.
  • amount: hex string, Amount of tokens to transfer.
  • gasPrice: hex string, Gas price.
  • gasLimit: hex string, Gas limit.

drep-testnet-euler's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.