Questions tagged [moralis]
The moralis tag has no usage guidance.
109
questions
1
vote
0
answers
12
views
Create autosigned transaction approval using moralis, ethers and metamask
I’m using metamask as web3provider. Have this code, that returns a token’s abi:
import abiErc20 from './abi-erc20.json'
import { ethers } from "ethers"
const abiObj = {
erc20abi: (...
1
vote
1
answer
37
views
Moralis self-hosted server
I have problem creating Moralis self-hosted server, I have a project I'm working on which was done by someone before, so he wrapped the entire app around Moralis provider and as at the time he created ...
1
vote
0
answers
21
views
Having trouble deploying a parse server to heroku. Using moralis parse server and MongoDB
This server runs fine locally using "yarn build yarn start" but when trying to deploy I am getting these errors. Cannot find anything on google so far that has worked. Any help would be much ...
3
votes
1
answer
121
views
Solana Tic-Tac-Toe Game - Bad secret key size
I cloned a tic tac toe game repository to understand the logic of smart contracts and rust. It is working on moralis and need two player wallet addresses to play/create a game but when I add the ...
0
votes
1
answer
57
views
How can we find the total number of tokens available in a wallet ? (withOut initialising Moralis) -As it is time taking
const Moralis = require('moralis').default
const {EvmChain} = require('@moralisweb3/evm-utils')
const runApp = async () => {
// WithOut Moralis initialising - I want to skip these ------(https://...
0
votes
1
answer
31
views
get EthPrice with Moralis JavaScript
I want to get the Eth Price using the MoralisJS API.
The problem is that Moralis doesnt only return the ETH-Price but also a lot of other data.
I only want the usdPrice of Eth, what would be the right ...
0
votes
0
answers
22
views
I cannot get the address and its balance even if I connected to the Metamask
I am working on a dapp and I have a problem.
The problem is that even if I connected the Metamask to the dapp, I cannot get its balance. But, the most interesting part, I cannot see the address which ...
0
votes
0
answers
597
views
How can I set Next-Auth callback url? and next-auth session return null
I want to set login, logout callback url.
So, I set the callback url like this.
//signIn
const signInResult = await signIn("credentials", {
message,
signature,
redirect: false,
...
0
votes
1
answer
28
views
Desposit function in Next.js and Moralis
I'm trying to make a simple function on the website. It should take amount of ETH as an input parameter and send it to a certain wallet. So it should have one placeholder for amount of ETH and "...
0
votes
0
answers
29
views
Unable to process webhook data correctly (moralis streams)
I'm currently setting up the new moralis streams api to receive data on to my front end. Moralis streams works via webhooks. I am successfully receiving the streams data, however I am having trouble ...
0
votes
0
answers
40
views
Getting error (json 514, 513)in addition to Incorrect type: expected string in the nodejs application on moralis?
"homepage": "https://github.com/000/Dapp-x#readme",
"dependencies": {
"express": "^4.18.2",
"moralis": "^2.6.4"
&...
0
votes
1
answer
114
views
React hook returns before it should
I’ve encountered a problem with a React hook from the "react-moralis" SDK and need some help.
I’ve implemented the useWeb3Contract hook from the package in an exported function, which should ...
0
votes
1
answer
104
views
TypeError: getEntranceFee 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
0
answers
70
views
If else statement to segment dates from an API call in Javascript
I'm working on a data analytics app that makes an API call to the blockchain via Moralis.
I'd like to show the user how many transactions a specific wallet within a collection made and allow them to ...
0
votes
2
answers
49
views
I have deployed a smart contract using the Remix editor on the Mumbai testnet. Do I still need hardhat in order to interact with the smart contract?
I have deployed a smart contract using the remix editor. I need to know that if I have to have the hardhat extension as well.
I want a user to be able to set up their profile using the UI with some ...
0
votes
0
answers
36
views
Moralis Wallet Connect auth in mobile
I am using react-moralis and trying to authenticate from mobile.
Everything works fine, but auth is working a bit strange.
When pressing authenticate I fire a function authenticate from react-moralis.
...
1
vote
1
answer
65
views
How do I optimize my Gas Cost in react-moralis?
So I am calling one function from my smart contract. I pass the same data, same conditions but the gas estimation in Remix is 0.00126923ETH and gas estimation in Front-end of my application that uses ...
0
votes
1
answer
147
views
CORS error while upload files with a loop to Moralis IPFS
I have a JS function which uploads files to Morails IPFS:
const ipfsUploadFiles = async (files) => {
const uploadedFilesIpfsUrls = [];
for (var i = 0; i < files.length; i++) {
...
0
votes
0
answers
38
views
Admin account triggering multiple transactions for P2E game
I just watched Build a Play2Earn game tutorial on youtube.
So whenever the game is done and player won, playerWon() from smart contract is called by moralis cloud which uses admin private key.
...
0
votes
1
answer
46
views
Proving ownership of a NFT collection minted on Opensea
I am trying to develop a token-gated website, users will need to connect their wallet and proof their ownership of a NFT collection.
Usually, this is fairly straightforward for a NFT collection with a ...
0
votes
1
answer
151
views
Moralis-Server in vscode
when I type this code ( npm run moralis:sync), I run into this error:
my-app@0.1.0 moralis:sync
moralis-admin-cli connect-local-devchain --chain hardhat --moralisSubdomain cxdjddn5lxdh.usemoralis.com -...
1
vote
1
answer
96
views
query on array value in moralis where the array contains objects
I was reading on how to query in moralis because I have to use something like that however, the docs does not seem to explain what I intend to do and I have been there for close to 2hrs and I seem to ...
-1
votes
2
answers
212
views
MoralisProvider not Working(TypeError: Right-hand side of 'instanceof' is not callable) [closed]
moralisprovider is not working in Next.js
import { MoralisProvider } from 'react-moralis'
function MyApp({ Component, pageProps })
{ return (
<MoralisProvider
...
0
votes
1
answer
78
views
MaxListeners Exceeded when combining web3UIkit and React/Moralis
I am continuously running into a MaxListeners Exceeded issue in my project and I cannot find the solution to it. The problem presents itself when browsing between pages in the navBar a few times and ...
0
votes
1
answer
139
views
NFT marketplace images not retrieving
I am building an NFT marketplace using Thirdweb as the provider.
When I deploy my site locally the images for the NFTs show up perfectly but for some reason when I deploy my website with Netlify the ...
0
votes
1
answer
442
views
Moralis and Thirdweb
I’m building the Open-sea Dapp to practice myself. I’m just wonder if I can use Moralis and Thirdweb with each other. Is it possible? I’m connecting MetaMask with Moralis and I would like to have ...
1
vote
1
answer
211
views
web3uikit Module not found error even when module is installed
When trying to import web3uikit, the next application throws an error Module not found. I tried uninstalling and installing the package again, but it's not working. My package.json also has the ...
1
vote
1
answer
174
views
getStaticPaths and getStaticProps with moralis query
I have been to make getStaticPaths and getStaticProps to work but somehow I feel like I'm missing something. I tried to query inside each of them which I think it is repetitive but I have no idea on ...
1
vote
0
answers
92
views
Database not updating - React.js, Moralis
I'm having issues updating my database when saving edit. I am trying to retrieve Github data via API and with that data, add it to the Moralis database. I added another button outside of the form ...
5
votes
2
answers
484
views
How to play video from ipfs url using avplayer in swift
I have an ipfs encrypted video URL.
I am not able to play video in avplayer but URL plays well in webview.
here is URL: https://ipfs.moralis.io:2053/ipfs/QmUjWnQZVVNmTSVak2QDhTxMkn3dPQozxawa1sm3jE5bLr
...
1
vote
0
answers
83
views
Minting with Moralis.executeFunction on Node won’t work
I have written the code below to mint NFTs using Moralis.executeFunction, but I am getting the error below.
C:\DriveD\Projects\object-to-NFT\node_modules\@ethersproject\logger\lib\index.js:233
...
0
votes
1
answer
430
views
Uncaught (in promise) ReactMoralisError: Provide a "appId" provided to <MoralisProvider>
I'm building a dapp and when I'm trying to add the moralis provider to my code I get this error "Uncaught (in promise) ReactMoralisError: Provide a "appId" provided to ",
which is ...
1
vote
0
answers
149
views
Unable to get result from get function using React-Moralis
I am trying to get the funds of my smart contract. The function is:
function totalBalance() public view returns (uint256) {
return address(this).balance;
}
I am using moralis and react-moralis ...
0
votes
0
answers
28
views
How to get the actual workflow (event)
I've got several enums in solidity :
enum WorkflowStatus {
RegisteringVoters,
ProposalsRegistrationStarted,
ProposalsRegistrationEnded,
VotingSessionStarted,
...
0
votes
1
answer
228
views
build docker image of nextjs with ISR
I am trying to build a docker image of my nextjs application that uses ISR. The pages connects to a 3rd party (moralis) api through https on port 2053 to get dynamic data. I can build the ...
1
vote
0
answers
37
views
How to create different hashtags for different NFTs
In the process of creating an NFT MarketPlace, I want to be able to write a hashtag for each NFT.
I tried to make this function. When the button(Tooltips) is clicked, the Modal screen is displayed so ...
0
votes
0
answers
51
views
Moralis - How to programmatically reset local chain?
Is there a way to programmatically reset the local chain rather than going through the UI.
I have looked through the Moralis docs and Googled but cant find any reference to it.
Any pointers?
-1
votes
1
answer
59
views
React Router v6 Private Routes - With Moralis api
I don't understand why this code is not working. "isAuthenticated" is a boolean from the moralis API. If it is true it should render outlet and if it's false should render the navigate ...
0
votes
0
answers
27
views
Update on Async Rendering- ReactJs
Following a tutorial-
Console Warning:
componentWillUpdate has been renamed, and is not recommended for use. Move data fetching code or side effects to componentDidUpdate.Rename componentWillUpdate ...
0
votes
1
answer
60
views
Configuring proxy_pass multiple params w/ dynamic route + API call
I need to configure a reverse proxy for a dynamic route that appends a variable chainId to an axios request to an outside moralis API. Getting a 502 Bad Gateway.
Server Route Structure
/moralis/ERC20/$...
0
votes
1
answer
123
views
Moralis Integration in Ionic Angular (typescript)
I am creating an app in ionic angular (typescript). This app will run on both android and iOS devices.
I am integrating Moralis SDK so that I can connect to Metamask wallet.
Here’s what I did so far ...
0
votes
0
answers
23
views
When deploying app to local server the environmental variables are not being loaded
I am connecting this app to Moralis.
There are no errors in the console.
I am expecting to see this in the Terminal...
Info- loaded env from …
I hardcoded my env variables because it's the only ...
-1
votes
1
answer
138
views
convert react class-based to functional based component
I am new to learning react and I am having a tough time converting class components into functional components for understanding problems and analyzing . I want to use functional approach for ...
-1
votes
1
answer
158
views
Looking for a smart contract event listening tool for self indexing
Looking for a fast lightweight library/tool that can listen to the event emitted from smart contract in a self-hosted web api. The historical record don’t have to be tracked, only need the latest ...
0
votes
1
answer
104
views
Get Twitter handle for an NFT contract address
I'm looking to get the official Twitter handle from an OS Verified project, programmatically.
I've tried calling the "collections" OS API, but the twitter_username field seems to rarely be ...
0
votes
1
answer
625
views
Uncaught ReferenceError: async is not defined at HTMLButtonElement.onclick
How to define async? I try to declare async = require('async') and no success. Then I try on terminal: npm install async --save and same thing without result.
async function donate() {
let options =...
0
votes
1
answer
315
views
How can I fix this 'Unable to connect to the Parse API' error
Unhandled Runtime Error
Error: XMLHttpRequest failed: "Unable to connect to the Parse API"
Call Stack
handleError
node_modules\moralis\lib\browser\RESTController.js (445:0)
0
votes
1
answer
20
views
Unexpected token 'react' when using react-moralis
I was able to install the package for react-moralis without any issues. When trying to import from the package I receive an "unexpected token failed to compile" syntax error. The simple code ...
0
votes
0
answers
131
views
Adding multiple API calls to a map in reactjs using axios
I need my API call to pull NFT data from moralis and add it to a map so it can later be rendered.
This all works fine, however the limit per call on moralis is 100 lines. I have added a second API ...
0
votes
0
answers
93
views
How to get phone number from User Account in Moralis using React Hooks?
I have two functions. One that is used to to insert a phone number (TEL) into Moralis _User collection on the Moralis Database and another function which is used to query data from it.
This is the one ...