expose raw wallet server request fn

This commit is contained in:
Alex Grintsvayg 2020-03-30 15:57:53 -04:00
parent e6ba61fce2
commit dd528f03f6
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
2 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,11 @@ import (
"github.com/spf13/cast"
)
// Raw makes a raw wallet server request
func (n *Node) Raw(method string, params []string, v interface{}) error {
return n.request(method, params, v)
}
// ServerVersion returns the server's version.
// https://electrumx.readthedocs.io/en/latest/protocol-methods.html#server-version
func (n *Node) ServerVersion() (string, error) {

View file

@ -9,6 +9,7 @@ import (
"time"
"github.com/lbryio/lbry.go/v2/extras/stop"
log "github.com/sirupsen/logrus"
)