Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list transactions? #9

Open
zottirik opened this issue Mar 12, 2018 · 2 comments
Open

list transactions? #9

zottirik opened this issue Mar 12, 2018 · 2 comments

Comments

@zottirik
Copy link

Is there any method for list all transactions to coming all accounts, or outgoing from all accounts?

@shoxabbos
Copy link

This is the only way to get a list of transactions ))

$blockNumber = $client->eth()->blockNumber();
for ($i = 6000000; $i < $currentBlock; $i++) {
            $blockNumber = new BlockNumber($i);
            $block = $client->eth()->getBlockByNumber($blockNumber);

            /**
             * @var $transaction TransactionHash
             */
            foreach ($block->transactions() as $transaction) {
                echo $transaction->toString();
           }
 }

@digitaldonkey
Copy link

digitaldonkey commented Sep 4, 2018

You might check out https://github.com/digitaldonkey/ethereum-php-eventlistener if you want to do something alike. Check out the Examples https://github.com/digitaldonkey/ethereum-php-eventlistener/tree/master/app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants