DeploySEALED
●$○%╲□●◆░%!▪░^╳╲■╳%@╲╲~◇*◇!╲○◇!*^%◇▓$●▫◆▓▫▪●%◇▫#╳●░□*■%&╳╳&?%~~~
Transaction ID
Execution Fee
0.00078 FLOWTransaction Summary
DeployContract deployment
Contract deployment
Script Arguments
0nameString
HashAnchor
1codeString
// HashAnchor - Minimal contract for anchoring file hashes on Flow.
// Deploy this contract to your account, then use record_hash.cdc to submit hashes.
// No persistent storage (keeps cost low); the event is the on-chain proof.
access(all) contract HashAnchor {
// Emitted when a hash is anchored. The transaction ID is the proof.
access(all) event HashAnchored(hash: String, timestamp: UFix64)
access(all) fun recordHash(hash: String) {
emit HashAnchored(hash: hash, timestamp: getCurrentBlock().timestamp)
}
}
Cadence Script
1transaction(name: String, code: String ) {
2 prepare(signer: auth(AddContract) &Account) {
3 signer.contracts.add(name: name, code: code.utf8 )
4 }
5 }