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-7795 extends EIP-5792's wallet_sendCalls so dApps can specify token balances, approvals, and other preconditions required for wallet calls.
This article translates, summarizes, and expands on the proposal below as covered in the original February 2026 article. The original code comments and sequence diagram labels remain in Japanese.
I also cover other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC-7795 extends the wallet_sendCalls method defined by EIP-5792, allowing dApps to specify token-related preconditions for wallets.
EIP-5792 defines the wallet_sendCalls method, which allows dApps to submit multiple calls to a wallet as a batch.
ERC-7795 supports balance and allowance requirements for ERC-20 tokens.
For more on ERC-20, see the following article.
ERC-20 Explained from First Principles
It also supports ownership and approval requirements for ERC-721 tokens (NFTs).
For more on ERC-721, see the following article.
ERC-721 Explained from First Principles
Balance and approval requirements for ERC-1155 tokens can be specified as well.
For more on ERC-1155, see the following article.
https://qiita.com/cardene/items/5c37b0c51e1b9c458c67
These capabilities are exposed through the wallet_sendCalls and wallet_getCapabilities RPC methods.
The distinguishing feature is that wallets can handle the preconditions automatically. When a dApp specifies token requirements, the wallet can prepend transactions needed to satisfy them, such as approvals or swaps.
ERC-7795 defines six capabilities covering ERC-20 balances and allowances, ERC-721 ownership and approvals, and ERC-1155 balances and approvals.
Because these capabilities use the existing discovery mechanism of EIP-5792 (wallet_getCapabilities), wallets can implement only the requirements they support.
Multiple capabilities can also be used together, and additional requirement types can be introduced incrementally in the future.
Motivation
The proposal addresses several problems.
Complexity of token approvals
When a dApp needs to operate on a user's tokens, it first needs the appropriate token approval. However, each dApp has had to implement the approval process separately, resulting in an inconsistent user experience.
Difficulty optimizing transactions at the wallet level
A dApp knows the prerequisites for its token operations, but there has been no standard way to communicate that information to the wallet. This makes it difficult for wallets to construct an optimal sequence of transactions.
Challenges with cross-chain operations
Cross-chain operations such as bridging and swapping may require specific token balances or approvals. Without a standard way to communicate these requirements to wallets, users have had to execute multiple transactions manually.
The proposed solution
ERC-7795 lets dApps declare token preconditions as capabilities of wallet_sendCalls.
Wallets can interpret the preconditions and prepend the necessary transactions where appropriate, providing a smoother user experience.
Specification
Capabilities
ERC-7795 defines the following six capabilities.
| Capability | Token standard | Description |
|---|---|---|
erc20MinBalance |
ERC20 | Minimum balance requirement |
erc20MinAllowance |
ERC20 | Minimum allowance requirement |
erc721Ownership |
ERC721 | NFT ownership requirement |
erc721Approval |
ERC721 | NFT approval requirement |
erc1155MinBalance |
ERC1155 | Minimum balance requirement |
erc1155MinAllowance |
ERC1155 | Minimum approval requirement |
ERC20
Two capabilities are defined for ERC-20 tokens: minimum balance and minimum allowance requirements.
erc20MinBalance
This capability specifies a minimum ERC-20 token balance. A dApp uses it to tell the wallet that the account must hold at least a specified amount of an ERC-20 token before the calls are executed. The wallet may prepend transactions such as bridging or swapping to satisfy the requirement.
Parameters
{
"erc20MinBalance": {
"0xTokenAddress": "0xMinimumBalanceInHex"
}
}0xTokenAddress- The ERC-20 token contract address.
0xMinimumBalanceInHex- The required minimum balance in hexadecimal format.
Example
{
"capabilities": {
"erc20MinBalance": {
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": "0x5F5E100" // 100 USDC (6 decimals)
}
}
}erc20MinAllowance
This capability specifies a minimum ERC-20 token allowance.
A dApp uses it to tell the wallet that a particular address must have a minimum allowance for an ERC-20 token before the calls are executed.
The wallet may prepend an approve transaction to satisfy the requirement.
Parameters
{
"erc20MinAllowance": {
"0xTokenAddress": {
"0xSpenderAddress": "0xMinimumAllowanceInHex"
}
}
}0xTokenAddress- The ERC-20 token contract address.
0xSpenderAddress- The address receiving the approval (the spender).
0xMinimumAllowanceInHex- The required minimum allowance in hexadecimal format.
Example
{
"capabilities": {
"erc20MinAllowance": {
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D": "0x5F5E100" // Uniswap Router に 100 USDC を承認
}
}
}
}ERC721
Two capabilities are defined for ERC-721 tokens (NFTs): ownership and approval requirements.
erc721Ownership
This capability specifies ownership requirements for ERC-721 tokens (NFTs). A dApp uses it to tell the wallet that the account must own particular NFTs before the calls are executed. The wallet may prepend transactions such as an NFT purchase to satisfy the requirement.
Parameters
{
"erc721Ownership": {
"0xTokenAddress": ["0xTokenId1", "0xTokenId2"]
}
}0xTokenAddress- The ERC-721 token contract address.
0xTokenId- An array of required token IDs in hexadecimal format.
Example
{
"capabilities": {
"erc721Ownership": {
"0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D": ["0x1", "0x2"] // BAYC #1 と #2 の所有権が必要
}
}
}erc721Approval
This capability specifies approval requirements for ERC-721 tokens (NFTs).
A dApp uses it to tell the wallet that a particular address must be approved to operate on specified NFTs before the calls are executed.
The requirement can be satisfied through either blanket approval using setApprovalForAll or individual approval for specific token IDs.
Parameters
{
"erc721Approval": {
"0xTokenAddress": {
"0xOperatorAddress": ["0xTokenId1", "0xTokenId2"]
}
}
}0xTokenAddress- The ERC-721 token contract address.
0xOperatorAddress- The operator address receiving approval.
0xTokenId- An array of token IDs requiring approval, in hexadecimal format.
Example
{
"capabilities": {
"erc721Approval": {
"0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D": {
"0x00000000006c3852cbEf3e08E8dF289169EdE581": ["0x1"] // OpenSea Seaport に BAYC #1 を承認
}
}
}
}ERC1155
Two capabilities are defined for ERC-1155 tokens: minimum balance and minimum approval requirements.
erc1155MinBalance
This capability specifies a minimum ERC-1155 token balance. A dApp uses it to tell the wallet that the account must hold at least a specified amount of a particular ERC-1155 token before the calls are executed.
Parameters
{
"erc1155MinBalance": {
"0xTokenAddress": {
"0xTokenId": "0xMinimumBalanceInHex"
}
}
}0xTokenAddress- The ERC-1155 token contract address.
0xTokenId- The token ID in hexadecimal format.
0xMinimumBalanceInHex- The required minimum balance in hexadecimal format.
Example
{
"capabilities": {
"erc1155MinBalance": {
"0x76BE3b62873462d2142405439777e971754E8E77": {
"0x1": "0xA" // Token ID 1 の残高が 10 以上必要
}
}
}
}erc1155MinAllowance
This capability specifies minimum approval requirements for ERC-1155 tokens.
A dApp uses it to tell the wallet that a particular address must be approved to operate on ERC-1155 tokens before the calls are executed.
Because ERC-1155 supports only setApprovalForAll for this purpose, the capability requires blanket approval.
Parameters
{
"erc1155MinAllowance": {
"0xTokenAddress": ["0xOperatorAddress1", "0xOperatorAddress2"]
}
}0xTokenAddress- The ERC-1155 token contract address.
0xOperatorAddress- An array of operator addresses receiving approval.
Example
{
"capabilities": {
"erc1155MinAllowance": {
"0x76BE3b62873462d2142405439777e971754E8E77": [
"0x00000000006c3852cbEf3e08E8dF289169EdE581" // OpenSea Seaport に承認
]
}
}
}Additional details
Complete example
The following is a complete example of wallet_sendCalls combining multiple capabilities.
{
"method": "wallet_sendCalls",
"params": [{
"version": "1.0",
"chainId": "0x1",
"from": "0xUserAddress",
"calls": [
{
"to": "0xDeFiProtocol",
"data": "0x...",
"value": "0x0"
}
],
"capabilities": {
"erc20MinBalance": {
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": "0x5F5E100"
},
"erc20MinAllowance": {
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"0xDeFiProtocol": "0x5F5E100"
}
}
}
}]
}This example specifies two preconditions.
- A USDC balance of at least 100.
- A USDC allowance of at least 100 for the DeFi protocol.
Wallet behavior
The wallet behaves as follows according to the specified capabilities.
sequenceDiagram
participant dApp
participant Wallet
participant Blockchain
dApp->>Wallet: wallet_sendCalls (with capabilities)
Wallet->>Wallet: 前提条件を確認
alt 前提条件が満たされていない場合
Wallet->>Wallet: 必要なトランザクションを生成
Wallet->>Blockchain: 前提条件を満たすTx
end
Wallet->>Blockchain: 元のcallsを実行
Blockchain-->>Wallet: 結果
Wallet-->>dApp: レスポンス
The diagram illustrates the wallet's processing flow when a dApp specifies capabilities through wallet_sendCalls.
- The dApp sends
wallet_sendCallswith the capabilities to the wallet. - The wallet checks the specified preconditions, such as balance and approval requirements.
- If a precondition is not satisfied, the wallet automatically constructs the necessary transactions, such as a swap, a bridge transaction, or an approval call.
- Transactions that satisfy the preconditions execute before the original calls.
- Once all transactions are complete, the wallet returns the result to the dApp.
With this approach, dApps do not have to manage complicated transaction sequences themselves, and wallets can choose how best to satisfy the preconditions.
Discovering supported capabilities
A dApp can check whether the wallet supports these capabilities using wallet_getCapabilities.
{
"method": "wallet_getCapabilities",
"params": ["0xUserAddress"]
}An example response is shown below.
{
"0x1": {
"erc20MinBalance": { "supported": true },
"erc20MinAllowance": { "supported": true },
"erc721Ownership": { "supported": true },
"erc721Approval": { "supported": true },
"erc1155MinBalance": { "supported": true },
"erc1155MinAllowance": { "supported": true }
}
}Compatibility
Relationship to EIP-5792
ERC-7795 is related to the following standards.
| Standard | Relationship | Notes |
|---|---|---|
| EIP5792 | Extension | Implemented as capabilities of wallet_sendCalls |
| ERC20 | Target standard | Supports balance and allowance requirements |
| ERC721 | Target standard | Supports ownership and approval requirements |
| ERC1155 | Target standard | Supports balance and approval requirements |
Backwards compatibility
Because ERC-7795 uses the capability system defined by EIP-5792, a wallet that does not support a capability can ignore it and process the request as a normal wallet_sendCalls when permitted by that capability's optionality rules. The original article's description of ignoring unsupported capabilities should not be read as allowing a wallet to disregard a mandatory requirement.
Security
The following security considerations are important.
Excessive approvals
A dApp may request a larger allowance than it actually needs.
Wallets should clearly display the requested allowance and allow the user to adjust it where appropriate.
Particular care is required for requests for unlimited approval (type(uint256).max).
Malicious dApps
A malicious dApp may specify preconditions designed to target a user's assets.
Wallets should display the details of transactions that will be executed to satisfy the preconditions and obtain explicit user approval.
Transaction ordering manipulation
Front-running attacks may occur between the transactions satisfying the preconditions and the original calls.
Wallets should use atomic execution (batched transactions) whenever possible.
Wallet developers must obtain clear user consent for transactions that are automatically executed to satisfy preconditions.
References
Conclusion
This article covered ERC-7795, which allows dApps to specify token-related preconditions for wallets.
If you have questions, feel free to send me a direct message on Twitter.
I also publish technical content on the following platforms.



