Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/demox-labs/aleo-record-scanner

An RPC (remote procedure call) for scanning Aleo records
https://github.com/demox-labs/aleo-record-scanner

Last synced: about 2 months ago
JSON representation

An RPC (remote procedure call) for scanning Aleo records

Awesome Lists containing this project

README

        

## Installation & Running

1. Install [docker desktop](https://www.docker.com/products/docker-desktop/).
2. Install [Postgres](https://www.postgresql.org/download/).
3. Install protobuf: ` brew install protobuf`.
4. Rename `.env.example` to `.env`.
5. Run `yarn && yarn install`.
6. Start the local aleo database inside of a docker container: `yarn local-db-up`.
7. Apply database migrations: `yarn migrate`.
8. Run `yarn start:dev`.

Tests:
Run `yarn test`.

## Examples

### Get Height
```
curl --location --request POST 'localhost:3000' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "getHeight"
}'
```

>>>
```
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"height": "120087"
}
}
```