Sepolia Testnet

Contract

0xe8ab1729101c71b650d2B2C084D59Cecf91Ff8b3
 
Source Code Source Code

Overview

ETH Balance

0 ETH

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method
Block
From
To
Amount
0x60806040100489922026-01-15 12:04:36260 days ago1768478676  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Source Code Verified Similar Match: 0x62D64d1b...52687C142
Constructor

Contract Name

BetInstance

Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled
Yes with 20000 runs
Other Settings
paris EvmVersion
License
-NA-
Contract Source Code (Solidity Standard Json-Input format)
Contract ABI
API
[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"string","name":"_description","type":"string"},{"internalType":"uint256","name":"_bettingDeadline","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"isYes","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BetPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum BetInstance.Outcome","name":"outcome","type":"uint8"}],"name":"BetResolved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDeadline","type":"uint256"}],"name":"DeadlineUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PayoutClaimed","type":"event"},{"inputs":[],"name":"_bytecode","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"betNo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"betYes","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"betsOnNo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"betsOnYes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bettingDeadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalOutcome","outputs":[{"internalType":"enum BetInstance.Outcome","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isResolved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum BetInstance.Outcome","name":"_outcome","type":"uint8"}],"name":"resolve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDeadline","type":"uint256"}],"name":"setDeadline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalNo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalYes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x6080604052600436106100f35760003560e01c806388ba8dd61161008a578063ba0f51c711610059578063ba0f51c71461027b578063d1def5d714610283578063dbb3f537146102b0578063f851a440146102cf57600080fd5b806388ba8dd61461022757806396962c941461023d578063a0270dbc14610245578063af0088831461026557600080fd5b80633ccfd60b116100c65780633ccfd60b14610196578063404002a6146101ab5780635e2c19db146101d25780637284e4161461021257600080fd5b8063195199f6146100f85780631cb5e3541461011a5780631d94e6b7146101455780632468698d14610180575b600080fd5b34801561010457600080fd5b50610118610113366004611158565b610321565b005b34801561012657600080fd5b5061012f6104be565b60405161013c9190611171565b60405180910390f35b34801561015157600080fd5b506101726101603660046111dd565b60076020526000908152604090205481565b60405190815260200161013c565b34801561018c57600080fd5b5061017260025481565b3480156101a257600080fd5b506101186104de565b3480156101b757600080fd5b506003546101c59060ff1681565b60405161013c9190611249565b3480156101de57600080fd5b506102026101ed3660046111dd565b60086020526000908152604090205460ff1681565b604051901515815260200161013c565b34801561021e57600080fd5b5061012f610937565b34801561023357600080fd5b5061017260045481565b6101186109c5565b34801561025157600080fd5b5061011861026036600461128a565b610bac565b34801561027157600080fd5b5061017260055481565b610118610f77565b34801561028f57600080fd5b5061017261029e3660046111dd565b60066020526000908152604090205481565b3480156102bc57600080fd5b5060035461020290610100900460ff1681565b3480156102db57600080fd5b506000546102fc9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161013c565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4f6e6c792061646d696e2063616e2073657420646561646c696e65000000000060448201526064015b60405180910390fd5b600354610100900460ff1615610419576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4d61726b657420616c7265616479207265736f6c766564000000000000000000604482015260640161039e565b428111610482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f446561646c696e65206d75737420626520696e20746865206675747572650000604482015260640161039e565b60028190556040518181527fdb00f0341e024be397e058a193a27b85cc3e7f921640be77ddf155c9f8d37c5a906020015b60405180910390a150565b606060405180606001604052806031815260200161139960319139905090565b600354610100900460ff1661054f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f426574206e6f7420796574207265736f6c766564000000000000000000000000604482015260640161039e565b3360009081526008602052604090205460ff16156105c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f52657761726420616c726561647920636c61696d656400000000000000000000604482015260640161039e565b6000600380805460ff16908111156105e3576105e361121a565b0361067f573360009081526007602090815260408083205460069092529091205461060e91906112da565b90506000811161067a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f206265747320746f20726566756e64000000000000000000000000000000604482015260640161039e565b610817565b600060055460045461069191906112da565b905060016003805460ff16908111156106ac576106ac61121a565b036107565733600090815260066020526040902054610727576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f55736572206973206e6f7420612077696e6e6572000000000000000000000000604482015260640161039e565b600454336000908152600660205260409020546107459083906112f3565b61074f919061130a565b9150610815565b60026003805460ff169081111561076f5761076f61121a565b0361081557336000908152600760205260409020546107ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f55736572206973206e6f7420612077696e6e6572000000000000000000000000604482015260640161039e565b600554336000908152600760205260409020546108089083906112f3565b610812919061130a565b91505b505b3360008181526008602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555190919083908381818185875af1925050503d806000811461088e576040519150601f19603f3d011682016040523d82523d6000602084013e610893565b606091505b50509050806108fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f455448207472616e73666572206661696c656400000000000000000000000000604482015260640161039e565b60405182815233907fec68461f5d4cc45c89e914cb8826a966c73dd35e5f97815ece0a01ffa4a025a69060200160405180910390a25050565b6001805461094490611345565b80601f016020809104026020016040519081016040528092919081815260200182805461097090611345565b80156109bd5780601f10610992576101008083540402835291602001916109bd565b820191906000526020600020905b8154815290600101906020018083116109a057829003601f168201915b505050505081565b6002544210610a30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f42657474696e6720706572696f642068617320656e6465640000000000000000604482015260640161039e565b600354610100900460ff1615610aa2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d61726b657420616c726561647920636c6f7365640000000000000000000000604482015260640161039e565b60003411610b31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f42657420616d6f756e74206d7573742062652067726561746572207468616e2060448201527f7a65726f00000000000000000000000000000000000000000000000000000000606482015260840161039e565b3360009081526007602052604081208054349290610b509084906112da565b925050819055503460056000828254610b6991906112da565b9091555050604080516000815234602082015233917fe57fa5a543ebcdebf2a7d7102ac913e14454cec006468e43a6916e95bdfcea9e91015b60405180910390a2565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792061646d696e2063616e207265736f6c766500000000000000000000604482015260640161039e565b600354610100900460ff1615610c9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c7265616479207265736f6c76656400000000000000000000000000000000604482015260640161039e565b6000816003811115610cb357610cb361121a565b03610d1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c6964206f7574636f6d650000000000000000000000000000000000604482015260640161039e565b600254421015610d86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f42657474696e6720706572696f64206e6f7420656e6465642079657400000000604482015260640161039e565b6004541580610d955750600554155b15610dc957600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001681179055610f15565b6001816003811115610ddd57610ddd61121a565b03610e4e57600060045411610e4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f2062657473206f6e2059455320746f207061796f75740000000000000000604482015260640161039e565b6002816003811115610e6257610e6261121a565b03610ed357600060055411610ed3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4e6f2062657473206f6e204e4f20746f207061796f7574000000000000000000604482015260640161039e565b600380548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018383811115610f0f57610f0f61121a565b02179055505b600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff8116610100179091556040517fd6bcd4b6873d691163f1aff2d5585378623aef08e17513a5253eabe39c65dc50916104b39160ff90911690611249565b6002544210610fe2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f42657474696e6720706572696f642068617320656e6465640000000000000000604482015260640161039e565b600354610100900460ff1615611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d61726b657420616c726561647920636c6f7365640000000000000000000000604482015260640161039e565b600034116110e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f42657420616d6f756e74206d7573742062652067726561746572207468616e2060448201527f7a65726f00000000000000000000000000000000000000000000000000000000606482015260840161039e565b33600090815260066020526040812080543492906111029084906112da565b92505081905550346004600082825461111b91906112da565b9091555050604080516001815234602082015233917fe57fa5a543ebcdebf2a7d7102ac913e14454cec006468e43a6916e95bdfcea9e9101610ba2565b60006020828403121561116a57600080fd5b5035919050565b600060208083528351808285015260005b8181101561119e57858101830151858201604001528201611182565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000602082840312156111ef57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461121357600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310611284577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60006020828403121561129c57600080fd5b81356004811061121357600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156112ed576112ed6112ab565b92915050565b80820281158282048414176112ed576112ed6112ab565b600082611340577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600181811c9082168061135957607f821691505b602082108103611392577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b5091905056fe5f633934656364636236373166353563666331636637343838383038313735653339656137303235313963356536666163a164736f6c6343000814000a
Custom Contract ABI

                            

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
0xe8ab1729101c71b650d2B2C084D59Cecf91Ff8b3
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.