sorobook-api

command module
v0.0.0-...-5096976 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 19 Imported by: 0

README

Sorobook API

This repository offers a high-performance APIs with a gRPC server seamlessly integrated with sorobook backend which powered by PostgresSQL for efficient data querying. It serves many types of soroban data in friendly json format.

Features

We support apis for querying events, transactions and ledger

1. Events

  • Stellar asset contract events
    • from or to and address
    • trigger by a contract
  • Event by ID
  • Event by contract
  • Event at ledger
  • Count of events by contract

2. Ledger

  • Ledger by hash
  • Ledger by seq

3. Transaction

  • Transaction at ledger
  • Transaction by address
  • Transaction by contract
  • Transaction by contract and address
  • Transaction by hash

For details, visit this testing endpoint: https://sorobook-api.decentrio.ventures/public/#/

Prerequisite
  • Install swagger-combine:
npm install --save swagger-combine
  • Install statik:
go install github.com/rakyll/statik@v0.1.7
Deployment

Follow below instructions:

  • Setup env:
export READONLY_URL=<postgresql_url>
  • Building binary:
go build main.go
  • Running grpc server and host public OpenAPI gateway:
./main

Then you can query your own Sorobook through localhost:8080 or use OpenAPI UI at localhost:8080/public

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
docs
types
contract
Package contract is a reverse proxy.
Package contract is a reverse proxy.
event
Package event is a reverse proxy.
Package event is a reverse proxy.
ledger
Package ledger is a reverse proxy.
Package ledger is a reverse proxy.
transaction
Package transaction is a reverse proxy.
Package transaction is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL