Versions in this module Expand all Collapse all v1 v1.11.10 Jul 13, 2024 Changes in this version + const DefaultPollingInterval + func AwaitTxAccepted(ctx context.Context, c Client, address ids.ShortID, nonce uint64, ...) error + type BalanceArgs struct + Address ids.ShortID + AssetID ids.ID + type BalanceReply struct + Balance uint64 + type BlockArgs struct + BlockID ids.ID + type BlockReply struct + Block *block.Stateless + type Client interface + Balance func(ctx context.Context, address ids.ShortID, assetID ids.ID, ...) (uint64, error) + Block func(ctx context.Context, blkID ids.ID, options ...rpc.Option) (*block.Stateless, error) + Genesis func(ctx context.Context, options ...rpc.Option) (*genesis.Genesis, error) + IssueTx func(ctx context.Context, tx *tx.Tx, options ...rpc.Option) (ids.ID, error) + LastAccepted func(ctx context.Context, options ...rpc.Option) (ids.ID, *block.Stateless, error) + Loan func(ctx context.Context, chainID ids.ID, options ...rpc.Option) (uint64, error) + Message func(ctx context.Context, txID ids.ID, options ...rpc.Option) (*warp.UnsignedMessage, []byte, error) + Network func(ctx context.Context, options ...rpc.Option) (uint32, ids.ID, ids.ID, error) + Nonce func(ctx context.Context, address ids.ShortID, options ...rpc.Option) (uint64, error) + func NewClient(uri, chain string) Client + type GenesisReply struct + Genesis *genesis.Genesis + type IssueTxArgs struct + Tx []byte + type IssueTxReply struct + TxID ids.ID + type LastAcceptedReply struct + Block *block.Stateless + BlockID ids.ID + type LoanArgs struct + ChainID ids.ID + type LoanReply struct + Amount uint64 + type MessageArgs struct + TxID ids.ID + type MessageReply struct + Message *warp.UnsignedMessage + Signature []byte + type NetworkReply struct + ChainID ids.ID + NetworkID uint32 + SubnetID ids.ID + type NonceArgs struct + Address ids.ShortID + type NonceReply struct + Nonce uint64 + type Server interface + Balance func(r *http.Request, args *BalanceArgs, reply *BalanceReply) error + Block func(r *http.Request, args *BlockArgs, reply *BlockReply) error + Genesis func(r *http.Request, args *struct{}, reply *GenesisReply) error + IssueTx func(r *http.Request, args *IssueTxArgs, reply *IssueTxReply) error + LastAccepted func(r *http.Request, args *struct{}, reply *LastAcceptedReply) error + Loan func(r *http.Request, args *LoanArgs, reply *LoanReply) error + Message func(r *http.Request, args *MessageArgs, reply *MessageReply) error + Network func(r *http.Request, args *struct{}, reply *NetworkReply) error + Nonce func(r *http.Request, args *NonceArgs, reply *NonceReply) error + func NewServer(ctx *snow.Context, genesis *genesis.Genesis, state database.KeyValueReader, ...) Server