Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adamant-api",
"version": "2.2.0",
"version": "2.2.1",
"description": "JavaScript API library for the ADAMANT Blockchain",
"keywords": [
"adm",
Expand Down Expand Up @@ -47,7 +47,6 @@
"scripts": {
"test": "jest",
"lint": "gts lint",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"clean": "gts clean",
"compile": "tsc",
Expand Down
6 changes: 3 additions & 3 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ export class AdamantApi extends NodeManager {
* Get transaction by ID
*/
async getTransaction(
id: number,
id: string,
options?: TransactionQuery<TransactionsOptions>
) {
return this.get<GetTransactionByIdResponseDto>('transactions/get', {
Expand Down Expand Up @@ -813,7 +813,7 @@ export class AdamantApi extends NodeManager {
/**
* Get queued transaction by ID
*/
async getQueuedTransaction(id: number) {
async getQueuedTransaction(id: string) {
return this.get<GetQueuedTransactionsResponseDto>(
'transactions/queued/get',
{id}
Expand All @@ -832,7 +832,7 @@ export class AdamantApi extends NodeManager {
/**
* Get unconfirmed transaction by ID
*/
async getUnconfirmedTransaction(id: number) {
async getUnconfirmedTransaction(id: string) {
return this.get<GetUnconfirmedTransactionByIdResponseDto>(
'transactions/unconfirmed/get',
{id}
Expand Down