Documentation
¶
Index ¶
- Constants
- func NewCommonRPC(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
- func NewGatewayRPC(ctx context.Context, cfg *config.GatewayNode) (gatewayAPIV2.IGateway, jsonrpc.ClientCloser, error)
- func NewMinerRPC(ctx context.Context, addr string, requestHeader http.Header, ...) (api.MinerAPI, jsonrpc.ClientCloser, error)
- func NewSubmitBlockRPC(ctx context.Context, apiInfo *config.APIInfo) (v1.FullNode, jsonrpc.ClientCloser, error)
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.