H Guys,
Does anybody know if it's possible to connect with metamask? So people can pay and withdraw erc20 tokens?
Kg,
Co
any luck with this?
I see some project doing this but they are using unity ...
Seems no one answer here for construct3 and cannot find any resource on the net.
From looking at their getting started guide it seems that once Metamask is installed in the browser, any new tab should have access to a window.ethereum object.
You should be able to access that object from a C3 script with out any problems.
DiegoM any solution to call a smart contract with C3 and web3.min.js ?
According to their github repository your can use the file in a browser by loading it using their CDN.
In this thread I posted a project showing how to load a library from a CDN.
construct.net/en/forum/construct-3/scripting-51/install-sdks-cdn-npm-yarn-162441
You can take a look and see if that works for you, I haven't tried it myself.
In any case, if the library is loaded successfully, you are on your own and will need to write more Javascript to make use of it.
Redsun
Just tried the other project with the web3.js CDN and it works. The library is loaded and then a Web3 object becomes available in the global scope.
Past that I can't really help you anymore because I don't know anything about ethereum or smart contracts.
Your best bet would be the documentation for Web3.js
Is anyone working on this? If someone can work and make a script/plugin that interact with the meta mask plugin to check the nft owned and check the balance I'm ready to pay for it :)
DiegoM Would you mind to post the projects that loads the web3.js?
Thank you
Ribis
Here you go
dropbox.com/s/pvkcwbbiw7ypd2m/LoadWeb3FromCDN.c3p
Develop games in your browser. Powerful, performant & highly capable.
DiegoM you are the king... omg .. it works ! Thanks you soooo mutch :D !!! Let's go create game now !
DiegoM Awesome, it works great! Thank you.
I am looking to learn more about this, would anyone care to share a few tips or ways on how this could be incorporated to enhance a few of the games I am currently working on? This would be the equivalent to like.. Inventing the wheel for my games. For example.. I have been looking for a way to simply exchange my in-game currency for a custom crypto token. It sounds so simple saying it out loud. *facepalm*
I also really wanted to learn more about this topic, but it's hard to find any content that allows us to create a plugin or even a plugin to use.
I wanted to connect the c3 to bsc network by metamask
any chance someone can walk me through this step by step?
I think I have a solution that works.