Documentation ¶
Index ¶
- type EmbeddedApi
- type LedgerApi
- func (l LedgerApi) GetAccountBlockByHash(hash types.Hash) (*api.AccountBlock, error)
- func (l LedgerApi) GetAccountBlocksByHeight(address types.Address, height, count uint64) (*api.AccountBlockList, error)
- func (l LedgerApi) GetAccountBlocksByPage(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)
- func (l LedgerApi) GetAccountInfoByAddress(address types.Address) (*api.AccountInfo, error)
- func (l LedgerApi) GetDetailedMomentumsByHeight(height, count uint64) (*api.DetailedMomentumList, error)
- func (l LedgerApi) GetFrontierAccountBlock(address types.Address) (*api.AccountBlock, error)
- func (l LedgerApi) GetFrontierMomentum() (*api.Momentum, error)
- func (l LedgerApi) GetMomentumBeforeTime(timestamp uint64) (*api.Momentum, error)
- func (l LedgerApi) GetMomentumByHash(hash types.Hash) (*api.Momentum, error)
- func (l LedgerApi) GetMomentumsByHeight(height, count uint64) (*api.MomentumList, error)
- func (l LedgerApi) GetMomentumsByPage(pageIndex, pageSize uint32) (*api.MomentumList, error)
- func (l LedgerApi) GetUnconfirmedBlocksByAddress(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)
- func (l LedgerApi) GetUnreceivedBlocksByAddress(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)
- func (l LedgerApi) PublishRawTransaction(block *nom.AccountBlock) error
- type StatsApi
- type SubscribeApi
- func (s SubscribeApi) ToAccountBlocksByAddress(ch chan []subscribe.AccountBlock, address types.Address) (client.Subscription, error)
- func (s SubscribeApi) ToAllAccountBlocks(ch chan []subscribe.AccountBlock) (client.Subscription, error)
- func (s SubscribeApi) ToMomentums(ch chan []subscribe.Momentum) (client.Subscription, error)
- func (s SubscribeApi) ToUnreceivedAccountBlocksByAddress(ch chan []subscribe.AccountBlock, address types.Address) (client.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddedApi ¶
type EmbeddedApi struct { Accelerator embedded.AcceleratorApi Htlc embedded.HtlcApi Pillar embedded.PillarApi Plasma embedded.PlasmaApi Sentinel embedded.SentinelApi Spork embedded.SporkApi Stake embedded.StakeApi Swap embedded.SwapApi Token embedded.TokenApi }
func NewEmbeddedApi ¶
func NewEmbeddedApi(c client.Client) EmbeddedApi
type LedgerApi ¶
type LedgerApi struct {
// contains filtered or unexported fields
}
func NewLedgerApi ¶
func (LedgerApi) GetAccountBlockByHash ¶
func (LedgerApi) GetAccountBlocksByHeight ¶
func (LedgerApi) GetAccountBlocksByPage ¶
func (l LedgerApi) GetAccountBlocksByPage(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)
pageIndex = 0 returns the most recent account blocks sorted descending by height
func (LedgerApi) GetAccountInfoByAddress ¶
Account info
func (LedgerApi) GetDetailedMomentumsByHeight ¶
func (l LedgerApi) GetDetailedMomentumsByHeight(height, count uint64) (*api.DetailedMomentumList, error)
func (LedgerApi) GetFrontierAccountBlock ¶
Blocks
func (LedgerApi) GetFrontierMomentum ¶
Momentums
func (LedgerApi) GetMomentumBeforeTime ¶
func (LedgerApi) GetMomentumByHash ¶
func (LedgerApi) GetMomentumsByHeight ¶
func (l LedgerApi) GetMomentumsByHeight(height, count uint64) (*api.MomentumList, error)
func (LedgerApi) GetMomentumsByPage ¶
func (l LedgerApi) GetMomentumsByPage(pageIndex, pageSize uint32) (*api.MomentumList, error)
pageIndex = 0 returns the most recent momentums sorted descending by height
func (LedgerApi) GetUnconfirmedBlocksByAddress ¶
func (LedgerApi) GetUnreceivedBlocksByAddress ¶
func (LedgerApi) PublishRawTransaction ¶
func (l LedgerApi) PublishRawTransaction(block *nom.AccountBlock) error
type StatsApi ¶
type StatsApi struct {
// contains filtered or unexported fields
}
func NewStatsApi ¶
func (StatsApi) NetworkInfo ¶
func (s StatsApi) NetworkInfo() (*api.NetworkInfoResponse, error)
func (StatsApi) ProcessInfo ¶
func (s StatsApi) ProcessInfo() (*api.ProcessInfoResponse, error)
type SubscribeApi ¶
type SubscribeApi struct {
// contains filtered or unexported fields
}
func NewSubscribeApi ¶
func NewSubscribeApi(c client.Client) SubscribeApi
func (SubscribeApi) ToAccountBlocksByAddress ¶
func (s SubscribeApi) ToAccountBlocksByAddress(ch chan []subscribe.AccountBlock, address types.Address) (client.Subscription, error)
func (SubscribeApi) ToAllAccountBlocks ¶
func (s SubscribeApi) ToAllAccountBlocks(ch chan []subscribe.AccountBlock) (client.Subscription, error)
func (SubscribeApi) ToMomentums ¶
func (s SubscribeApi) ToMomentums(ch chan []subscribe.Momentum) (client.Subscription, error)
func (SubscribeApi) ToUnreceivedAccountBlocksByAddress ¶
func (s SubscribeApi) ToUnreceivedAccountBlocksByAddress(ch chan []subscribe.AccountBlock, address types.Address) (client.Subscription, error)
Click to show internal directories.
Click to hide internal directories.