@goat-sdk/plugin-irys
v0.1.1
Published
<div align="center"> <a href="https://github.com/goat-sdk/goat">
Readme
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-irysUsage
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_accountupload_dataupload_fileupload_folderdownload_data
