This repository offers high-performance APIs with a gRPC server seamlessly integrated with the Sorobook backend, powered by PostgreSQL for efficient data querying. It serves various types of Soroban data in a friendly JSON format.
We support APIs for querying events, transactions, and ledgers.
- Stellar asset contract events
- From or to an address
- Triggered by a contract
- Event by ID
- Event by contract
- Event at ledger
- Count of events by contract
- Ledger by hash
- Ledger by sequence
- Transaction at ledger
- Transaction by address
- Transaction by contract
- Transaction by contract and address
- Transaction by hash
For details, visit the testing endpoint: https://sorobook-api.decentrio.ventures/public/#/
-
Install
swagger-combine:npm install --save swagger-combine
-
Install
statik:go install github.com/rakyll/[email protected]
Follow the instructions below:
-
Set up environment variables:
export READONLY_URL=<postgresql_url>
-
Build the binary:
go build main.go
-
Run the gRPC server and host the public OpenAPI gateway:
./main
You can then query your own Sorobook through localhost:8080 or use the OpenAPI UI at localhost:8080/public.