Questions tagged [viem]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

How to I solve fetch has been blocked by CORS policy when fetch data from contract

I'm trying to fetch campaign data and display it to the user. I'm using Nextjs in the front-end and solidity & hardhat in the back-end. The contract data seems to be fetched but when being ...
Kihiu's user avatar
  • 11
0 votes
2 answers
34 views

How to pass blockNumber to viem call?

I'm trying to view the owner of a certain NFT at a specific blockNumber, when I make the viem call without the blockNumber parameter it works perfectly, however, once I try to pass a blockNumber with ...
Rohan Nero's user avatar
  • 1,443
0 votes
0 answers
72 views

Error : Cannot read properties of null (reading 'useContext') in frontend

import contracts from '../RPSLS.sol/RPSLSFinal.json' import { ChangeEvent, useContext, useEffect, useRef, useState } from 'react'; import { useNavigate, useLocation } from 'react-router-dom'; import { ...
Indul's user avatar
  • 9
2 votes
1 answer
42 views

ethers.js library version to use to learn Ethereum development

Which version of the Ethers.js library, either v5 or v6, is recommended for me to learn and work with? I'm seeking advice on which version would be more beneficial for my current needs and future ...
Israel Ogunsola's user avatar
1 vote
1 answer
60 views

ViemAdapter for @safe-global/protocol-kit?

I was trying to use @safe-global modules but found that in the protocol kit, only Ethers.js (<v6) and Web3.js are supported. I tend to use Viem and Wagmi because of their advantages in development. ...
Abhik Banerjee's user avatar