Skip to content

Commit b160596

Browse files
committed
Get transaction method changed for getrawtransaction
1 parent 78b679d commit b160596

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Connector/btc/apirpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def getTransactionHex(id, params, config):
368368
rawTransaction = RPCConnector.request(
369369
endpoint=config.bitcoincoreRpcEndpoint,
370370
id=id,
371-
method=GET_TRANSACTION_METHOD,
371+
method=GET_RAW_TRANSACTION_METHOD,
372372
params=[params["txHash"]]
373373
)
374374

@@ -396,7 +396,7 @@ def getTransaction(id, params, config):
396396
transaction = RPCConnector.request(
397397
endpoint=config.bitcoincoreRpcEndpoint,
398398
id=id,
399-
method=GET_TRANSACTION_METHOD,
399+
method=GET_RAW_TRANSACTION_METHOD,
400400
params=[
401401
params["txHash"],
402402
True

Connector/btc/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
GET_BLOCK_HASH_METHOD = "getblockhash"
99
GET_BLOCK_COUNT_METHOD = "getblockcount"
1010
ESTIMATE_SMART_FEE_METHOD = "estimatesmartfee"
11-
GET_TRANSACTION_METHOD = "gettransaction"
11+
GET_RAW_TRANSACTION_METHOD = "getrawtransaction"
1212
DECODE_RAW_TRANSACTION_METHOD = "decoderawtransaction"
1313
SEND_RAW_TRANSACTION_METHOD = "sendrawtransaction"
1414
NOTIFY_METHOD = "notify"

0 commit comments

Comments
 (0)