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

Round out ApiPromise examples #263

Merged
merged 5 commits into from
Oct 12, 2018
Merged

Round out ApiPromise examples #263

merged 5 commits into from
Oct 12, 2018

Conversation

jacogr
Copy link
Member

@jacogr jacogr commented Oct 12, 2018

No description provided.

const transfer = api.tx.balances.transfer(BOB_ADDR, 12345);

// sign the transaction using our account
transfer.sign(alice, aliceNonce);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe sign should already take care of nonce? Not sure if it should go here, on in the combined api-observable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it does return a promise, yes. Currently it just returns the observable. We had this chat a couple of days ago, not sure which way is best - I would love it to be optional as well. For now, not yet...

@jacogr jacogr merged commit 64c5868 into master Oct 12, 2018
@jacogr jacogr deleted the jg-api-examples branch October 12, 2018 12:52
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants