Skip to content

Commit

Permalink
Community bug/#81 fix api calls (#266)
Browse files Browse the repository at this point in the history
* fix get endpoint in qtum - getQtumBalance

* fix get endpoint in custodial - getCustodialAddresses

* increase version - 1.29.28 -> 1.29.29
  • Loading branch information
chrto authored Dec 7, 2021
1 parent a28cfa6 commit f6764f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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": "1.29.28",
"version": "1.29.29",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/blockchain/qtum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getQtumUTXOs = async (address: string): Promise<QtumIUTXO> => get(`
export const getQtumTransaction = async (id: string): Promise<QtumIRawTransactionInfo> => get(`/v3/qtum/transaction/${id}`)
export const getQtumTransactions = async (address: string, pageSize = 50, offset = 0): Promise<QtumIRawTransactions> => get(`/v3/qtum/transactions/address/${address}/?pageSize=${pageSize}&offset=${offset}`)

export const getQtumBalance = async (address: string): Promise<QtumIGetInfo> => get(`v3/qtum/account/balance/${address}`)
export const getQtumBalance = async (address: string): Promise<QtumIGetInfo> => get(`/v3/qtum/account/balance/${address}`)
export const getQtumCurrentBlock = async (): Promise<string> => get(`/v3/qtum/block/current`)
export const getQtumBlock = async (hash: string): Promise<QtumBlock> => get(`/v3/qtum/block/${hash}`)

Expand Down
2 changes: 1 addition & 1 deletion src/wallet/custodial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const getCustodialFactoryContractAddress = (chain: Currency, testnet: boolean) =
}
};

export const getCustodialAddresses = (chain: Currency, txId: string): Promise<string[]> => get(`v3/blockchain/sc/custodial/${chain}/${txId}`);
export const getCustodialAddresses = (chain: Currency, txId: string): Promise<string[]> => get(`/v3/blockchain/sc/custodial/${chain}/${txId}`);

/**
* This method is @Deprecated. Use @link{generateCustodialWalletBatch} instead
Expand Down

0 comments on commit f6764f0

Please sign in to comment.