Skip to content

Commit

Permalink
Used the correct endpoint in tronGetCurrentBlock (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncodes authored Aug 17, 2021
1 parent 8301ef0 commit 5c30fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blockchain/tron.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get, post } from '../connector/tatum'
import {TransactionHash, TronAccount, TronBlock, TronTransaction, TronTrc10} from '../model'
import { TransactionHash, TronAccount, TronBlock, TronTransaction, TronTrc10 } from '../model'

/**
* For more details, see <a href="https://tatum.io/apidoc#operation/TronBroadcast" target="_blank">Tatum API documentation</a>
Expand All @@ -10,7 +10,7 @@ export const tronBroadcast = async (txData: string, signatureId?: string): Promi
/**
* For more details, see <a href="https://tatum.io/apidoc#operation/TronGetCurrentBlock" target="_blank">Tatum API documentation</a>
*/
export const tronGetCurrentBlock = async (): Promise<{ testnet: boolean, hash: string, blockNumber: number }> => get(`/v3/tron/current`)
export const tronGetCurrentBlock = async (): Promise<{ testnet: boolean, hash: string, blockNumber: number }> => get(`/v3/tron/info`)

/**
* For more details, see <a href="https://tatum.io/apidoc#operation/TronGetBlock" target="_blank">Tatum API documentation</a>
Expand Down

0 comments on commit 5c30fa0

Please sign in to comment.