Skip to content

help me with useTransactionAsync/useTransaction #4531

Discussion options

You must be logged in to vote

i found the problem...

let hash = await sendTransactionAsync({
    to: recipient as unknown as `0x${string}`,
    value: parseEther(amount),
    gas: BigInt(50000),
    gasPrice: parseEther("0.1", "gwei"),
    data: "0x",
    chainId: duckchain_testnet.id,
});

this is how it should look like
your developers failed to typecheck this or what
becuase the data field is absolutely required for this to work

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheGraveyardWarden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant