Documentation ¶
Overview ¶
Package ethclient provides a client for the Quai RPC API.
Index ¶
- type Client
- func (ec *Client) Append(ctx context.Context, header *types.Header, manifest types.BlockManifest, ...) (types.Transactions, bool, bool, error)
- func (ec *Client) Close()
- func (ec *Client) DownloadBlocksInManifest(ctx context.Context, hash common.Hash, manifest types.BlockManifest, ...)
- func (ec *Client) GenerateRecoveryPendingHeader(ctx context.Context, pendingHeader *types.Header, ...) error
- func (ec *Client) GetManifest(ctx context.Context, blockHash common.Hash) (types.BlockManifest, error)
- func (ec *Client) GetPendingEtxsFromSub(ctx context.Context, hash common.Hash, location common.Location) (types.PendingEtxs, error)
- func (ec *Client) GetPendingEtxsRollupFromSub(ctx context.Context, hash common.Hash, location common.Location) (types.PendingEtxsRollup, error)
- func (ec *Client) HeaderByHash(ctx context.Context, hash common.Hash) *types.Header
- func (ec *Client) HeaderByNumber(ctx context.Context, number string) *types.Header
- func (ec *Client) NewGenesisPendingHeader(ctx context.Context, header *types.Header)
- func (ec *Client) RequestDomToAppendOrFetch(ctx context.Context, hash common.Hash, entropy *big.Int, order int)
- func (ec *Client) SendPendingEtxsRollupToDom(ctx context.Context, pEtxsRollup types.PendingEtxsRollup) error
- func (ec *Client) SendPendingEtxsToDom(ctx context.Context, pEtxs types.PendingEtxs) error
- func (ec *Client) SetSyncTarget(ctx context.Context, header *types.Header)
- func (ec *Client) SubRelayPendingHeader(ctx context.Context, pendingHeader types.PendingHeader, newEntropy *big.Int, ...)
- func (ec *Client) UpdateDom(ctx context.Context, oldTerminus common.Hash, ...)
- type Termini
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines typed wrappers for the Quai RPC API.
func (*Client) DownloadBlocksInManifest ¶ added in v0.19.0
func (*Client) GenerateRecoveryPendingHeader ¶
func (*Client) GetManifest ¶
func (ec *Client) GetManifest(ctx context.Context, blockHash common.Hash) (types.BlockManifest, error)
GetManifest will get the block manifest ending with the parent hash
func (*Client) GetPendingEtxsFromSub ¶ added in v0.19.0
func (ec *Client) GetPendingEtxsFromSub(ctx context.Context, hash common.Hash, location common.Location) (types.PendingEtxs, error)
GetPendingEtxsFromSub gets the pendingEtxsRollup from the region
func (*Client) GetPendingEtxsRollupFromSub ¶ added in v0.19.0
func (ec *Client) GetPendingEtxsRollupFromSub(ctx context.Context, hash common.Hash, location common.Location) (types.PendingEtxsRollup, error)
GetPendingEtxsRollupFromSub gets the pendingEtxsRollup from the region
func (*Client) HeaderByHash ¶
func (*Client) HeaderByNumber ¶
func (*Client) NewGenesisPendingHeader ¶
func (*Client) RequestDomToAppendOrFetch ¶
func (*Client) SendPendingEtxsRollupToDom ¶
func (*Client) SendPendingEtxsToDom ¶
func (*Client) SetSyncTarget ¶ added in v0.21.0
func (*Client) SubRelayPendingHeader ¶
Click to show internal directories.
Click to hide internal directories.