TRON GOBLIN
explorerv0.5-beta
MAINNET

Ampel · Verified Contract on Tron

Smart contract
VERIFIED · mainnet
{}
Ampel
CONTRACT Source verified Non-proxy 3
Address TPF5reViZEP5MtTZeLsB2RUAJS7ce7MAV6
Verification Verified
Standard CONTRACT
Creation tx 50178a31…7a074f
Deployed Apr 27, 2021
Proxy No
Contract balance 0TRX on-chain
Total calls 32 lifetime triggers
Functions 10 6 read · 4 write
Bytecode 1.85Kbytes runtime
Deployed Apr 27, 2021 verified
Contract interface
ABI · 10 fns
Source verified · ABI matches bytecode 10 functions · 2 events · 1,849 bytes
contract.abi.json
[
  {
    "inputs": [
      {
        "name": "_admin_charge",
        "type": "uint256"
      }
    ],
    "name": "setAdminCharge",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "topup",
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "minDepositAmount",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "charge",
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "adminCharge",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "name": "setDepositAmount",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "getContractBalance",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "balance",
        "type": "uint256"
      },
      {
        "name": "timestamp",
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "users",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "payable": true,
    "name": "deposit",
    "stateMutability": "Payable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "payable": true,
    "inputs": [
      {
        "name": "addr",
        "type": "address"
      },
      {
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "name": "withdraw",
    "stateMutability": "Payable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "name": "addr",
        "type": "address"
      }
    ],
    "name": "checkWallet",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "constant": true,
    "name": "adminAddress",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "stateMutability": "Nonpayable",
    "type": "Constructor"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "_from",
        "type": "address"
      },
      {
        "name": "_admin",
        "type": "uint256"
      },
      {
        "name": "_value",
        "type": "uint256"
      }
    ],
    "name": "Deposit",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "_from",
        "type": "address"
      },
      {
        "name": "_value",
        "type": "uint256"
      }
    ],
    "name": "Withdraw",
    "type": "Event"
  }
]
About this contract
overview

Ampel is a verified smart contract on Tron, deployed from TLXR7NS7VfLt2NtkpakHW4kcPDQmo2cjX8 on Apr 27, 2021. It has been called 32 times.

The ABI matches the on-chain bytecode, so the Read tab above runs live view calls against the node (no gas, no signature). The verified Solidity source is viewable on TronScan ↗. Write calls require a signed wallet transaction — wallet support is coming soon.