·
2163 commits
to main
since this release
Patch Changes
-
8ef068b
Thanks @jxom! - Added502
,503
and504
error codes as "non-deterministic" errors forfallback
transport & retries. -
#79
db9caa9
Thanks @jxom! - Addedtimeout
as a config option to thehttp
andwebSocket
Transports. -
#77
d6a29f5
Thanks @jxom! - Decorated Clients with their respective Actions.Example:
import { createPublicClient, http } from 'viem' import { mainnet } from 'viem/chains' -import { getBlockNumber } from 'viem/public' const client = createPublicClient({ chain: mainnet, transport: http(), }) - const blockNumber = await getBlockNumber(client) + const blockNumber = await client.getBlockNumber()