Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirosystems/stacks-blockchain-api
API for the Stacks blockchain
https://github.com/hirosystems/stacks-blockchain-api
api blockchain blockstack hacktoberfest stacks
Last synced: 3 days ago
JSON representation
API for the Stacks blockchain
- Host: GitHub
- URL: https://github.com/hirosystems/stacks-blockchain-api
- Owner: hirosystems
- License: gpl-3.0
- Created: 2020-02-06T15:26:09.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2025-01-16T20:22:41.000Z (9 days ago)
- Last Synced: 2025-01-17T03:47:57.595Z (8 days ago)
- Topics: api, blockchain, blockstack, hacktoberfest, stacks
- Language: TypeScript
- Homepage: https://stacks-blockchain-api.vercel.app
- Size: 72.9 MB
- Stars: 181
- Watchers: 31
- Forks: 117
- Open Issues: 109
-
Metadata Files:
- Readme: README-rosetta.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Testing the Rosetta APIs
Build and run the `rosetta.Dockerfile` image:
docker build -t rosetta:stable -f rosetta.Dockerfile .
docker run -d -p 3999:3999 --mount source=rosetta-data,target=/data \
--name rosetta rosetta:stableBy default, this will connect to the testnet. To run a local node, run
docker run -d -p 3999:3999 --mount source=rosetta-data,target=/data \
--name rosetta -e STACKS_NETWORK=mocknet rosetta:stableOptionally, you can seed the chainstate for testnet/mainnet using [Hiro archive data](https://docs.hiro.so/references/hiro-archive#what-is-the-hiro-archive):
docker run -d -p 3999:3999 --mount source=rosetta-data,target=/data \
--name rosetta -e SEED_CHAINSTATE=true rosetta:stableUse a recent version of [rosetta-cli](https://github.com/coinbase/rosetta-cli) to test the endpoints:
rosetta-cli --configuration-file rosetta-cli-config/rosetta-config.json \
view:block 1rosetta-cli --configuration-file rosetta-cli-config/rosetta-config.json \
check:data`rosetta-cli` will sync with the blockchain until it reaches the tip,
and then exit, displaying the test results.At present, account reconciliation is disabled; proper testing of that
requires token transfer transactions while `rosetta-cli` is running.Documentation for the Rosetta APIs can be found at
https://hirosystems.github.io/stacks-blockchain-api/