DeploySEALED
&■╲?#%██▪*@╲!&▒╳*█╲^*■░!#◇◆○●█**●□○$~#█%█&$○?&○▪▪^▪*□╱▫▓■▪╱╱!░%^
Transaction ID
Execution Fee
0.00078 FLOWTransaction Summary
DeployContract deployment
Contract deployment
Script Arguments
0nameString
DataAnchor
1codeString
// DataAnchor - Minimal contract for anchoring certificate data (JSON) on Flow.
// Deploy this contract to your account, then use record_data.cdc to submit data.
// No persistent storage (keeps cost low); the event is the on-chain proof.
access(all) contract DataAnchor {
// Emitted when certificate data is anchored. The transaction ID is the proof.
access(all) event DataAnchored(data: String, timestamp: UFix64)
access(all) fun recordData(data: String) {
emit DataAnchored(data: data, 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 }