Etherscan Project 1

Contract ABI Specifications

Interface for direct on-chain interaction with the 0x123456789012345678901234567890123456789 contract

Function: getProjectValue

{
  "type": "function",
  "name": "getProjectValue",
  "constant": true,
  "stateMutability": "view",
  "inputs": [],
  "outputs": [
    {
      "name": "",
      "type": "uint256",
      "internalType": "uint256"
    }
  ]
}
                

Read-Only

Returns the current value stored in the contract (initial value: 100,000)

Function: setProjectValue

{
  "type": "function",
  "name": "setProjectValue",
  "constant": false,
  "stateMutability": "nonpayable",
  "inputs": [
    {
      "name": "_value",
      "type": "uint256",
      "internalType": "uint256"
    }
  ],
  "outputs": []
}
                

Write Operation

Updates the value stored in the contract. Requires Ethereum transaction fee.

Transaction type: Non-payable

Gas cost estimate: 30,000 - 50,000 wei

Full Contract ABI

[
  {
    "inputs": [],
    "name": "getProjectValue",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_value",
        "type": "uint256"
      }
    ],
    "name": "setProjectValue",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]