expose raw wallet server request fn
This commit is contained in:
parent
e6ba61fce2
commit
dd528f03f6
|
@ -14,6 +14,11 @@ import (
|
||||||
"github.com/spf13/cast"
|
"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.
|
// ServerVersion returns the server's version.
|
||||||
// https://electrumx.readthedocs.io/en/latest/protocol-methods.html#server-version
|
// https://electrumx.readthedocs.io/en/latest/protocol-methods.html#server-version
|
||||||
func (n *Node) ServerVersion() (string, error) {
|
func (n *Node) ServerVersion() (string, error) {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/lbryio/lbry.go/v2/extras/stop"
|
"github.com/lbryio/lbry.go/v2/extras/stop"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue