Questions tagged [moralis]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Cannot start Moralis self-hosted server

I tried self hosting the Moralis server using the tutorials in the website ,but I get the error referenceerror: indexeddb is not defined Since I am not into the backend servers,I could not comprehend ...
Raaghav Manivel's user avatar
2 votes
0 answers
28 views

How to create a "Transaction history" part of a Wallet App?

guys! Right now I am working on web3 project, which has a wallet as it's one parts. Can you give me advices on how to create this Transaction History for user, because I am kind of stuck on it. First ...
Kind_Man's user avatar
0 votes
0 answers
24 views

Can't fetch the entrance Fee from my deployed contract to my frontend component

PART OF FREE CODE CAMP BLOCKCHAIN COURSE Hey guys I am using react-moralis library to connect with the deployed smart contract. The smart contract is a Raffle based contract //SPDX-License-Identifier: ...
eik's user avatar
  • 1
1 vote
1 answer
74 views

Moralis.Auth.verify 400 bad request error

I'm following the moralis tutorial to build an authentication and authorization system with moralis and reactJS https://docs.moralis.io/authentication-api/evm/how-to-authenticate-users-with-metamask-...
Shadq's user avatar
  • 93
0 votes
0 answers
43 views

Translating decoded multi-swap transactions into Buys/Sells

How can I determine if a transaction is a buy or a sale of a certain token? I'm taking as an example this multi-swap transaction: Decoded tx data from Moralis: https://pastebin.com/xhtFrnb2 Right now ...
lasb3tas's user avatar
1 vote
0 answers
82 views

Prevent/Wait for sending transaction if gas price is too high

I am implementing a smart contract function to work from my backend using the owner wallet. This function will be called when user does some kind of activation in frontend so this function can be ...
Bengican Altunsu's user avatar
0 votes
1 answer
70 views

Simple front-end call to contract function returns undefined

