minulislam /
multicoin-api
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Multicoin\Api\Traits; |
||
| 4 | |||
| 5 | trait Transaction |
||
| 6 | { |
||
| 7 | public function transaction($txid) |
||
| 8 | { |
||
| 9 | $url = $this->buildUrl('/tx/'.$txid); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 10 | $response = $this->client->doGet($url); |
||
| 11 | |||
| 12 | return $response; |
||
| 13 | } |
||
| 14 | |||
| 15 | public function transactionConfirmations($txid) |
||
| 16 | { |
||
| 17 | $url = $this->buildUrl('/tx/'.$txid.'/confirmations'); |
||
| 18 | $response = $this->client->doGet($url); |
||
| 19 | |||
| 20 | return $response; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function transactionValidate($txid) |
||
| 24 | { |
||
| 25 | $url = $this->buildUrl('/tx/'.$txid.'/validate'); |
||
| 26 | $response = $this->client->doGet($url); |
||
| 27 | |||
| 28 | return $response; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |