Usage
Basic Setup
const { Configuration, StorageApi, Token, Network } = require('arweave-storage-sdk');
const config = new Configuration({
appName: '<Name of your App>'
privateKey: '<ENV to private key or use_web_wallet>',
network: Network.BASE_MAINNET,
token: Token.USDC
})
const storageClient = new StorageApi(config);
await storageApiInstance.readyAuthentication
//Login
await storageApiInstance.api.login()Upload cost estimates
Quick file upload
Creating a Drive
Creating a Folder
Creating a File
Last updated
Was this helpful?