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.
curl -XPOST -H "Authorization: $TOKEN" -d'{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' localhost:8080/./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| endpoint | rpc_method |
|---|---|
| rpc | all |