
Viem
/viem865
Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum
it'd be nice if prepareTransactionRequest and the OP specific estimateTotal* Viem actions supported stateOverride so they can be used to get a gas estimate even if the user doesn't have enough gas
is there any reason they don't or just hasn't been needed by anyone enough yet?
is there any reason they don't or just hasn't been needed by anyone enough yet?


i love wagmi & viem
What am I doing wrong? I thought viem should be lighter
viem @ 2.21.39
bundling with vite
Searched all imports, tldr:
import { base } from "viem/chains";
import { Address, formatEther, parseAbi, createPublicClient, createWalletClient, custom, http, publicActions, keccak256, toHex } from "viem";
viem @ 2.21.39
bundling with vite
Searched all imports, tldr:
import { base } from "viem/chains";
import { Address, formatEther, parseAbi, createPublicClient, createWalletClient, custom, http, publicActions, keccak256, toHex } from "viem";
has anyone gotten a transaction to sign using viem + ledger?
parseUnits: $4.58859406e+38
formatUnits: $458.85
gg...
formatUnits: $458.85
gg...
is there any way to sign a transaction you constructed with viem, using a ledger?
Has anyone connected a local account to wagmi?
E.g. you have a viem account that you created from a private key (hypothetically) or in my case a webAuthnAccount that is the owner of a coinbase smart account
I want to connect this to wagmi so that i can use the hooks in my app. Seems like i need to make a connector?
Asked this question on the wagmi repo’s discussions tab
https://github.com/wevm/wagmi/discussions/4293
E.g. you have a viem account that you created from a private key (hypothetically) or in my case a webAuthnAccount that is the owner of a coinbase smart account
I want to connect this to wagmi so that i can use the hooks in my app. Seems like i need to make a connector?
Asked this question on the wagmi repo’s discussions tab
https://github.com/wevm/wagmi/discussions/4293
what is the best way to mock a viem contract for testing?
is there an easy way to import all chains in wagmi - was running into all sorts of type issues even with type casts when I tried
import * as allChains from 'viem/chains'
// ...
chains: Object.values(allChains)
the use case is letting people use whatever chain they'd like in the frames.js debugger
import * as allChains from 'viem/chains'
// ...
chains: Object.values(allChains)
the use case is letting people use whatever chain they'd like in the frames.js debugger