Simple contract function call using useWeb3Contract() returns undefined. Here is the front-end code : const { chainId: chainIdHex, isWeb3Enabled, account } = useMoralis() const purejson = { 31337: [&...
IBeFrogs's user avatar
1 vote
1 answer
151 views

Can't load data from smartcontract using react-moralis useWeb3Contract() hook and useEffect() hook

I have a contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Voting.sol"; contract VotingEngine is ...
HideME's user avatar
  • 135
0 votes
2 answers
283 views

Is it good for me to switch to Moralis from web3js?

I've used web3.js for a long time now for connecting my front-end ( ReactJs ) with blockchain. I wanted to switch to ethers but heard about Moralis . Now I am really confused about what to choose ? ( ...
Gaurav Pant's user avatar
0 votes
1 answer
83 views

How to make NFT data fetching tools on EVM blockchain like the Moralis? [closed]

I am going to make own NFT fetching tools like the Moralis NFT apis. What we need to develop that apis?
Doublers Kay's user avatar
0 votes
1 answer
71 views

Does Moralis "Get NFTs by Wallet" API support ERC-1155?

I am using this service from Moralis to retrieve all the NFTs that a wallet has. Does this support ERC-1155? I know these tokens are semi-fungible so they are not exactly NFTs, but I was hoping I can ...
Falcon Stakepool's user avatar
0 votes
2 answers
574 views

How to get app id from moralis?

I've registered in moralis and i got my api key, Cli Api Key, and some other things, but when i want to use MoralisProvider i need a appId: {/* <MoralisProvider appId={APP_ID} serverUrl={SERVER_URL}...
Alireza's user avatar
  • 350
0 votes
2 answers
2k views

I keep getting Metamask 429 Error on my Dapp

I'm using react-moralis to enabled web3 access on my Dapp. For the application to function, we are constantly reading from the blockchain and, of course, often writing to it as well. We have tried to ...
l1nkm4rine's user avatar
0 votes
1 answer
135 views

How to connect a local hardhat contract with the new version of moralis stream?

The server option has been removed from moralis which was easier to work with. But now it has a stream option. I have already set up the mongodb database, local server etc.. To create a new stream ...
Aniket Kumar Paul's user avatar
0 votes
1 answer
383 views

How to create and use a moralis server in the newer version to listen to events?

I am following the blockchain tutorial by Patrick Collins. For the NFT Marketplace frontend, to listen to the events emitted, moralis server is to be used. This is the video with the required ...
Aniket Kumar Paul's user avatar
0 votes
1 answer
44 views

How to change the spinning circle colour on web3UIkit button

<div> {raffleAddress ? ( <div> <div className={styles.enterRaffle}> <Button color="blue" ...
Vasanth Kumar's user avatar
1 vote
1 answer
148 views

Listening to events when using Moralis provider

I would like to listen to an event emitted by a function of my smartcontract with javascript. filter = { address: THE_ADDRESS_OF_YOUR_CONTRACT, topics: [ // the name of the event, parnetheses ...
Ainullindale's user avatar
0 votes
1 answer
50 views

Moralis-React error when calling the runContractFunction

Trying to call the runContractFunction in the Moralis SDK but getting the following errors: error: {"message":"beneficiary is required in params, Function undefined is not read only, ...
specpro's user avatar
  • 11
0 votes
3 answers
749 views

Errors after deploying to Goerli testnet

I hosted my Lottery website on fleek.co and everything works fine while on hardhat local network. So I decided to test it on Goerli and I'm facing error after error. At first I got the error 1 below ...
kihiuFrank's user avatar
0 votes
1 answer
43 views

TypeError: getEnteranceFee is not a function

I'm trying to read my raffle's entrance fee but I keep getting this error; TypeError: getEnteranceFee is not a function I know there is a typo in getEnteranceFee but it shouldn't affect anything ...
kihiuFrank's user avatar
0 votes
1 answer
207 views

How to set a moralis provider for building front end?

I am currently building a frontend for my smart contract using ethers and moralis. Part of my dapp functionality requires the creation of a new contract instance using: const contract = new ethers....
ethereumboy's user avatar
0 votes
1 answer
87 views

I get the following error in my frontend when i'm trying to access a token uri with useWeb3Contract hook of moralis using my nft smart contract

Smart contract: //SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; contract BasicNFT is ERC721 { string public constant ...
Ethguy's user avatar
  • 33
0 votes
1 answer
20 views

Error with App.jsx in Ethereum Boilerplate

I have been following the Moralis tutorial for Opensea-clone and removed some lines of code (as directed) from the App.jsx file. This App.jsx file is obtained by cloning the ethereum-boilerplate in my ...
Muskaan Sharma's user avatar
0 votes
1 answer
105 views

How to use Moralis Plugins in NodeJS?

I'm currently using Moralis version 2.0.1 and await Moralis.initPlugins(); doesn't seem to work on my end. I logged the Moralis package and I found this: default: { Core: MoralisCore { ...
The Bassman's user avatar
0 votes
1 answer
38 views

Metamask, rarible moralis plugin value

Guys, when I use the Rarible plugin from Moralis and perform lazy mint, I'm getting a sign notification from Metamask. May I know what does value mean here?
Moid Khan's user avatar
0 votes
2 answers
80 views

How to get the actual workflow (event)

I've got several enums in solidity : enum WorkflowStatus { RegisteringVoters, ProposalsRegistrationStarted, ProposalsRegistrationEnded, VotingSessionStarted, ...
tristan's user avatar
  • 11
1 vote
1 answer
327 views

Executing on-chain functions using react moralis

I'm trying to convert my dapp from vanilla js + html (local hardhat node) to react-moralis + nextJS (local hardhat node). Here is an example of a contract function call from the front-end. This code ...
Nikita Kulikov's user avatar
0 votes
1 answer
31 views

Front-end (Next.js) - font and position of header are not working properly

Hi I'm going through this tutorial from Patrick Collins - https://www.youtube.com/watch?v=8bMrko6iD9Q&t=4994s Should look like the first pic (Bold word of Lottery and Connect Wallet should be ...
lfg_kr's user avatar
  • 1
1 vote
1 answer
2k views

Approval and Transfer From Function in ERC 20 Tokens

when a user approves a spender to spend tokens on his behalf via the approve function, how does the spender transfer these tokens? Also how can the spender access other tokens in the wallet? Does the ...
adeoti azeez's user avatar
0 votes
1 answer
245 views

An Error Related to data: id in erc1155 smartcontract

We successfully deployed/integrated our erc1155 smart-contract through the website: FrontendThe Website link Unfortunately, the only problem we have now is that when we mint the smart-contract for ...
user96807's user avatar
0 votes
1 answer
189 views

Invalid amount in MetaMask app on iPhone

I am using Moralis for simple token transfer from one wallet to another. My code: And this works great on desktop (Chrome MetaMask plugin): But when I wanna use this on my phone - iPhone (MetaMask ...
PoorMillionaire's user avatar
0 votes
2 answers
493 views

How to write data to the blockchain using an html form

I am currently working an Online Birth Certificate Registration System using blockchain for my final year project in Uni. I have incorporated Moralis in my project to handle the users and linked it to ...
Indianapoliss's user avatar
2 votes
1 answer
2k views

moralis connect walletconnect TypeError: Cannot read properties of undefined (reading 'importKey')

guy i use moralis plugin connect wallet. but found error TypeError: Cannot read properties of undefined (reading 'importKey'). i don't know why. i follow example in document. this my code. import ...
story ks's user avatar
  • 176
1 vote
1 answer
112 views

Unable to fetch the NFT of the contract I deployed

I deployed an ERC721 smart contract on Polygon. The contract address is as follows: 0x9Bc7eBE1a407eb2A7E7C6CECf14e964a7fd79cE6 Moralis, however, does not give me anything back when I fetch the tokens ...
Filippo Amenta's user avatar
1 vote
3 answers
2k views

mint multiple NFTs in single transaction (ERC- 721,1155 & 20)

I'm developing an NFT Marketplace using the Moralis server. I'd like to know that is there any way to upload multiple nfts with different metadata in one single transaction? Can you please share the ...
Maruf's user avatar
  • 23
0 votes
1 answer
65 views

How to make a physical asset an NFT

I am trying to create an NFT but with physical assets, how can I make this work.
Abdulhaqq Ibrahim's user avatar
4 votes
2 answers
15k views

window.ethereum.request({ method: "eth_requestAccounts" }) does not open

I am using React and trying to open Metamask wallet to sign and get the address of the user. However I tried this code and I've clicked the button to trigger it, but nothing happen. This is my code ...
Brian Ivander T. P.'s user avatar
0 votes
0 answers
939 views

How to transfer ERC-721 tokens using web3.js?

How to transfer ERC-721 tokens using web3.js? I am currently using moralis to transfer my ERC-721 tokens but is there other web3 providers other then moralis i have been trying to find then but so far ...
GGK1000's user avatar
  • 31