api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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

func (LedgerApi) GetAccountBlockByHash

func (l LedgerApi) GetAccountBlockByHash(hash types.Hash) (*api.AccountBlock, error)

func (LedgerApi) GetAccountBlocksByHeight

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

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

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

Account info

func (LedgerApi) GetDetailedMomentumsByHeight

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

func (LedgerApi) GetFrontierAccountBlock

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

Blocks

func (LedgerApi) GetFrontierMomentum

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

Momentums

func (LedgerApi) GetMomentumBeforeTime

func (l LedgerApi) GetMomentumBeforeTime(timestamp uint64) (*api.Momentum, error)

func (LedgerApi) GetMomentumByHash

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

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

func (LedgerApi) GetUnreceivedBlocksByAddress

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

func (LedgerApi) PublishRawTransaction

func (l LedgerApi) PublishRawTransaction(block *nom.AccountBlock) error

type StatsApi

type StatsApi struct {
	// contains filtered or unexported fields
}

func NewStatsApi

func NewStatsApi(c client.Client) StatsApi

func (StatsApi) NetworkInfo

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

func (StatsApi) OsInfo

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

func (StatsApi) ProcessInfo

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

func (StatsApi) SyncInfo

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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