/algorand-node

Algorand Community Node for quick deployment.

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

Algorand Node Docker

Docker build for quick node deployment of the Algorand blockchain.

Build

  • Clone the repository:
git clone https://github.com/Sensei-Node/algorand-node.git
  • Navigate to the node folder:
cd algorand-node/algorand/node
  • Run docker command:
docker build -t algo_node:latest .

Docker run

docker run -itd -p 8080:8080 --name algo_node algo_node:latest

Docker run from image

A compiled version is available on Docker Hub here

You can run this version with the pre-configured docker-compose.yml found in the algorand folder:

  • Navigate to the algorand folder:
cd algorand
  • Run docker compose command to raise the container in the background with:
docker-compose up -d

Get algod.token

  • For RPC usage you will need the algod.token of the node, you can get this token by running:
docker exec -it algo_node cat data/algod.token
  • Once you got your token you can check that your node is running and syncing from the latest catchup point:
curl http://localhost:8080/v2/status -H "X-Algo-API-Token:<your_token_here>"

The complete REST API documentation for algorand can be found here

Algorand SDKs

Algorand provides developers with SDKs to interact with the network by connecting to your node, this will allow you to submit requests and transactions. They also contain methods to help construct and sign transactions, encoding/decoding addresses and mnemonics, etc.

Python

JavaScript

Go

Java

Contributing

  • Contributions are welcome. Feel free to suggest improvements!

Made with ❤️ by Sensei Team