Documentation ¶
Index ¶
- Variables
- type BatchBlock
- type BlockHeader
- type WalletChainAccountClient
- func (wac *WalletChainAccountClient) ExportAddressByPubKey(typeOrVersion, publicKey string) string
- func (wac *WalletChainAccountClient) GetAccount(address string) (int, int, int)
- func (wac *WalletChainAccountClient) GetAccountAccountNumber(address string) (int, error)
- func (wac *WalletChainAccountClient) GetBlockHeader(number *big.Int) (*BlockHeader, error)
- func (wac *WalletChainAccountClient) GetBlockInfo(blockNumber *big.Int) ([]*account.BlockInfoTransactionList, error)
- func (wac *WalletChainAccountClient) GetTransactionByHash(hash string) (*account.TxMessage, error)
- func (wac *WalletChainAccountClient) SendTx(rawTx string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchBlockAheadOfProvider = errors.New("the BatchBlock's internal state is ahead of the provider")
)
Functions ¶
This section is empty.
Types ¶
type BatchBlock ¶
type BatchBlock struct {
// contains filtered or unexported fields
}
func NewBatchBlock ¶
func NewBatchBlock(rpcClient *WalletChainAccountClient, fromHeader *BlockHeader, confDepth *big.Int) *BatchBlock
func (*BatchBlock) LastTraversedHeader ¶
func (f *BatchBlock) LastTraversedHeader() *BlockHeader
func (*BatchBlock) LatestHeader ¶
func (f *BatchBlock) LatestHeader() *BlockHeader
func (*BatchBlock) NextHeaders ¶
func (f *BatchBlock) NextHeaders(maxSize uint64) ([]BlockHeader, error)
type BlockHeader ¶
type WalletChainAccountClient ¶
type WalletChainAccountClient struct { Ctx context.Context ChainName string AccountRpClient account.WalletAccountServiceClient }
func NewWalletChainAccountClient ¶
func NewWalletChainAccountClient(ctx context.Context, rpc account.WalletAccountServiceClient, chainName string) (*WalletChainAccountClient, error)
func (*WalletChainAccountClient) ExportAddressByPubKey ¶
func (wac *WalletChainAccountClient) ExportAddressByPubKey(typeOrVersion, publicKey string) string
func (*WalletChainAccountClient) GetAccount ¶
func (wac *WalletChainAccountClient) GetAccount(address string) (int, int, int)
func (*WalletChainAccountClient) GetAccountAccountNumber ¶
func (wac *WalletChainAccountClient) GetAccountAccountNumber(address string) (int, error)
func (*WalletChainAccountClient) GetBlockHeader ¶
func (wac *WalletChainAccountClient) GetBlockHeader(number *big.Int) (*BlockHeader, error)
func (*WalletChainAccountClient) GetBlockInfo ¶
func (wac *WalletChainAccountClient) GetBlockInfo(blockNumber *big.Int) ([]*account.BlockInfoTransactionList, error)
func (*WalletChainAccountClient) GetTransactionByHash ¶
func (wac *WalletChainAccountClient) GetTransactionByHash(hash string) (*account.TxMessage, error)
Click to show internal directories.
Click to hide internal directories.