EIP-8360 · Draft · Core · 2026-08-03
EIP-8360: TCREATE Opcode
Proposes TCREATE, an opcode that deploys a contract which exists only for the current transaction, replacing the costly CREATE-then-SELFDESTRUCT pattern for single-use contracts without growing state.
What problem does it solve?
Plenty of contracts only need to live for one transaction: single-use accounts, state-channel helpers, throwaway proxies, hook code run once. Today the only way to do that is to deploy with CREATE/CREATE2 and then SELFDESTRUCT.
That pattern has decayed. Since EIP-3529 SELFDESTRUCT gives no gas refund, since Cancun (EIP-6780) it only deletes contracts created in the same transaction, and further restrictions are expected. Developers pay full deployment costs for code that is useless one transaction later.
EIP-8360 adds a dedicated opcode, TCREATE ("transient create"), whose contracts are cleaned up by the protocol automatically, at roughly the cost of a call.
How it works
TCREATE behaves like CREATE2 (EIP-1014) with these differences:
- Address:
keccak256(0xfe ‖ deployer ‖ salt ‖ keccak256(init_code))[12:]. The0xfeprefix (instead ofCREATE2's0xff) keeps the two address spaces apart. - End-of-transaction cleanup: the account's code, nonce and storage are wiped; only its balance survives. If the account ends up empty it is removed from the trie.
- Storage is transient: inside a
TCREATEcontract,SSTORE/SLOADact likeTSTORE/TLOAD(EIP-1153), with the same cheap pricing, and are not recorded in the block access list (EIP-7928). - Nonces:
TCREATEdoes not bump the caller's nonce. - Nested creation:
CREATEfrom aTCREATEcontract is allowed and produces a persistent contract whose address depends only on deployer, salt and theTCREATEinitcode (the "CREATE3" pattern with no leftover proxy).CREATE2from inside it halts with an error. - Gas: a base cost of 100 plus the normal execution costs of
CREATE2(initcode, memory, copying), but no new-account or code-deposit charge. State gas is charged only if a balance that will persist is sent to the account, and refilled if it is sent back out in the same transaction.
The opcode number is still TBD.
Sample code
Predicting a TCREATE address off-chain (ethers v6), mirroring how CREATE2 addresses are computed:
import { concat, getAddress, keccak256, dataSlice } from "ethers";
function tcreateAddress(deployer: string, salt: string, initCode: string): string {
const digest = keccak256(
concat(["0xfe", deployer, salt, keccak256(initCode)]), // 0xfe instead of CREATE2's 0xff
);
return getAddress(dataSlice(digest, 12)); // last 20 bytes
}
const addr = tcreateAddress(
"0x1111111111111111111111111111111111111111",
"0x" + "00".repeat(31) + "01", // 32-byte salt
"0x600a600c600039600a6000f3", // example init code
);
Things to know
- Status: Draft. It depends on several proposals that are not final yet (the state-gas model of EIP-8037 and the access costs of EIP-8038), and the opcode byte is unassigned.
- Because everything but balance is erased, the same address can be
TCREATEd again in a later transaction. Code that depends on context such asNUMBERorORIGINmay behave differently each time. - ETH left in a
TCREATEaccount stays at that address after the transaction, with no code to move it, unless the same contract is recreated. - Contracts that need persistent code or storage should keep using
CREATEorCREATE2. - The design aims to give a migration path away from
SELFDESTRUCTand to fit account-abstraction hook patterns run viaDELEGATECALL.