Documentation ¶
Index ¶
- Variables
- func Must(err error)
- func Must1[T any](arg T, err error) T
- func Must2[T any, T2 any](arg T, arg2 T2, err error) (T, T2)
- func Recover(err *error)
- func UploadLogoAndMetadata(ctx context.Context, connection *web3.Connection, node *IrysNode, ...) (string, error)
- type BundlrTx
- type Endpoint
- type IrysNode
- func (i *IrysNode) Fund(ctx context.Context, ...) (err error)
- func (i *IrysNode) FundByBytes(ctx context.Context, connection *web3.Connection, signer web3.Signer, bs int) error
- func (i *IrysNode) GetBalance(address string) (uint64, error)
- func (i *IrysNode) GetPrice(bytes int) (uint64, error)
- func (i *IrysNode) Upload(data []byte, signer web3.Signer, tags map[string]string) (_ *UploadResponse, err error)
- func (i *IrysNode) UploadData(ctx context.Context, connection *web3.Connection, signer web3.Signer, ...) (*UploadResponse, error)
- func (i *IrysNode) UploadImage(ctx context.Context, connection *web3.Connection, signer web3.Signer, ...) (*UploadResponse, error)
- func (i *IrysNode) UploadJson(ctx context.Context, connection *web3.Connection, signer web3.Signer, data any) (_ *UploadResponse, err error)
- type Tag
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var InsufficientBalance = errors.New("insufficient balance")
Functions ¶
Types ¶
type IrysNode ¶
IrysNode represents the Irys node.
func (*IrysNode) FundByBytes ¶
func (*IrysNode) GetPrice ¶
GetPrice calculates the price for bytes bytes paid for with [token] for the loaded Irys node.
func (*IrysNode) UploadData ¶
func (*IrysNode) UploadImage ¶
func (i *IrysNode) UploadImage(ctx context.Context, connection *web3.Connection, signer web3.Signer, image_ []byte) (*UploadResponse, error)
func (*IrysNode) UploadJson ¶
func (i *IrysNode) UploadJson(ctx context.Context, connection *web3.Connection, signer web3.Signer, data any) (_ *UploadResponse, err error)
Click to show internal directories.
Click to hide internal directories.