0.1.1 • Published 7 months ago
@goat-sdk/plugin-irys v0.1.1
Irys GOAT Plugin
The Irys Plugin for GOAT SDK enables the funding of accounts, uploading of data, files and folders to the Irys network and the downloading of data from the network.
Installation
npm install @goat-sdk/plugin-irys
yarn add @goat-sdk/plugin-irys
pnpm add @goat-sdk/plugin-irys
Usage
import { irys } from '@goat-sdk/plugin-irys';
const tools = await getOnChainTools({
wallet: // ...
plugins: [
// rpcURL is only required if network is devnet
irys({ privateKey: "your EVM wallet private key", paymentToken: "baseeth", network: "devnet", rpcURL: "https://base-sepolia.drpc.org" })
]
});
See full list of possible values for paymentToken
in parameter IrysPaymentToken
Tools
fund_irys_account
upload_data
upload_file
upload_folder
download_data