Amoy Testnet

Contract

0x724AeFC243EdacCA27EAB86D3ec5a76Af4436Fc7

Overview

POL Balance

Polygon PoS Chain Amoy LogoPolygon PoS Chain Amoy LogoPolygon PoS Chain Amoy Logo0 POL

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Set Bulk155182622024-12-12 13:13:0220 hrs ago1734009182IN
0x724AeFC2...Af4436Fc7
0 POL0.0021498429.10000001
Set Bulk155181932024-12-12 13:10:0420 hrs ago1734009004IN
0x724AeFC2...Af4436Fc7
0 POL0.0008528825.22
Set Bulk149374732024-11-27 11:14:3115 days ago1732706071IN
0x724AeFC2...Af4436Fc7
0 POL0.0022170330.009375
Set149343322024-11-27 9:23:1516 days ago1732699395IN
0x724AeFC2...Af4436Fc7
0 POL0.0020383946.56
Set149342622024-11-27 9:20:4716 days ago1732699247IN
0x724AeFC2...Af4436Fc7
0 POL0.0020383946.56
Set Bulk145796622024-11-18 14:48:2124 days ago1731941301IN
0x724AeFC2...Af4436Fc7
0 POL0.0062860332.68905384
Set138534232024-10-31 15:05:2142 days ago1730387121IN
0x724AeFC2...Af4436Fc7
0 POL0.0017298337.29062257
Set138533502024-10-31 15:02:4742 days ago1730386967IN
0x724AeFC2...Af4436Fc7
0 POL0.0017298337.29062257
Set137243912024-10-28 10:53:0345 days ago1730112783IN
0x724AeFC2...Af4436Fc7
0 POL0.0010556832.98
Set134437412024-10-21 12:30:4252 days ago1729513842IN
0x724AeFC2...Af4436Fc7
0 POL0.00470740
Set134437372024-10-21 12:30:3452 days ago1729513834IN
0x724AeFC2...Af4436Fc7
0 POL0.0019682440
Set Bulk134430352024-10-21 12:05:4252 days ago1729512342IN
0x724AeFC2...Af4436Fc7
0 POL0.0048431338.8
Set128889422024-10-07 12:04:5066 days ago1728302690IN
0x724AeFC2...Af4436Fc7
0 POL0.0587295500.00000001
Set128888912024-10-07 12:03:0266 days ago1728302582IN
0x724AeFC2...Af4436Fc7
0 POL0.024555500.00000001
Set128883962024-10-07 11:45:3066 days ago1728301530IN
0x724AeFC2...Af4436Fc7
0 POL0.05208014443.39000001
Set Bulk126025042024-09-30 10:48:2073 days ago1727693300IN
0x724AeFC2...Af4436Fc7
0 POL0.0363503697
Set Bulk126009952024-09-30 9:54:5473 days ago1727690094IN
0x724AeFC2...Af4436Fc7
0 POL0.03454233190.82897222
Set Bulk124831042024-09-27 12:19:2276 days ago1727439562IN
0x724AeFC2...Af4436Fc7
0 POL0.0074074334.22523751
Set124387012024-09-26 10:06:4477 days ago1727345204IN
0x724AeFC2...Af4436Fc7
0 POL0.0016241933.00000001
Set124386982024-09-26 10:06:3877 days ago1727345198IN
0x724AeFC2...Af4436Fc7
0 POL0.00162333.00000001
Set124386952024-09-26 10:06:3277 days ago1727345192IN
0x724AeFC2...Af4436Fc7
0 POL0.0016301333.00000001
Set124386922024-09-26 10:06:2677 days ago1727345186IN
0x724AeFC2...Af4436Fc7
0 POL0.0016305333.00000001
Set124061472024-09-25 14:34:3278 days ago1727274872IN
0x724AeFC2...Af4436Fc7
0 POL0.0016071732.12095479
Set Bulk124061332024-09-25 14:34:0278 days ago1727274842IN
0x724AeFC2...Af4436Fc7
0 POL0.0045927131.15732615
Set123575282024-09-24 9:52:1379 days ago1727171533IN
0x724AeFC2...Af4436Fc7
0 POL0.0014065342.67531117
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
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)

