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.

ERC-1996 proposes a mechanism for reserving ERC-20 tokens so that an authorized party can transfer the reserved amount at a later time.

This article explains the following proposal, with additional context and examples.

You can find my other proposal articles here.

Overview

ERC-1996 extends ERC-20 with a mechanism called a Hold. A Hold reserves tokens for a possible future transfer. While the Hold is active, the reserved tokens cannot be spent through unrelated transfers.

The mechanism resembles escrow because funds are temporarily blocked before settlement. It is useful for regulated tokens, payment guarantees, and transactions whose final amounts are not yet known. Unlike a conventional escrow arrangement, the reservation can be represented directly within the token contract without transferring the funds to a separate escrow address.

The following roles participate in a Hold:

  • Operator: An account authorized to create holds on behalf of another account.
  • Hold Issuer: The account creating a Hold, either the payer or an authorized operator.
  • Notary: The account authorized to execute or release a Hold.

A Hold identifies:

  • The payer.
  • The payee.
  • The maximum reserved amount.
  • The notary.
  • The expiration time.

Creating a Hold reserves the specified amount from the payer's balance. The amount is unavailable for other transfers while the Hold remains active. Only the notary can execute the Hold, resulting in a transfer from the payer to the payee.

The notary or payee can release an active Hold, and anyone can release it after expiration. A release does not transfer tokens to the payee; it makes the reserved tokens available to the payer again.

A Hold may also be executed for less than its reserved amount. For example, if ten tokens are reserved and the notary executes the Hold for five tokens, the remaining five become available to the payer again.

A Hold can be configured without an expiration. Such a Hold cannot be released merely because time has passed, but it can still be released by an authorized notary or payee.

The reservation guarantees the availability of the specified funds under the token's accounting rules. It does not guarantee that the notary will execute the payment.

Motivation

A Hold is useful when an immediate token transfer is inappropriate or when funds need to be reserved in advance.

For regulated tokens, a compliance check may be required before a transfer can occur. A Hold reserves the tokens during that review, allowing settlement once the conditions are satisfied. If the transfer is rejected, the Hold can be released without transferring the tokens.

Another example is a hotel payment guarantee. At check-in, a Hold may reserve funds in a guest's account. No payment is made at that point, but the funds are set aside. At checkout, the notary can execute the payment.

The mechanism also supports payments whose final amount is uncertain. A hotel might reserve an estimated amount that includes potential room-service charges. At checkout, the notary executes the Hold for the actual bill and releases the difference.

ERC-20's approve function provides a superficially similar mechanism, but the distinction is whether the tokens are reserved. An allowance authorizes a spender to transfer tokens up to a specified amount. It does not prevent the owner from spending those tokens elsewhere. A Hold instead blocks the reserved amount from unrelated spending.

This makes holds useful for coordinating deferred settlement and providing greater certainty about the availability of funds.

Specification

js
interface IHoldable /* is ERC-20 */ {
    enum HoldStatusCode {
        Nonexistent,
        Ordered,
        Executed,
        ReleasedByNotary,
        ReleasedByPayee,
        ReleasedOnExpiration
    }

    function hold(string calldata operationId, address to, address notary, uint256 value, uint256 timeToExpiration) external returns (bool); 
    function holdFrom(string calldata operationId, address from, address to, address notary, uint256 value, uint256 timeToExpiration) external returns (bool);
    function releaseHold(string calldata operationId) external returns (bool);
    function executeHold(string calldata operationId, uint256 value) external returns (bool);
    function renewHold(string calldata operationId, uint256 timeToExpiration) external returns (bool);
    function retrieveHoldData(string calldata operationId) external view returns (address from, address to, address notary, uint256 value, uint256 expiration, HoldStatusCode status);

    function balanceOnHold(address account) external view returns (uint256);
    function netBalanceOf(address account) external view returns (uint256);
    function totalSupplyOnHold() external view returns (uint256);

    function authorizeHoldOperator(address operator) external returns (bool);
    function revokeHoldOperator(address operator) external returns (bool);
    function isHoldOperatorFor(address operator, address from) external view returns (bool);

    event HoldCreated(address indexed holdIssuer, string  operationId, address from, address to, address indexed notary, uint256 value, uint256 expiration);
    event HoldExecuted(address indexed holdIssuer, string operationId, address indexed notary, uint256 heldValue, uint256 transferredValue);
    event HoldReleased(address indexed holdIssuer, string operationId, HoldStatusCode status);
    event HoldRenewed(address indexed holdIssuer, string operationId, uint256 oldExpiration, uint256 newExpiration);
    event AuthorizedHoldOperator(address indexed operator, address indexed account);
    event RevokedHoldOperator(address indexed operator, address indexed account);
}

Enum

HoldStatusCode

javascript
enum HoldStatusCode {
    Nonexistent,
    Ordered,
    Executed,
    ReleasedByNotary,
    ReleasedByPayee,
    ReleasedOnExpiration
}

An enumeration representing the lifecycle state of a Hold.

