Contract 0x8124340A7Ed436c660B70515E68E2b99dae53eF0 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xdb00d27afbc01e899dd8fa42811409b174c56d27e4be6ba3e22388e41200d34aAdd To Blockchai...298590522022-06-22 7:17:059 days 4 hrs ago0xea5f09566a89b5203a0dca3cc89651b281521cf2 IN  0x8124340a7ed436c660b70515e68e2b99dae53ef00 MATIC0.004383828319 35.411712166
0x3ae6e40483c1dc59fddc4c37441479f10c76549a3aac5623372fd66d0aa1fc8dAdd To Blockchai...298589742022-06-22 7:14:259 days 4 hrs ago0xc9f7d918d3307199244a8bd3d7657c245f06252a IN  0x8124340a7ed436c660b70515e68e2b99dae53ef00 MATIC0.006243653604 39.517795418
0xd3e317d3a2248cad2910d91585128901ead157fff25e3792a851c84e36ed233c0x60806040298584912022-06-22 6:55:399 days 4 hrs ago0xc9f7d918d3307199244a8bd3d7657c245f06252a IN  Create: Transactions0 MATIC0.01731192 40
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Transactions

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Transactions.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

contract Transactions {
    uint256 transactionCount;

    event Transfer(address from, address receiver, uint amount, uint256 timestamp);
  
    struct TransferStruct {
        address sender;
        address receiver;
        uint amount;
        uint256 timestamp;
    }

    TransferStruct[] transactions;

    function addToBlockchain(address payable receiver, uint amount) public {
        transactionCount += 1;
        transactions.push(TransferStruct(msg.sender, receiver, amount, block.timestamp));

        emit Transfer(msg.sender, receiver, amount, block.timestamp);
    }

    function getAllTransactions() public view returns (TransferStruct[] memory) {
        return transactions;
    }

    function getTransactionCount() public view returns (uint256) {
        return transactionCount;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addToBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllTransactions","outputs":[{"components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct Transactions.TransferStruct[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransactionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506106e0806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806327506f53146100465780632e7700f014610064578063b64782e514610082575b600080fd5b61004e61009e565b60405161005b91906104fd565b60405180910390f35b61006c6101bd565b604051610079919061051f565b60405180910390f35b61009c60048036038101906100979190610366565b6101c6565b005b60606001805480602002602001604051908101604052809291908181526020016000905b828210156101b457838290600052602060002090600402016040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382015481525050815260200190600101906100c2565b50505050905090565b60008054905090565b60016000808282546101d89190610573565b92505081905550600160405180608001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200142815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015550507f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc443383834260405161033094939291906104b8565b60405180910390a15050565b60008135905061034b8161067c565b92915050565b60008135905061036081610693565b92915050565b6000806040838503121561037957600080fd5b60006103878582860161033c565b925050602061039885828601610351565b9150509250929050565b60006103ae8383610445565b60808301905092915050565b6103c381610617565b82525050565b6103d2816105c9565b82525050565b6103e1816105c9565b82525050565b60006103f28261054a565b6103fc8185610562565b93506104078361053a565b8060005b8381101561043857815161041f88826103a2565b975061042a83610555565b92505060018101905061040b565b5085935050505092915050565b60808201600082015161045b60008501826103c9565b50602082015161046e60208501826103c9565b506040820151610481604085018261049a565b506060820151610494606085018261049a565b50505050565b6104a38161060d565b82525050565b6104b28161060d565b82525050565b60006080820190506104cd60008301876103d8565b6104da60208301866103ba565b6104e760408301856104a9565b6104f460608301846104a9565b95945050505050565b6000602082019050818103600083015261051781846103e7565b905092915050565b600060208201905061053460008301846104a9565b92915050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600061057e8261060d565b91506105898361060d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156105be576105bd61064d565b5b828201905092915050565b60006105d4826105ed565b9050919050565b60006105e6826105ed565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061062282610629565b9050919050565b60006106348261063b565b9050919050565b6000610646826105ed565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b610685816105db565b811461069057600080fd5b50565b61069c8161060d565b81146106a757600080fd5b5056fea264697066735822122005e2d7f28b88156784ca33e7834e2b82baedc6d6b9d8f71542577d0324631ae664736f6c63430008000033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.