api

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewLedgerApi(client *server.Client) *LedgerApi

func (*LedgerApi) GetAccountBlockByHash

func (la *LedgerApi) GetAccountBlockByHash(blockHash types.Hash) (*api.AccountBlock, error)

func (*LedgerApi) GetAccountBlocksByHeight

func (la *LedgerApi) GetAccountBlocksByHeight(address types.Address, height, count uint64) (*api.AccountBlockList, error)

func (*LedgerApi) GetAccountBlocksByPage

func (la *LedgerApi) GetAccountBlocksByPage(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)

func (*LedgerApi) GetAccountInfoByAddress

func (la *LedgerApi) GetAccountInfoByAddress(address types.Address) (*api.AccountInfo, error)

func (*LedgerApi) GetDetailedMomentumsByHeight

func (la *LedgerApi) GetDetailedMomentumsByHeight(height, count uint64) (*api.DetailedMomentumList, error)

func (*LedgerApi) GetFrontierAccountBlock

func (la *LedgerApi) GetFrontierAccountBlock(address types.Address) (*api.AccountBlock, error)

AccountBlocks

func (*LedgerApi) GetFrontierMomentum

func (la *LedgerApi) GetFrontierMomentum() (*api.Momentum, error)

Momentum

func (*LedgerApi) GetMomentumBeforeTime

func (la *LedgerApi) GetMomentumBeforeTime(timestamp int64) (*api.Momentum, error)

func (*LedgerApi) GetMomentumByHash

func (la *LedgerApi) GetMomentumByHash(hash types.Hash) (*api.Momentum, error)

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 (la *LedgerApi) GetUnreceivedBlocksByAddress(address types.Address, pageIndex, pageSize uint32) (*api.AccountBlockList, error)

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 NewStatsApi(client *server.Client) *StatsApi

func (*StatsApi) NetworkInfo

func (sa *StatsApi) NetworkInfo() (*api.NetworkInfoResponse, error)

func (*StatsApi) OsInfo

func (sa *StatsApi) OsInfo() (*api.OsInfoResponse, error)

func (*StatsApi) ProcessInfo

func (sa *StatsApi) ProcessInfo() (*api.ProcessInfoResponse, error)

func (*StatsApi) SyncInfo

func (sa *StatsApi) SyncInfo() (*protocol.SyncInfo, 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL