client

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const APINamespace = "miner.MinerAPI"
View Source
const MajorVersion = 0
View Source
const MethodNamespace = "Filecoin"

Variables

This section is empty.

Functions

func NewCommonRPC

func NewCommonRPC(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)

NewCommonRPC creates a new http jsonrpc client.

func NewGatewayRPC

func NewGatewayRPC(ctx context.Context, cfg *config.GatewayNode) (gatewayAPIV2.IGateway, jsonrpc.ClientCloser, error)

func NewMinerRPC

func NewMinerRPC(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.MinerAPI, jsonrpc.ClientCloser, error)

NewMinerRPC creates a new http jsonrpc client for miner

func NewSubmitBlockRPC

func NewSubmitBlockRPC(ctx context.Context, apiInfo *config.APIInfo) (v1.FullNode, jsonrpc.ClientCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL