We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getTransactionMerkleProof
1 parent 562894c commit 4336821Copy full SHA for 4336821
src/classes/Transactions.ts
@@ -1,5 +1,5 @@
1
import axios from 'axios'
2
-import { AddressTransaction, SDKConfig } from '../types'
+import { AddressTransaction, SDKConfig, TransactionMerkelProof } from '../types'
3
4
export class Transaction {
5
private apiV1URL: string
@@ -23,8 +23,10 @@ export class Transaction {
23
* @param txHash
24
* getTransactonMerkelProof fetches the MerkelProof of a transaction
25
*/
26
- public getTransactonMerkelProof(txHash: string) {
27
-
+ public async getTransactonMerkelProof(txHash: string) {
+ const url = `${this.apiV1URL}/transaction/merkle_proof/${txHash}`
28
+ const data = await this._get(url)
29
+ return data as TransactionMerkelProof
30
}
31
32
/// BEGIN PRIVATE METHODS
0 commit comments