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

Create methods dynamically #10

Open
bonustrack opened this issue Jun 28, 2018 · 0 comments
Open

Create methods dynamically #10

bonustrack opened this issue Jun 28, 2018 · 0 comments

Comments

@bonustrack
Copy link
Collaborator

Blocked by #9

Based on the file created from #9, we should create function from steemd API dynamically. The goal is to allow this kind of possibility with lightrpc:

// with callback
client.getAccounts(['fabien'], (err, result) => {});

// with promise
client.getAccounts(['fabien']).then(result => {}); 

// with named params
client.getAccounts({ names: ['fabien'] }, (err, result) => {}); 

// with named params and promise
client.getAccounts({ names: ['fabien'] }).then(result => {});

// empty param should display description of the method
client.getAccounts();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant