Learn more about EAS in our docs
Offchain Attestation
UID:
0x224b0868e955754e48f36805a9dce6b23abfd82c5f37ac0a8fb47cabe9fafcad
TIMESTAMPS:
Created: 06/01/2025 7:10:54 pm
Timestamp onchain
EXPIRATION:
Never
REVOKED:
No
SCHEMA:
#510
BONDEX VERIFICATIONS
0xf3ff6d...a84b489f
Decoded Data:
uint64
Issuance_date
0
address
User_address
0x0000000000000000000000000000000000000000
string
Verification_type
import { EAS, SchemaEncoder } from "@ethereum-attestation-service/eas-sdk"; const easContractAddress = "0x4200000000000000000000000000000000000021"; const schemaUID = "0xf3ff6dd4a9dab34450af4e60df1eb41ca1e60fd719ce8645bbbed68aa84b489f"; const eas = new EAS(easContractAddress); // Signer must be an ethers-like signer. await eas.connect(signer); // Initialize SchemaEncoder with the schema string const schemaEncoder = new SchemaEncoder("uint64 issuance_date,address user_address,string verification_type,string context"); const encodedData = schemaEncoder.encodeData([ { name: "issuance_date", value: "0", type: "uint64" } { name: "user_address", value: "0x0000000000000000000000000000000000000000", type: "address" } { name: "verification_type", value: "", type: "string" } { name: "context", value: "", type: "string" } ]); const tx = await eas.attest({ schema: schemaUID, data: { recipient: "0x0000000000000000000000000000000000000000", expirationTime: 0, revocable: true, // Be aware that if your schema is not revocable, this MUST be false data: encodedData, }, }); const newAttestationUID = await tx.wait(); console.log("New attestation UID:", newAttestationUID);
string
Context
import { EAS, SchemaEncoder } from "@ethereum-attestation-service/eas-sdk"; const easContractAddress = "0x4200000000000000000000000000000000000021"; const schemaUID = "0xf3ff6dd4a9dab34450af4e60df1eb41ca1e60fd719ce8645bbbed68aa84b489f"; const eas = new EAS(easContractAddress); // Signer must be an ethers-like signer. await eas.connect(signer); // Initialize SchemaEncoder with the schema string const schemaEncoder = new SchemaEncoder("uint64 issuance_date,address user_address,string verification_type,string context"); const encodedData = schemaEncoder.encodeData([ { name: "issuance_date", value: "0", type: "uint64" } { name: "user_address", value: "0x0000000000000000000000000000000000000000", type: "address" } { name: "verification_type", value: "", type: "string" } { name: "context", value: "", type: "string" } ]); const tx = await eas.attest({ schema: schemaUID, data: { recipient: "0x0000000000000000000000000000000000000000", expirationTime: 0, revocable: true, // Be aware that if your schema is not revocable, this MUST be false data: encodedData, }, }); const newAttestationUID = await tx.wait(); console.log("New attestation UID:", newAttestationUID);
Referenced Attestation:
No reference
Referencing Attestations:
0 attestations referencing this one
Raw Data:
{"sig":{"version":2,"domain":{"name":"EAS Attestation","version":"1.0.1","chainId":"8453","verifyingContract":"0x4200000000000000000000000000000000000021"},"primaryType":"Attest","types":{"Attest":[{"name":"version","type":"uint16"},{"name":"schema","type":"bytes32"},{"name":"recipient","type":"address"},{"name":"time","type":"uint64"},{"name":"expirationTime","type":"uint64"},{"name":"revocable","type":"bool"},{"name":"refUID","type":"bytes32"},{"name":"data","type":"bytes"},{"name":"salt","type":"bytes32"}]},"signature":{"r":"0x4513c41b3735e72fe68541ed42e59138fdcc44b128435400a985dcea934f25ce","s":"0x29b90b33605abff7b997066393f6357651a2f4b9ebd2705c938b45fbb81bb0e3","v":28},"uid":"0x224b0868e955754e48f36805a9dce6b23abfd82c5f37ac0a8fb47cabe9fafcad","message":{"version":2,"schema":"0xf3ff6dd4a9dab34450af4e60df1eb41ca1e60fd719ce8645bbbed68aa84b489f","recipient":"0x0000000000000000000000000000000000000000","time":"1748805054","expirationTime":"0","refUID":"0x0000000000000000000000000000000000000000000000000000000000000000","revocable":true,"data":"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000004a3696d706f727420207b204541532c20536368656d61456e636f646572207d202066726f6d202240657468657265756d2d6174746573746174696f6e2d736572766963652f6561732d73646b223b20636f6e737420656173436f6e747261637441646472657373203d2022307834323030303030303030303030303030303030303030303030303030303030303030303030303231223b20636f6e737420736368656d61554944203d2022307866336666366464346139646162333434353061663465363064663165623431636131653630666437313963653836343562626265643638616138346234383966223b20636f6e737420656173203d206e65772045415328656173436f6e747261637441646472657373293b202f2f205369676e6572206d75737420626520616e206574686572732d6c696b65207369676e65722e206177616974206561732e636f6e6e656374287369676e6572293b202f2f20496e697469616c697a6520536368656d61456e636f64657220776974682074686520736368656d6120737472696e6720636f6e737420736368656d61456e636f646572203d206e657720536368656d61456e636f646572282275696e7436342069737375616e63655f646174652c6164647265737320757365725f616464726573732c737472696e6720766572696669636174696f6e5f747970652c737472696e6720636f6e7465787422293b20636f6e737420656e636f64656444617461203d20736368656d61456e636f6465722e656e636f646544617461285b20097b206e616d653a202269737375616e63655f64617465222c2076616c75653a202230222c20747970653a202275696e74363422207d20097b206e616d653a2022757365725f61646472657373222c2076616c75653a2022307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c20747970653a20226164647265737322207d20097b206e616d653a2022766572696669636174696f6e5f74797065222c2076616c75653a2022222c20747970653a2022737472696e6722207d20097b206e616d653a2022636f6e74657874222c2076616c75653a2022222c20747970653a2022737472696e6722207d205d293b20636f6e7374207478203d206177616974206561732e617474657374287b2009736368656d613a20736368656d615549442c2009646174613a207b200909726563697069656e743a2022307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c20090965787069726174696f6e54696d653a20302c2009097265766f6361626c653a20747275652c202f2f204265206177617265207468617420696620796f757220736368656d61206973206e6f74207265766f6361626c652c2074686973204d5553542062652066616c7365200909646174613a20656e636f646564446174612c20097d2c207d293b20636f6e7374206e65774174746573746174696f6e554944203d2061776169742074782e7761697428293b20636f6e736f6c652e6c6f6728224e6577206174746573746174696f6e205549443a222c206e65774174746573746174696f6e554944293b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a3696d706f727420207b204541532c20536368656d61456e636f646572207d202066726f6d202240657468657265756d2d6174746573746174696f6e2d736572766963652f6561732d73646b223b20636f6e737420656173436f6e747261637441646472657373203d2022307834323030303030303030303030303030303030303030303030303030303030303030303030303231223b20636f6e737420736368656d61554944203d2022307866336666366464346139646162333434353061663465363064663165623431636131653630666437313963653836343562626265643638616138346234383966223b20636f6e737420656173203d206e65772045415328656173436f6e747261637441646472657373293b202f2f205369676e6572206d75737420626520616e206574686572732d6c696b65207369676e65722e206177616974206561732e636f6e6e656374287369676e6572293b202f2f20496e697469616c697a6520536368656d61456e636f64657220776974682074686520736368656d6120737472696e6720636f6e737420736368656d61456e636f646572203d206e657720536368656d61456e636f646572282275696e7436342069737375616e63655f646174652c6164647265737320757365725f616464726573732c737472696e6720766572696669636174696f6e5f747970652c737472696e6720636f6e7465787422293b20636f6e737420656e636f64656444617461203d20736368656d61456e636f6465722e656e636f646544617461285b20097b206e616d653a202269737375616e63655f64617465222c2076616c75653a202230222c20747970653a202275696e74363422207d20097b206e616d653a2022757365725f61646472657373222c2076616c75653a2022307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c20747970653a20226164647265737322207d20097b206e616d653a2022766572696669636174696f6e5f74797065222c2076616c75653a2022222c20747970653a2022737472696e6722207d20097b206e616d653a2022636f6e74657874222c2076616c75653a2022222c20747970653a2022737472696e6722207d205d293b20636f6e7374207478203d206177616974206561732e617474657374287b2009736368656d613a20736368656d615549442c2009646174613a207b200909726563697069656e743a2022307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c20090965787069726174696f6e54696d653a20302c2009097265766f6361626c653a20747275652c202f2f204265206177617265207468617420696620796f757220736368656d61206973206e6f74207265766f6361626c652c2074686973204d5553542062652066616c7365200909646174613a20656e636f646564446174612c20097d2c207d293b20636f6e7374206e65774174746573746174696f6e554944203d2061776169742074782e7761697428293b20636f6e736f6c652e6c6f6728224e6577206174746573746174696f6e205549443a222c206e65774174746573746174696f6e554944293b0000000000000000000000000000000000000000000000000000000000","nonce":"0","salt":"0xbbc930985e2b0db9afddc4ccbc4f4649d423e9f39aaa1242108f1124f278b2f4"}},"signer":"0x95f8B5FdFDE845D4a915Fca3DC9B5869050e698E"}
Offline Link