File 1 of 1 : KVStore.sol
// 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]);
        }
    }
}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 10
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"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"}]

6080806040523461001657610705908161001c8239f35b600080fdfe60406080815260048036101561001457600080fd5b600091823560e01c80630328829c146101cf578063e942b516146101795763fc2525ab1461004157600080fd5b3461017557806003193601126101755781356001600160a01b038116929083900361017157602435906001600160401b03821161016d576100849136910161032a565b9183526100a66020809385825283862082855194838680955193849201610407565b8201908152030190208151938491818154906100c182610479565b9283865260019288600182169182600014610143575050600114610105575b8588610101896100f2848a03856102f1565b5192828493845283019061042a565b0390f35b87945081939291528383205b82841061012b57505050820101816100f2610101386100e0565b8054848a018601528895508794909301928101610111565b60ff19168882015294151560051b870190940194508593506100f2925061010191503890506100e0565b8480fd5b8380fd5b8280fd5b5034610175573660031901126101cb576001600160401b038135818111610171576101a7903690840161032a565b90602435908111610171576101c8926101c29136910161032a565b906104b3565b80f35b5080fd5b509190346101cb57826003193601126101cb576001600160401b03908035828111610171576102019036908301610385565b91602435908111610171576102199036908301610385565b93825185510361029c57601483511015610266575050815b8151811015610262578061025c61024a6001938561044f565b51610255838861044f565b51906104b3565b01610231565b8280f35b906020606492519162461bcd60e51b8352820152601060248201526f546f6f206d616e7920656e747269657360801b6044820152fd5b906020608492519162461bcd60e51b8352820152602960248201527f4b65797320616e642076616c756573206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b6064820152fd5b601f909101601f19168101906001600160401b0382119082101761031457604052565b634e487b7160e01b600052604160045260246000fd5b81601f82011215610380578035906001600160401b038211610314576040519261035e601f8401601f1916602001856102f1565b8284526020838301011161038057816000926020809301838601378301015290565b600080fd5b81601f82011215610380578035916020916001600160401b03808511610314578460051b90604051956103ba868401886102f1565b865284808701928401019380851161038057858401925b8584106103e2575050505050505090565b83358381116103805787916103fc848480948a010161032a565b8152019301926103d1565b60005b83811061041a5750506000910152565b818101518382015260200161040a565b9060209161044381518092818552858086019101610407565b601f01601f1916010190565b80518210156104635760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b90600182811c921680156104a9575b602083101461049357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610488565b91906103e8808451111590816106a3575b5015610666576000923384526020938085526040812085604051809285516104ef8184868a01610407565b820190815203019020835190916001600160401b038211610652576105148354610479565b601f811161060f575b508690601f8311600114610596579282610586936000805160206106b08339815191529798999361057797969161058b575b508160011b916000199060031b1c19161790555b60405193849360408552604085019061042a565b9083820390840152339561042a565b0390a2565b90508801513861054f565b90601f198316848352888320925b8181106105f85750836000805160206106b08339815191529798999361057797969361058696600194106105df575b5050811b019055610563565b8a015160001960f88460031b161c1916905538806105d3565b91928960018192868b0151815501940192016105a4565b838252878220601f840160051c810191898510610648575b601f0160051c01905b81811061063d575061051d565b828155600101610630565b9091508190610627565b634e487b7160e01b81526041600452602490fd5b60405162461bcd60e51b815260206004820152601560248201527409ac2f0d2daeada40e6e8e4d2dcce40d8cadccee8d605b1b6044820152606490fd5b905081511115386104c456fe111b8e1131df198b5697ae35ffda8583f6aaa59f09dcc58a8461f8cc12bf883ba2646970667358221220163fabf2d4417d0eff2d8c64c6f711581f9d6594eb94f85340929ff93562098864736f6c63430008170033

