Event signature · Stablecoins and issued tokens

Redeem (USDT) event signature and topic0

The topic0 of the Redeem (USDT) event is 0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44, the keccak-256 hash of Redeem(uint256); none of its arguments are indexed. Tokens redeemed from the owner (Tether).

Anatomy of a Redeem (USDT) log

Topics

  • topic00x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44keccak256("Redeem(uint256)")

Data

  • dataamount (uint256)ABI-encoded, decoded with the ABI
Parameters

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.

NameTypeIn the log
amountuint256data

Solidity declaration

event Redeem(uint256 amount);

Canonical signature

Redeem(uint256)

topic0

0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44

Ready-made alerts

Get an alert on Redeem

Each rule opens with the contract and the conditions filled in. Sign in, pick your chat and click Create.

Who emits it

Contracts we list that emit Redeem

Any other contract with the same signature emits a log with the same topic0.

Code

Read Redeem logs in code

The same filter in viem, ethers and plain JSON-RPC, and the Solidity that emits it. The address is Tether (USDT), a contract we list that emits it.

viem
import { createPublicClient, http, parseAbiItem } from "viem"
import { mainnet } from "viem/chains"

const client = createPublicClient({ chain: mainnet, transport: http() })

const logs = await client.getLogs({
  address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
  event: parseAbiItem("event Redeem(uint256 amount)"),
  fromBlock: "latest",
})

for (const log of logs) console.log(log.args) // { amount }
ethers v6
import { Interface, JsonRpcProvider } from "ethers"

const provider = new JsonRpcProvider(process.env.RPC_URL)
const iface = new Interface(["event Redeem(uint256 amount)"])

const logs = await provider.getLogs({
  address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
  topics: [iface.getEvent("Redeem")!.topicHash],
})

for (const log of logs) console.log(iface.parseLog(log)?.args)
JSON-RPC (eth_getLogs)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getLogs",
  "params": [
    {
      "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
      "topics": [
        "0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44"
      ],
      "fromBlock": "latest"
    }
  ]
}
Solidity
event Redeem(uint256 amount);

// inside a function:
emit Redeem(amount);
Example

An example Redeem 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.

Encoded (as the node returns it)
  • topic0keccak256("Redeem(uint256)")0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44
  • data0x00000000000000000000000000000000000000000000000000000000000003e8
Decoded with the ABI
  • amountuint2561000
FAQ

Frequently asked questions

What is the topic0 of the Redeem (USDT) event?

0x702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44: the keccak-256 hash of Redeem(uint256).

Which Redeem (USDT) arguments are indexed?

None: amount is ABI-encoded in the log's data, so a log can only be filtered by address and topic0.

How do I get an alert when a contract emits Redeem (USDT)?

Open one of the ready-made rules on this page, or add any contract and pick Redeem (USDT) from the event list. Conditions can be set on its arguments, and each alert names the contract and links to the transaction.

Keep exploring

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.