.NET SDK
Utils
Utils
bundles the SDK's most handy helpers for formatting values, working with addresses, and preparing typed data. If you need an API not covered here, check the full reference.
Fetch metadata (native token, RPCs, explorers, stack type, etc.) for a given chain ID. Results are cached in-memory.
Quickly check if a chain uses zkSync infrastructure. Falls back to chain metadata when the ID is not one of the known zkSync networks.
Normalize any hex address to its EIP-55 checksum representation.
Lightweight validation for EVM addresses.
Resolve between ENS names and addresses. Lookups are cached per process.
Pull public social metadata (Lens, Farcaster, etc.) for an address or ENS.
Join multiple hex strings (with 0x
prefixes) into a single blob.
Extension helpers for toggling between byte arrays and hex.
Convert between hex strings and BigInteger
values.
Encode or decode UTF-8 strings as hex.
Generate Ethereum-style prefixed hashes or raw Keccak hashes.
Left-pad a hex string so it fits into exactly 32 bytes.
Strip leading zero bytes—handy before ABI encoding.
Stringify large integers inside a typed-data payload before sending it to browsers or wallets.
Convert strongly typed EIP-712 data structures into wallet-ready JSON.
Wrap signatures for ERC-6492 (counterfactual ERC-4337 accounts) with the required magic value.
Convert between human-readable token amounts and Wei.
Scale a BigInteger
between two decimal systems—useful when toggling between token decimals.
Assemble a Sign-In With Ethereum message from a LoginPayloadData
object. Throws if required fields are missing to help surface misconfigurations early.
Timestamp helpers for authentication windows or scheduled expirations.
Swap ipfs://
URIs for a gateway of your choice (defaults to the Thirdweb fallback gateway).
Retrieve legacy gas prices or EIP-1559 fee suggestions with optional safety bumps. Polygon, Celo, and Arbitrum chains get tailor-made logic.
Runtime checks that tell you whether a chain requires EIP-155 signatures and whether it supports EIP-1559 style fees.
Poll for a transaction receipt with built-in timeouts from the client's fetch options.
Check whether bytecode exists at an address.
Detect delegated accounts (EIP-7702 style) by comparing on-chain code against the delegation contract.
Encode ENS-style DNS packets. Exposed for advanced ENS tooling; most integrations can rely on the higher-level ENS helpers above.