@replicode/parallax
Advanced tools
Comparing version 1.1.60 to 1.1.61
@@ -15,3 +15,4 @@ import { ParallaxOptions } from './parallax.options'; | ||
getWalletNFTTxns(walletID: string): Promise<Parallax.TxnERC721[]>; | ||
getEthereumHexAddress(address: string): Promise<string>; | ||
} | ||
//# sourceMappingURL=parallax.service.d.ts.map |
@@ -184,2 +184,17 @@ "use strict"; | ||
} | ||
async getEthereumHexAddress(address) { | ||
let route = `/provider/ethers/resolve_address`; | ||
let params = { | ||
"address": address | ||
}; | ||
try { | ||
let response = await this.client.get(route, { params }); | ||
let address = response.data; | ||
return address; | ||
} | ||
catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
} | ||
}; | ||
@@ -186,0 +201,0 @@ ParallaxService = __decorate([ |
{ | ||
"name": "@replicode/parallax", | ||
"version": "1.1.60", | ||
"version": "1.1.61", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -209,2 +209,18 @@ import { Injectable, Logger } from '@nestjs/common'; | ||
} | ||
async getEthereumHexAddress(address:string):Promise<string> { | ||
let route = `/provider/ethers/resolve_address`; | ||
let params = { | ||
"address": address | ||
}; | ||
try { | ||
let response:AxiosResponse = await this.client.get(route, { params }); | ||
let address: string = response.data as string; | ||
return address; | ||
} 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
42887
999