Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Question: JSON-RPC and wallet #428

Closed
kornrunner opened this issue May 21, 2018 · 6 comments
Closed

Question: JSON-RPC and wallet #428

kornrunner opened this issue May 21, 2018 · 6 comments

Comments

@kornrunner
Copy link

Hi,

This actually isn't an issue, but rather a question on usage. I've tried to find it in docs and existing issues, but I've failed, so I apologize upfront if I've missed something.

I've initially used neo-cli and it's RPC API. I've got an application written in PHP that's using JSON RPC to communicate with neo node and do stuff. However, recently I've wanted to do something with smart contracts, and neo-cli isn't supporting them in JSON RPC API yet, so I've stumbled upon your project.

What I'm looking for is: how can I open my wallet when running np-api-server? I've managed to open the wallet by using np-prompt, but since I need RPC endpoint open as well for contracts, and I need my funds available for smart contrancts - how can I acheive this?

Thank you!

@dethos
Copy link
Contributor

dethos commented Jun 5, 2018

I'm not sure this is possible at the moment. According to this issue, #189, some of the RPC methods that require the open wallet aren't implemented yet.

@metachris
Copy link
Contributor

Which RPC methods in particular would you like to use?

@kornrunner
Copy link
Author

I was hoping for sendtoaddress which I reckon I'd need unlocked wallet.

@dethos
Copy link
Contributor

dethos commented Jun 6, 2018

I'm currently working on a PR that might solve this issue and allow us to add the missing methods, that depend on an open wallet.

I should have the first draft ready in the next few days.

@metachris
Copy link
Contributor

@kornrunner is this helping you, and do you have any more reason for this issue to stay open?

@kornrunner
Copy link
Author

It looks like this is it. I'll still have to check it out, but I'll close this one and open a new one if anything is out of order.

Thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants