ETH Price: $2,280.33 (-6.68%)

Contract

0x977116807902bd4d5d763dA7aa43dbb4e408259b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Message For Peac...64545222018-10-04 23:01:462341 days ago1538694106IN
0x97711680...4e408259b
0.00000001 ETH0.000885096
Message For Peac...64545202018-10-04 23:00:362341 days ago1538694036IN
0x97711680...4e408259b
0.00000001 ETH0.000147511
Message For Peac...63756552018-09-22 0:44:212354 days ago1537577061IN
0x97711680...4e408259b
0.005 ETH0.000741735
Message For Peac...63753142018-09-21 23:25:362354 days ago1537572336IN
0x97711680...4e408259b
0.005 ETH0.000883176
Message For Peac...63752732018-09-21 23:17:372354 days ago1537571857IN
0x97711680...4e408259b
0.19 ETH0.0010495410
Message For Peac...63752332018-09-21 23:06:272354 days ago1537571187IN
0x97711680...4e408259b
0.005 ETH0.000628186
Message For Peac...63751992018-09-21 23:00:182354 days ago1537570818IN
0x97711680...4e408259b
0.005 ETH0.001020226
Message For Peac...63751942018-09-21 22:59:072354 days ago1537570747IN
0x97711680...4e408259b
0.005 ETH0.001153056
Message For Peac...63751432018-09-21 22:48:502354 days ago1537570130IN
0x97711680...4e408259b
0.005 ETH0.0010604210
Message For Peac...63751162018-09-21 22:42:152354 days ago1537569735IN
0x97711680...4e408259b
0.005 ETH0.000882016
Transfer63747952018-09-21 21:29:492354 days ago1537565389IN
0x97711680...4e408259b
1 ETH0.000126276
Transfer63745912018-09-21 20:46:252354 days ago1537562785IN
0x97711680...4e408259b
1 ETH0.000126276
Message For Peac...63742622018-09-21 19:31:402354 days ago1537558300IN
0x97711680...4e408259b
0.005 ETH0.001016766
Message For Peac...63624502018-09-19 20:20:122356 days ago1537388412IN
0x97711680...4e408259b
0.13 ETH0.001017156
Message For Peac...63553502018-09-18 16:27:112358 days ago1537288031IN
0x97711680...4e408259b
1.19 ETH0.000529895
Message For Peac...63195302018-09-12 18:20:202363 days ago1536776420IN
0x97711680...4e408259b
0.15 ETH0.000526375
Message For Peac...63193382018-09-12 17:30:032363 days ago1536773403IN
0x97711680...4e408259b
0.005 ETH0.0014675614
Message For Peac...63067912018-09-10 15:27:542366 days ago1536593274IN
0x97711680...4e408259b
0.01 ETH0.000812364

Latest 16 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
64545222018-10-04 23:01:462341 days ago1538694106
0x97711680...4e408259b
0.00000001 ETH
64545202018-10-04 23:00:362341 days ago1538694036
0x97711680...4e408259b
0.00000001 ETH
63756552018-09-22 0:44:212354 days ago1537577061
0x97711680...4e408259b
0.005 ETH
63753142018-09-21 23:25:362354 days ago1537572336
0x97711680...4e408259b
0.005 ETH
63752732018-09-21 23:17:372354 days ago1537571857
0x97711680...4e408259b
0.19 ETH
63752332018-09-21 23:06:272354 days ago1537571187
0x97711680...4e408259b
0.005 ETH
63751992018-09-21 23:00:182354 days ago1537570818
0x97711680...4e408259b
0.005 ETH
63751942018-09-21 22:59:072354 days ago1537570747
0x97711680...4e408259b
0.005 ETH
63751432018-09-21 22:48:502354 days ago1537570130
0x97711680...4e408259b
0.005 ETH
63751162018-09-21 22:42:152354 days ago1537569735
0x97711680...4e408259b
0.005 ETH
63742622018-09-21 19:31:402354 days ago1537558300
0x97711680...4e408259b
0.005 ETH
63624502018-09-19 20:20:122356 days ago1537388412
0x97711680...4e408259b
0.13 ETH
63553502018-09-18 16:27:112358 days ago1537288031
0x97711680...4e408259b
1.19 ETH
63195302018-09-12 18:20:202363 days ago1536776420
0x97711680...4e408259b
0.15 ETH
63193382018-09-12 17:30:032363 days ago1536773403
0x97711680...4e408259b
0.005 ETH
63067912018-09-10 15:27:542366 days ago1536593274
0x97711680...4e408259b
0.01 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BlockchainForPeace

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 0 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-09-10
*/

