Documentation ¶
Index ¶
- Variables
- type BlockDaemonBlock
- type BlockDaemonBlockEvent
- type BlockDaemonBlockEventMeta
- type BlockDaemonBlockMeta
- type BlockDaemonBlockTransaction
- type BlockDaemonCallResponse
- type BlockDaemonCallResponseError
- type BlockDaemonGetBlockNumberBody
- type BlockDaemonProvider
- type ChainBlock
- type ProviderAccountsHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_NETWORK = "mainnet"
View Source
var Log = utils.Log
Functions ¶
This section is empty.
Types ¶
type BlockDaemonBlock ¶
type BlockDaemonBlockEvent ¶
type BlockDaemonBlockEvent struct { ID string `json:"id"` TransactionID string `json:"transaction_id"` Type string `json:"type"` Denomination string `json:"denomination"` Source string `json:"source"` Meta BlockDaemonBlockEventMeta `json:"meta"` Date int `json:"date"` Amount float64 `json:"amount"` Decimals int `json:"decimals"` }
type BlockDaemonBlockMeta ¶
type BlockDaemonBlockTransaction ¶
type BlockDaemonBlockTransaction struct { ID string `json:"id"` BlockID string `json:"block_id"` Date int `json:"date"` Status string `json:"status"` NumEvents int `json:"num_events"` Meta BlockDaemonBlockMeta `json:"meta"` BlockNumber int `json:"block_number"` Events []BlockDaemonBlockEvent `json:"events"` }
type BlockDaemonCallResponse ¶
type BlockDaemonCallResponse[T any] struct { JSONRPC string `json:"jsonrpc"` ID int `json:"id"` Result T `json:"result"` Error *BlockDaemonCallResponseError `json:"error"` }
type BlockDaemonProvider ¶
type BlockDaemonProvider struct { }
func (*BlockDaemonProvider) GetByBlockNumber ¶
func (x *BlockDaemonProvider) GetByBlockNumber(chainType string, blockNumber string) (ChainBlock, error)
get chain type's block by block number
func (*BlockDaemonProvider) GetLatestBlockNumber ¶
func (x *BlockDaemonProvider) GetLatestBlockNumber(chainType string) (string, error)
get chain type's latest block number
func (*BlockDaemonProvider) Ping ¶
func (x *BlockDaemonProvider) Ping() error
health check ping method. Returns error if ping doesn't pass
func (*BlockDaemonProvider) SupportedChains ¶
func (x *BlockDaemonProvider) SupportedChains() []string
type ChainBlock ¶
type ChainBlock = provider.ChainBlock
type ProviderAccountsHandler ¶
type ProviderAccountsHandler = provider_accounts_handler.ProviderAccountsHandler
Click to show internal directories.
Click to hide internal directories.