Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Send Message | 126361478 | 66 days ago | IN | 0 ETH | 0.000025606981 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
126361015 | 66 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DataBus
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.26; /// @title A contract for sending and logging messages as an abstract data bus /// @notice This smart contract serves as an abstract data bus, which can be utilized to facilitate lightweight, inter-service communication. /// @dev The contract uses an anonymous event to broadcast messages with minimalistic implementation and low gas consumption. It does not require support and administration. contract DataBus { /// @notice Emitted when a message is sent through the data bus /// @param eventId An arbitrary set of bytes that can encode the name and version; it serves as the unique identifier for each event /// @param sender The address of the transaction initiator; it is expected that the receiving side will filter based on known senders without explicit authorization /// @param data Arbitrary data encoded as bytes, representing the payload of the message event Message( bytes32 indexed eventId, address indexed sender, bytes data ) anonymous; /// @notice Sends a message with the specified `eventId` and `data` /// @dev Emits the `anonymous` event containing the message details; this method can be called by any sender to broadcast information /// @param _eventId The unique identifier for the message event /// @param _data The payload of the message to be sent function sendMessage(bytes32 _eventId, bytes calldata _data) external { emit Message(_eventId, msg.sender, _data); } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes32","name":"eventId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Message","type":"event"},{"inputs":[{"internalType":"bytes32","name":"_eventId","type":"bytes32"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"sendMessage","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052348015600f57600080fd5b5061023e8061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806323c640e714610030575b600080fd5b61004a60048036038101906100459190610126565b61004c565b005b3373ffffffffffffffffffffffffffffffffffffffff168383836040516100749291906101e4565b60405180910390a2505050565b600080fd5b600080fd5b6000819050919050565b61009e8161008b565b81146100a957600080fd5b50565b6000813590506100bb81610095565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126100e6576100e56100c1565b5b8235905067ffffffffffffffff811115610103576101026100c6565b5b60208301915083600182028301111561011f5761011e6100cb565b5b9250929050565b60008060006040848603121561013f5761013e610081565b5b600061014d868287016100ac565b935050602084013567ffffffffffffffff81111561016e5761016d610086565b5b61017a868287016100d0565b92509250509250925092565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b60006101c38385610186565b93506101d0838584610197565b6101d9836101a6565b840190509392505050565b600060208201905081810360008301526101ff8184866101b7565b9050939250505056fea2646970667358221220826bce2fe59a712d479e84bbd2d619db54603716b7144a93a507d3ee391eb60f64736f6c634300081a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806323c640e714610030575b600080fd5b61004a60048036038101906100459190610126565b61004c565b005b3373ffffffffffffffffffffffffffffffffffffffff168383836040516100749291906101e4565b60405180910390a2505050565b600080fd5b600080fd5b6000819050919050565b61009e8161008b565b81146100a957600080fd5b50565b6000813590506100bb81610095565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126100e6576100e56100c1565b5b8235905067ffffffffffffffff811115610103576101026100c6565b5b60208301915083600182028301111561011f5761011e6100cb565b5b9250929050565b60008060006040848603121561013f5761013e610081565b5b600061014d868287016100ac565b935050602084013567ffffffffffffffff81111561016e5761016d610086565b5b61017a868287016100d0565b92509250509250925092565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b60006101c38385610186565b93506101d0838584610197565b6101d9836101a6565b840190509392505050565b600060208201905081810360008301526101ff8184866101b7565b9050939250505056fea2646970667358221220826bce2fe59a712d479e84bbd2d619db54603716b7144a93a507d3ee391eb60f64736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.