eth_getCode
call on the EOA address.
Under EIP-7702, an authorized EOA temporarily exposes a small bytecode stub that begins with the magic prefix 0xef0100
, followed immediately by the 20-byte implementation address. If eth_getCode
returns empty code (0x
or 0x0
), the EOA is not currently delegated on that chain. The snippets below return the current implementation address or null
.
0xef0100
prefix; other non-empty code indicates a deployed contract account.viem
:viem
to be pinned to 2.22.6PrivyProvider
has the following embeddedWallets
settings and ensure you set the defaultChain
and supportedChains
to the 7702 supported chain you chose in step 1.SmartAccountSigner
instanceSmartAccountSigner
instance, follow this guide to create a smart account client (createModularAccountV2Client
) and start sending sponsored transactions. You’ll need:SmartAccountSigner
instance defined in step 3