@goat-sdk/plugin-irys
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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


Readme

Keywords

Package Sidebar

Install

npm i @goat-sdk/plugin-irys

Homepage

ohmygoat.dev

Weekly Downloads

6

Version

0.1.1

License

MIT

Unpacked Size

32.5 kB

Total Files

36

Last publish

Collaborators

  • aigustin
  • mpaella