-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5d0503
commit 2272b60
Showing
3 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace IEXBase\TronAPI\Concerns; | ||
|
||
|
||
use IEXBase\TronAPI\Exception\TronException; | ||
|
||
trait ManagesTronscan | ||
{ | ||
/** | ||
* Transactions from explorer | ||
* | ||
* @param array $options | ||
* @return array | ||
* @throws TronException | ||
*/ | ||
public function getTransactionByAddress($options = []) | ||
{ | ||
if(empty($options)) { | ||
throw new TronException('Parameters must not be empty.'); | ||
} | ||
|
||
return $this->manager->request('api/transaction', $options); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters