@xchainjs/xchain-thorchain 0.28.1 → 0.28.2

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/lib/client.d.ts CHANGED
@@ -165,13 +165,19 @@ declare class Client extends BaseXChainClient implements ThorchainClient, XChain
165
165
  getTransactions: (params?: (TxHistoryParams & {
166
166
  filterFn?: ((tx: RPCTxResult) => boolean) | undefined;
167
167
  }) | undefined) => Promise<TxsPage>;
168
+ /**
169
+ *
170
+ * @param txId - tx hash
171
+ * @returns txResponse
172
+ */
173
+ fetchTransaction(txId: string): Promise<import("@xchainjs/xchain-cosmos").TxResponse | null>;
168
174
  /**
169
175
  * Get the transaction details of a given transaction id.
170
176
  *
171
177
  * @param {string} txId The transaction id.
172
178
  * @returns {Tx} The transaction details of the given transaction id.
173
179
  */
174
- getTransactionData(txId: string, address: Address): Promise<Tx>;
180
+ getTransactionData(txId: string, address?: Address): Promise<Tx>;
175
181
  /** This function is used when in bound or outbound tx is not of thorchain
176
182
  *
177
183
  * @param txId - transaction hash
package/lib/const.d.ts CHANGED
@@ -49,3 +49,20 @@ export declare const AssetRuneERC20: Asset;
49
49
  * @see https://gitlab.com/thorchain/thornode/-/blob/master/common/asset.go#L12-24
50
50
  */
51
51
  export declare const AssetRuneERC20Testnet: Asset;
52
+ /**
53
+ * Fall back node's and rpc's
54
+ */
55
+ export declare const FallBackUrls: {
56
+ testnet: {
57
+ node: string[];
58
+ rpc: string[];
59
+ };
60
+ stagenet: {
61
+ node: string[];
62
+ rpc: string[];
63
+ };
64
+ mainnet: {
65
+ node: string[];
66
+ rpc: string[];
67
+ };
68
+ }[];