Closed yzernik closed 2 years ago
Ok, got it working now. I had to put the full URL with the "http://" prefix.
$ cargo run --example getinfo http://localhost:10002 /home/yzernik/.polar/networks/1/volumes/lnd/bob/tls.cert /home/yzernik/.polar/networks/1/volumes/lnd/bob/data/chain/bitcoin/regtest/admin.macaroon
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/examples/getinfo 'http://localhost:10002' /home/yzernik/.polar/networks/1/volumes/lnd/bob/tls.cert /home/yzernik/.polar/networks/1/volumes/lnd/bob/data/chain/bitcoin/regtest/admin.macaroon`
Response {
metadata: MetadataMap {
headers: {
"content-type": "application/grpc",
"grpc-status": "0",
"grpc-message": "",
},
},
message: GetInfoResponse {
version: "0.15.0-beta commit=v0.15.0-beta",
...
I just tried running the "getinfo" example on a new Polar LND instance:
I know that the LND instance is configured correctly because I can connect and "getinfo" with the Python client: