@shapeshiftoss/unchained-client 0.1.3 → 0.2.3

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.
Files changed (74) hide show
  1. package/README.md +26 -0
  2. package/dist/generated/bitcoin/api.d.ts +482 -0
  3. package/dist/generated/bitcoin/api.d.ts.map +1 -0
  4. package/dist/generated/bitcoin/api.js +336 -0
  5. package/dist/generated/bitcoin/api.js.map +1 -0
  6. package/dist/generated/bitcoin/base.d.ts +56 -0
  7. package/dist/generated/bitcoin/base.d.ts.map +1 -0
  8. package/dist/generated/bitcoin/base.js +65 -0
  9. package/dist/generated/bitcoin/base.js.map +1 -0
  10. package/dist/generated/bitcoin/common.d.ts +66 -0
  11. package/dist/generated/bitcoin/common.d.ts.map +1 -0
  12. package/dist/generated/bitcoin/common.js +153 -0
  13. package/dist/generated/bitcoin/common.js.map +1 -0
  14. package/dist/generated/bitcoin/configuration.d.ts +84 -0
  15. package/dist/generated/bitcoin/configuration.d.ts.map +1 -0
  16. package/dist/generated/bitcoin/configuration.js +43 -0
  17. package/dist/generated/bitcoin/configuration.js.map +1 -0
  18. package/dist/generated/bitcoin/index.d.ts +14 -0
  19. package/dist/generated/bitcoin/index.d.ts.map +1 -0
  20. package/dist/generated/bitcoin/index.js +28 -0
  21. package/dist/generated/bitcoin/index.js.map +1 -0
  22. package/dist/generated/ethereum/api.d.ts +554 -0
  23. package/dist/generated/ethereum/api.d.ts.map +1 -0
  24. package/dist/generated/ethereum/api.js +465 -0
  25. package/dist/generated/ethereum/api.js.map +1 -0
  26. package/dist/{packages/client/src/generated → generated}/ethereum/base.d.ts +0 -0
  27. package/dist/generated/ethereum/base.d.ts.map +1 -0
  28. package/dist/{packages/client/src/generated → generated}/ethereum/base.js +0 -0
  29. package/dist/generated/ethereum/base.js.map +1 -0
  30. package/dist/{packages/client/src/generated → generated}/ethereum/common.d.ts +0 -0
  31. package/dist/generated/ethereum/common.d.ts.map +1 -0
  32. package/dist/{packages/client/src/generated → generated}/ethereum/common.js +0 -0
  33. package/dist/generated/ethereum/common.js.map +1 -0
  34. package/dist/{packages/client/src/generated → generated}/ethereum/configuration.d.ts +0 -0
  35. package/dist/generated/ethereum/configuration.d.ts.map +1 -0
  36. package/dist/{packages/client/src/generated → generated}/ethereum/configuration.js +0 -0
  37. package/dist/generated/ethereum/configuration.js.map +1 -0
  38. package/dist/{packages/client/src/generated → generated}/ethereum/index.d.ts +0 -0
  39. package/dist/generated/ethereum/index.d.ts.map +1 -0
  40. package/dist/{packages/client/src/generated → generated}/ethereum/index.js +0 -0
  41. package/dist/generated/ethereum/index.js.map +1 -0
  42. package/dist/index.d.ts +3 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/{packages/client/src/index.js → index.js} +2 -5
  45. package/dist/index.js.map +1 -0
  46. package/dist/tsconfig.tsbuildinfo +78 -535
  47. package/package.json +3 -3
  48. package/dist/coinstacks/common/api/src/index.d.ts +0 -121
  49. package/dist/coinstacks/common/api/src/index.d.ts.map +0 -1
  50. package/dist/coinstacks/common/api/src/index.js +0 -63
  51. package/dist/coinstacks/common/api/src/index.js.map +0 -1
  52. package/dist/coinstacks/common/api/src/middleware.d.ts +0 -4
  53. package/dist/coinstacks/common/api/src/middleware.d.ts.map +0 -1
  54. package/dist/coinstacks/common/api/src/middleware.js +0 -39
  55. package/dist/coinstacks/common/api/src/middleware.js.map +0 -1
  56. package/dist/coinstacks/common/api/src/models.d.ts +0 -191
  57. package/dist/coinstacks/common/api/src/models.d.ts.map +0 -1
  58. package/dist/coinstacks/common/api/src/models.js +0 -3
  59. package/dist/coinstacks/common/api/src/models.js.map +0 -1
  60. package/dist/packages/client/src/generated/ethereum/api.d.ts +0 -1074
  61. package/dist/packages/client/src/generated/ethereum/api.d.ts.map +0 -1
  62. package/dist/packages/client/src/generated/ethereum/api.js +0 -806
  63. package/dist/packages/client/src/generated/ethereum/api.js.map +0 -1
  64. package/dist/packages/client/src/generated/ethereum/base.d.ts.map +0 -1
  65. package/dist/packages/client/src/generated/ethereum/base.js.map +0 -1
  66. package/dist/packages/client/src/generated/ethereum/common.d.ts.map +0 -1
  67. package/dist/packages/client/src/generated/ethereum/common.js.map +0 -1
  68. package/dist/packages/client/src/generated/ethereum/configuration.d.ts.map +0 -1
  69. package/dist/packages/client/src/generated/ethereum/configuration.js.map +0 -1
  70. package/dist/packages/client/src/generated/ethereum/index.d.ts.map +0 -1
  71. package/dist/packages/client/src/generated/ethereum/index.js.map +0 -1
  72. package/dist/packages/client/src/index.d.ts +0 -3
  73. package/dist/packages/client/src/index.d.ts.map +0 -1
  74. package/dist/packages/client/src/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/generated/bitcoin/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;AAIH,yDAAyD;AACzD,aAAa;AACb,kDAAiE;AAEpD,QAAA,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEhE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAa,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAa,aAAc,SAAQ,KAAK;IAEpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QADhC,SAAI,GAAoB,eAAe,CAAC;IAGxC,CAAC;CACJ;AALD,sCAKC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @shapeshiftoss/bitcoin-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Configuration } from "./configuration";
