@version 1 condition triggered_by: transaction, on: update_state(_state), as: [ previous_public_key: ( # Transaction is not yet validated so we need to use previous address # to get the genesis address previous_address = Chain.get_previous_address() Chain.get_genesis_address(previous_address) == 0x000066706d704329ca8c2a4153991e2ddacc968622ca10217ca14952eb7abb966c30 ) ] actions triggered_by: transaction, on: update_state(state) do Contract.set_content Json.to_string(state) end export fun get_state() do Json.parse(contract.content) end
{
"charged_contracts": {
"11155111": {
"0x3bbd64e038cb58b1f5855542f097cd1ed1f61575": 1702126920
}
},
"requested_secrets": {}
}
State (0 B)
-
Secret shared with 1 key
Encoded secret
A88CE1ADD529D793BAB8770FF1586946331331F10F0995FE2159D7A7C0E115218611CDEE225FA895770B2818729EEDEA1F0A13D03B7E70D03C752511
Authorized keys
- 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F
Contract recipients (0)
Inputs (0)
Contract inputs (0)
Unspent outputs (1)
-
From 00007A23...3986At 2023-12-09 11:02:48 UTCAmount 0.002303 UCO
Previous public key
000166128AAF8392662B319368B3E646D6BF5A84A8397BB49EE184FCFF11B75358D5
Previous signature
A48CBA8053CEDA8F3818577C2846D1CE0E01133A3F050F078C2196744067490408624A53258CF91DA3C5081C1CB2605414A8BB6AC653E0DEEC675003B8279F09
Origin signature
304402203296BC6726EA2AA41A0EDCA241D64F687F36D9234E3CBA984B4F8A5A8F7AF3D7022070F5A33B7F4CF856E74CAF38CE88057E9CD2237909AB078186558E7A80B6A103
Proof of work
010204B3B2A53580086B9F36919CF40ABC55904729F78BF43673E216FAC1EB2451DD1E521879C6588F0CB09B150A103A39A73E2816B5ADF51F0721348BA3A66C33023B
Proof of integrity
00C2E552507C5A497FBF81525E3A4A2CDBCD67DD72E8EC9095B487938D4D4BEC20
Coordinator signature
BD7CB95479AEA591CC85C3AE445C11C8DCABCC0CEE16C9177321A7BC1578D52DD5BB4686EE44F3D63E509625A4214F44200E1FB706B1483566F93B3EAD7C4B00
Validator #1 public key
0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3
Validator #1 signature
209BBE5A41B027D23513CD2F7E79638E4BBEC415C05AE616AB310A0AF6E1693C2F46DC41FEDAF8F41E22F2F1B8A1CBE16930B78401AAAF11C4B927EF2A31570E
Validator #2 public key
000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF
Validator #2 signature
7BD78F2016D7CCC040E17CEF5AD47AF17E08B4D5B21E87BD73C4322CB0E9205540F9F9CBBF233D174A871140CB2C086D1DD2D45F328ECE8C2D43F54C20435908