Versions in this module Expand all Collapse all v0 v0.0.1 Nov 13, 2022 Changes in this version + func NamespaceID(base64Value string) (string, error) + type API struct + func NewAPI(baseURL string) API + func (api API) Balance(ctx context.Context) (response Balance, err error) + func (api API) BalanceOf(ctx context.Context, address string) (response Balance, err error) + func (api API) DataAvailable(ctx context.Context, height uint64) (response DataAvailableResponse, err error) + func (api API) Head(ctx context.Context) (response HeaderResponse, err error) + func (api API) Header(ctx context.Context, height uint64) (response HeaderResponse, err error) + func (api API) NamespaceData(ctx context.Context, namespaceID string, height uint64) (response NamespaceData, err error) + func (api API) NamespaceShares(ctx context.Context, namespaceID string) (response NamespaceData, err error) + func (api API) NamespaceSharesByHeight(ctx context.Context, namespaceID string, height uint64) (response NamespaceShares, err error) + func (api API) SubmitPfd(ctx context.Context, tx SubmitPfd) (response SubmittedPfd, err error) + func (api API) SubmitTx(ctx context.Context, tx SubmitTx) (response SubmittedTx, err error) + type Attribute struct + Index *bool + Key string + Value string + func (attr Attribute) IsIndex() bool + type Balance struct + Amount decimal.Decimal + Denom string + type BlockID struct + Hash string + Parts BlockIDParts + type BlockIDParts struct + Hash string + Total int + type Commit struct + BlockID BlockID + Height uint64 + Round int + Signatures []Signature + type Dah struct + ColumnRoots []string + RowRoots []string + type DataAvailableResponse struct + Available bool + ProbabilityOfAvailability string + type Event struct + Attributes []Attribute + Type string + type Header struct + AppHash string + ChainID string + ConsensusHash string + DataHash string + EvidenceHash string + Height uint64 + LastBlockID BlockID + LastCommitHash string + LastResultsHash string + NextValidatorsHash string + ProposerAddress string + Time time.Time + ValidatorsHash string + Version Version + type HeaderResponse struct + Commit Commit + Dah Dah + Header Header + ValidatorSet ValidatorSet + type Log struct + Events []Event + MsgIndex int64 + type NamespaceData struct + Data []string + Height uint64 + func (nd NamespaceData) GetBytes() ([][]byte, error) + type NamespaceShares struct + Height uint64 + Shares []string + type Signature struct + BlockIDFlag uint64 + Signature string + Timestamp time.Time + ValidatorAddress string + type SubmitPfd struct + Data string + GasLimit uint64 + NamespaceID string + type SubmitTx struct + Tx string + type SubmittedPfd struct + Data string + Events []Event + Height int + Logs []Log + RawLog string + Txhash string + type SubmittedTx struct + Code int64 + Codespace string + GasWanted uint64 + Logs []Log + RawLog string + Txhash string + type Validator struct + Address string + ProposerPriority int + PubKey string + VotingPower int + type ValidatorSet struct + Proposer Validator + Validators []Validator + type Version struct + Block int