Hello,
How to let only owner of an nft collection to join the group chat ?
Thanks
You could use the API e.g. getTokenIdMetadata to find the owner_of address of a particular NFT and only allow access based on this ownership.
If you mean owner of the contract, you could call the owner
function on the contract to get the owner address.
Hey,
How to turn it to a web version ?
Thanks
Hello could you add more details on what you mean.
So i donât want an app, I want it working on a website
You can take the principles of this boilerplate (how the chat is set up, etc.), and apply it to a site/app with another framework e.g. with React (and react-moralis).
I have followed instructions in video but my ios simulator doesnât have Metamask and is failing to open it. What can I do with it?
Youâll need to install the MetaMask app.
Thanks for response! But I canât install Metamask to iOS simulator. Maybe Iâm doing smth wrong (
Do you get an error? You can look up some tutorials on how to install apps.
I have faced Error while connecting the wallet
Possible Unhandled promises Rejection (id:1):
Error: No wallets found
Please any one help me
Do you have a mobile wallet app installed e.g. MetaMask or Trust Wallet?
Yeah I have installed Meta Mask app in my mobile
Make sure you have added your serverUrl and appId here and renamed to .env
.
Can you try installing another wallet like Trust Wallet. Are you using an emulator or physical device? Usually the boilerplate can pick up any wallets by default when you go to authenticate but it leads to other errors like this one.
The server URL and app id were added in .env file.
Am using a physical device. I will try to add trust wallet.
when i click Crypto wallet login in my moralis app its redirect to walletconnect.com/wallets page and that page got 404 Error.
Thank you I resolved this problem and after that, I got another error
Unhandled promise Rejection
Error : Invalid function: âgetAllMessagesâ
When does this error happen? Do you know where getAllMessages
is in the boilerplate code or is this your own? If youâre trying to call a cloud function from your server, then it doesnât exist.
yeah bro got it itâs a cloud function, and I try to add a cloud function from CLI using the below command
moralis-admin-cli watch-cloud-folder --moralisApiKey YhcLPq0C32yWwAR --moralisApiSecret 2aVV8xSM6RJJrEm --moralisSubdomain u6sdhue18rrp.grandmoralis.com --autoSave 1 --moralisCloudfolder /path/to/cloud/folder
I found the MoralisAPIkey from WEB3 APIâs section, Where can I find moralisApiSecrat and subdomain?