Questions tagged [moralis]
The moralis tag has no usage guidance.
37
questions
1
vote
1
answer
47
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-...
0
votes
0
answers
36
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 ...
1
vote
0
answers
53
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 ...
0
votes
1
answer
56
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: [&...
1
vote
1
answer
134
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 ...
0
votes
2
answers
195
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 ? ( ...
0
votes
1
answer
71
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?
0
votes
1
answer
63
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 ...
0
votes
2
answers
477
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}...
0
votes
0
answers
34
views
I get an error whenever i install web3uikit on my react app
i get this error whenever i install the web3uikit. can anyone help?
0
votes
2
answers
622
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 ...
0
votes
1
answer
109
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 ...
0
votes
0
answers
54
views
Error: Cannot execute Moralis.enableWeb3(), as Moralis Moralis.enableWeb3() already has been called, but is not finished yet
Error: Cannot execute Moralis.enableWeb3(), as Moralis Moralis.enableWeb3() already has been called, but is not finished yet.
Using react moralis and solidity contract.
Below is my react component ...
0
votes
1
answer
327
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 ...
0
votes
1
answer
42
views
How to change the spinning circle colour on web3UIkit button
<div>
{raffleAddress ? (
<div>
<div className={styles.enterRaffle}>
<Button
color="blue"
...
1
vote
1
answer
134
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 ...
0
votes
1
answer
47
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, ...
0
votes
3
answers
714
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 ...
0
votes
1
answer
40
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 ...
0
votes
1
answer
182
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....
0
votes
1
answer
83
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 ...
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 ...
0
votes
1
answer
104
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 {
...
0
votes
1
answer
37
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?
0
votes
2
answers
73
views
How to get the actual workflow (event)
I've got several enums in solidity :
enum WorkflowStatus {
RegisteringVoters,
ProposalsRegistrationStarted,
ProposalsRegistrationEnded,
VotingSessionStarted,
...
1
vote
1
answer
314
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 ...
0
votes
1
answer
28
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 ...
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 ...
0
votes
1
answer
241
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 ...
0
votes
1
answer
181
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 ...
0
votes
2
answers
430
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 ...
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 ...
1
vote
1
answer
105
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 ...
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 ...
0
votes
1
answer
64
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.
3
votes
2
answers
13k
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 ...
0
votes
0
answers
933
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 ...