Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines ERC7246, a proposal for guaranteeing another account's right to transfer tokens without giving up ownership.
This article translates, summarizes, and expands on the following specification.
I also cover other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC20 gains a feature called an encumbrance, which lets an account grant a designated account the exclusive right to transfer a portion of its token balance. An exclusive right means that only the designated account, and no one else, can move the tokens within that reserved amount.
For background on ERC20, see the following article.
[ERC20] An introduction to ERC20
A conventional ERC20 approval (allowance) grants permission to transfer a specified amount of tokens, but does not guarantee that those tokens will remain available until the transfer occurs.
If the owner's balance falls, the approved spender may no longer be able to transfer them.
An encumbrance grants transfer authority in much the same way as an approval, but also guarantees that the specified tokens will be available when needed. It therefore provides a stronger guarantee: the balance remains reserved while the transfer right is granted separately.
The concept extends beyond ERC20 and could be applied in a similar form to NFTs such as ERC721.
For background on ERC721, see the following article.
[ERC721] An introduction to ERC721
Motivation
The proposal aims to make ERC20 more flexible by supporting situations where tokens must be locked without transferring ownership. Token holders often send tokens to smart contracts on the understanding that they will be returned when certain conditions are met. In some cases, however, the contract does not actually need to hold the tokens. It only needs a guarantee that the tokens will be available if required.
Conventional approvals do not provide that guarantee, leaving a transfer to a smart contract as the alternative. Encumbrances let tokens be locked without moving them and make it explicit that ownership has not changed. Benefits directed at token owners, such as airdrops, can therefore still reach the owners.
There are also potential security benefits. An address holding large quantities of tokens risks losing its entire balance in a single operation, whereas encumbered tokens are reserved for individual accounts and are harder to move all at once. This can provide a stronger deterrent against attacks.
Specification
/**
* @dev Interface of the ERC-7246 standard.
*/
interface IERC7246{
/**
* @dev Emitted when `amount` tokens are encumbered from `owner` to `taker`.
*/
event Encumber(address indexed owner, address indexed taker, uint amount);
/**
* @dev Emitted when the encumbrance of a `taker` to an `owner` is reduced by `amount`.
*/
event Release(address indexed owner, address indexed taker, uint amount);
/**
* @dev Returns the total amount of tokens owned by `owner` that are currently encumbered.
* MUST never exceed `balanceOf(owner)`
*
* Any function which would reduce balanceOf(owner) below encumberedBalanceOf(owner) MUST revert
*/
function encumberedBalanceOf(address owner) external returns (uint);
/**
* @dev Returns the number of tokens that `owner` has encumbered to `taker`.
*
* This value increases when {encumber} or {encumberFrom} are called by the `owner` or by another permitted account.
* This value decreases when {release} and {transferFrom} are called by `taker`.
*/
function encumbrances(address owner, address taker) external returns (uint);
/**
* @dev Increases the amount of tokens that the caller has encumbered to `taker` by `amount`.
* Grants to `taker` a guaranteed right to transfer `amount` from the caller's balance by using `transferFrom`.
*
* MUST revert if caller does not have `amount` tokens available
* (e.g. if `balanceOf(caller) - encumbrances(caller) < amount`).
*
* Emits an {Encumber} event.
*/
function encumber(address taker, uint amount) external;
/**
* @dev Increases the amount of tokens that `owner` has encumbered to `taker` by `amount`.
* Grants to `taker` a guaranteed right to transfer `amount` from `owner` using transferFrom
*
* The function SHOULD revert unless the owner account has deliberately authorized the sender of the message via some mechanism.
*
* MUST revert if `owner` does not have `amount` tokens available
* (e.g. if `balanceOf(owner) - encumbrances(owner) < amount`).
*
* Emits an {Encumber} event.
*/
function encumberFrom(address owner, address taker, uint amount) external;
/**
* @dev Reduces amount of tokens encumbered from `owner` to caller by `amount`
*
* Emits a {Release} event.
*/
function release(address owner, uint amount) external;
/**
* @dev Convenience function for reading the unencumbered balance of an address.
* Trivially implemented as `balanceOf(owner) - encumberedBalanceOf(owner)`
*/
function availableBalanceOf(address owner) public view returns (uint);
}Events
Encumber
event Encumber(address indexed owner, address indexed taker, uint amount);Emitted when a specified amount of tokens is encumbered from owner to taker.
It signals that a portion of the balance held by owner has been newly reserved for exclusive transfer by taker.
The encumbered amount is guaranteed and remains reserved until consumed by a subsequent operation.
The indexed parameters make it easier to search logs by address.
Parameters
owner- Address holding the tokens.
taker- Address granted the transfer right.
amount- Amount of tokens encumbered.
Release
event Release(address indexed owner, address indexed taker, uint amount);Emitted when the encumbrance allocated to taker decreases.
It signals that the transfer right held by taker has been released in part or in full.
This can occur when taker actually transfers the encumbered amount through transferFrom or explicitly releases it through the release function.
The indexed parameters enable address-based tracking.
Parameters
owner- Address holding the tokens.
taker- Address whose encumbrance is being released.
amount- Amount by which the encumbrance decreased.
Functions
encumberedBalanceOf
function encumberedBalanceOf(address owner) external returns (uint);Returns the total amount of tokens currently encumbered by owner.
It sums the encumbrances associated with owner across every taker.
This value must never exceed balanceOf(owner), and any operation that would reduce the balance below it must revert.
Encumbered tokens are locked and cannot be freely transferred.
Arguments
owner- Address to query.
Return value
uint- Total amount of encumbered tokens.
encumbrances
function encumbrances(address owner, address taker) external returns (uint);Returns the encumbrance allocated by owner to taker.
It retrieves the amount covered by the guaranteed transfer right assigned to a specific taker.
The value increases through encumber or encumberFrom and decreases through release or transferFrom.
Use this function to query an individual owner–taker relationship.
Arguments
owner- Address holding the tokens.
taker- Address granted the transfer right.
Return value
uint- Amount of encumbered tokens.
encumber
function encumber(address taker, uint amount) external;Increases the caller's encumbrance allocated to taker.
It reserves amount from the caller's available balance, granting taker a guaranteed right to transfer that amount.
The operation fails if the balance is insufficient or existing encumbrances leave too little available balance.
On success, it emits an Encumber event.
Arguments
taker- Address receiving the transfer right.
amount- Additional amount of tokens to encumber.
encumberFrom
function encumberFrom(address owner, address taker, uint amount) external;Increases an encumbrance on behalf of owner in favor of taker.
It is used when the message sender has been duly authorized by owner.
If the available balance of owner is less than amount, the operation must revert.
On success, it emits an Encumber event.
The standard does not prescribe an approval mechanism; authorization is left to external logic.
Arguments
owner- Address holding the tokens.
taker- Address receiving the transfer right.
amount- Additional amount of tokens to encumber.
release
function release(address owner, uint amount) external;Reduces the encumbrance allocated by owner to the caller.
It allows taker to release an encumbrance that is no longer needed.
The encumbrance decreases by amount within the available range, updating the encumbered balance accordingly.
On success, it emits a Release event.
Arguments
owner- Address holding the tokens.
amount- Amount of tokens to release.
availableBalanceOf
function availableBalanceOf(address owner) public view returns (uint);Returns the balance that owner can freely use.
It subtracts the encumbered balance from the total: balanceOf(owner) minus encumberedBalanceOf(owner).
This identifies the balance that can actually be transferred after excluding the amount locked by encumbrances.
Arguments
owner- Address to query.
Return value
uint- Available, unencumbered balance.
Additional details
Design aligned with ERC20
ERC7246 is designed to complement and resemble existing ERC20 interfaces. The goal is to make the new interface familiar and straightforward to adopt for developers who already work with ERC20.
Rather than introducing a wholly separate mechanism, the proposal is intended to function as an extension of ERC20.
Minimal mandatory constraints and design philosophy
ERC7246 deliberately avoids imposing overly detailed rules for its integration with ERC20. Its design philosophy is to impose only minimal constraints.
The one explicit mandatory requirement is that an owner must not be able to transfer encumbered tokens.
In other words, if an account's tokens are encumbered in favor of another party, the owner must not be free to move that portion through transfer or similar operations. This is the strict constraint imposed by the proposal.
Beyond that, implementers retain flexibility in how they integrate the mechanism with ERC20.
Relationship between approve and encumberFrom
ERC7246 also discusses how encumberFrom is implemented in the reference implementation.
The reference implementation relies on ERC20 approval to support encumberFrom. Specifically, it uses approve.
In other words, when someone encumbers another account's tokens, the underlying authorization mechanism uses approve.
However, ERC7246 itself does not require reliance on approve.
Implementers may instead introduce a separate approval function for encumbrances, such as approveEncumber.
Such a function is envisioned as behaving similarly to ERC20 allowance.
The important point is that the specification does not mandate approve.
Implementers can choose how to design authorization for encumberFrom.
Integrating transferFrom with encumbrances and allowance
The proposal describes how transferFrom(src, dst, amount) interacts with encumbrances, both in the reference implementation and in an alternative design.
The two approaches compare as follows.
| Aspect | Reference implementation | Alternative |
|---|---|---|
Order of operations in transferFrom(src, dst, amount) |
First reduce encumbrances(src, amount), then consume allowance(src, msg.sender). |
Consume encumbrances and allowance at the same time. |
Checks required in approve |
No additional checks are described. | approve must check that the balance after approval does not fall below the amount required by encumbrances. |
Prerequisite for calling encumber |
No specific prerequisite is described. | Calling encumber requires a prior approve. |
The alternative design describes the possibility of implementing transferFrom so that it consumes the encumbered amount and the allowance amount simultaneously.
In that case:
approvemust check that the balance after approval does not fall below the amount required by existing encumbrances.- Before calling
encumber, an approval must already have been established throughapprove.
Extending the concept to ERC721
The Encumber interface defined by ERC7246 is primarily intended for ERC20, but the proposal explains that it can be extended to ERC721.
In ERC20, the amount parameter is a uint representing a quantity of tokens. In ERC721, each token is identified by a tokenId of type uint.
This common type makes it possible to adapt the interface to ERC721 by using amount as a tokenId instead.
The specification explicitly favors a clear interface for ERC20, the most typical use case. Other token formats could theoretically use it, but the chosen interface uses the terminology and semantics that are most natural for ERC20.
Compatibility
ERC7246 is described as backward compatible with the existing ERC20 standard. It adds the Encumber feature on top of ERC20 without breaking its basic specification.
The implementation is subject to one explicit requirement:
- If an account's tokens are encumbered in favor of another account, the encumbered tokens must not be transferable through
transfer.
This prevents the guaranteed tokens reserved by an encumbrance from being moved unintentionally.
Reference implementation
// An erc-20 token that implements the encumber interface by blocking transfers.
pragma solidity ^0.8.0;
import {ERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import { IERC7246 } from "./IERC7246.sol";
contract EncumberableERC20 is ERC20, IERC7246 {
// Owner -> Taker -> Amount that can be taken
mapping (address => mapping (address => uint)) public encumbrances;
// The encumbered balance of the token owner. encumberedBalance must not exceed balanceOf for a user
// Note this means rebasing tokens pose a risk of diminishing and violating this prototocol
mapping (address => uint) public encumberedBalanceOf;
address public minter;
constructor(string memory name, string memory symbol) ERC20(name, symbol) {
minter = msg.sender;
}
function mint(address recipient, uint amount) public {
require(msg.sender == minter, "only minter");
_mint(recipient, amount);
}
function encumber(address taker, uint amount) external {
_encumber(msg.sender, taker, amount);
}
function encumberFrom(address owner, address taker, uint amount) external {
require(allowance(owner, msg.sender) >= amount);
_encumber(owner, taker, amount);
}
function release(address owner, uint amount) external {
_release(owner, msg.sender, amount);
}
// If bringing balance and encumbrances closer to equal, must check
function availableBalanceOf(address a) public view returns (uint) {
return (balanceOf(a) - encumberedBalanceOf[a]);
}
function _encumber(address owner, address taker, uint amount) private {
require(availableBalanceOf(owner) >= amount, "insufficient balance");
encumbrances[owner][taker] += amount;
encumberedBalanceOf[owner] += amount;
emit Encumber(owner, taker, amount);
}
function _release(address owner, address taker, uint amount) private {
if (encumbrances[owner][taker] < amount) {
amount = encumbrances[owner][taker];
}
encumbrances[owner][taker] -= amount;
encumberedBalanceOf[owner] -= amount;
emit Release(owner, taker, amount);
}
function transfer(address dst, uint amount) public override returns (bool) {
// check but dont spend encumbrance
require(availableBalanceOf(msg.sender) >= amount, "insufficient balance");
_transfer(msg.sender, dst, amount);
return true;
}
function transferFrom(address src, address dst, uint amount) public override returns (bool) {
uint encumberedToTaker = encumbrances[src][msg.sender];
bool exceedsEncumbrance = amount > encumberedToTaker;
if (exceedsEncumbrance) {
uint excessAmount = amount - encumberedToTaker;
// check that enough enencumbered tokens exist to spend from allowance
require(availableBalanceOf(src) >= excessAmount, "insufficient balance");
// Exceeds Encumbrance , so spend all of it
_spendEncumbrance(src, msg.sender, encumberedToTaker);
_spendAllowance(src, dst, excessAmount);
} else {
_spendEncumbrance(src, msg.sender, amount);
}
_transfer(src, dst, amount);
return true;
}
function _spendEncumbrance(address owner, address taker, uint256 amount) internal virtual {
uint256 currentEncumbrance = encumbrances[owner][taker];
require(currentEncumbrance >= amount, "insufficient encumbrance");
uint newEncumbrance = currentEncumbrance - amount;
encumbrances[owner][taker] = newEncumbrance;
encumberedBalanceOf[owner] -= amount;
}
}Reference
Coburn Berry (@coburncoburn), Mykel Pereira (@mykelp), Scott Silver (@scott-silver), "ERC-7246: Encumber - Splitting Ownership & Guarantees [DRAFT]," Ethereum Improvement Proposals, no. 7246, June 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7246.
Conclusion
This article examined ERC7246, a proposal for guaranteeing another account's right to transfer tokens without giving up ownership.
If you have questions, feel free to contact me by direct message on Twitter.
You can also find my work on other platforms.



