Questions tagged [ethers.js]

Ethers.js is a JavaScript framework to interact with EVM smart contracts.

More information on ethers.io.

801 questions
-2
votes
1 answer

ERC1155 NFT transfer using Ethers.js

I want to transfer ERC1155 NFT from one contract account to another. Does anyone know how to make it work with ethers.js
Vignesh
  • 11
  • 2
-3
votes
1 answer

TypeError: ethers.Wallet.fromEncryptedJsonSync is not a constructor

I'm trying to run this piece of code to deploy a smart contract in JS with ethers.js library: const ethers = require("ethers"); const fs = require("fs-extra"); require("dotenv").config(); async function main() { const provider = new…
-3
votes
1 answer

How to use hooks in nextJs for rainbowkit and wagmi?

In this code I want to display tokenbalance and nativebalance on my UI I#m using wagmi and rainbowkit import React, { useEffect, useState } from 'react'; import { ConnectButton } from '@rainbow-me/rainbowkit'; import { fetchBalance,getAccount } from…
-3
votes
1 answer

How to display NFTs of Torus wallet?

I've successfully integrated the Torus wallet and now I am trying to display the NFTs that a person has in the wallet. I am doing it successfully with MetaMask but I am having troubles making it work with Torus. I am guessing I have a problem with…
1 2 3
53
54