pragma solidity ^0.4.24;

contract BlockchainForPeace {
    

    // to see the total raised 
    uint public raised;
    address public charity; 
    
    //struct for the donation 
    struct Donation {
        address donor; 
        string message; 
        uint value; 
    }
    
    Donation[] public donations; 
    
    //mapping an address to the donation struct 
    //mapping (address => donation) public donors;
    event Donate(address indexed from, uint amount, string message);
    
    //constructor to initiate the address of the charity being donated to
    constructor () public {
        charity = 0xaf208FF43D2A265E047D52C9F54c753DB86D9D11;
    }
   
    // payable function which auto transfers money to charity address, collects the value and increases the total value counter. Also allows for anonoymous donations
     function fallback() payable public {
        raised += msg.value;
        charity.transfer(msg.value);
     }
    // optional message to be sent with donation, peace message.
    function messageForPeace(string _message) payable public {
        require(msg.value > 0);
        donations.push(Donation(msg.sender, _message, msg.value));
        charity.transfer(msg.value);
        raised += msg.value;
        emit Donate(msg.sender, msg.value, _message);
    }

    function getDonation(uint _index) public view returns (address, string, uint) {
        Donation memory don = donations[_index];
        return (don.donor, don.message, don.value);
    }
    
    function getDonationLength() public view returns (uint){
        return donations.length;
    }

     function getRaised() public view returns (uint){
        return raised;
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"getDonationLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"fallback","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"charity","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_message","type":"string"}],"name":"messageForPeace","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"getRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"getDonation","outputs":[{"name":"","type":"address"},{"name":"","type":"string"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"raised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"donations","outputs":[{"name":"donor","type":"address"},{"name":"message","type":"string"},{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"message","type":"string"}],"name":"Donate","type":"event"}]

608060405234801561001057600080fd5b5073af208ff43d2a265e047d52c9f54c753db86d9d11600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506109b7806100756000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806344a6a8f014610093578063552079dc146100be578063934aa023146100c8578063a9b5ae831461011f578063b692c89d1461017b578063ef07a81f146101a6578063f0ea4bfc14610286578063f8626af8146102b1575b600080fd5b34801561009f57600080fd5b506100a8610391565b6040518082815260200191505060405180910390f35b6100c661039e565b005b3480156100d457600080fd5b506100dd610418565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610179600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061043e565b005b34801561018757600080fd5b50610190610653565b6040518082815260200191505060405180910390f35b3480156101b257600080fd5b506101d16004803603810190808035906020019092919050505061065c565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561024957808201518184015260208101905061022e565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561029257600080fd5b5061029b6107b7565b6040518082815260200191505060405180910390f35b3480156102bd57600080fd5b506102dc600480360381019080803590602001909291905050506107bd565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610354578082015181840152602081019050610339565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b6000600280549050905090565b346000808282540192505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610415573d6000803e3d6000fd5b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60003411151561044d57600080fd5b60026060604051908101604052803373ffffffffffffffffffffffffffffffffffffffff168152602001838152602001348152509080600181540180825580915050906001820390600052602060002090600302016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101908051906020019061050f9291906108ae565b5060408201518160020155505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610585573d6000803e3d6000fd5b503460008082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff167f4c4cf652c6f14d29f3d8b821ba41309afba5bf3a6f10b64d61665a235049711d34836040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156106155780820151818401526020810190506105fa565b50505050905090810190601f1680156106425780820380516001836020036101000a031916815260200191505b50935050505060405180910390a250565b60008054905090565b60006060600061066a61092e565b60028581548110151561067957fe5b9060005260206000209060030201606060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107825780601f1061075757610100808354040283529160200191610782565b820191906000526020600020905b81548152906001019060200180831161076557829003601f168201915b505050505081526020016002820154815250509050806000015181602001518260400151819150935093509350509193909250565b60005481565b6002818154811015156107cc57fe5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561089e5780601f106108735761010080835404028352916020019161089e565b820191906000526020600020905b81548152906001019060200180831161088157829003601f168201915b5050505050908060020154905083565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106108ef57805160ff191683800117855561091d565b8280016001018555821561091d579182015b8281111561091c578251825591602001919060010190610901565b5b50905061092a9190610966565b5090565b606060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001600081525090565b61098891905b8082111561098457600081600090555060010161096c565b5090565b905600a165627a7a72305820c158e7ca041c668804dddbdb80f145a261b117a366c8e5742bc346e51c5f265e0029

Deployed Bytecode

0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806344a6a8f014610093578063552079dc146100be578063934aa023146100c8578063a9b5ae831461011f578063b692c89d1461017b578063ef07a81f146101a6578063f0ea4bfc14610286578063f8626af8146102b1575b600080fd5b34801561009f57600080fd5b506100a8610391565b6040518082815260200191505060405180910390f35b6100c661039e565b005b3480156100d457600080fd5b506100dd610418565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610179600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061043e565b005b34801561018757600080fd5b50610190610653565b6040518082815260200191505060405180910390f35b3480156101b257600080fd5b506101d16004803603810190808035906020019092919050505061065c565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561024957808201518184015260208101905061022e565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561029257600080fd5b5061029b6107b7565b6040518082815260200191505060405180910390f35b3480156102bd57600080fd5b506102dc600480360381019080803590602001909291905050506107bd565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610354578082015181840152602081019050610339565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b6000600280549050905090565b346000808282540192505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610415573d6000803e3d6000fd5b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60003411151561044d57600080fd5b60026060604051908101604052803373ffffffffffffffffffffffffffffffffffffffff168152602001838152602001348152509080600181540180825580915050906001820390600052602060002090600302016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101908051906020019061050f9291906108ae565b5060408201518160020155505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610585573d6000803e3d6000fd5b503460008082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff167f4c4cf652c6f14d29f3d8b821ba41309afba5bf3a6f10b64d61665a235049711d34836040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156106155780820151818401526020810190506105fa565b50505050905090810190601f1680156106425780820380516001836020036101000a031916815260200191505b50935050505060405180910390a250565b60008054905090565b60006060600061066a61092e565b60028581548110151561067957fe5b9060005260206000209060030201606060405190810160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107825780601f1061075757610100808354040283529160200191610782565b820191906000526020600020905b81548152906001019060200180831161076557829003601f168201915b505050505081526020016002820154815250509050806000015181602001518260400151819150935093509350509193909250565b60005481565b6002818154811015156107cc57fe5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561089e5780601f106108735761010080835404028352916020019161089e565b820191906000526020600020905b81548152906001019060200180831161088157829003601f168201915b5050505050908060020154905083565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106108ef57805160ff191683800117855561091d565b8280016001018555821561091d579182015b8281111561091c578251825591602001919060010190610901565b5b50905061092a9190610966565b5090565b606060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001600081525090565b61098891905b8082111561098457600081600090555060010161096c565b5090565b905600a165627a7a72305820c158e7ca041c668804dddbdb80f145a261b117a366c8e5742bc346e51c5f265e0029

Swarm Source

bzzr://c158e7ca041c668804dddbdb80f145a261b117a366c8e5742bc346e51c5f265e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.