Deployed Bytecode

0x60406080815260048036101561001457600080fd5b600091823560e01c80630328829c146101cf578063e942b516146101795763fc2525ab1461004157600080fd5b3461017557806003193601126101755781356001600160a01b038116929083900361017157602435906001600160401b03821161016d576100849136910161032a565b9183526100a66020809385825283862082855194838680955193849201610407565b8201908152030190208151938491818154906100c182610479565b9283865260019288600182169182600014610143575050600114610105575b8588610101896100f2848a03856102f1565b5192828493845283019061042a565b0390f35b87945081939291528383205b82841061012b57505050820101816100f2610101386100e0565b8054848a018601528895508794909301928101610111565b60ff19168882015294151560051b870190940194508593506100f2925061010191503890506100e0565b8480fd5b8380fd5b8280fd5b5034610175573660031901126101cb576001600160401b038135818111610171576101a7903690840161032a565b90602435908111610171576101c8926101c29136910161032a565b906104b3565b80f35b5080fd5b509190346101cb57826003193601126101cb576001600160401b03908035828111610171576102019036908301610385565b91602435908111610171576102199036908301610385565b93825185510361029c57601483511015610266575050815b8151811015610262578061025c61024a6001938561044f565b51610255838861044f565b51906104b3565b01610231565b8280f35b906020606492519162461bcd60e51b8352820152601060248201526f546f6f206d616e7920656e747269657360801b6044820152fd5b906020608492519162461bcd60e51b8352820152602960248201527f4b65797320616e642076616c756573206d7573742068617665207468652073616044820152680daca40d8cadccee8d60bb1b6064820152fd5b601f909101601f19168101906001600160401b0382119082101761031457604052565b634e487b7160e01b600052604160045260246000fd5b81601f82011215610380578035906001600160401b038211610314576040519261035e601f8401601f1916602001856102f1565b8284526020838301011161038057816000926020809301838601378301015290565b600080fd5b81601f82011215610380578035916020916001600160401b03808511610314578460051b90604051956103ba868401886102f1565b865284808701928401019380851161038057858401925b8584106103e2575050505050505090565b83358381116103805787916103fc848480948a010161032a565b8152019301926103d1565b60005b83811061041a5750506000910152565b818101518382015260200161040a565b9060209161044381518092818552858086019101610407565b601f01601f1916010190565b80518210156104635760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b90600182811c921680156104a9575b602083101461049357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610488565b91906103e8808451111590816106a3575b5015610666576000923384526020938085526040812085604051809285516104ef8184868a01610407565b820190815203019020835190916001600160401b038211610652576105148354610479565b601f811161060f575b508690601f8311600114610596579282610586936000805160206106b08339815191529798999361057797969161058b575b508160011b916000199060031b1c19161790555b60405193849360408552604085019061042a565b9083820390840152339561042a565b0390a2565b90508801513861054f565b90601f198316848352888320925b8181106105f85750836000805160206106b08339815191529798999361057797969361058696600194106105df575b5050811b019055610563565b8a015160001960f88460031b161c1916905538806105d3565b91928960018192868b0151815501940192016105a4565b838252878220601f840160051c810191898510610648575b601f0160051c01905b81811061063d575061051d565b828155600101610630565b9091508190610627565b634e487b7160e01b81526041600452602490fd5b60405162461bcd60e51b815260206004820152601560248201527409ac2f0d2daeada40e6e8e4d2dcce40d8cadccee8d605b1b6044820152606490fd5b905081511115386104c456fe111b8e1131df198b5697ae35ffda8583f6aaa59f09dcc58a8461f8cc12bf883ba2646970667358221220163fabf2d4417d0eff2d8c64c6f711581f9d6594eb94f85340929ff93562098864736f6c63430008170033

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.