Buckets
ICBucket
ICPay Cloud guide
On-chain encrypted file storage
ICBucket
On-chain encrypted file storage
ICBucket
On-chain encrypted file storage
Deployment
Run and test ICBucket integrations locally using dfx replica simulation and mock storage actors.
Test your ICBucket storage integrations in local development environments without spending real ICP or burning mainnet cycles.
dfx) installed on macOS / Linux / WSL.dfx start --background.Set the environment variables to point to your local replica:
NEXT_PUBLIC_IC_HOST=http://127.0.0.1:4943
ICBUCKET_CANISTER_ID=bkyz2-fmaaa-aaaaa-qaaaq-cai
ICBUCKET_CDN_BASE=http://localhost:3000When communicating with local replicas, instruct @dfinity/agent to fetch the root key:
import { HttpAgent } from "@dfinity/agent"
const agent = new HttpAgent({ host: "http://127.0.0.1:4943" })
if (process.env.NODE_ENV !== "production") {
await agent.fetchRootKey()
}Upload a test text file and inspect local canister state:
dfx canister call icbucket listFiles '(record { page = 1; pageSize = 10 })'