Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractApi ¶
type ContractApi interface {
GetTokenInfoById(ctx context.Context, tokenId string) (*api.RpcTokenInfo, error)
}
func NewContractApi ¶
func NewContractApi(cc *rpc.Client) ContractApi
type LedgerApi ¶
type LedgerApi interface { GetSnapshotGenesisBlock() (*api.SnapshotBlock, error) GetSnapshotBlockByHash(ctx context.Context, hash types.Hash) (*api.SnapshotBlock, error) GetSnapshotBlockByHeight(ctx context.Context, height uint64) (*api.SnapshotBlock, error) GetLatestSnapshotHash(ctx context.Context) (*types.Hash, error) GetAccountBlockByHash(ctx context.Context, blockHash types.Hash) (*api.AccountBlock, error) GetAccountBlocks(ctx context.Context, address types.Address, hash *types.Hash, count uint64) ([]*api.AccountBlock, error) GetAccountInfoByAddress(ctx context.Context, address types.Address) (*api.AccountInfo, error) GetConfirmedBalances(ctx context.Context, snapshotHash types.Hash, addrList []types.Address, tokenIds []types.TokenTypeId) (result *api.GetBalancesRes, err error) GetLatestAccountBlock(ctx context.Context, address types.Address) (*api.AccountBlock, error) GetUnreceivedBlocksByAddress(ctx context.Context, address types.Address, page uint64, pageSize uint64) ([]*api.AccountBlock, error) GetPoWDifficulty(ctx context.Context, param *api.GetPoWDifficultyParam) (*api.GetPoWDifficultyResult, error) SendRawTransaction(ctx context.Context, accountBlock *api.AccountBlock) error }
LedgerApi ...
func NewLedgerApi ¶
type NetApi ¶
type RpcClient ¶
func NewRpcClient ¶
Click to show internal directories.
Click to hide internal directories.