Latest 8 txns

TxHash Age From To Value [TxFee]
0x5c69beb727dd9b6a6abd3a8c272aada2ac54621018e399a60b442fc1941447c823 days 20 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000079692
0xa02cb9b83977c52705a6b542629027df892b93cebf1d7225d3f121262e385fd523 days 20 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000079756
0x2d2f9b4a3b2686d0167a85ef7919ffa136dad4ac84a55b58fdf4d7e781bce89623 days 21 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000079756
0xf56f0d5bd292535a5be20b322e63cc8ee864941a015ddbc9377aecaab9d680be25 days 17 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000079692
0xc6d89455555fc2c0e92216e82b9af44a429f8e07a3e5ffdf64398149eb056f9e49 days 22 hrs ago0xa9017ff0b9ba8ee2c128104cb8c6f65a1fa7588f  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000064372
0x85eb41d3b1623a8a6f2ca010cedeaf94ef57c47205a55a52225519c543df4ae853 days 14 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000079692
0x5ef43e33ba88568b8414750b9277adf0e66abd6d2ef4bb2e03a10bfab242f0af53 days 14 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN   0x38973b1cf4f18e7708c57c19c23e49d53a3bdac80 Ether0.000079372
0x611a981bd97233c5848a0bd2ad997b951d4f162529ebf94a63c8060dfed2701653 days 15 hrs ago0x7e7b9da480facf936c5a328ab6cf4433edce38be  IN    Contract Creation0 Ether0.00042383
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: dapMarketplace
Compiler Text: v0.5.0+commit.1d4f565a
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity 0.5.0;

contract dapMarketplace{
    
    struct Product{
        uint256 id;
        uint256 eth_price;
        uint256 dap_price;
        uint8 builder_id;
        address owner;
    }
    
    mapping (uint256 => mapping(uint256 => uint256)) public purchasedProducts;
    Product[] public products;
    address private admin;
    uint256 private builder_fee;
    
    constructor(address _admin) public{
        admin = _admin;
    }
    function createProduct(uint256 _eth, uint256 _dap, uint8 _id) external returns (uint256){
        uint256 newId = products.length++;
        products[newId].owner = msg.sender;
        products[newId].eth_price = _eth;
        products[newId].dap_price = _dap;
        products[newId].builder_id = _id;
        return newId;
    }
    function getProduct(uint8 _id) external view returns(uint256 eth, uint256 dap, address owner) {
        for (uint8 i = 0;i<products.length;i++){
            if (products[i].builder_id == _id){
                return (products[i].eth_price, products[i].dap_price, products[i].owner);
            }
        }
    }
    function getPurchaseCount(uint256 _userid, uint256 _productid) public view returns (uint256 count) {
        return purchasedProducts[_userid][_productid];
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"_id","type":"uint8"}],"name":"getProduct","outputs":[{"name":"eth","type":"uint256"},{"name":"dap","type":"uint256"},{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_userid","type":"uint256"},{"name":"_productid","type":"uint256"}],"name":"getPurchaseCount","outputs":[{"name":"count","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"products","outputs":[{"name":"id","type":"uint256"},{"name":"eth_price","type":"uint256"},{"name":"dap_price","type":"uint256"},{"name":"builder_id","type":"uint8"},{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_eth","type":"uint256"},{"name":"_dap","type":"uint256"},{"name":"_id","type":"uint8"}],"name":"createProduct","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"name":"purchasedProducts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_admin","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b506040516020806105708339810180604052602081101561003057600080fd5b505160028054600160a060020a031916600160a060020a03909216919091179055610510806100606000396000f3fe60806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663503220e3811461007157806373f0f494146100d25780637acc0b2014610114578063ba7b9f9f14610182578063c3885517146101bb575b600080fd5b34801561007d57600080fd5b5061009e6004803603602081101561009457600080fd5b503560ff166101eb565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff1682820152519081900360600190f35b3480156100de57600080fd5b50610102600480360360408110156100f557600080fd5b50803590602001356102d9565b60408051918252519081900360200190f35b34801561012057600080fd5b5061013e6004803603602081101561013757600080fd5b50356102f4565b6040805195865260208601949094528484019290925260ff16606084015273ffffffffffffffffffffffffffffffffffffffff166080830152519081900360a00190f35b34801561018e57600080fd5b50610102600480360360608110156101a557600080fd5b508035906020810135906040013560ff1661034c565b3480156101c757600080fd5b50610102600480360360408110156101de57600080fd5b508035906020013561044b565b60008080805b60015460ff821610156102d0578460ff1660018260ff1681548110151561021457fe5b600091825260209091206003600490920201015460ff1614156102c8576001805460ff831690811061024257fe5b90600052602060002090600402016001015460018260ff1681548110151561026657fe5b90600052602060002090600402016002015460018360ff1681548110151561028a57fe5b906000526020600020906004020160030160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16935093509350506102d2565b6001016101f1565b505b9193909250565b60009182526020828152604080842092845291905290205490565b600180548290811061030257fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919060ff811690610100900473ffffffffffffffffffffffffffffffffffffffff1685565b600080600180548091906001016103639190610465565b90503360018281548110151561037557fe5b906000526020600020906004020160030160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550846001828154811015156103d457fe5b906000526020600020906004020160010181905550836001828154811015156103f957fe5b9060005260206000209060040201600201819055508260018281548110151561041e57fe5b60009182526020909120600490910201600301805460ff191660ff92909216919091179055949350505050565b600060208181529281526040808220909352908152205481565b815481835581811115610491576004028160040283600052602060002091820191016104919190610496565b505050565b6104e191905b808211156104dd57600080825560018201819055600282015560038101805474ffffffffffffffffffffffffffffffffffffffffff1916905560040161049c565b5090565b9056fea165627a7a723058209e4f63e08aa89765e7b59311bbddc864e550ae62283d3266eebf0795e256c0db00290000000000000000000000007e7b9da480facf936c5a328ab6cf4433edce38be

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007e7b9da480facf936c5a328ab6cf4433edce38be

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007e7b9da480facf936c5a328ab6cf4433edce38be


   Swarm Source:
bzzr://9e4f63e08aa89765e7b59311bbddc864e550ae62283d3266eebf0795e256c0db

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward