eximchain-transaction-executor

command module
v0.0.0-...-25b0727 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: MIT Imports: 43 Imported by: 0

README

Basic Usage

Basic usage example when running in AWS from the terraform configuration

If authentication is enabled:

# Create a user
/opt/transaction-executor/go/bin/eximchain-transaction-executor user -email louis@eximchain.com -update

# Store the token
TOKEN=<Token from previous command>

# Make an RPC call
curl -XPOST -H "Authorization: $TOKEN" -d'{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' localhost:8080/

If authentication is disabled:

curl -XPOST -d'{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' localhost:8080/

Requests that include the Authorization: header will still be accepted if authentication is disabled.

Example Commands

Server

curl -XPOST -H "Authorization: $TOKEN" -d'{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' localhost:8080/

User

./eximchain user --email zuo.wang@enuma.io
./eximchain user --email zuo.wang@enuma.io --update
./eximchain user --list
./eximchain user --email zuo.wang@enuma.io --delete

Endpoints

endpoint rpc_method
rpc all

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL