Skip to content
Verified contractExactGPL-3.0

BalanceChecker

Address0xbb0fd1c11201f3dd40ebfc0e6f195fed1f2b9804
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.0

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.0+commit.c7dfd78e
Language
solidity
Optimization
No
EVM version
istanbul
License
GPL-3.0
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
13,490,386
Creation transaction
0x9da8c0552d…cd28d1832c

contracts/Balance.sol

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;

contract BalanceChecker {
    struct Balance {
        address wallet;
        uint256 balance;
    }
    
    function getBalance(address[] memory wallets) external view returns (Balance[] memory){
        Balance[] memory balances = new Balance[](wallets.length);
        
        for (uint i; i < wallets.length; i++) {
            address payable wallet = payable(wallets[i]);
            balances[i] = Balance(
                wallet, 
                wallet.balance
            );
        }
        
        return balances;
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.