Do you see your collection show up on the Explore page in general (when your wallet is on the right chain where the contract is)?
Make sure the collection is defined in helpers\collections.js.
Do you see your collection show up on the Explore page in general (when your wallet is on the right chain where the contract is)?
Make sure the collection is defined in helpers\collections.js.
Thanks, never thought about defining collections! Good night and thanks for the fast reply <3
yes added environment variables to vercel. but still getting this error
react-jsx-runtime.production.min.js:216 NoMoralisContextProviderError: Make sure to only call useMoralis within a
react-jsx-runtime.production.min.js:260 Uncaught NoMoralisContextProviderError: Make sure to only call useMoralis within a
Try hardcoding the serverUrl and appId in your <MoralisProvider>
component just to make sure this is an issue to do with the environment variables.
Hi ser,
Everything was working fine. And today, itās impossible to connect to the marketplaceā¦ each time you authenticate, it asks you to re-authenticate, so no balance etcā¦ However, I did not touch anything
Is your server awake? If it is, try restarting it. Check your browser console for any errors.
Ok work well nowā¦ Thanks
Hey guys,
I am trying to create an event sync in Moralis but I am unable to select the topic and hence, unable to proceed. Please help.
Are you using the admin UI? Make sure you copy in the whole ABI of your contract to get a list of the topics available.
The error resolved. Thanks!
I listed my NFT successfully but cannot see it the ābuy nowā option. I checked on etherscan and I see the create market Item by the contract.
Also I have the contract address and ABI in MoralisDappProvider.js
I am hosting my own server (parse server)
Do you have the market item in your MarketItems
class / table? This is the buy now code that depends on it.
no itās not thereā¦ is this database still valid with my own server?
You need to sync the MarketItemCreated event to your server. You will need to do this with the Streams API now for your self-hosted server.
ok, abit confused on how this works though, should I just add these 2 lines to my .env in the parse server project?
USE_STREAMS = ātrueā
STREAMS_WEBHOOK_URL = ā/streams-webhookā
You can check out this demo.
You can find out more about the Streams API.
There is a new tutorial here which may be easier to follow.
ok I created a stream on Moralis.io by following the tutorial, but not sure how to link it to the boilerplate code. it should be connected to my MongoDB now
Looks like you donāt have to worry about USE_STREAMS
, it isnāt being used in the Parse server demo.
ok I created a stream on Moralis.io by following the tutorial, but not sure how to link it to the boilerplate code
The boilerplate queries your databaseās MarketItems
table by default. So if you set up a stream for the MarketItemCreated
events and save them to this table in the same way (like with hosted servers), it should work.
What you can do is test first by manually creating the event record/object for one of your NFTs that is for sale to make sure the boilerplate app works with it first.
how can I save the event to the table MarketItems? it is a Moralis object right? are Moralis objects stored on Moralis servers or can I store them on parse server?