Blockend
HomeLive Demo
BlockEnd Labs
BlockEnd Labs
  • About BlockEnd
    • Overview
    • 🎯Thesis
    • 🧭Compass
    • 🌊LEX Protocol
  • ⚡Compass Widgets
    • Widget Pro
      • Install Widget Pro
      • Customise Widget Pro
    • Widget Lite
  • 👨‍💻Compass API
    • API Reference
      • Getting Started
      • Authentication
      • Fetching Quotes
      • Create Transaction
      • Get Raw Transaction To Execute
      • Check Transaction Status
      • Gasless Swaps
      • Type Definations
      • Get Supported Chains & Tokens
    • Quick Swap API
    • SDK
      • Getting Started
      • Configuration
      • Core Methods
        • getQuotes
        • Create Transaction
        • getNextTxn
        • Check Status
        • pollTransactionStatus
        • executeQuote
        • executeTransaction
      • Gasless Transactions
      • Tokens and Chains
    • Supported Chains
    • Liquidity Sources
  • Code Examples
    • EVM Swaps
    • EVM to SOL Bridge
    • SOLANA Swaps
    • Solana to EVM Bridge
  • Resources
    • Brand Assets
  • Troubleshooting
    • React issues
    • Next js issues
Powered by GitBook
On this page
  • Base URL:
  • Core Transaction Flow
  • Meta Endpoints

Was this helpful?

  1. Compass API
  2. API Reference

Getting Started

PreviousAPI ReferenceNextAuthentication

Last updated 3 months ago

Was this helpful?

Base URL:

https://api2.blockend.com/v1/

All type definitions can be found

Core Transaction Flow

1. Fetching quotes

User flow begins with fetching quotes, which returns a list of quotes for the given input and output assets, along with the steps involved in the transaction. Quotes are by default sorted via best output and contains a scores object and tags to determine fastest/cheapest/best output routes.

2. Creating a transaction

After fetching quotes, you can create a transaction using the selected quote by passing in the routeId of the quote.

3. Getting transaction data to execute

CommentCall this api with routeId and stepId of individual steps to get the transaction data to execute.

4. Check status of a transaction

After user signs and submits the transaction on chain, check the status of the transaction by passing in the signature hash of the transaction.

5. Using WebSockets for realtime updates (in active development)

You can also check the status of a transaction using WebSockets. This can provide faster and almost realtime updates on the status of a transaction.

Note: this feature is in active development and will be generally available soon. Contact us to get access to this feature.

6. Single API for simple flow execution (in active development) A simple 1 step endpoint is being worked on where a request directly gives you a single quote in response along with array of transaction data to execute to complete the transaction

Note: this feature is in active development and will be generally available soon. Contact us to get access to this feature.

Meta Endpoints

Get a list of supported tokens and their details.

curl -X GET "https://api2.blockend.com/v1/tokens"

Get a list of supported chains and their details.

curl -X GET "https://api2.blockend.com/v1/chains"

​​

​​

👨‍💻
here
Fetching Quotes
Create Transaction
Get Raw Transaction To Execute
Check Transaction Status
Tokens
Chains