New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xchainjs/xchain-aggregator

Package Overview
Dependencies
Maintainers
11
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-aggregator

Protocol aggregator to make actions in different protocols

  • 1.0.24
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
decreased by-69.57%
Maintainers
11
Weekly downloads
 
Created
Source

Aggregator

NPM Version NPM Downloads


The Aggregator package has been developed to facilitate interaction with multiple decentralised protocols. It provides a unified interface for developers, with the objective of offering end users the best of each protocol in the most straightforward manner.

Supported protocols

The current supported protocols are:

Installation

yarn add @xchainjs/xchain-aggregator

or

npm install @xchainjs/xchain-aggregator

Initialization

Aggregator can be easily initialise providing the Wallet with the XChainJs Clients you are working with. If no protocol is provided, the Aggregator will work with all the supported protocols.

import { Aggregator } from '@xchainjs/xchain-aggregator';

const aggregator = new Aggregator({
  wallet: new Wallet({
    // Your XChainJS clients
  }),
  protocols: [
    // The protocols you want to work with
  ],
  affiliate: {
    // Affiliate config
  }
})

Features

Swaps

  • Estimate the most efficient swap among protocols
  • Do swaps
  • Get swap history through different protocols

Examples

You can find examples using the Aggregator package in the aggregator examples folder.

Documentation

More information about how to use the Aggregator package can be found on documentation

FAQs

Package last updated on 31 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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