LS3 with load_acc
Learn how to use Load S3 storage layer along LCP's load_acc api keys
Last updated
Learn how to use Load S3 storage layer along LCP's load_acc api keys
Last updated
import { S3Client } from "@aws-sdk/client-s3";
const endpoint = "https://api.load.network/s3"; // LS3 HyperBEAM cluster
const accessKeyId = "load_acc_YOUR_LCP_ACCESS_KEY"; // get yours from cloud.load.network
const secretAccessKey = "";
// Initialize the S3 client
const s3Client = new S3Client({
region: "us-east-2",
endpoint,
credentials: {
accessKeyId,
secretAccessKey,
},
forcePathStyle: true, // required
});