13
+ import { RequestArgs } from "./base";
14
+ import { AxiosInstance } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
66
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/generated/bitcoin/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAiB,WAAW,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,6DAOjF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,oDAIxD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,6DAO/D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,6DAO1F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAenE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,mDAQ7E,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,yDACjG,aAAa,aAA0B,MAAM,gDAI/D,CAAA"}
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * @shapeshiftoss/bitcoin-api
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
+ const base_1 = require("./base");
27
+ /**
28
+ *
29
+ * @export
30
+ */
31
+ exports.DUMMY_BASE_URL = 'https://example.com';
32
+ /**
33
+ *
34
+ * @throws {RequiredError}
35
+ * @export
36
+ */
37
+ const assertParamExists = function (functionName, paramName, paramValue) {
38
+ if (paramValue === null || paramValue === undefined) {
39
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
40
+ }
41
+ };
42
+ exports.assertParamExists = assertParamExists;
43
+ /**
44
+ *
45
+ * @export
46
+ */
47
+ const setApiKeyToObject = function (object, keyParamName, configuration) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ if (configuration && configuration.apiKey) {
50
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
51
+ ? yield configuration.apiKey(keyParamName)
52
+ : yield configuration.apiKey;
53
+ object[keyParamName] = localVarApiKeyValue;
54
+ }
55
+ });
56
+ };
57
+ exports.setApiKeyToObject = setApiKeyToObject;
58
+ /**
59
+ *
60
+ * @export
61
+ */
62
+ const setBasicAuthToObject = function (object, configuration) {
63
+ if (configuration && (configuration.username || configuration.password)) {
64
+ object["auth"] = { username: configuration.username, password: configuration.password };
65
+ }
66
+ };
67
+ exports.setBasicAuthToObject = setBasicAuthToObject;
68
+ /**
69
+ *
70
+ * @export
71
+ */
72
+ const setBearerAuthToObject = function (object, configuration) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ if (configuration && configuration.accessToken) {
75
+ const accessToken = typeof configuration.accessToken === 'function'
76
+ ? yield configuration.accessToken()
77
+ : yield configuration.accessToken;
78
+ object["Authorization"] = "Bearer " + accessToken;
79
+ }
80
+ });
81
+ };
82
+ exports.setBearerAuthToObject = setBearerAuthToObject;
83
+ /**
84
+ *
85
+ * @export
86
+ */
87
+ const setOAuthToObject = function (object, name, scopes, configuration) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ if (configuration && configuration.accessToken) {
90
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
91
+ ? yield configuration.accessToken(name, scopes)
92
+ : yield configuration.accessToken;
93
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
94
+ }
95
+ });
96
+ };
97
+ exports.setOAuthToObject = setOAuthToObject;
98
+ /**
99
+ *
100
+ * @export
101
+ */
102
+ const setSearchParams = function (url, ...objects) {
103
+ const searchParams = new URLSearchParams(url.search);
104
+ for (const object of objects) {
105
+ for (const key in object) {
106
+ if (Array.isArray(object[key])) {
107
+ searchParams.delete(key);
108
+ for (const item of object[key]) {
109
+ searchParams.append(key, item);
110
+ }
111
+ }
112
+ else {
113
+ searchParams.set(key, object[key]);
114
+ }
115
+ }
116
+ }
117
+ url.search = searchParams.toString();
118
+ };
119
+ exports.setSearchParams = setSearchParams;
120
+ /**
121
+ *
122
+ * @export
123
+ */
124
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
125
+ const nonString = typeof value !== 'string';
126
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
127
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
128
+ : nonString;
129
+ return needsSerialization
130
+ ? JSON.stringify(value !== undefined ? value : {})
131
+ : (value || "");
132
+ };
133
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
134
+ /**
135
+ *
136
+ * @export
137
+ */
138
+ const toPathString = function (url) {
139
+ return url.pathname + url.search + url.hash;
140
+ };
141
+ exports.toPathString = toPathString;
142
+ /**
143
+ *
144
+ * @export
145
+ */
146
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
147
+ return (axios = globalAxios, basePath = BASE_PATH) => {
148
+ const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
149
+ return axios.request(axiosRequestArgs);
150
+ };
151
+ };
152
+ exports.createRequestFunction = createRequestFunction;
153
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/generated/bitcoin/common.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @shapeshiftoss/bitcoin-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ baseOptions?: any;
19
+ formDataCtor?: new () => any;
20
+ }
21
+ export declare class Configuration {
22
+ /**
23
+ * parameter for apiKey security
24
+ * @param name security name
25
+ * @memberof Configuration
26
+ */
27
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
+ /**
29
+ * parameter for basic security
30
+ *
31
+ * @type {string}
32
+ * @memberof Configuration
33
+ */
34
+ username?: string;
35
+ /**
36
+ * parameter for basic security
37
+ *
38
+ * @type {string}
39
+ * @memberof Configuration
40
+ */
41
+ password?: string;
42
+ /**
43
+ * parameter for oauth2 security
44
+ * @param name security name
45
+ * @param scopes oauth2 scope
46
+ * @memberof Configuration
47
+ */
48
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
+ /**
50
+ * override base path
51
+ *
52
+ * @type {string}
53
+ * @memberof Configuration
54
+ */
55
+ basePath?: string;
56
+ /**
57
+ * base options for axios calls
58
+ *
59
+ * @type {any}
60
+ * @memberof Configuration
61
+ */
62
+ baseOptions?: any;
63
+ /**
64
+ * The FormData constructor that will be used to create multipart form data
65
+ * requests. You can inject this here so that execution environments that
66
+ * do not support the FormData class can still run the generated client.
67
+ *
68
+ * @type {new () => FormData}
69
+ */
70
+ formDataCtor?: new () => any;
71
+ constructor(param?: ConfigurationParameters);
72
+ /**
73
+ * Check if the given MIME is a JSON MIME.
74
+ * JSON MIME examples:
75
+ * application/json
76
+ * application/json; charset=UTF8
77
+ * APPLICATION/JSON
78
+ * application/vnd.company+json
79
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
+ * @return True if the given MIME is JSON, false otherwise.
81
+ */
82
+ isJsonMime(mime: string): boolean;
83
+ }
84
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/generated/bitcoin/configuration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;CAChC;AAED,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;gBAEjB,KAAK,GAAE,uBAA4B;IAU/C;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * @shapeshiftoss/bitcoin-api
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Configuration = void 0;
17
+ class Configuration {
18
+ constructor(param = {}) {
19
+ this.apiKey = param.apiKey;
20
+ this.username = param.username;
21
+ this.password = param.password;
22
+ this.accessToken = param.accessToken;
23
+ this.basePath = param.basePath;
24
+ this.baseOptions = param.baseOptions;
25
+ this.formDataCtor = param.formDataCtor;
26
+ }
27
+ /**
28
+ * Check if the given MIME is a JSON MIME.
29
+ * JSON MIME examples:
30
+ * application/json
31
+ * application/json; charset=UTF8
32
+ * APPLICATION/JSON
33
+ * application/vnd.company+json
34
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
35
+ * @return True if the given MIME is JSON, false otherwise.
36
+ */
37
+ isJsonMime(mime) {
38
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
39
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
40
+ }
41
+ }
42
+ exports.Configuration = Configuration;
43
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/generated/bitcoin/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAaH,MAAa,aAAa;IAmDtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AA3ED,sCA2EC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @shapeshiftoss/bitcoin-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/bitcoin/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * @shapeshiftoss/bitcoin-api
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
18
+ }) : (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ }));
22
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ __exportStar(require("./api"), exports);
27
+ __exportStar(require("./configuration"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/bitcoin/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;AAGH,wCAAsB;AACtB,kDAAgC"}
@@ -0,0 +1,554 @@
1
+ /**
2
+ * @shapeshiftoss/ethereum-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Configuration } from './configuration';
13
+ import { AxiosPromise, AxiosInstance } from 'axios';
14
+ import { RequestArgs, BaseAPI } from './base';
15
+ /**
16
+ * Contains info about a 400 Bad Request response
17
+ * @export
18
+ * @interface BadRequestError
19
+ */
20
+ export interface BadRequestError {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof BadRequestError
25
+ */
26
+ error: string;
27
+ }
28
+ /**
29
+ * Contains additional ethereum specific balance info
30
+ * @export
31
+ * @interface EthereumBalance
32
+ */
33
+ export interface EthereumBalance {
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof EthereumBalance
38
+ */
39
+ pubkey: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof EthereumBalance
44
+ */
45
+ balance: string;
46
+ /**
47
+ *
48
+ * @type {Array<Token>}
49
+ * @memberof EthereumBalance
50
+ */
51
+ tokens: Array<Token>;
52
+ }
53
+ /**
54
+ * Contains info about a 500 Internal Server Error response
55
+ * @export
56
+ * @interface InternalServerError
57
+ */
58
+ export interface InternalServerError {
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof InternalServerError
63
+ */
64
+ message: string;
65
+ }
66
+ /**
67
+ * Contains the serialized raw transaction hex
68
+ * @export
69
+ * @interface SendTxBody
70
+ */
71
+ export interface SendTxBody {
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof SendTxBody
76
+ */
77
+ hex: string;
78
+ }
79
+ /**
80
+ * Contains info about a token including balance for an address
81
+ * @export
82
+ * @interface Token
83
+ */
84
+ export interface Token {
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof Token
89
+ */
90
+ type: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof Token
95
+ */
96
+ name: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof Token
101
+ */
102
+ contract: string;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof Token
107
+ */
108
+ symbol: string;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof Token
113
+ */
114
+ decimals: number;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof Token
119
+ */
120
+ balance: string;
121
+ }
122
+ /**
123
+ * Contains info about a transaction
124
+ * @export
125
+ * @interface Tx
126
+ */
127
+ export interface Tx {
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof Tx
132
+ */
133
+ txid: string;
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof Tx
138
+ */
139
+ status: string;
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof Tx
144
+ */
145
+ blockHash?: string;
146
+ /**
147
+ *
148
+ * @type {number}
149
+ * @memberof Tx
150
+ */
151
+ blockHeight?: number;
152
+ /**
153
+ *
154
+ * @type {number}
155
+ * @memberof Tx
156
+ */
157
+ confirmations?: number;
158
+ /**
159
+ *
160
+ * @type {number}
161
+ * @memberof Tx
162
+ */
163
+ timestamp?: number;
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof Tx
168
+ */
169
+ from: string;
170
+ /**
171
+ *
172
+ * @type {string}
173
+ * @memberof Tx
174
+ */
175
+ to?: string;
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof Tx
180
+ */
181
+ value: string;
182
+ /**
183
+ *
184
+ * @type {string}
185
+ * @memberof Tx
186
+ */
187
+ fee: string;
188
+ }
189
+ /**
190
+ * Contains paginated transaction history
191
+ * @export
192
+ * @interface TxHistory
193
+ */
194
+ export interface TxHistory {
195
+ /**
196
+ *
197
+ * @type {number}
198
+ * @memberof TxHistory
199
+ */
200
+ page: number;
201
+ /**
202
+ *
203
+ * @type {number}
204
+ * @memberof TxHistory
205
+ */
206
+ totalPages: number;
207
+ /**
208
+ *
209
+ * @type {number}
210
+ * @memberof TxHistory
211
+ */
212
+ txs: number;
213
+ /**
214
+ *
215
+ * @type {Array<Tx>}
216
+ * @memberof TxHistory
217
+ */
218
+ transactions: Array<Tx>;
219
+ }
220
+ /**
221
+ * Contains info about a 422 Validation Error response
222
+ * @export
223
+ * @interface ValidationError
224
+ */
225
+ export interface ValidationError {
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof ValidationError
230
+ */
231
+ message: ValidationErrorMessageEnum;
232
+ /**
233
+ *
234
+ * @type {{ [key: string]: any; }}
235
+ * @memberof ValidationError
236
+ */
237
+ details: {
238
+ [key: string]: any;
239
+ };
240
+ }
241
+ /**
242
+ * @export
243
+ * @enum {string}
244
+ */
245
+ export declare enum ValidationErrorMessageEnum {
246
+ ValidationFailed = "Validation failed"
247
+ }
248
+ /**
249
+ * V1Api - axios parameter creator
250
+ * @export
251
+ */
252
+ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
253
+ /**
254
+ * Get the estimated gas cost of a transaction
255
+ * @param {string} data input data
256
+ * @param {string} to to address
257
+ * @param {string} value transaction value in ether
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ estimateGas: (data: string, to: string, value: string, options?: any) => Promise<RequestArgs>;
262
+ /**
263
+ * Get balance of a pubkey
264
+ * @param {string} pubkey account pubkey
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ getBalance: (pubkey: string, options?: any) => Promise<RequestArgs>;
269
+ /**
270
+ * Get the current gas price from the node
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ getGasPrice: (options?: any) => Promise<RequestArgs>;
275
+ /**
276
+ * Get the current nonce of an address
277
+ * @param {string} address account address
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ getNonce: (address: string, options?: any) => Promise<RequestArgs>;
282
+ /**
283
+ * Get transaction history of a pubkey
284
+ * @param {string} pubkey account pubkey
285
+ * @param {number} [page] page number
286
+ * @param {number} [pageSize] page size
287
+ * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ getTxHistory: (pubkey: string, page?: number | undefined, pageSize?: number | undefined, contract?: string | undefined, options?: any) => Promise<RequestArgs>;
292
+ /**
293
+ * Sends raw transaction to be broadcast to the node.
294
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ sendTx: (sendTxBody: SendTxBody, options?: any) => Promise<RequestArgs>;
299
+ };
300
+ /**
301
+ * V1Api - functional programming interface
302
+ * @export
303
+ */
304
+ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
305
+ /**
306
+ * Get the estimated gas cost of a transaction
307
+ * @param {string} data input data
308
+ * @param {string} to to address
309
+ * @param {string} value transaction value in ether
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ estimateGas(data: string, to: string, value: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
314
+ /**
315
+ * Get balance of a pubkey
316
+ * @param {string} pubkey account pubkey
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ getBalance(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumBalance>>;
321
+ /**
322
+ * Get the current gas price from the node
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ getGasPrice(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
327
+ /**
328
+ * Get the current nonce of an address
329
+ * @param {string} address account address
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ getNonce(address: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<number>>;
334
+ /**
335
+ * Get transaction history of a pubkey
336
+ * @param {string} pubkey account pubkey
337
+ * @param {number} [page] page number
338
+ * @param {number} [pageSize] page size
339
+ * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, contract?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
344
+ /**
345
+ * Sends raw transaction to be broadcast to the node.
346
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ sendTx(sendTxBody: SendTxBody, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
351
+ };
352
+ /**
353
+ * V1Api - factory interface
354
+ * @export
355
+ */
356
+ export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
357
+ /**
358
+ * Get the estimated gas cost of a transaction
359
+ * @param {string} data input data
360
+ * @param {string} to to address
361
+ * @param {string} value transaction value in ether
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ estimateGas(data: string, to: string, value: string, options?: any): AxiosPromise<string>;
366
+ /**
367
+ * Get balance of a pubkey
368
+ * @param {string} pubkey account pubkey
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ getBalance(pubkey: string, options?: any): AxiosPromise<EthereumBalance>;
373
+ /**
374
+ * Get the current gas price from the node
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ getGasPrice(options?: any): AxiosPromise<string>;
379
+ /**
380
+ * Get the current nonce of an address
381
+ * @param {string} address account address
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ getNonce(address: string, options?: any): AxiosPromise<number>;
386
+ /**
387
+ * Get transaction history of a pubkey
388
+ * @param {string} pubkey account pubkey
389
+ * @param {number} [page] page number
390
+ * @param {number} [pageSize] page size
391
+ * @param {string} [contract] filter by contract address (only supported by coins which support contracts)
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, contract?: string | undefined, options?: any): AxiosPromise<TxHistory>;
396
+ /**
397
+ * Sends raw transaction to be broadcast to the node.
398
+ * @param {SendTxBody} sendTxBody serialized raw transaction hex
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ sendTx(sendTxBody: SendTxBody, options?: any): AxiosPromise<string>;
403
+ };
404
+ /**
405
+ * Request parameters for estimateGas operation in V1Api.
406
+ * @export
407
+ * @interface V1ApiEstimateGasRequest
408
+ */
409
+ export interface V1ApiEstimateGasRequest {
410
+ /**
411
+ * input data
412
+ * @type {string}
413
+ * @memberof V1ApiEstimateGas
414
+ */
415
+ readonly data: string;
416
+ /**
417
+ * to address
418
+ * @type {string}
419
+ * @memberof V1ApiEstimateGas
420
+ */
421
+ readonly to: string;
422
+ /**
423
+ * transaction value in ether
424
+ * @type {string}
425
+ * @memberof V1ApiEstimateGas
426
+ */
427
+ readonly value: string;
428
+ }
429
+ /**
430
+ * Request parameters for getBalance operation in V1Api.
431
+ * @export
432
+ * @interface V1ApiGetBalanceRequest
433
+ */
434
+ export interface V1ApiGetBalanceRequest {
435
+ /**
436
+ * account pubkey
437
+ * @type {string}
438
+ * @memberof V1ApiGetBalance
439
+ */
440
+ readonly pubkey: string;
441
+ }
442
+ /**
443
+ * Request parameters for getNonce operation in V1Api.
444
+ * @export
445
+ * @interface V1ApiGetNonceRequest
446
+ */
447
+ export interface V1ApiGetNonceRequest {
448
+ /**
449
+ * account address
450
+ * @type {string}
451
+ * @memberof V1ApiGetNonce
452
+ */
453
+ readonly address: string;
454
+ }
455
+ /**
456
+ * Request parameters for getTxHistory operation in V1Api.
457
+ * @export
458
+ * @interface V1ApiGetTxHistoryRequest
459
+ */
460
+ export interface V1ApiGetTxHistoryRequest {
461
+ /**
462
+ * account pubkey
463
+ * @type {string}
464
+ * @memberof V1ApiGetTxHistory
465
+ */
466
+ readonly pubkey: string;
467
+ /**
468
+ * page number
469
+ * @type {number}
470
+ * @memberof V1ApiGetTxHistory
471
+ */
472
+ readonly page?: number;
473
+ /**
474
+ * page size
475
+ * @type {number}
476
+ * @memberof V1ApiGetTxHistory
477
+ */
478
+ readonly pageSize?: number;
479
+ /**
480
+ * filter by contract address (only supported by coins which support contracts)
481
+ * @type {string}
482
+ * @memberof V1ApiGetTxHistory
483
+ */
484
+ readonly contract?: string;
485
+ }
486
+ /**
487
+ * Request parameters for sendTx operation in V1Api.
488
+ * @export
489
+ * @interface V1ApiSendTxRequest
490
+ */
491
+ export interface V1ApiSendTxRequest {
492
+ /**
493
+ * serialized raw transaction hex
494
+ * @type {SendTxBody}
495
+ * @memberof V1ApiSendTx
496
+ */
497
+ readonly sendTxBody: SendTxBody;
498
+ }
499
+ /**
500
+ * V1Api - object-oriented interface
501
+ * @export
502
+ * @class V1Api
503
+ * @extends {BaseAPI}
504
+ */
505
+ export declare class V1Api extends BaseAPI {
506
+ /**
507
+ * Get the estimated gas cost of a transaction
508
+ * @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ * @memberof V1Api
512
+ */
513
+ estimateGas(requestParameters: V1ApiEstimateGasRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
514
+ /**
515
+ * Get balance of a pubkey
516
+ * @param {V1ApiGetBalanceRequest} requestParameters Request parameters.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ * @memberof V1Api
520
+ */
521
+ getBalance(requestParameters: V1ApiGetBalanceRequest, options?: any): Promise<import("axios").AxiosResponse<EthereumBalance>>;
522
+ /**
523
+ * Get the current gas price from the node
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ * @memberof V1Api
527
+ */
528
+ getGasPrice(options?: any): Promise<import("axios").AxiosResponse<string>>;
529
+ /**
530
+ * Get the current nonce of an address
531
+ * @param {V1ApiGetNonceRequest} requestParameters Request parameters.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof V1Api
535
+ */
536
+ getNonce(requestParameters: V1ApiGetNonceRequest, options?: any): Promise<import("axios").AxiosResponse<number>>;
537
+ /**
538
+ * Get transaction history of a pubkey
539
+ * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ * @memberof V1Api
543
+ */
544
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory>>;
545
+ /**
546
+ * Sends raw transaction to be broadcast to the node.
547
+ * @param {V1ApiSendTxRequest} requestParameters Request parameters.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ * @memberof V1Api
551
+ */
552
+ sendTx(requestParameters: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
553
+ }
554
+ //# sourceMappingURL=api.d.ts.map