Content
@
https://warpcast.com/~/channel/privy
0 reply
0 recast
0 reaction
Max
@segall
1/ It's a BIG day EIP-7702 means ALL @privy users can get the benefits of account abstraction, like gasless txs, session keys, and more! Privy offers seamless 7702 support on day 1, via integrations with ZeroDev, Ithaca, Biconomy, Pimlico, and others! Guide π
6 replies
8 recasts
69 reactions
Max
@segall
2/ Simply follow the steps here to supercharge your Privy product with 7702 support today https://docs.privy.io/recipes/react/eip-7702
2 replies
0 recast
12 reactions
Tony DβAddeo
@deodad
exciting! how do we track the state of the account (EOA vs authorization) on different chains?
0 reply
0 recast
0 reaction
Jainil Sutaria
@jainilsutaria.eth
You can get the current delegation status by making an eth_getCode request! Using viem: ``` const bytecode = await publicClient.getCode({ address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2', }) ``` Where address is the address of the EOA! It will return `0x0` if the address hasnβt been delegated.
1 reply
0 recast
2 reactions
ilemi
@ilemi
Ah so we cant use getCode to determine if an address is a contract or not anymore then? Also this returns the bytecode but not the actual authorized contract address right?
1 reply
0 recast
0 reaction
Jainil Sutaria
@jainilsutaria.eth
Hmm can you try this out? I believe it should print the current authorized contract address. const code = await publicClient.getCode({ address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2', // Your EOA address }) if (!code || code.length === 0) console.log("Address has not been activated with 7702.") else console.log("current account implementation address is:" code.split('0xef0100')[1]) Hereβs an example of the Zerodev SDK running this check to see whether or not it should run the authorization step! https://github.com/zerodevapp/sdk/blob/0ef509b177b9691afd021db87572420d6ffe18d7/plugins/ecdsa/account/create7702KernelAccount.ts#L243
1 reply
0 recast
1 reaction