func New(caller Caller) *RPC {
	return &RPC{caller}
}
New creates a new RPC client instance from a caller.
package dcrd
import (
	"context"
	"encoding/hex"
	"encoding/json"
	"strings"
	"decred.org/dcrwallet/v2/errors"
	"github.com/decred/dcrd/chaincfg/chainhash"
	"github.com/decred/dcrd/dcrutil/v4"
	"github.com/decred/dcrd/gcs/v3"
	"github.com/decred/dcrd/txscript/v4/stdaddr"
	"github.com/decred/dcrd/wire"
	"github.com/jrick/bitset"
	"github.com/jrick/wsrpc/v2"
	"golang.org/x/sync/errgroup"
)
type Caller interface {
	Call(ctx context.Context, method string, res interface{}, args ...interface{}) error
}
type RPC struct {
	Caller
}