Questions tagged [moralis]

98 questions
36
votes
7 answers

i tried to Polyfill modules in webpack 5 but not working (Reactjs)

Hi guys am a newbie in React when i start my project i get the Wepback V5 Error Message Resolve updated : https://github.com/facebook/create-react-app/issues/11756#issuecomment-1001162736 This What am using! Os: Win11 Node :…
Idriss
  • 617
  • 1
  • 4
  • 14
5
votes
2 answers

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 let currentURL = URL(string:…
NickCoder
  • 1,504
  • 2
  • 23
  • 35
3
votes
0 answers

Why does WalletConnect work in development mode, but not in production mode?

I'm building a DApp with Moralis provider, Nodejs and Reactjs. When I click the connect button, the Wallet Connect Modal appears. But there is a problem. When in development mode, the buttons are blue and the QR code recognition works. In production…
Tech77
  • 41
  • 5
3
votes
1 answer

Blazor Javascript Interop Returns Null

I have a Javascript function which should (does) return a string. The issue is that the C# part is always null although I've verified the JS function IS returning a string. Here's the Javascript function: window.get_current_user = () => { …
AcePilot10
  • 178
  • 1
  • 12
2
votes
0 answers

Error when using MoralisProvider in layout.js file (Next.js)

I'm trying to use the MoralisProvider in my layout.js file, but it throws an error when I import it. Here's the error message I receive: ./node_modules/@toruslabs/openlogin/node_modules/@toruslabs/eccrypto/index.js Error: x Return statement is…
Ali Elahi
  • 21
  • 2
2
votes
0 answers

How to properly implement MoralisDappProvider as a React component?

There's some code in the documention of Moralis and at github, but it no longer works. For instance: import React, { useEffect, useState, useMemo } from "react"; import { useMoralis } from "react-moralis"; import MoralisDappContext from…
perelium
  • 21
  • 1
2
votes
1 answer

How to force the transfer of an NFT using Web3.js or Ethers.js

I am trying to build an application, and part of it involves transferring an NFT from my account to the user's. Previously, I was using Moralis to accomplish this, but this code threw an error saying Error: Contract with a Signer cannot override…
Vibhuv
  • 29
  • 1
  • 2
2
votes
0 answers

Web3 library and keep logging state after refresh the page

I'm making application using web3 ethereum wallet but when the users goes from a first page to another when he refreshes the page he's no longer connected to the website. Here my home page where I handle the logging step with Moralis…
El Pandario
  • 179
  • 1
  • 4
  • 12
2
votes
3 answers

Type is not assignable to type 'IntrinsicAttributes & MoralisProviderProps'

I am new to typescript and I really want my initialize on mount to be set to true, Does anyone know why it will only let me set it to false? Here is the error: Type '{ children: Element; appId: string | undefined; serverUrl: string | undefined;…
devvy1992
  • 41
  • 4
1
vote
1 answer

Error: require() of ES Module NextJS Web3AuthConnector

I have a NextJS (Typescript) setup with Express . I'm using Moralis, Wagmi and Web3Auth for authentication. The Metamask authentication works, but when I try to setup Web3 Authentication by importing Web3AuthConnector it throws me an error. My code…
Posh
  • 11
  • 3
1
vote
1 answer

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: (tokenForAbi) => { const provider = new…
ObscuRUS
  • 13
  • 2
1
vote
1 answer

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 the Moralis server, he could create it on…
Dawveed
  • 11
  • 2
1
vote
0 answers

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 appreciated!! remote: -----> Installing…
luketorv
  • 11
  • 1
1
vote
1 answer

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 react-moralis has a gas estimation of…
Slowqueso
  • 9
  • 1
1
vote
1 answer

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 catch nothing to use so my query is suppose to be…
kim
  • 159
  • 12
1
2 3 4 5 6 7