Transaction #18335

Hash 7f710d10d88f45688d17c380cde74007b43a0537c11103c7bbcab883a655f812
Status Success
Timestamp 289 days ago - 8/5/2023, 7:27:51 AM UTC+0
Block 18335
Stamps Used 62
Burned Fee 0.00366864 TAU
From c674a8a398fb81765277f77fc11464496dae94632de18eea1d69bf0c7894ad03 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 3
Processor a04b5891ef8cd27095373a4f75b899ec2bc0883c02e506a6a5b55b491998cc3f
Signature c51f0eefb3e4bed7b4e0c8db5cc2693654a2e02fc6258fd6383d57c8f0153db3b57f14556fa2d7c0561ee95cc2c7a516325b218adac33ba4c689716d8c151d09
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code ### # This is a simple smart contract # All Lamden smart contracts are programmed in Python # For complete contracting documentation please visit https://contracting.lamden.io/ ### '''Create a global variable that will store key/value pairs on the blockchain''' yourState = Hash(default_value='') '''Define smart contract methods to alter state''' #Allow anyone to set the value of a key @export def set_value(key_name: str, key_value: str): #create a key in your state that contains whatever value was passed yourState[key_name] = key_value #Allow only the sender of the transaction to set the value of a key @export def set_value_for_sender(key_value: str): #ctx.caller is a global variable and is the public key of the person who sent the transaction sender = ctx.caller yourState[sender] = key_value ''' Current state can be read from the masternode API ''' # example to get the value of 'stu' in the 'yourState' state variable from 'example' contract: # https://testnet.lamden.io:443/contracts/example/yourState?key=stu
name con_new_contract52345345

State Changes

Contract con_new_contract52345345
Variable __code__
New Value """Create a global variable that will store key/value pairs on the blockchain""" __yourState = Hash(default_value='', contract='con_new_contract52345345', name='yourState') """Define smart contract methods to alter state""" @__export('con_new_contract52345345') def set_value(key_name: str, key_value: str): __yourState[key_name] = key_value @__export('con_new_contract52345345') def set_value_for_sender(key_value: str): sender = ctx.caller __yourState[sender] = key_value """ Current state can be read from the masternode API """
 
Contract con_new_contract52345345
Variable __compiled__
New Value e30000000000000000000000000500000040000000734400000064005a00650164016402640364048d035a026503640283016504650464059c0264066407840483015a05650364028301650464089c016409640a840483015a06640b5300290c7a4a437265617465206120676c6f62616c207661726961626c6520746861742077696c6c2073746f7265206b65792f76616c7565207061697273206f6e2074686520626c6f636b636861696eda00da18636f6e5f6e65775f636f6e74726163743532333435333435da09796f757253746174652903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d652902da086b65795f6e616d65da096b65795f76616c7565630200000000000000020000000300000043000000730c0000007c0174007c003c006400530029014e2901da0b5f5f796f75725374617465290272070000007208000000a900720a0000007201000000da097365745f76616c75650700000073020000000002720b00000029017208000000630100000000000000020000000300000043000000731200000074006a017d017c0074027c013c006400530029014e2903da03637478da0663616c6c6572720900000029027208000000da0673656e646572720a000000720a0000007201000000da147365745f76616c75655f666f725f73656e6465720c000000730400000000020601720f0000004e2907da075f5f646f635f5fda04486173687209000000da085f5f6578706f7274da03737472720b000000720f000000720a000000720a000000720a0000007201000000da083c6d6f64756c653e01000000730e0000000401060108040601120406011005
 
Contract con_new_contract52345345
Variable __developer__
New Value c674a8a398fb81765277f77fc11464496dae94632de18eea1d69bf0c7894ad03
 
Contract con_new_contract52345345
Variable __owner__
New Value null
 
Contract con_new_contract52345345
Variable __submitted__
New Value 2023,8,5,7,27,52,0
 
Contract currency
Variable balances
Key c674a8a398fb81765277f77fc11464496dae94632de18eea1d69bf0c7894ad03
New Value 997.912755705266272110473372781038