@cityofzion/blockchain-service 0.11.0 → 0.11.1

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.
@@ -138,6 +138,11 @@ export type BalanceResponse = {
138
138
  amount: string;
139
139
  token: Token;
140
140
  };
141
+ export type RpcResponse = {
142
+ latency: number;
143
+ url: string;
144
+ height: number;
145
+ };
141
146
  export interface BlockchainDataService {
142
147
  maxTimeToConfirmTransactionInMs: number;
143
148
  getTransaction(txid: string): Promise<TransactionResponse>;
@@ -146,6 +151,7 @@ export interface BlockchainDataService {
146
151
  getTokenInfo(tokenHash: string): Promise<Token>;
147
152
  getBalance(address: string): Promise<BalanceResponse[]>;
148
153
  getBlockHeight(): Promise<number>;
154
+ getRpcList(): Promise<RpcResponse[]>;
149
155
  }
150
156
  export interface BDSClaimable {
151
157
  getUnclaimed(address: string): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/blockchain-service",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",