Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BLOCKED] Add getbalance #74

wants to merge 1 commit into
base: master


Copy link

commented Aug 13, 2019

Blocked on rust-bitcoin v0.19:

Fixes #72.

@ciyool could you test if this works for you?


This comment has been minimized.

Copy link

commented Aug 15, 2019

Fixes #72.

@ciyool could you test if this works for you?

I tested and got the result:

rust code:
let info=client.get_balance(Some(6),Some(false));
println!("get_balance: {:?}",info);

JSON-RPC request: {"method":"getbalance","params":["*",6,false],"id":3,"jsonrpc":"2.0"}
JSON-RPC response: {"result":0.13005387,"error":null,"id":3,"jsonrpc":null}
get_balance: Err(JsonRpc(Json(Error("invalid type: floating point `0.13005387`, expected i64", line: 0, column: 0))))

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 15, 2019

Ah, right. Let's wait until rust-bitcoin v0.19 lands which has a stable Amount type that can handle floats correctly.

@stevenroose stevenroose changed the title Add getbalance [BLOCKED] Add getbalance Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.