@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.
- package/dist/interfaces.d.ts +6 -0
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -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>;
|