Values

  • Nonexistent: No Hold exists for the operation identifier.
  • Ordered: A Hold has been created and has not yet been executed or released.
  • Executed: The Hold has been executed and tokens have been transferred.
  • ReleasedByNotary: The notary released the Hold.
  • ReleasedByPayee: The payee released the Hold.
  • ReleasedOnExpiration: The Hold was released after its expiration.

Expiration makes a Hold eligible for release. The state change generally requires a transaction; expiration does not autonomously execute contract code.

Functions

hold

javascript
function hold(
    string calldata operationId,
    address to,
    address notary,
    uint256 value,
    uint256 timeToExpiration
) external returns (bool);

Creates a Hold using the caller's own balance. It reserves the specified token amount for the designated payee and associates a notary with the operation.

Parameters

  • operationId: A unique operation identifier that must not be reused.
  • to: Address designated to receive the tokens.
  • notary: Address authorized to execute or release the Hold.
  • value: Amount to reserve, subject to the payer's available balance.
  • timeToExpiration: Duration in seconds relative to the current block timestamp. Zero denotes a Hold without expiration.

Return value

Returns true on success.

holdFrom

javascript
function holdFrom(
    string calldata operationId,
    address from,
    address to,
    address notary,
    uint256 value,
    uint256 timeToExpiration
) external returns (bool);

Creates a Hold using another account's available balance. The caller must have the appropriate Hold operator authorization for that account.

Parameters

  • operationId: Unique operation identifier.
  • from: Address whose tokens will be reserved.
  • to: Designated recipient.
  • notary: Address authorized to execute or release the Hold.
  • value: Amount to reserve.
  • timeToExpiration: Duration in seconds; zero denotes a Hold without expiration.

Return value

Returns true on success.

releaseHold

javascript
function releaseHold(string calldata operationId) external returns (bool);

Releases a Hold without executing its transfer. Before expiration, the notary or payee can release it. After expiration, anyone can trigger its release.

Parameter

  • operationId: Identifier of the Hold to release.

Return value

Returns true on success.

executeHold

javascript
function executeHold(string calldata operationId, uint256 value) external returns (bool);

Executes a Hold and transfers the specified amount of reserved tokens. Only the designated notary may execute it.

If the executed amount is less than the reserved amount, the remainder becomes available to the payer. This is a final partial execution, not a sequence of separate withdrawals from the same Hold.

Parameters

  • operationId: Identifier of the Hold.
  • value: Amount to transfer when executing it.

Return value

Returns true on success.

renewHold

javascript
function renewHold(string calldata operationId, uint256 timeToExpiration) external returns (bool);

Updates the expiration of a Hold that has not yet expired. The new duration is measured from the current block timestamp. A duration of zero sets the Hold to have no expiration.

The operation is subject to payer or operator authorization as defined by the Hold's rules.

Parameters

  • operationId: Identifier of the Hold.
  • timeToExpiration: New duration in seconds.

Return value

Returns true on success.

retrieveHoldData

javascript
function retrieveHoldData(string calldata operationId)
external view returns (
    address from,
    address to,
    address notary,
    uint256 value,
    uint256 expiration,
    HoldStatusCode status
);

Retrieves the information associated with a particular Hold, including the parties, reserved amount, expiration, and lifecycle state.

Parameter

  • operationId: Identifier of the Hold.

Return values

  • from: Payer address.
  • to: Payee address.
  • notary: Designated notary address.
  • value: Reserved amount recorded for the Hold.
  • expiration: Expiration timestamp.
  • status: Hold lifecycle state.

balanceOnHold

javascript
function balanceOnHold(address account) external view returns (uint256);

Returns the amount of an account's tokens currently reserved by holds and unavailable for unrelated spending.

Parameter

  • account: Account whose reserved balance is being queried.

Return value

  • uint256: Amount currently on Hold.

netBalanceOf

javascript
function netBalanceOf(address account) external view returns (uint256);

Returns an account's total token holdings under the proposal's balance model, combining its available balance with its balance on Hold.

This distinguishes the amount an account owns from the amount it can spend immediately.

Parameter

  • account: Account being queried.

Return value

  • uint256: Total token holdings, including reserved tokens.

totalSupplyOnHold

javascript
function totalSupplyOnHold() external view returns (uint256);

Returns the aggregate amount of tokens reserved by holds across all accounts in the token contract.

Return value

  • uint256: Total amount on Hold.

authorizeHoldOperator

javascript
function authorizeHoldOperator(address operator) external returns (bool);

Authorizes an address to act as a Hold operator on behalf of the caller. The authorized operator can create holds using the caller's balance, subject to the applicable rules.

Parameter

  • operator: Address to authorize.

Return value

Returns true on success.

revokeHoldOperator

javascript
function revokeHoldOperator(address operator) external returns (bool);

Revokes an address's existing Hold operator authorization.

Parameter

  • operator: Address whose authorization is being revoked.

Return value

Returns true on success.

isHoldOperatorFor

javascript
function isHoldOperatorFor(address operator, address from) external view returns (bool);

