-
Notifications
You must be signed in to change notification settings - Fork 12
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
how perform transaction to smart contract? #11
Comments
Hi, how can I interact with a smart contract? Thanks in advance |
Hi all! To perform a transaction to a smart contract you need to use the I want to write a blog post explaining this but I'm currently limited on time. So, it might take some time before I share it publicly. |
What if you don't want to pass anything in the value parameter of performTransaction? I've already tried to pass the value "0.0", it opens my wallet but no confirmation popup appears |
@San4es-hue Hope the cheat code would be helpful for you. |
@f4cker Can you please provide more details about the code |
@jayvs6341 |
Can you please explian me, Utf8String(tokenUri) Here is what is tokenUri ? Here is my code.
I am getting following error. Bad offset/length: offset=0 len=0 in.length=0 Can you please help me to sort it out, I am badly stuck at this. |
@jayvs6341 |
error resolved. But when it redirects to Metamask, it dont show the transaction approval dialog. I have my own smart contract tokens. And I imported that tokens to polygon test net. I have 100 tokens in my metamask and I want to send 10 to other address using my application. If I try the default performTranscation function, it always sends the default test net currency. Like ether, matics etc. How can I initiate transaction to send "MyToken" ? |
@jayvs6341 |
yes, I have the function "transfer" to transfer the tokens, and I want metamask to approve the transaction. If we go to metamask, we can manylly send the tokens correct, Same think I want to invoke through Dapp, so it will redirect to metamask and then user just needs to approve it. |
@jayvs6341 |
Thanks a lot for your ongoing support. It would be very helpful, if you can provide me some thing like sample code |
Hello @jayvs6341,
note that I import the methods that you use from please if you can help me and give us more details about your code if it works |
Hi @San4es-hue gas price null to invalid amount popup displayed |
Did any one solve the problem. I been trying to implement the same but no luck. Can any one help. |
Hi, How can I perform transaction to smart contract? Thanks
The text was updated successfully, but these errors were encountered: