Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 85b6c0f

Browse filesBrowse files
committed
Add eth_getTransactionByHash method
1 parent 1c14ca8 commit 85b6c0f
Copy full SHA for 85b6c0f

File tree

Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed

‎lib/Etherscan/Api/Proxy.php

Copy file name to clipboardExpand all lines: lib/Etherscan/Api/Proxy.php
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ public function getBlockByNumber($tag = APIConf::TAG_LATEST, bool $full_transact
4545
'boolean' => $full_transaction
4646
]);
4747
}
48+
49+
/**
50+
* Returns the information about a transaction requested by transaction hash
51+
*
52+
* @param string $tag
53+
* @param booelan $full_transaction
54+
*
55+
* @return array
56+
* @throws ErrorException
57+
*/
58+
public function transactionByHash($transactionHash)
59+
{
60+
return $this->request->exec([
61+
'module' => "proxy",
62+
'action' => "eth_getTransactionByHash",
63+
'txhash' => $transactionHash
64+
]);
65+
}
4866

4967
/**
5068
* Returns the number of transactions sent from an address

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.