Skip to content

Commit 508e9fb

Browse files
committed
fix(typescript): represent transaction id as a string (#52)
1 parent b30cea5 commit 508e9fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ export class AdamantApi extends NodeManager {
795795
* Get transaction by ID
796796
*/
797797
async getTransaction(
798-
id: number,
798+
id: string,
799799
options?: TransactionQuery<TransactionsOptions>
800800
) {
801801
return this.get<GetTransactionByIdResponseDto>('transactions/get', {
@@ -823,7 +823,7 @@ export class AdamantApi extends NodeManager {
823823
/**
824824
* Get queued transaction by ID
825825
*/
826-
async getQueuedTransaction(id: number) {
826+
async getQueuedTransaction(id: string) {
827827
return this.get<GetQueuedTransactionsResponseDto>(
828828
'transactions/queued/get',
829829
{id}
@@ -842,7 +842,7 @@ export class AdamantApi extends NodeManager {
842842
/**
843843
* Get unconfirmed transaction by ID
844844
*/
845-
async getUnconfirmedTransaction(id: number) {
845+
async getUnconfirmedTransaction(id: string) {
846846
return this.get<GetUnconfirmedTransactionByIdResponseDto>(
847847
'transactions/unconfirmed/get',
848848
{id}

0 commit comments

Comments
 (0)