API document is available here https://github.com/blockstream/esplora/blob/master/API.md
docker-compose up --build
-
connect elements container
docker exec -it elements /bin/bash
-
generate block where n is the number of blocks to generate
ecli generate n
-
call API
curl http://localhost:3002/blocks/tip/hash