Midpoint Cross Testnet

chainId 139420 · tMIDX · temporary explorer

Address

Address
0xfa6580a93320a56a7d6d716bee2a206b2ac3a62c
Label
Counter relay demo contract
Note
MidxCounterRelay: forwards bumps to the Counter demo (internal transactions demo)
Type
contract
Balance
0 tMIDX (0 wei)
Nonce
1
Code size
685 bytes

Contract

Creator
0x59de9c0c9e9ff2e83d21a44ebd4fa83eb9ac1394 tMIDX wallet
Creation tx
0xbf2e5fddf26bc9715a24e688dcaf… (block 29,105)

Source code ✓ verified

Contract
MidxCounterRelay
Compiler
solc 0.8.36+commit.8a079791
Optimizer
enabled, 200 runs
Verified
2026-11-28 15:27:04 UTC

Constructor arguments

NameTypeValue
targetaddress0xb99ef086c2095e2e8f52b18f21e75eab05dd4252 Counter demo
000000000000000000000000b99ef086c2095e2e8f52b18f21e75eab05dd4252
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface ICounter {
    function add(uint256 n) external;
    function count() external view returns (uint256);
}

/// @title MidxCounterRelay
/// @notice Forwards bumps to a MidxCounter so the explorer has contract-to-contract
/// calls (internal transactions) to show; the constructor argument exercises
/// constructor-argument capture in verification.
contract MidxCounterRelay {
    ICounter public immutable counter;
    uint256 public relayed;

    event Relayed(address indexed by, uint256 n, uint256 counterAfter);

    constructor(ICounter target) {
        counter = target;
    }

    function bump() external {
        bumpBy(1);
    }

    function bumpBy(uint256 n) public {
        counter.add(n);
        relayed += n;
        emit Relayed(msg.sender, n, counter.count());
    }
}

ABI

[
 {
  "type": "constructor",
  "inputs": [
   {
    "name": "target",
    "type": "address",
    "internalType": "contract ICounter"
   }
  ],
  "stateMutability": "nonpayable"
 },
 {
  "name": "Relayed",
  "type": "event",
  "inputs": [
   {
    "name": "by",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "n",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "counterAfter",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "name": "bump",
  "type": "function",
  "inputs": [],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "name": "bumpBy",
  "type": "function",
  "inputs": [
   {
    "name": "n",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "name": "counter",
  "type": "function",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "address",
    "internalType": "contract ICounter"
   }
  ],
  "stateMutability": "view"
 },
 {
  "name": "relayed",
  "type": "function",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 }
]

Read contract (2)

counter() → address
relayed() → uint256
uint256 1

Write contract (2)

no wallet connected; a browser wallet signs and broadcasts, the explorer only encodes the call
bump()
bumpBy(uint256 n)

Events (1 total)

TxBlockAgeContractEventDetails
0x3ca1d1a83c3211…29,10623h 6m agoCounter relay demo 0xfa6580…Relayedby=0x59de9c0c9e9ff2e83d21a44ebd4fa83eb9ac1394 n=1 counterAfter=1

Internal transactions (latest 10)

TxBlockAgeTraceTypeFromToMethodValueGas usedResult
0x3ca1d1a83c32…29,10623h 6m ago0.1staticcallCounter relay demo 0xfa6580…Counter demo 0xb99ef0…count0260ok
0x3ca1d1a83c32…29,10623h 6m ago0.0callCounter relay demo 0xfa6580…Counter demo 0xb99ef0…add046,430ok

Transactions (1 indexed)CSV

HashBlockAgeFromToMethodValue
0x3ca1d1a83c3211786a…2910623h 6m agotMIDX wallet 0x59de9c…Counter relay demo 0xfa6580…bump0 tMIDX (0 wei)
Temporary placeholder infrastructure for chain registration. Not a production network - state may be reset without notice.