Documentation ¶
Index ¶
- func DeepHash(data []any) [48]byte
- func Max[T constraints.Ordered](s ...T) T
- type BalanceResponse
- type Base64String
- func (self Base64String) Base64() string
- func (self Base64String) Bytes() []byte
- func (self *Base64String) Decode(s string) error
- func (self Base64String) Head(i int) []byte
- func (self Base64String) MarshalJSON() (out []byte, err error)
- func (self *Base64String) MarshalTo(buf []byte) (n int, err error)
- func (self *Base64String) Scan(src interface{}) error
- func (self Base64String) Size() int
- func (self *Base64String) Unmarshal(buf []byte) error
- func (self *Base64String) UnmarshalJSON(data []byte) error
- func (self Base64String) Value() (driver.Value, error)
- type BigInt
- type Buffer
- type BundleItem
- func (self *BundleItem) Encode(out io.Writer) (err error)
- func (self *BundleItem) GetTag(name string) (value string, found bool)
- func (self *BundleItem) IsSigned() bool
- func (self BundleItem) Marshal() ([]byte, error)
- func (self BundleItem) MarshalJSON() ([]byte, error)
- func (self BundleItem) MarshalTo(buf []byte) (n int, err error)
- func (self *BundleItem) NestBundles(dataItems []*BundleItem) (err error)
- func (self *BundleItem) Reader() (out *bytes.Buffer, err error)
- func (self *BundleItem) Sign(signer signer.Signer) (err error)
- func (self *BundleItem) Size() (out int)
- func (self *BundleItem) String() string
- func (self *BundleItem) Unmarshal(buf []byte) (err error)
- func (self *BundleItem) UnmarshalFromReader(reader io.Reader) (err error)
- func (self *BundleItem) UnmarshalJSON(data []byte) error
- func (self *BundleItem) Verify() (err error)
- func (self *BundleItem) VerifySignature() (err error)
- type Chunk
- type ChunkInfoResponse
- type ChunkResponse
- type File
- type Job
- type NodeInfo
- type Receipt
- type ReceiptResponse
- type RewardAddr
- type Tag
- type Tags
- type TopUpConfirmation
- type TopUpConfirmationResponse
- type Transaction
- type TxToBalanceRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶
func Max[T constraints.Ordered](s ...T) T
Types ¶
type BalanceResponse ¶
type BalanceResponse struct {
Balance string `json:"balance"`
}
func (BalanceResponse) ToBigInt ¶
func (b BalanceResponse) ToBigInt() *big.Int
type Base64String ¶
type Base64String []byte
func (Base64String) Base64 ¶
func (self Base64String) Base64() string
func (Base64String) Bytes ¶
func (self Base64String) Bytes() []byte
func (*Base64String) Decode ¶
func (self *Base64String) Decode(s string) error
func (Base64String) Head ¶
func (self Base64String) Head(i int) []byte
func (Base64String) MarshalJSON ¶
func (self Base64String) MarshalJSON() (out []byte, err error)
func (*Base64String) Scan ¶
func (self *Base64String) Scan(src interface{}) error
func (Base64String) Size ¶
func (self Base64String) Size() int
func (*Base64String) Unmarshal ¶
func (self *Base64String) Unmarshal(buf []byte) error
func (*Base64String) UnmarshalJSON ¶
func (self *Base64String) UnmarshalJSON(data []byte) error
type BundleItem ¶
type BundleItem struct { SignatureType signer.SignatureType `json:"signature_type"` Signature Base64String `json:"signature"` Owner Base64String `json:"owner"` // utils.Base64Encode(pubkey) Target Base64String `json:"target"` // optional, if exist must length 32, and is base64 str Anchor Base64String `json:"anchor"` // optional, if exist must length 32, and is base64 str Tags Tags `json:"tags"` Data Base64String `json:"data"` Id Base64String `json:"id"` // contains filtered or unexported fields }
func (*BundleItem) IsSigned ¶
func (self *BundleItem) IsSigned() bool
func (BundleItem) Marshal ¶
func (self BundleItem) Marshal() ([]byte, error)
func (BundleItem) MarshalJSON ¶
func (self BundleItem) MarshalJSON() ([]byte, error)
func (*BundleItem) NestBundles ¶
func (self *BundleItem) NestBundles(dataItems []*BundleItem) (err error)
func (*BundleItem) Size ¶
func (self *BundleItem) Size() (out int)
func (*BundleItem) String ¶
func (self *BundleItem) String() string
func (*BundleItem) Unmarshal ¶
func (self *BundleItem) Unmarshal(buf []byte) (err error)
func (*BundleItem) UnmarshalFromReader ¶
func (self *BundleItem) UnmarshalFromReader(reader io.Reader) (err error)
Reverse operation of Reader
func (*BundleItem) UnmarshalJSON ¶
func (self *BundleItem) UnmarshalJSON(data []byte) error
func (*BundleItem) Verify ¶
func (self *BundleItem) Verify() (err error)
https://github.com/ArweaveTeam/arweave-standards/blob/master/ans/ANS-104.md#21-verifying-a-dataitem
func (*BundleItem) VerifySignature ¶
func (self *BundleItem) VerifySignature() (err error)
type ChunkInfoResponse ¶ added in v0.5.7
type ChunkResponse ¶ added in v0.5.0
type ReceiptResponse ¶ added in v0.5.6
type ReceiptResponse struct { Data struct { Transactions struct { Edges []struct { Node struct { Receipt struct { Signature string `json:"signature"` Timestamp int64 `json:"timestamp"` Version string `json:"version"` DeadlineHeight int `json:"deadlineHeight"` } `json:"receipt"` } `json:"node"` } `json:"edges"` } `json:"transactions"` } `json:"data"` }
type RewardAddr ¶
type RewardAddr []byte
func (RewardAddr) Bytes ¶
func (self RewardAddr) Bytes() []byte
func (*RewardAddr) IsUnclaimed ¶
func (self *RewardAddr) IsUnclaimed() bool
func (*RewardAddr) UnmarshalJSON ¶
func (self *RewardAddr) UnmarshalJSON(data []byte) error
type TopUpConfirmation ¶
type TopUpConfirmationResponse ¶
type TopUpConfirmationResponse struct {
Confirmed bool `json:"confirmed"`
}
type Transaction ¶
type Transaction struct { ID string `json:"id"` Currency string `json:"currency"` Address string `json:"address"` Owner string `json:"owner"` Signature string `json:"signature"` Target string `json:"target"` Tags []Tag `json:"tags"` Anchor string `json:"anchor"` DataSize string `json:"data_size"` RawSize string `json:"raw_size"` }
type TxToBalanceRequest ¶
type TxToBalanceRequest struct {
TxId string `json:"tx_id"`
}
Click to show internal directories.
Click to hide internal directories.