Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xchainjs/xchain-client

Package Overview
Dependencies
Maintainers
8
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-client - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# v.0.9.0 (2021-05-17)
### Breaking change
- added support for HD wallets
# v.0.8.0 (2021-05-05)

@@ -2,0 +8,0 @@

12

lib/types.d.ts

@@ -40,2 +40,3 @@ import { Asset, BaseAmount } from '@xchainjs/xchain-util';

export declare type TxParams = {
walletIndex?: number;
asset?: Asset;

@@ -55,5 +56,10 @@ amount: BaseAmount;

};
export declare type RootDerivationPaths = {
mainnet: string;
testnet: string;
};
export declare type XChainClientParams = {
network?: Network;
phrase?: string;
rootDerivationPaths?: RootDerivationPaths;
};

@@ -67,5 +73,5 @@ export interface XChainClient {

validateAddress(address: string): boolean;
getAddress(): Address;
setPhrase(phrase: string): Address;
getBalance(address?: Address, assets?: Asset[]): Promise<Balances>;
getAddress(walletIndex: number): Address;
setPhrase(phrase: string, walletIndex: number): Address;
getBalance(address: Address, assets?: Asset[]): Promise<Balances>;
getTransactions(params?: TxHistoryParams): Promise<TxsPage>;

@@ -72,0 +78,0 @@ getTransactionData(txId: string, assetAddress?: Address): Promise<Tx>;

{
"name": "@xchainjs/xchain-client",
"version": "0.8.0",
"version": "0.9.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "lib/index",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc