Source Code
Overview
POL Balance
0 POL
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 254 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Bulk | 15518262 | 20 hrs ago | IN | 0 POL | 0.00214984 | ||||
Set Bulk | 15518193 | 20 hrs ago | IN | 0 POL | 0.00085288 | ||||
Set Bulk | 14937473 | 15 days ago | IN | 0 POL | 0.00221703 | ||||
Set | 14934332 | 16 days ago | IN | 0 POL | 0.00203839 | ||||
Set | 14934262 | 16 days ago | IN | 0 POL | 0.00203839 | ||||
Set Bulk | 14579662 | 24 days ago | IN | 0 POL | 0.00628603 | ||||
Set | 13853423 | 42 days ago | IN | 0 POL | 0.00172983 | ||||
Set | 13853350 | 42 days ago | IN | 0 POL | 0.00172983 | ||||
Set | 13724391 | 45 days ago | IN | 0 POL | 0.00105568 | ||||
Set | 13443741 | 52 days ago | IN | 0 POL | 0.004707 | ||||
Set | 13443737 | 52 days ago | IN | 0 POL | 0.00196824 | ||||
Set Bulk | 13443035 | 52 days ago | IN | 0 POL | 0.00484313 | ||||
Set | 12888942 | 66 days ago | IN | 0 POL | 0.0587295 | ||||
Set | 12888891 | 66 days ago | IN | 0 POL | 0.024555 | ||||
Set | 12888396 | 66 days ago | IN | 0 POL | 0.05208014 | ||||
Set Bulk | 12602504 | 73 days ago | IN | 0 POL | 0.03635036 | ||||
Set Bulk | 12600995 | 73 days ago | IN | 0 POL | 0.03454233 | ||||
Set Bulk | 12483104 | 76 days ago | IN | 0 POL | 0.00740743 | ||||
Set | 12438701 | 77 days ago | IN | 0 POL | 0.00162419 | ||||
Set | 12438698 | 77 days ago | IN | 0 POL | 0.001623 | ||||
Set | 12438695 | 77 days ago | IN | 0 POL | 0.00163013 | ||||
Set | 12438692 | 77 days ago | IN | 0 POL | 0.00163053 | ||||
Set | 12406147 | 78 days ago | IN | 0 POL | 0.00160717 | ||||
Set Bulk | 12406133 | 78 days ago | IN | 0 POL | 0.00459271 | ||||
Set | 12357528 | 79 days ago | IN | 0 POL | 0.00140653 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
KVStore
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 10 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; contract KVStore { uint private constant MAX_STRING_LENGTH = 1000; uint private constant BULK_MAX_COUNT = 20; mapping(address => mapping(string => string)) private store; event DataSaved(address indexed sender, string key, string value); function get( address _account, string memory _key ) public view returns (string memory) { return store[_account][_key]; } function set(string memory _key, string memory _value) public { require( bytes(_key).length <= MAX_STRING_LENGTH && bytes(_value).length <= MAX_STRING_LENGTH, 'Maximum string length' ); store[msg.sender][_key] = _value; emit DataSaved(msg.sender, _key, _value); } function setBulk(string[] memory _keys, string[] memory _values) public { require( _keys.length == _values.length, 'Keys and values must have the same length' ); require(_keys.length < BULK_MAX_COUNT, 'Too many entries'); for (uint i = 0; i < _keys.length; i++) { set(_keys[i], _values[i]); } } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 10 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"string","name":"value","type":"string"}],"name":"DataSaved","type":"event"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"string","name":"_key","type":"string"}],"name":"get","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_key","type":"string"},{"internalType":"string","name":"_value","type":"string"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_keys","type":"string[]"},{"internalType":"string[]","name":"_values","type":"string[]"}],"name":"setBulk","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080806040523461001657610705908161001c8239f35b600080fdfe60406080815260048036101561001457600080fd5b600091823560e01c80630328829c146101cf578063e942b516146101795763fc2525ab1461004157600080fd5b3461017557806003193601126101755781356001600160a01b038116929083900361017157602435906001600160401b03821161016d576100849136910161032a565b9183526100a66020809385825283862082855194838680955193849201610407565b8201908152030190208151938491818154906100c182610479565b9283865260019288600182169182600014610143575050600114610105575b8588610101896100f2848a03856102f1565b5192828493845283019061042a565b0390f35b87945081939291528383205b82841061012b57505050820101816100f2610101386100e0565b8054848a018601528895508794909301928101610111565b60ff19168882015294151560051b870190940194508593506100f2925061010191503890506100e0565b8480fd5b8380fd5b8280fd5b5034610175573660031901126101cb576001600160401b038135818111610171576101a7903690840161032a565b90602435908111610171576101c8926101c29136910161032a565b906104b3565b80f35b5080fd5b509190346101cb57826003193601126101cb576001600160401b03908035828111610171576102019036908301610385565b91602435908111610171576102199036908301610385565b93825185510361029c57601483511015610266575050815b8151811015610262578061025c61024a6001938561044f565b51610255838861044f565b51906104b3565b01610231565b8280f35b906020606492519162461bcd60e51b8352820152601060248201526f546f6f206d616e7920656e747269657360801b6044820152fd5b906020608492519162461bcd60e51b8352820152602960248201527f4b65797320616e642076616c756573206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b6064820152fd5b601f909101601f19168101906001600160401b0382119082101761031457604052565b634e487b7160e01b600052604160045260246000fd5b81601f82011215610380578035906001600160401b038211610314576040519261035e601f8401601f1916602001856102f1565b8284526020838301011161038057816000926020809301838601378301015290565b600080fd5b81601f82011215610380578035916020916001600160401b03808511610314578460051b90604051956103ba868401886102f1565b865284808701928401019380851161038057858401925b8584106103e2575050505050505090565b83358381116103805787916103fc848480948a010161032a565b8152019301926103d1565b60005b83811061041a5750506000910152565b818101518382015260200161040a565b9060209161044381518092818552858086019101610407565b601f01601f1916010190565b80518210156104635760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b90600182811c921680156104a9575b602083101461049357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610488565b91906103e8808451111590816106a3575b5015610666576000923384526020938085526040812085604051809285516104ef8184868a01610407565b820190815203019020835190916001600160401b038211610652576105148354610479565b601f811161060f575b508690601f8311600114610596579282610586936000805160206106b08339815191529798999361057797969161058b575b508160011b916000199060031b1c19161790555b60405193849360408552604085019061042a565b9083820390840152339561042a565b0390a2565b90508801513861054f565b90601f198316848352888320925b8181106105f85750836000805160206106b08339815191529798999361057797969361058696600194106105df575b5050811b019055610563565b8a015160001960f88460031b161c1916905538806105d3565b91928960018192868b0151815501940192016105a4565b838252878220601f840160051c810191898510610648575b601f0160051c01905b81811061063d575061051d565b828155600101610630565b9091508190610627565b634e487b7160e01b81526041600452602490fd5b60405162461bcd60e51b815260206004820152601560248201527409ac2f0d2daeada40e6e8e4d2dcce40d8cadccee8d605b1b6044820152606490fd5b905081511115386104c456fe111b8e1131df198b5697ae35ffda8583f6aaa59f09dcc58a8461f8cc12bf883ba2646970667358221220163fabf2d4417d0eff2d8c64c6f711581f9d6594eb94f85340929ff93562098864736f6c63430008170033
Deployed Bytecode
0x60406080815260048036101561001457600080fd5b600091823560e01c80630328829c146101cf578063e942b516146101795763fc2525ab1461004157600080fd5b3461017557806003193601126101755781356001600160a01b038116929083900361017157602435906001600160401b03821161016d576100849136910161032a565b9183526100a66020809385825283862082855194838680955193849201610407565b8201908152030190208151938491818154906100c182610479565b9283865260019288600182169182600014610143575050600114610105575b8588610101896100f2848a03856102f1565b5192828493845283019061042a565b0390f35b87945081939291528383205b82841061012b57505050820101816100f2610101386100e0565b8054848a018601528895508794909301928101610111565b60ff19168882015294151560051b870190940194508593506100f2925061010191503890506100e0565b8480fd5b8380fd5b8280fd5b5034610175573660031901126101cb576001600160401b038135818111610171576101a7903690840161032a565b90602435908111610171576101c8926101c29136910161032a565b906104b3565b80f35b5080fd5b509190346101cb57826003193601126101cb576001600160401b03908035828111610171576102019036908301610385565b91602435908111610171576102199036908301610385565b93825185510361029c57601483511015610266575050815b8151811015610262578061025c61024a6001938561044f565b51610255838861044f565b51906104b3565b01610231565b8280f35b906020606492519162461bcd60e51b8352820152601060248201526f546f6f206d616e7920656e747269657360801b6044820152fd5b906020608492519162461bcd60e51b8352820152602960248201527f4b65797320616e642076616c756573206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b6064820152fd5b601f909101601f19168101906001600160401b0382119082101761031457604052565b634e487b7160e01b600052604160045260246000fd5b81601f82011215610380578035906001600160401b038211610314576040519261035e601f8401601f1916602001856102f1565b8284526020838301011161038057816000926020809301838601378301015290565b600080fd5b81601f82011215610380578035916020916001600160401b03808511610314578460051b90604051956103ba868401886102f1565b865284808701928401019380851161038057858401925b8584106103e2575050505050505090565b83358381116103805787916103fc848480948a010161032a565b8152019301926103d1565b60005b83811061041a5750506000910152565b818101518382015260200161040a565b9060209161044381518092818552858086019101610407565b601f01601f1916010190565b80518210156104635760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b90600182811c921680156104a9575b602083101461049357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610488565b91906103e8808451111590816106a3575b5015610666576000923384526020938085526040812085604051809285516104ef8184868a01610407565b820190815203019020835190916001600160401b038211610652576105148354610479565b601f811161060f575b508690601f8311600114610596579282610586936000805160206106b08339815191529798999361057797969161058b575b508160011b916000199060031b1c19161790555b60405193849360408552604085019061042a565b9083820390840152339561042a565b0390a2565b90508801513861054f565b90601f198316848352888320925b8181106105f85750836000805160206106b08339815191529798999361057797969361058696600194106105df575b5050811b019055610563565b8a015160001960f88460031b161c1916905538806105d3565b91928960018192868b0151815501940192016105a4565b838252878220601f840160051c810191898510610648575b601f0160051c01905b81811061063d575061051d565b828155600101610630565b9091508190610627565b634e487b7160e01b81526041600452602490fd5b60405162461bcd60e51b815260206004820152601560248201527409ac2f0d2daeada40e6e8e4d2dcce40d8cadccee8d605b1b6044820152606490fd5b905081511115386104c456fe111b8e1131df198b5697ae35ffda8583f6aaa59f09dcc58a8461f8cc12bf883ba2646970667358221220163fabf2d4417d0eff2d8c64c6f711581f9d6594eb94f85340929ff93562098864736f6c63430008170033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.