API

This section describes the API of Swivel.js' smart contract wrappers.

Swivel.js provides implementations for the 3 main contracts of the Swivel protocol:

  • Swivel (sign orders, initiate/exit/cancel orders, split/combine/redeem tokens)

  • MarketPlace (retrieve token/vault information for a market)

  • VaultTracker (retrieve vault information for a market and owner)

In most cases you'll want to use the Swivel contract implementation to work with orders and tokens.

Last updated