Sonic Blaze Testnet

Contract

0x86687D1FA4A0d40a1CC76c479a83512734E0F034

Overview

S Balance

Sonic Blaze LogoSonic Blaze LogoSonic Blaze Logo0 S

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SETNUMBERCONTRACT

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at testnet.sonicscan.org on 2024-12-10
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

contract SETNUMBERCONTRACT {
    address reserved;
    uint256 public number;
    
    /**
     *
     * requirements:
     *
     * - the caller must be the admin of the contract
     */
    function setNumber(uint256 _number) public {
        number = _number * 2000101;
    }

    function decimals() public view returns (uint256) {
        return number;
    }
}

Contract ABI

[{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"number","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"setNumber","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052348015600e575f80fd5b506101f08061001c5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063313ce567146100435780633fb5c1cb146100615780638381f58a1461007d575b5f80fd5b61004b61009b565b60405161005891906100da565b60405180910390f35b61007b60048036038101906100769190610121565b6100a4565b005b6100856100bc565b60405161009291906100da565b60405180910390f35b5f600154905090565b621e84e5816100b39190610179565b60018190555050565b60015481565b5f819050919050565b6100d4816100c2565b82525050565b5f6020820190506100ed5f8301846100cb565b92915050565b5f80fd5b610100816100c2565b811461010a575f80fd5b50565b5f8135905061011b816100f7565b92915050565b5f60208284031215610136576101356100f3565b5b5f6101438482850161010d565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610183826100c2565b915061018e836100c2565b925082820261019c816100c2565b915082820484148315176101b3576101b261014c565b5b509291505056fea2646970667358221220ef0405e086d7089a2e84717d112bebde34618e1872392bdef54af30630be7cd164736f6c634300081a0033

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c8063313ce567146100435780633fb5c1cb146100615780638381f58a1461007d575b5f80fd5b61004b61009b565b60405161005891906100da565b60405180910390f35b61007b60048036038101906100769190610121565b6100a4565b005b6100856100bc565b60405161009291906100da565b60405180910390f35b5f600154905090565b621e84e5816100b39190610179565b60018190555050565b60015481565b5f819050919050565b6100d4816100c2565b82525050565b5f6020820190506100ed5f8301846100cb565b92915050565b5f80fd5b610100816100c2565b811461010a575f80fd5b50565b5f8135905061011b816100f7565b92915050565b5f60208284031215610136576101356100f3565b5b5f6101438482850161010d565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610183826100c2565b915061018e836100c2565b925082820261019c816100c2565b915082820484148315176101b3576101b261014c565b5b509291505056fea2646970667358221220ef0405e086d7089a2e84717d112bebde34618e1872392bdef54af30630be7cd164736f6c634300081a0033

Deployed Bytecode Sourcemap

60:383:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;358:82;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;262:88;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;117:21;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;358:82;399:7;426:6;;419:13;;358:82;:::o;262:88::-;335:7;325;:17;;;;:::i;:::-;316:6;:26;;;;262:88;:::o;117:21::-;;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:122;842:24;860:5;842:24;:::i;:::-;835:5;832:35;822:63;;881:1;878;871:12;822:63;769:122;:::o;897:139::-;943:5;981:6;968:20;959:29;;997:33;1024:5;997:33;:::i;:::-;897:139;;;;:::o;1042:329::-;1101:6;1150:2;1138:9;1129:7;1125:23;1121:32;1118:119;;;1156:79;;:::i;:::-;1118:119;1276:1;1301:53;1346:7;1337:6;1326:9;1322:22;1301:53;:::i;:::-;1291:63;;1247:117;1042:329;;;;:::o;1377:180::-;1425:77;1422:1;1415:88;1522:4;1519:1;1512:15;1546:4;1543:1;1536:15;1563:410;1603:7;1626:20;1644:1;1626:20;:::i;:::-;1621:25;;1660:20;1678:1;1660:20;:::i;:::-;1655:25;;1715:1;1712;1708:9;1737:30;1755:11;1737:30;:::i;:::-;1726:41;;1916:1;1907:7;1903:15;1900:1;1897:22;1877:1;1870:9;1850:83;1827:139;;1946:18;;:::i;:::-;1827:139;1611:362;1563:410;;;;:::o

Swarm Source

ipfs://ef0405e086d7089a2e84717d112bebde34618e1872392bdef54af30630be7cd1

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

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.