Skip to content

Commit

Permalink
UTXO rpc method getRawTransaction now accepts verbose parameter in …
Browse files Browse the repository at this point in the history
…correct type
  • Loading branch information
Smrecz committed Sep 13, 2024
1 parent 6ff4ab2 commit fd43eb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/dto/rpc/UtxoBasedRpcSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface UtxoBasedCommonRpcInterface {
): Promise<JsonRpcResponse<string>>
decodeRawTransaction(hexstring: string): Promise<JsonRpcResponse<any>>
decodeScript(hexstring: string): Promise<JsonRpcResponse<any>>
getRawTransaction(txId: string, verbose?: boolean): Promise<JsonRpcResponse<any>>
getRawTransaction(txId: string, verbose: 0 | 1 | 2): Promise<JsonRpcResponse<any>>
sendRawTransaction(hexstring: string): Promise<JsonRpcResponse<string>>

// utility methods
Expand Down
2 changes: 1 addition & 1 deletion src/service/rpc/utxo/AbstractCommonUtxoRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export abstract class AbstractCommonUtxoRpc implements UtxoBasedCommonRpcInterfa
return this.rpcCall<JsonRpcResponse<any>>('getrawmempool', [verbose])
}

async getRawTransaction(txId: string, verbose = false): Promise<JsonRpcResponse<any>> {
async getRawTransaction(txId: string, verbose: 0 | 1 | 2 = 0): Promise<JsonRpcResponse<any>> {
return this.rpcCall<JsonRpcResponse<any>>('getrawtransaction', [txId, verbose])
}

Expand Down

0 comments on commit fd43eb2

Please sign in to comment.