Welcome to the Akave Link API! This API wrapper enables seamless integration with Akave's decentralized storage network. Below, you’ll find quick setup steps, examples of how to use each API endpoint with JavaScript, and equivalent curl commands.
Github repo for reference :
Installing docker :
Getting Started
Step 1: Pull the Docker Image
To start, pull the Akave Link Docker image:
docker pull akave/akavelink:latest
Step 2: Get a Wallet Address and Request Funds
Visit to obtain a wallet address and add the Akave chain to MetaMask.
Request funds from the faucet to start experimenting with the Akave Link API.
Always be careful when dealing with your private key. Double-check that you’re not hardcoding it anywhere or committing it to Git. Remember: anyone with access to your private key has complete control over your funds.
Ensure you’re not reusing a private key that’s been deployed on other EVM chains. Each blockchain has its own attack vectors, and reusing keys across chains exposes you to cross-chain vulnerabilities. Keep separate keys to maintain isolation and protect your assets.
Step 3: Run the Akave Link Container
Run the container and specify the PRIVATE_KEY environment variable:
With Akavelink we expect you to use the blockchain enabled storage network on port 5500
Node Address Public endpoint ( NODE_ADDRESS ) -> connect.akave.ai:5500
You can download the file directly in your browser or provide a download url with a public hosted API by using:
http(s)://ip-or-dns-name/buckets/:BucketName/files/:FileName/download
curl Command:
curl -X GET http://localhost:8000/buckets/myBucket/files/myFile.txt/download -o myFile.txt
Output file extention should be the same as the requested file.
Error Handling
All endpoints return errors in the following format:
{
"success": false,
"error": "error message"
}
Ensure you handle these responses in your code to capture and process errors effectively.
Good luck with your hackathon, and have fun building with Akave’s decentralized storage API!