Documentation ¶
Index ¶
- type Gateway
- type Irys
- func (i *Irys) BasicUpload(ctx context.Context, file io.Reader, tags ...types.Tag) (types.Transaction, error)
- func (i *Irys) Download(hash string) (*types.File, error)
- func (i *Irys) GetBalance() (*big.Int, error)
- func (i *Irys) GetMetaData(hash string) (types.Transaction, error)
- func (i *Irys) GetPrice(fileSize int) (*big.Int, error)
- func (i *Irys) TopUpBalance(ctx context.Context, amount *big.Int) (types.TopUpConfirmation, error)
- func (i *Irys) Upload(ctx context.Context, file io.Reader, price *big.Int, tags ...types.Tag) (types.Transaction, error)
- type Node
- type Option
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface { // GetPrice return fee base on fileSize in byte for selected token GetPrice(fileSize int) (*big.Int, error) // BasicUpload file with calculate price and topUp balance base on price (this is slower for upload) BasicUpload(ctx context.Context, file io.Reader, tags ...types.Tag) (types.Transaction, error) // Upload file with check balance Upload(ctx context.Context, file io.Reader, price *big.Int, tags ...types.Tag) (types.Transaction, error) // Download get file with header details Download(hash string) (*types.File, error) // GetMetaData get transaction details GetMetaData(hash string) (types.Transaction, error) // GetBalance return current balance in irys node GetBalance() (*big.Int, error) // TopUpBalance top up your balance base on your amount in selected node TopUpBalance(ctx context.Context, amount *big.Int) (types.TopUpConfirmation, error) }
type Irys ¶
type Irys struct {
// contains filtered or unexported fields
}
func (*Irys) BasicUpload ¶ added in v0.2.0
func (*Irys) GetMetaData ¶
func (i *Irys) GetMetaData(hash string) (types.Transaction, error)
func (*Irys) TopUpBalance ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.