@replicode/parallax
Advanced tools
Comparing version 1.1.52 to 1.1.53
import { ParallaxOptions } from './parallax.options'; | ||
import { Parallax } from './parallax.model'; | ||
import { TxnERC721 } from '@replicode/parallax-entities'; | ||
export declare class ParallaxService { | ||
@@ -17,3 +18,4 @@ private options; | ||
addWallet(blockchain: string, network: string, address: string): Promise<boolean>; | ||
getWalletNFTTxns(walletID: string): Promise<TxnERC721[]>; | ||
} | ||
//# sourceMappingURL=parallax.service.d.ts.map |
@@ -167,2 +167,14 @@ "use strict"; | ||
} | ||
async getWalletNFTTxns(walletID) { | ||
let route = `/wallet/${walletID}/calculate-profit`; | ||
try { | ||
let response = await this.client.get(route); | ||
let txns = response.data; | ||
return txns; | ||
} | ||
catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
}; | ||
@@ -169,0 +181,0 @@ ParallaxService = __decorate([ |
{ | ||
"name": "@replicode/parallax", | ||
"version": "1.1.52", | ||
"version": "1.1.53", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -8,2 +8,3 @@ import { Injectable, Logger } from '@nestjs/common'; | ||
import { Parallax } from './parallax.model'; | ||
import { TxnERC721 } from '@replicode/parallax-entities'; | ||
@@ -196,2 +197,16 @@ const HEADER_API_KEY = 'X-API-KEY'; | ||
} | ||
async getWalletNFTTxns(walletID: string):Promise<TxnERC721[]> { | ||
let route = `/wallet/${walletID}/calculate-profit`; | ||
try { | ||
let response:AxiosResponse = await this.client.get(route); | ||
let txns: TxnERC721[] = response.data as TxnERC721[]; | ||
return txns; | ||
} catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34619
736