Documentation
¶
Index ¶
- type 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
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LedgerApi ¶
type LedgerApi struct {
// contains filtered or unexported fields
}
func NewLedgerApi ¶
func (*LedgerApi) GetAccountBlockByHash ¶
func (*LedgerApi) GetAccountBlocksByHeight ¶
func (*LedgerApi) GetAccountBlocksByPage ¶
func (*LedgerApi) GetAccountInfoByAddress ¶
func (*LedgerApi) GetDetailedMomentumsByHeight ¶
func (la *LedgerApi) GetDetailedMomentumsByHeight(height, count uint64) (*api.DetailedMomentumList, error)
func (*LedgerApi) GetFrontierAccountBlock ¶
AccountBlocks
func (*LedgerApi) GetFrontierMomentum ¶
Momentum
func (*LedgerApi) GetMomentumBeforeTime ¶
func (*LedgerApi) GetMomentumByHash ¶
func (*LedgerApi) GetMomentumsByHeight ¶
func (la *LedgerApi) GetMomentumsByHeight(height, count uint64) (*api.MomentumList, error)
func (*LedgerApi) GetMomentumsByPage ¶
func (la *LedgerApi) GetMomentumsByPage(pageIndex, pageSize uint32) (*api.MomentumList, error)
func (*LedgerApi) GetUnconfirmedBlocksByAddress ¶
func (la *LedgerApi) GetUnconfirmedBlocksByAddress(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)
Unconfirmed AccountBlocks
func (*LedgerApi) GetUnreceivedBlocksByAddress ¶
func (*LedgerApi) PublishRawTransaction ¶
func (la *LedgerApi) PublishRawTransaction(transaction *nom.AccountBlock) error
func (*LedgerApi) ReceiveTemplate ¶
func (la *LedgerApi) ReceiveTemplate(fromBlockHash types.Hash) *nom.AccountBlock
func (*LedgerApi) SendTemplate ¶
func (la *LedgerApi) SendTemplate(toAddress types.Address, tokenStandard types.ZenonTokenStandard, amount *big.Int, data []byte) *nom.AccountBlock
type StatsApi ¶
type StatsApi struct {
// contains filtered or unexported fields
}
func NewStatsApi ¶
func (*StatsApi) NetworkInfo ¶
func (sa *StatsApi) NetworkInfo() (*api.NetworkInfoResponse, error)
func (*StatsApi) ProcessInfo ¶
func (sa *StatsApi) ProcessInfo() (*api.ProcessInfoResponse, error)
type SubscriberApi ¶
type SubscriberApi struct {
// contains filtered or unexported fields
}
func NewSubscriberApi ¶
func NewSubscriberApi(client *server.Client) *SubscriberApi
func (*SubscriberApi) ToAccountBlocksByAddress ¶
func (sa *SubscriberApi) ToAccountBlocksByAddress(address types.Address) (*rpc.ClientSubscription, chan []subscribe.AccountBlock, error)
func (*SubscriberApi) ToAllAccountBlocks ¶
func (sa *SubscriberApi) ToAllAccountBlocks() (*rpc.ClientSubscription, chan []subscribe.AccountBlock, error)
func (*SubscriberApi) ToMomentums ¶
func (sa *SubscriberApi) ToMomentums() (*rpc.ClientSubscription, chan []subscribe.Momentum, error)
func (*SubscriberApi) ToUnreceivedAccountBlocksByAddress ¶
func (sa *SubscriberApi) ToUnreceivedAccountBlocksByAddress(address types.Address) (*rpc.ClientSubscription, chan []subscribe.AccountBlock, error)
Click to show internal directories.
Click to hide internal directories.