Versions in this module Expand all Collapse all v0 v0.1.0 Mar 26, 2024 v0.0.3 Jul 21, 2023 Changes in this version + type LedgerApi struct + func NewLedgerApi(client *server.Client) *LedgerApi + func (la *LedgerApi) GetAccountBlockByHash(blockHash types.Hash) (*api.AccountBlock, error) + func (la *LedgerApi) GetAccountBlocksByHeight(address types.Address, height, count uint64) (*api.AccountBlockList, error) + func (la *LedgerApi) GetAccountBlocksByPage(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error) + func (la *LedgerApi) GetAccountInfoByAddress(address types.Address) (*api.AccountInfo, error) + func (la *LedgerApi) GetDetailedMomentumsByHeight(height, count uint64) (*api.DetailedMomentumList, error) + func (la *LedgerApi) GetFrontierAccountBlock(address types.Address) (*api.AccountBlock, error) + func (la *LedgerApi) GetFrontierMomentum() (*api.Momentum, error) + func (la *LedgerApi) GetMomentumBeforeTime(timestamp int64) (*api.Momentum, error) + func (la *LedgerApi) GetMomentumByHash(hash types.Hash) (*api.Momentum, error) + func (la *LedgerApi) GetMomentumsByHeight(height, count uint64) (*api.MomentumList, error) + func (la *LedgerApi) GetMomentumsByPage(pageIndex, pageSize uint32) (*api.MomentumList, error) + func (la *LedgerApi) GetUnconfirmedBlocksByAddress(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error) + func (la *LedgerApi) GetUnreceivedBlocksByAddress(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error) + func (la *LedgerApi) PublishRawTransaction(transaction *nom.AccountBlock) error + func (la *LedgerApi) ReceiveTemplate(fromBlockHash types.Hash) *nom.AccountBlock + func (la *LedgerApi) SendTemplate(toAddress types.Address, tokenStandard types.ZenonTokenStandard, ...) *nom.AccountBlock + type StatsApi struct + func NewStatsApi(client *server.Client) *StatsApi + func (sa *StatsApi) NetworkInfo() (*api.NetworkInfoResponse, error) + func (sa *StatsApi) OsInfo() (*api.OsInfoResponse, error) + func (sa *StatsApi) ProcessInfo() (*api.ProcessInfoResponse, error) + func (sa *StatsApi) SyncInfo() (*protocol.SyncInfo, error) + type SubscriberApi struct + func NewSubscriberApi(client *server.Client) *SubscriberApi + func (sa *SubscriberApi) ToAccountBlocksByAddress(address types.Address) (*rpc.ClientSubscription, chan []subscribe.AccountBlock, error) + func (sa *SubscriberApi) ToAllAccountBlocks() (*rpc.ClientSubscription, chan []subscribe.AccountBlock, error) + func (sa *SubscriberApi) ToMomentums() (*rpc.ClientSubscription, chan []subscribe.Momentum, error) + func (sa *SubscriberApi) ToUnreceivedAccountBlocksByAddress(address types.Address) (*rpc.ClientSubscription, chan []subscribe.AccountBlock, error)