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 7bcb0d6

Browse filesBrowse files
committed
Added getTransactionReceipt function
To get an ERC20 transfer's information, need the transaction receipt, since transfer information is recorded in a transfer event log, using eth_getTransactionReceipt.
1 parent a3fa1b1 commit 7bcb0d6
Copy full SHA for 7bcb0d6

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+17
-0
lines changed

‎lib/Etherscan/Api/Proxy.php

Copy file name to clipboardExpand all lines: lib/Etherscan/Api/Proxy.php
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ public function sendRawTransaction($hex)
9999
]);
100100
}
101101

102+
/**
103+
* Returns the receipt of a transaction by transaction hash
104+
*
105+
* @param string $transactionHash
106+
*
107+
* @return array
108+
* @throws ErrorException
109+
*/
110+
public function getTransactionReceipt($transactionHash)
111+
{
112+
return $this->request->exec([
113+
'module' => "proxy",
114+
'action' => "eth_getTransactionReceipt",
115+
'txhash' => $transactionHash
116+
]);
117+
}
118+
102119
/**
103120
* Returns the number of most recent block
104121
*

0 commit comments

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