Example for Javascript

Installing

npm install @aws-sdk/client-s3

Example

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

circle-info

If you have any questions, please join our Discord serverarrow-up-right, or send us an email at [email protected]envelope.

Last updated