Decentralized Storage
Store media files on Sui blockchain using Walrus decentralized storage. No single point of failure.
Cloudinary-like API for decentralized media storage on Sui blockchain. Built-in encryption, flexible gas strategies, and seamless integration.
Everything you need to build with decentralized media storage
Install the SDK and start uploading files in just a few lines of code
pnpm add @walbucket/sdkimport { Walbucket } from '@walbucket/sdk';
// Initialize SDK
const walbucket = new Walbucket({
apiKey: 'your-api-key',
network: 'testnet',
sponsorPrivateKey: 'your-private-key',
});
// Upload a file
const result = await walbucket.upload(file, {
name: 'my-image.jpg',
folder: 'products',
});
console.log(result.assetId); // Sui object ID
console.log(result.url); // Automatically generated file URL
// Retrieve a file
const retrieveResult = await walbucket.retrieve(result.assetId);
console.log('File data:', retrieveResult.data);
console.log('File URL:', retrieveResult.url);Explore real-world examples and learn how to integrate Walbucket SDK into your projects
See how Walbucket compares to traditional cloud storage solutions
Trusted by developers building the future of decentralized applications
Join developers building the future of decentralized media storage. Start integrating Walbucket SDK in minutes.