Example for Javascript
Installing
npm install @aws-sdk/client-s3Example
init s3 client
import { S3 } from "@aws-sdk/client-s3";
const { endpoint, accessKey, secretKey, sessionToken } = s3Params;
const s3 = new S3({
endpoint,
signatureVersion: "v4",
credentials: {
accessKeyId: accessKey,
secretAccessKey: secretKey,
sessionToken,
},
region: "us-west-2",
});create bucket and put object
List buckets and list objects
Get ipfs hash and arweave hash
Last updated