Skip to main content

EAS (Ethereum Attestation Service) Attestation Made

Updated on
Dec 15, 2023

Overview

The Ethereum Attestation Service (EAS) is a versatile and open-source platform on the Ethereum blockchain, enabling the creation and validation of digital claims known as attestations. These attestations, which can be related to any subject and made by any entity, are recorded and managed through a decentralized and permissionless system, enhancing trust and transparency in online interactions.

Learn more about EAS in this guide: What Is Ethereum Attestation Service (EAS) & How to Use It.

Using QuickAlerts, we can track these attestations in real-time.

EAS Attestation Made

The EAS Attestation smart contract emits the following event when an attestation is made:

Attested (index_topic_1 address recipient, index_topic_2 address attester, bytes32 uid, index_topic_3 bytes32 schema)

To create our expression, we will need to target two values:

  1. The EAS contract address - We'll use the EAS Attestation contract address to track attestations. This value gets set as the tx_logs_address, as we will be looking for any transactions from this address (the contract).
  2. The event the contract emits when the action we're interested in occurs - In the case of EAS contract, it is the Attested event. On EVM blockchains, the event is encoded and can be found in tx_logs_topic0. To get the encoded value, you will need to take the event definition (event name and parameters' types), run it through the Keccak-256 hash function, and prefix it with 0x.
Attested(address,address,bytes32,bytes32)

8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b35

0x8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b35
Expression
Deploy
1
tx_logs_address == '0xA1207F3BBa224E2c9c3c6D5aF63D0eb1582Ce587'
2
&&
3
tx_logs_topic0 == '0x8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b35'
Share this doc