Deposit (wrap) event signature and topic0
The topic0 of the Deposit (wrap) event is 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c, the keccak-256 hash of Deposit(address,uint256); 1 of its 2 arguments is indexed. ETH wrapped into an ERC-20 (e.g. WETH).
Topics
- topic00xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109ckeccak256("Deposit(address,uint256)")
- topic1dst (address)indexed: filterable
Data
- datawad (uint256)ABI-encoded, decoded with the ABI
Arguments and where they sit in the log
Indexed arguments travel as topics and can be filtered cheaply; the others are ABI-encoded together in the data.
| Name | Type | In the log |
|---|---|---|
| dst | address | topic1 |
| wad | uint256 | data |
Solidity declaration
event Deposit(address indexed dst, uint256 wad);
Canonical signature
Deposit(address,uint256)
topic0
0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c
Get an alert on Deposit
Each rule opens with the contract and the conditions filled in. Sign in, pick your chat and click Create.
Contracts we list that emit Deposit
Any other contract with the same signature emits a log with the same topic0.
Read Deposit logs in code
The same filter in viem, ethers and plain JSON-RPC, and the Solidity that emits it. The address is Wrapped Ether (WETH), a contract we list that emits it.
import { createPublicClient, http, parseAbiItem } from "viem"
import { mainnet } from "viem/chains"
const client = createPublicClient({ chain: mainnet, transport: http() })
const logs = await client.getLogs({
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
event: parseAbiItem("event Deposit(address indexed dst, uint256 wad)"),
fromBlock: "latest",
})
for (const log of logs) console.log(log.args) // { dst, wad }import { Interface, JsonRpcProvider } from "ethers"
const provider = new JsonRpcProvider(process.env.RPC_URL)
const iface = new Interface(["event Deposit(address indexed dst, uint256 wad)"])
const logs = await provider.getLogs({
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
topics: [iface.getEvent("Deposit")!.topicHash],
})
for (const log of logs) console.log(iface.parseLog(log)?.args){
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogs",
"params": [
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"topics": [
"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c"
],
"fromBlock": "latest"
}
]
}event Deposit(address indexed dst, uint256 wad);
// inside a function:
emit Deposit(dst, wad);An example Deposit log, encoded and decoded
Placeholder values, not a real transaction: how each argument is stored in the topics and the data, and what decoding gives back.
- topic0keccak256("Deposit(address,uint256)")0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c
- topic1dst0x0000000000000000000000001111111111111111111111111111111111111111
- data0x00000000000000000000000000000000000000000000000000000000000007d0
- dstaddress · indexed0x1111111111111111111111111111111111111111
- waduint2562000
Frequently asked questions
What is the topic0 of the Deposit (wrap) event?
0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c: the keccak-256 hash of Deposit(address,uint256).
Which Deposit (wrap) arguments are indexed?
dst is indexed and sit in the log's topics; wad is in the data.
How do I get an alert when a contract emits Deposit (wrap)?
Open one of the ready-made rules on this page, or add any contract and pick Deposit (wrap) from the event list. Conditions can be set on indexed and non-indexed arguments, and each alert names the contract and links to the transaction.
More event signatures and tools
Know the moment a contract emits it
The Beta plan is free: one wallet and one contract, no credit card.