Checks whether a specified operator is authorized to create holds on behalf of a given account.

Parameters

  • operator: Address whose operator status is being checked.
  • from: Account for which authorization is being queried.

Return value

Returns true if the operator is authorized; otherwise false.

Events

HoldCreated

javascript
event HoldCreated(
    address indexed holdIssuer,
    string operationId,
    address from,
    address to,
    address indexed notary,
    uint256 value,
    uint256 expiration
);

Emitted when a Hold is successfully created. It records the parties and other information needed to identify the reservation.

Parameters

  • holdIssuer: Account that created the Hold.
  • operationId: Unique operation identifier.
  • from: Payer address.
  • to: Payee address.
  • notary: Designated notary.
  • value: Reserved token amount.
  • expiration: Expiration as a Unix timestamp, with the applicable convention for a Hold without expiration.

HoldExecuted

javascript
event HoldExecuted(
    address indexed holdIssuer,
    string operationId,
    address indexed notary,
    uint256 heldValue,
    uint256 transferredValue
);

Emitted when a Hold is executed. It distinguishes the originally reserved amount from the amount actually transferred, supporting partial execution.

Parameters

  • holdIssuer: Account that created the Hold.
  • operationId: Hold identifier.
  • notary: Notary that executed the Hold.
  • heldValue: Amount reserved by the Hold.
  • transferredValue: Amount actually transferred.

HoldReleased

javascript
event HoldReleased(
    address indexed holdIssuer,
    string operationId,
    HoldStatusCode status
);

Emitted when a Hold is released. The status distinguishes release by the notary, release by the payee, and release following expiration.

Parameters

  • holdIssuer: Account that created the Hold.
  • operationId: Hold identifier.
  • status: Release status, such as ReleasedByNotary.

HoldRenewed

javascript
event HoldRenewed(
    address indexed holdIssuer,
    string operationId,
    uint256 oldExpiration,
    uint256 newExpiration
);

Emitted when the expiration of a Hold is updated. It records the previous and new expiration values, including updates that remove expiration.

Parameters

  • holdIssuer: Account that created the Hold.
  • operationId: Hold identifier.
  • oldExpiration: Previous expiration.
  • newExpiration: Updated expiration.

AuthorizedHoldOperator

javascript
event AuthorizedHoldOperator(address indexed operator, address indexed account);

Emitted when an account grants authorization to a Hold operator.

Parameters

  • operator: Newly authorized operator.
  • account: Account on whose behalf the operator is authorized.

RevokedHoldOperator

javascript
event RevokedHoldOperator(address indexed operator, address indexed account);

Emitted when an account revokes an operator's Hold authorization.

Parameters

  • operator: Operator whose authorization was revoked.
  • account: Account that revoked the authorization.

Rationale

Why holds are necessary

Businesses often need to reserve funds for a future payment without transferring them immediately. Hotel reservations, subscription services, and regulated-token settlement are examples.

ERC-20's approve function grants a third party permission to transfer tokens, but an allowance is only an authorization limit. It does not reserve funds, and the token owner may spend the balance before the authorized transfer occurs.

ERC-1996 instead reserves the tokens and prevents their use in unrelated transfers. This gives the designated settlement process access to reserved funds when execution is permitted.

Operator function naming

The names authorizeHoldOperator, revokeHoldOperator, and isHoldOperatorFor follow conventions used by ERC-777. This makes the operator-management interface more familiar to developers.

For background on ERC-777, see:

ERC-777: A standard interface for token contracts

The format and meaning of operationId

The operationId identifier uses the Solidity string type. Although bytes32 or uint256 may offer lower encoding and storage costs, a string supports human-readable identifiers such as "order-1234".

This can simplify transaction tracing, auditing, and integration with external systems. Implementers may store the string itself or an appropriate hash of the identifier, provided they preserve its required uniqueness.

Operation identifier uniqueness and collision avoidance

Operation identifiers must be unique within the applicable contract namespace. When multiple issuers create holds, they compete for identifiers.

Issuers can use distinct prefixes or other namespacing conventions to reduce accidental collisions, for example "user123:tx001". A naming convention alone does not prevent another authorized party from deliberately using the same identifier first. Implementations and integrations should account for that possibility.

Compatibility

ERC-1996 is designed as an ERC-20 extension. Integrations should account for its distinction between available balances and total holdings, especially when checking whether a transfer can succeed.

Citation

Julio Faura julio@adhara.io, Fernando Paris fer@io.builders, Daniel Lehrner daniel@io.builders, "ERC-1996: Holdable Token [DRAFT]," Ethereum Improvement Proposals, no. 1996, April 2019. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-1996.

Conclusion

ERC-1996 introduces a Hold mechanism for reserving ERC-20 tokens for future transfers. By separating reservation, execution, and release, it supports deferred settlement, payment guarantees, and transactions whose final amounts are determined later.

If you have questions, feel free to contact me on Twitter.

Twitter @cardene777

You can also find my work on the following sites.

https://chaldene.net/