Git Product home page Git Product logo

gold's People

Contributors

darxis avatar kelostrada avatar lastcanal avatar marperia avatar solatis avatar terianil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gold's Issues

Licensing Question

This project curretly has no licensing status. I would like to use this Elixir RPC interface with my own elixir Bitcoin library, which may end up in production for commercial use. Please let me know if this is acceptable.

Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path

Initially, there was only one wallet. And everything was working fine. Later I created one more wallet in my bitcoin node.

And when I run this command

iex(1)> Gold.getbalance(:bitcoin)

I am getting the below error

{:ok,
%HTTPoison.Response{
body: "{"result":null,"error":{"code":-19,"message":"Wallet file not specified (must request wallet RPC through /wallet/ uri-path)."},"id":1}\n",
headers: [
{"Content-Type", "application/json"},
{"Date", "Thu, 04 Mar 2021 04:08:53 GMT"},
{"Content-Length", "145"}
],
request: %HTTPoison.Request{
body: "{"params":[],"method":"getbalance","jsonrpc":"2.0","id":1}",
headers: [
Authorization: "Basic [hidden]"
],
method: :post,
options: [timeout: 30000, recv_timeout: 20000],
params: %{},
url: "http://localhost:8332/"
},
request_url: "http://localhost:8332/",
status_code: 500
}}

After searching in google, So to query a specific wallet.

http://127.0.0.1:8332/wallet/<wallet_name>

We have to pass like this.

I tried editing gold.ex file
case HTTPoison.post("http://" <> hostname <> ":" <> to_string(port) <> "/", Poison.encode!(command), headers, options) do

to

case HTTPoison.post("http://" <> hostname <> ":" <> to_string(port) <> "/wallet/secondwallet", Poison.encode!(command), headers, options) do

But this too did not work. Any insight on how to fix this issue will be greatly appreciated. Thanks

{:error,
%{
code: -19,
error: "Wallet file not specified (must request wallet RPC through /wallet/ uri-path).",
status: :internal_server_error
}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.