Documentation
¶
Index ¶
- Constants
- func AwaitTxAccepted(ctx context.Context, c *Client, address ids.ShortID, nonce uint64, ...) error
- type BalanceArgs
- type BalanceReply
- type BlockArgs
- type BlockReply
- type Client
- func (c *Client) Balance(ctx context.Context, address ids.ShortID, assetID ids.ID, ...) (uint64, error)
- func (c *Client) Block(ctx context.Context, blkID ids.ID, options ...rpc.Option) (*block.Stateless, error)
- func (c *Client) Genesis(ctx context.Context, options ...rpc.Option) (*genesis.Genesis, error)
- func (c *Client) IssueTx(ctx context.Context, newTx *tx.Tx, options ...rpc.Option) (ids.ID, error)
- func (c *Client) LastAccepted(ctx context.Context, options ...rpc.Option) (ids.ID, *block.Stateless, error)
- func (c *Client) Loan(ctx context.Context, chainID ids.ID, options ...rpc.Option) (uint64, error)
- func (c *Client) Message(ctx context.Context, txID ids.ID, options ...rpc.Option) (*warp.UnsignedMessage, []byte, error)
- func (c *Client) Network(ctx context.Context, options ...rpc.Option) (uint32, ids.ID, ids.ID, error)
- func (c *Client) Nonce(ctx context.Context, address ids.ShortID, options ...rpc.Option) (uint64, error)
- type GenesisReply
- type IssueTxArgs
- type IssueTxReply
- type LastAcceptedReply
- type LoanArgs
- type LoanReply
- type MessageArgs
- type MessageReply
- type NetworkReply
- type NonceArgs
- type NonceReply
- type PingService
- type Server
Constants ¶
View Source
const DefaultPollingInterval = 50 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalanceArgs ¶
type BalanceReply ¶
type BalanceReply struct {
Balance uint64 `json:"balance"`
}
type BlockReply ¶
type Client ¶
type Client struct {
Req rpc.EndpointRequester
}
func (*Client) LastAccepted ¶
type GenesisReply ¶
type IssueTxArgs ¶
type IssueTxArgs struct {
Tx []byte `json:"tx"`
}
type IssueTxReply ¶
type LastAcceptedReply ¶
type MessageArgs ¶
type MessageReply ¶
type MessageReply struct { Message *warp.UnsignedMessage `json:"message"` Signature []byte `json:"signature"` }
type NetworkReply ¶
type NonceReply ¶
type NonceReply struct {
Nonce uint64 `json:"nonce"`
}
type PingService ¶ added in v1.13.2
func (*PingService) StreamPing ¶ added in v1.13.2
func (p *PingService) StreamPing(_ context.Context, server *connect.BidiStream[xsvm.StreamPingRequest, xsvm.StreamPingReply]) error
type Server ¶
type Server interface { Network(r *http.Request, args *struct{}, reply *NetworkReply) error Genesis(r *http.Request, args *struct{}, reply *GenesisReply) error Nonce(r *http.Request, args *NonceArgs, reply *NonceReply) error Balance(r *http.Request, args *BalanceArgs, reply *BalanceReply) error Loan(r *http.Request, args *LoanArgs, reply *LoanReply) error IssueTx(r *http.Request, args *IssueTxArgs, reply *IssueTxReply) error LastAccepted(r *http.Request, args *struct{}, reply *LastAcceptedReply) error Block(r *http.Request, args *BlockArgs, reply *BlockReply) error Message(r *http.Request, args *MessageArgs, reply *MessageReply) error }
Server defines the xsvm API server.
Click to show internal directories.
Click to hide internal directories.