diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e1b4f4c9..029d6e386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [4.2.43] - 2024.9.13 + +### Fixed + +- UTXO rpc method `getRawTransaction` now accepts verbose parameter in correct type + ## [4.2.42] - 2024.9.4 ### Fixed diff --git a/package.json b/package.json index 9ca8d22da..80de8c801 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tatumio/tatum", - "version": "4.2.42", + "version": "4.2.43", "description": "Tatum JS SDK", "author": "Tatum", "repository": "https://github.com/tatumio/tatum-js", diff --git a/src/dto/rpc/UtxoBasedRpcSuite.ts b/src/dto/rpc/UtxoBasedRpcSuite.ts index 86be8437c..49d4592dc 100644 --- a/src/dto/rpc/UtxoBasedRpcSuite.ts +++ b/src/dto/rpc/UtxoBasedRpcSuite.ts @@ -33,7 +33,7 @@ export interface UtxoBasedCommonRpcInterface { ): Promise> decodeRawTransaction(hexstring: string): Promise> decodeScript(hexstring: string): Promise> - getRawTransaction(txId: string, verbose?: boolean): Promise> + getRawTransaction(txId: string, verbose: 0 | 1 | 2): Promise> sendRawTransaction(hexstring: string): Promise> // utility methods diff --git a/src/service/rpc/utxo/AbstractCommonUtxoRpc.ts b/src/service/rpc/utxo/AbstractCommonUtxoRpc.ts index 28e920840..0f00c4370 100644 --- a/src/service/rpc/utxo/AbstractCommonUtxoRpc.ts +++ b/src/service/rpc/utxo/AbstractCommonUtxoRpc.ts @@ -88,7 +88,7 @@ export abstract class AbstractCommonUtxoRpc implements UtxoBasedCommonRpcInterfa return this.rpcCall>('getrawmempool', [verbose]) } - async getRawTransaction(txId: string, verbose = false): Promise> { + async getRawTransaction(txId: string, verbose: 0 | 1 | 2 = 0): Promise> { return this.rpcCall>('getrawtransaction', [txId, verbose]) }