Introduction to the API
PACT SWAP API Reference
API is in development
The API is currently in development and is subject to change. Please check back soon for updates.
This section provides an overview of the available API endpoints for interacting with the decentralized exchange.
PACT SWAP CM
This contract module is for communicating with the PACT SWAP contract. The compose routes can create an unsigned transaction that can be signed by your wallet of choice and broadcasted to the desired network.
Is Pact Created
Checks if a pact has been created for a given pair.
Get Swap Quote By Amount To
Retrieves a swap quote based on the desired output amount.
Get Swap Status
Fetches the current status of a swap transaction.
Get TVL
Gets the Total Value Locked (TVL) for a specific pact.
Compose Swap TX By Amount From
Composes a swap transaction based on a specified input amount.
Compose Swap TX By Amount To
Composes a swap transaction based on a specified output amount.
Get All C1 Orders
Fetches all C1 orders from the order book.
Get All C2 Orders
Fetches all C2 orders from the order book.
Get Reversed Orders
Retrieves orders that have been reversed.
Get Swap Quote By Amount From
Retrieves a swap quote based on the desired input amount.
ECDSA CM
The Ecdsa contract module is for the communication with the Ecdsa User contract. The helper routes are for fetching balances and UTXOs for a given Coinweb wallet address. You can find out more about the Ecdsa User contract here.
Get Balance
Fetches the balance for a specific address.
Get Balance With UTXOs
Fetches the balance and associated UTXOs for a specific address.
Batch Get Balance
Fetches the balances for multiple addresses in a single request.
Batch Get Balance With UTXOs
Fetches balances and UTXOs for multiple addresses in a single request.
Was this documentation helpful? Any suggestions?
Last updated on