jsonrpc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rpcclient.JSONRPCClient
}

Client is a JSON-RPC client for the Kwil function service. It uses the JSONRPCClient from the rpcclient package for the actual JSON-RPC communication, and implements function service methods.

func NewClient

func NewClient(target *url.URL, opts ...rpcclient.RPCClientOpts) *Client

NewClient creates a new json rpc client, target should be the base URL of the provider server, and should not include "/rpc/v1" as that is appended automatically. NOTE: No error will be returned.

func (*Client) VerifySignature

func (c *Client) VerifySignature(ctx context.Context, sender []byte, signature *auth.Signature, message []byte) error

Jump to

Keyboard shortcuts

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