Theta-rosetta
provides a reference implementation of the Rosetta specification for Theta.
- Comprehensive tracking of all ETH balance changes
- Stateless, offline, curve-based transaction construction (with address checksum validation)
- Atomic balance lookups using go-ethereum's GraphQL Endpoint
- Idempotent access to all transaction traces and receipts
To run Theta-rosetta
, you must install Docker. Please refer to Docker official documentation on installation instruction.
As specified in the Rosetta API Principles,
all Rosetta implementations must be deployable via Docker and support running via either an
online
or offline
mode.
YOU MUST INSTALL DOCKER FOR THE FOLLOWING INSTRUCTIONS TO WORK. YOU CAN DOWNLOAD DOCKER HERE.
Running the following commands will create a Docker image called theta-rosetta-rpc-adaptor:latest
.
Get the Dockerfile from this repository and put it into your desired local directory
docker build --no-cache -t theta-rosetta-rpc-adaptor:latest .
Running the following command will start a Docker container and expose the Rosetta APIs.
docker run -p 8080:8080 -p 16888:16888 -p 15872:15872 -p 21000:21000 -p 30001:30001 -e THETA_NETWORK=testnet -it theta-rosetta-rpc-adaptor:latest
docker stop <container name>
docker start <container name>
All Data APIs specified in https://www.rosetta-api.org/docs/data_api_introduction.html
All supported Construction APIs specified in https://www.rosetta-api.org/docs/ConstructionApi.html
Indexer APIs specifed in https://www.rosetta-api.org/docs/indexers.html
Install the latest rosetta-cli from https://github.com/coinbase/rosetta-cli.
rosetta-cli check:data --configuration-file=cli-test-config.json
rosetta-cli check:construction --configuration-file=cli-test-config.json
The end conditions for check:construction
is set to:
broadcast complete for job "transfer (3)" with transaction hash <tx hash>
This project is available open source under the terms of the GNU Lesser General Public License 3.0.
© 2021 Theta