-
Notifications
You must be signed in to change notification settings - Fork 31
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 to send theta or tfuel from theta browser wallet to smart contract in the dapp when I call smart contract function #51
Comments
Thanks for the question! We recently released Theta v3.1.0, which provides support for Web3.js and Ethereum DApp tools like Metamask, Truffle. Please checkout the link below for more info (some of the guides are still work-in-progess atm): https://docs.thetatoken.org/docs/turing-complete-smart-contract-support The feature you mentioned, i.e. staking Theta/TFuel from a smart contract, is not yet supported by the Theta smart contract virtual machine. But we believe with web3.js/Truffle support, you can develop other interesting DApps. |
Thank you so much for your reply. |
Thanks Martin for your feedback! We may look into how to support Theta/TFuel staking through smart contract in the future. There are no set timeline yet, but we'll announce it through Twitter/Medium whenever it is ready. In the meanwhile, even without the staking feature, I think we can already develop other interesting DApps similar to those on Ethereum/Polygon/BSC (lending, DEX, NFT, etc) using the tools you're already familiar with: https://docs.thetatoken.org/docs/web3-stack-truffle Welcome to experiment new ideas with these tools, any feedback is appreciated! |
Thanks JieYiLong for your reply. |
Yes, please check out the following links for more detail: https://docs.thetatoken.org/docs/web3-stack-metamask |
Sorry for my asking. I was on the old version of theta doc. I realized above link after refreshing doc URL. Thanks for your support. |
Dear JieYi Long |
It is still under development. We'll look into how to support event subscription with the ETH RPC Adapter. Once that's implemented you should be able to use web3.js or ethers.js for event listening. We'll update our documentation once that feature is released. Thanks! |
Thanks for your support, Jieyi Long. |
Hello @jieyilong |
Hello,
I am glad to write this issue and I am also very happy for writing message here now.
I am basically Ethereum blockchain developer with 5+ years of experience in Solidity/Web3, but I am developing Theta Dapp like yield farming 2 months ago.
I am referencing the following document provided thetatoken.org for development.
https://docs.thetatoken.org/docs/theta-js-sdk-getting-started
The reason I am sending you this message is because there is one problem during I am developing dapp.
The approximate features of this dapp are:
In my dapp, each users will stake their Theta token to the smart contract, then smart contract will mine and transfer token to users.
Next, smart contract will stake staked theta token to the GNode.
Once smart contract get Tfuel as reward from the GNode, it will disperse this tfuel to users.
The guide document on the above mentions the ability to transmit THETA between addresses.
However, in the WEB3.JS library, there is a function to send ETH when calling a smart contract.(i.e: {value: weiAmount}).
But I couldn't find this feature in the theta developer guidance.
I'm sending this because I need your help with this feature, and I'd appreciate it if anyone could reply to it.
Thanks
The text was updated successfully, but these errors were encountered: