Page cover

book-openDeveloper guide

API Documentation

The Genius Bridge Protocol provides a comprehensive REST API for developers to integrate cross-chain functionality into their applications. Our API is designed for simplicity, reliability, and performance.

Base URLs

  • Production: https://api.geniusbridge.com/v1

  • Staging: https://genius-bridge-staging-894762848.us-east-2.elb.amazonaws.com/quoting

Endpoints

TODO: add correct link here

The details of the various available endpoints are present at herearrow-up-right

SDK integration

Installation

# JavaScript/TypeScript
npm install genius-bridge-sdk

Basic Setup

TODO: to add

Executing Solana transactions

When executing cross-chain swaps involving Solana, the GBP API returns an array of base58-encoded Solana transactions that must be executed in a specific sequence. These transactions are designed to work atomically using Jito bundles for optimal execution.

Transaction Types

  1. Swap Transactions (all except last): Convert user's desired token to USDC via aggregators

  2. Order Creation (last transaction): Creates an order on the Genius Solana Pool

Transactions must be executed in the exact order received:

Atomic Execution with Jito Bundles

For optimal execution, use Jito bundles to ensure atomicity. Details on using jito can be found herearrow-up-right.

Here is a sample implementation of the transaction execution via jito

Last updated