hiero-ledger / hiero-ledger/hiero-sdk-java

HIP-1340: EOA Code Delegation

Open
#2,567 0 comments 0 reactions 2 assignees Claimed by @mustafauzunn View on GitHub
enhancement
Dominant language
Java
Stars
264
Forks
192
Avg merge
2d
Merged PRs (30d)
39

Description

### Problem

HIP: https://hips.hedera.com/hip/hip-1340

This HIP introduces EOA (Externally Owned Account) Code Delegation, enabling EOAs to delegate their code execution to smart contracts. This feature aligns Hiero with Ethereum's Pectra upgrade (EIP-7702) and enables advanced account abstraction use cases.

### Solution

The implementation requires adding a delegationAddress field to account creation and update transactions, as well as exposing it in account information queries. Additionally, this proposal formalizes the structure for EIP-7702 Ethereum Transaction Type 4, which allows setting code delegation via Ethereum-compatible transactions.

All changes are strictly additive and maintain backwards compatibility. The delegation address must be exactly 20 bytes and can be provided as raw bytes, hex string (with or without 0x prefix), or a language-specific EvmAddress type. Setting the address to 20 zero-bytes or null (for update transactions) clears any existing delegation.

### Alternatives

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.