🦊 [Plugin] Web3 & MetaMask by NovaBloq

Hey!

Yes, we have a demo on how to sign up a user using MetaMask only see here

MetaMask allows single payments only. You could limit your functionality until user pays his membership, and do it every month.

Another way to do it would be to build a smart contract that will automatically do the payment. But for that you will need to find a Solidity developer.

Did you ever figure out how to check balance of a NFT?

Hi,

I am trying to check the balance of a users wallet for a ERC721 NFT.

I believe this can be done using web3.js. I am confused on how to set this up but I would love to learn how!

Can a kind person on here point me in the right direction how to do this. I found a post on stack exchange that showed some code to it but I’m not sure how to implement that into bubble.

Im clearly a super beginner when it comes to anything that involves code but just a simple explanation of what needs to be done to implement this is enough and I’ll figure out the rest.

Thank you!

Actually it is very easy.

One way to do it is with action Read Contract.

You will need the smart contract ABI.
Usually, all ERC721 contracts have a function balanceOf.
Use this function to check the balance (insert its name in Action name field)
In the Parameter 1, insert the wallet address to check for.

However, if you would want to check a specific NFT by its ID, you will have to use the action ownerOf

Here in Parameter 1 insert the token ID to check, in the result you will have the wallet that holds the token with this ID.

1 Like

How can i transform an Wei number to an Hexadecimal number? Because when i try to transform a Wei number that value is more than 999.99, he just gave me an error and don’t make any change
Design sem nome (19)

[WARNING] [WARNING] [WARNING]
the plugin has a issue, when i use “A web3 & Metamask Transaction sent successfully” or other function of the plugin on workflow element, he saves two or more itens on database.

It was a bug, thank you for the feedback, we have fixed it, please update to the latest version.

Can you elaborate? The plugin doesn’t have a function to save items in database. You can contact me in PM for further discussions.

Important update!

Update v.2.9

New feature: Deploy a Smart Contract

  • New Action: Deploy Contract
  • New State: Deployed Contract Address
  • New Event: Contract Deployed
Parameters to deploy

The contract will be deployed on currently connected chain in your MetaMask

We have added an example on our demo page. You can try it on any testnet.

2 Likes

Whats the differenc betwen the deploy feature and send a transaction?

In my deploy a need to send 5 arguments, 3 address (not array) and 2 uints (not array) how make this on deploy feature?

From my understanding it is not send to contract as an arrayt, it is just the way it accepts parameters. Try to do a test deploy on any testnet.

For example, the test contract from our demo page, accepts 1 parameter (a number) as argument, not an array. But still, we send the parameter in array format [45].

Deploy is the integrated function in the initiated contract, so it does what it says directly.

Send Transaction however is used for many other things besides it, and I’m not really sure how it can accept parameters such as in your case.

Hello, can you help me with that below errors? What means this?

Hello,
Can you please send me a link to the page where this is happening? Send it in PM

What’s up EzCode. First off I love the work you all do and the power house templates and plugins that come with! I was wondering if the community could so kindly guide me through how to Mint and NFT with the Metamask Plugin. I have experience with ERC-20 but I am really looking into allowing users to mint their own NFTs. Thanks and I really appreciate any screenshots or guidance :smile:
Cheers and happy coding.

Steve @ Gozy Mobile Solutions

Hi @gozymobileapps thank you for kind words!

We are currently preparing a FREE plugin that will allow you to mint NFTs in combination with web3 plugin :wink:

More info coming later today.

Regards, Andrew

1 Like

Awesome thanks for the quick response Andrew. I love this plugin and cannot wait to see where this takes the crypto industry! Cheers bro and have a great day!

Steve @ Gozy Mobile Solutions

1 Like

For anyone that was interested in minting NFTs or creating a marketplace:

1 Like

:space_invader: :robot:Thanks so much for this plugin! I will get started test driving this plugin right away. Cheers Ezcode and keep up the excellent work!

Steve @ Gozy Mobile Solutions

1 Like

Trying to convert a transaction value to wei… I can’t seem to figure out how the To Wei result value works.