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.
npm install @goat-sdk/plugin-irys
yarn add @goat-sdk/plugin-irys
pnpm add @goat-sdk/plugin-irys
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
fund_irys_account
upload_data
upload_file
upload_folder
download_data