Skip to content

Eximchain/eximchain-transaction-executor

Repository files navigation

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

About

A microservice that uses a geth client and a vault client to securely execute transactions on the eximchain block chain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages