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

contractTx with value ? #77

Closed
dellwatson opened this issue May 26, 2024 · 1 comment
Closed

contractTx with value ? #77

dellwatson opened this issue May 26, 2024 · 1 comment

Comments

@dellwatson
Copy link

How to do contractTx and assign value (dot) for sending/transfering the token ?

@wottpal
Copy link
Member

wottpal commented May 27, 2024

Just pass it as value in the options object in contractTx. It's really just a convenience wrapper around polkadot.js' contract.tx and accepts the same ContractOptions.

Tip: Make sure to pass it as BigInt and denominate it with the chains decimals you're using.

@wottpal wottpal closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants