EIP-7702 enables externally owned accounts (EOAs) to delegate their execution to smart contract code. This allows EOA wallets to gain account abstraction capabilities such as transaction bundling, gas sponsorship, and custom permissions.Privy provides methods to sign EIP-7702 authorizations, which allows your embedded wallets to be upgraded into any smart contract. Learn more about EIP-7702 and how to use it with various account abstraction providers.
EIP-7702 authorization signing is supported in the React SDK, REST API, and Node SDK.
Use the useSign7702Authorization hook to sign an EIP-7702 authorization with your user’s wallet.
Copy
Ask AI
import {useSign7702Authorization} from '@privy-io/react-auth';const {signAuthorization} = useSign7702Authorization();