prex cli - atticplaygroup/prex GitHub Wiki
prex
is a command-line interface for interacting with Prex instances. Use prex server
to initiate a Prex gRPC server or an HTTP gateway for RESTful access. prex client
is intended for local testing purposes, such as signing Sui personal messages for account registration and interacting with a Sui blockchain. In a production setting, a more user-friendly interface should be developed.
Start a Prex server:
prex server start --environment=./.env
Start an HTTP gateway:
prex server gateway --grpc-port=50051 --bind-port=3000 --grpc-host=localhost
Run both commands and test with
curl http://localhost:3000/v1/ping
Expected response:
{"pong":"pong"}
prex client
will search for a suitable location to store a YAML configuration file, which will be used to save account information. The location of this configuration file can be specified using the --config
parameter.
Available Commands:
account Print information of the account
sign Sign a personal message
sui-faucet Request Sui coins from faucet
sui-transfer Transfer Sui coins to recipient