gettransaction query not working
The method gettransaction is not spelled correctly
This commit is contained in:
parent
0852f61ab3
commit
76655f87b9
@ -774,7 +774,7 @@ class BitcoinClient extends jsonrpc_client {
|
|||||||
public function gettransaction($txid) {
|
public function gettransaction($txid) {
|
||||||
if (!$txid || empty($txid) || strlen($txid) != 64 || !preg_match('/^[0-9a-fA-F]+$/', $txid))
|
if (!$txid || empty($txid) || strlen($txid) != 64 || !preg_match('/^[0-9a-fA-F]+$/', $txid))
|
||||||
throw new BitcoinClientException("gettransaction requires a valid hexadecimal transaction ID");
|
throw new BitcoinClientException("gettransaction requires a valid hexadecimal transaction ID");
|
||||||
return $this->query("getttransaction", $txid);
|
return $this->query("gettransaction", $txid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user