@exodus/solana-api 2.0.13 → 2.0.14
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 +2 -2
- package/src/api.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"node-fetch": "~2.6.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "16410d60f413eda6aeb3372c23875b98c20de06c"
|
|
34
34
|
}
|
package/src/api.js
CHANGED
|
@@ -126,7 +126,10 @@ export class Api {
|
|
|
126
126
|
|
|
127
127
|
// Transaction structure: https://docs.solana.com/apps/jsonrpc-api#transaction-structure
|
|
128
128
|
async getTransactionById(id: string) {
|
|
129
|
-
return this.rpcCall('
|
|
129
|
+
return this.rpcCall('getTransaction', [
|
|
130
|
+
id,
|
|
131
|
+
{ encoding: 'jsonParsed', maxSupportedTransactionVersion: 0 },
|
|
132
|
+
])
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
async getFee(): number {
|