https://github.com/rootmos/loom
Run a local development Arweave blockchain with faucets and on-demand mining
https://github.com/rootmos/loom
arweave arweave-blockchain
Last synced: 12 months ago
JSON representation
Run a local development Arweave blockchain with faucets and on-demand mining
- Host: GitHub
- URL: https://github.com/rootmos/loom
- Owner: rootmos
- Created: 2019-11-27T11:54:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T14:10:11.000Z (over 2 years ago)
- Last Synced: 2025-04-14T22:35:43.875Z (about 1 year ago)
- Topics: arweave, arweave-blockchain
- Language: Erlang
- Homepage:
- Size: 75.2 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loom
[](https://travis-ci.org/rootmos/loom)
[](https://hub.docker.com/r/rootmos/loom)
Run a local development [Arweave](https://www.arweave.org/) blockchain
with faucets and on-demand mining.
## Usage
Images are available on the [Docker Hub](https://hub.docker.com/r/rootmos/loom):
```shell
docker pull rootmos/loom
docker run --rm --publish 8000:8000 rootmos/loom
```
## API
* `POST /loom/mine` triggers the mining of a new block
- Responds with the mined block
* `GET /loom/wait/:tx_id` waits for the transaction to get mined
- Responds with the transaction
* `POST /loom/faucet`
- Example request:
`{"beneficiary": "tQYrTlkGy6voW2sIFVnRspzV1ELl2uNueICftPyplY8", "quantity": 1000000000000}`
- Example response:
`{"tx_id": "P7wXSetOmrlKpQCm_koGYa8pzRhULunmwANG63aVaTg"}`
* `GET /loom/faucet` returns a list of faucets the loom is using
* `POST /loom/stop` stops the loom and the Arweave node
* `/arweave/...` proxy requests to the [Arweave HTTP interface](https://github.com/ArweaveTeam/arweave/blob/master/http_iface_docs.md)