Learn more about EAS in our docs
Offchain Attestation
UID:
0xed7341ab8350958f9094613f55752c54a784fffe1e992f52ff096b96bc456f3d
TIMESTAMPS:
Created: 11/12/2024 12:38:24 pm
Timestamp onchain
EXPIRATION:
Never
REVOKED:
No
SCHEMA:
#7
Write a Message
0x3969bb...0ac0822f
Decoded Data:
string
Message
import { EAS, SchemaEncoder } from "@ethereum-attestation-service/eas-sdk"; const easContractAddress = "0x4200000000000000000000000000000000000021"; const schemaUID = "0x3969bb076acfb992af54d51274c5c868641ca5344e1aacd0b1f5e4f80ac0822f"; 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("string message"); const encodedData = schemaEncoder.encodeData([ { name: "message", 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":"0xf49ef4dd913ebb543806517190cbd7de444daece3fa6559be3dd6f594cbad171","s":"0x469426aedfd8b8a810896787c693d5872bebb916c7e01513716c07070575d11b","v":27},"uid":"0xed7341ab8350958f9094613f55752c54a784fffe1e992f52ff096b96bc456f3d","message":{"version":2,"schema":"0x3969bb076acfb992af54d51274c5c868641ca5344e1aacd0b1f5e4f80ac0822f","recipient":"0x0000000000000000000000000000000000000000","time":"1731415104","expirationTime":"0","refUID":"0x0000000000000000000000000000000000000000000000000000000000000000","revocable":true,"data":"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000038f696d706f727420207b204541532c20536368656d61456e636f646572207d202066726f6d202240657468657265756d2d6174746573746174696f6e2d736572766963652f6561732d73646b223b20636f6e737420656173436f6e747261637441646472657373203d2022307834323030303030303030303030303030303030303030303030303030303030303030303030303231223b20636f6e737420736368656d61554944203d2022307833393639626230373661636662393932616635346435313237346335633836383634316361353334346531616163643062316635653466383061633038323266223b20636f6e737420656173203d206e65772045415328656173436f6e747261637441646472657373293b202f2f205369676e6572206d75737420626520616e206574686572732d6c696b65207369676e65722e206177616974206561732e636f6e6e656374287369676e6572293b202f2f20496e697469616c697a6520536368656d61456e636f64657220776974682074686520736368656d6120737472696e6720636f6e737420736368656d61456e636f646572203d206e657720536368656d61456e636f6465722822737472696e67206d65737361676522293b20636f6e737420656e636f64656444617461203d20736368656d61456e636f6465722e656e636f646544617461285b20097b206e616d653a20226d657373616765222c2076616c75653a2022222c20747970653a2022737472696e6722207d205d293b20636f6e7374207478203d206177616974206561732e617474657374287b2009736368656d613a20736368656d615549442c2009646174613a207b200909726563697069656e743a2022307830303030303030303030303030303030303030303030303030303030303030303030303030303030222c20090965787069726174696f6e54696d653a20302c2009097265766f6361626c653a20747275652c202f2f204265206177617265207468617420696620796f757220736368656d61206973206e6f74207265766f6361626c652c2074686973204d5553542062652066616c7365200909646174613a20656e636f646564446174612c20097d2c207d293b20636f6e7374206e65774174746573746174696f6e554944203d2061776169742074782e7761697428293b20636f6e736f6c652e6c6f6728224e6577206174746573746174696f6e205549443a222c206e65774174746573746174696f6e554944293b0000000000000000000000000000000000","nonce":"0","salt":"0xa1b868e6fed5d54a5c2b29107cbbdd072084232c64b08bf6aaad67442e75a16c"}},"signer":"0xBfcc5a1D1b31512ba320742c46e2d3Fe32751Bb9"}
Offline Link