Skip to content

Instantly share code, notes, and snippets.

@epequeno
Created May 31, 2021 22:28
Show Gist options
  • Save epequeno/06bc17cb2a444692b68471b073be1061 to your computer and use it in GitHub Desktop.
Save epequeno/06bc17cb2a444692b68471b073be1061 to your computer and use it in GitHub Desktop.
logs
$ ./sandbox down
Stopping sandbox containers...
Stopping algorand-sandbox-indexer ... done
Stopping algorand-sandbox-algod ... done
Stopping algorand-sandbox-postgres ... done
$ ./sandbox clean
Cleaning up sandbox environment...
$ docker system prune -a
...
Total reclaimed space: 1.954GB
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ git pull origin (git rev-parse --abbrev-ref HEAD)
From github.com:algorand/sandbox
* branch master -> FETCH_HEAD
Already up to date.
$ ./sandbox up
Starting default sandbox: release
see sandbox.log for detailed progress, or use -v.
* started!
algod version
8590327808
2.6.0.stable [rel/stable] (commit #8fe22d4e)
go-algorand is licensed with AGPLv3.0
source code available at https://github.com/algorand/go-algorand
Indexer version
2.4.0 compiled at 2021-05-31T22:24:40+0000 from git hash baa014ff63c6638074a04fcea32d4ce647b0dbb8 (modified)
Postgres version
postgres (PostgreSQL) 13.3
algod - goal node status
Last committed block: 0
Time since last block: 0.0s
Sync Time: 3.8s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/d050b3cade6d5c664df8bd729bf219f179812595
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/d050b3cade6d5c664df8bd729bf219f179812595
Round for next consensus protocol: 1
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: sandnet-v1
Genesis hash: gvnEkeBnQ1FbnkHYl6pzrGvIY+cJicoazjy+W1+dbeU=
indexer - health
{
"data": {
"migration-required": false,
"read-only-node": true
},
"db-available": true,
"errors": [
"fetcher error: HTTP 500: {\"message\":\"ledger does not have entry 1 (latest 0, committed 0)\"}\n"
],
"is-migrating": false,
"message": "0",
"round": 0
}
$ curl -s "localhost:8980/v2/accounts" | jq '.accounts|length'
4
$ curl -s "localhost:8980/v2/accounts?limit=1" | jq '.accounts|length'
0
$ curl -s "localhost:8980/v2/accounts?limit=2" | jq '.accounts|length'
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment