Questions tagged [wagmi-hooks]
The wagmi-hooks tag has no usage guidance.
3
questions
0
votes
0
answers
12
views
Wagmi write contract
I have this code here
import React from 'react';
import { usePrepareContractWrite, useContractWrite } from 'wagmi';
import lottoABI from './lottoABI.json';
import { parseEther } from 'viem';
// Your ...
0
votes
0
answers
20
views
ABI encoding params/values length mismatch usePrepareContractWrite
I am using wagmi-react hooks to write contract data. Everything works fine with the useContractWrite() but having this issue when using usePrepareContractWrite()
ABI encoding params/values length ...
0
votes
1
answer
17
views
write is not a function from useContractWrite
I am getting this error in runtime when using usePrepareContractWrite my code is as follows from the wagmi documentation:
const { config } = usePrepareContractWrite({
address: "...