@exodus/solana-api 1.2.21 → 1.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/index.js +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@exodus/asset-json-rpc": "^1.0.0",
|
|
17
|
-
"@exodus/solana-lib": "^1.2.
|
|
17
|
+
"@exodus/solana-lib": "^1.2.23",
|
|
18
18
|
"lodash": "^4.17.11",
|
|
19
19
|
"url-join": "4.0.0",
|
|
20
20
|
"wretch": "^1.5.2"
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"node-fetch": "~1.6.3"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "7073b51b6cf558547ca05ae25eaac44cf28a022b"
|
|
26
26
|
}
|
package/src/index.js
CHANGED
|
@@ -469,6 +469,15 @@ class Api {
|
|
|
469
469
|
return earnings
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
+
async getMinimumBalanceForRentExemption(size: number) {
|
|
473
|
+
const minimumBalance = await this.api.post({
|
|
474
|
+
method: 'getMinimumBalanceForRentExemption',
|
|
475
|
+
params: [size],
|
|
476
|
+
})
|
|
477
|
+
|
|
478
|
+
return minimumBalance
|
|
479
|
+
}
|
|
480
|
+
|
|
472
481
|
/**
|
|
473
482
|
* Broadcast a signed transaction
|
|
474
483
|
*/
|