Txn Bundle

API Endpoint: /swap/bundle

Request Method: GET

Description: This endpoint accepts a signed transaction and returns the associated bundle id and transaction hash.

Request URL:

https://api.spiderswap.io/spider-api/v1/swap/bundle

Request Headers:

accept: application/json
X-API-KEY: YOUR_API_KEY

Example Request:

curl --request GET \
     --url 'https://api.spiderswap.io/spider-api/v1/swap/bundle?signedTransaction=cNScT58bVtgk9M8m6fmSqrmPz9AtJiFwbh9p7pHDk2sw6QovKi6QniHoAUQEVn58zzwo67JpDKEQwfQqgMB1Rmc78yFuqtmhWRvTF3QzTRYj5EgFbLNYt5PrDPmQf7Trnbvz1QCCsNWzjwXCxGnKWE6KmXfRC1u8MqowT9LVJsqXgkhuo9w2uN5d5j3sxxBGA8nvny8BtbWGAFkEecRaVykMhLMJSQ9VBNV8wHzT9ZH9Y438xAbJ9hZe4vhLxMZmuZkkfwzmnfX1n3Bq9JYWRMz2bXgKMrKr7rYRvttwGK2Lf7GgdCWYSCGYGe6aHQuKThdjdLxTvA1YDp8aUDqigFbuoiy1i7vTWBTKeUZkVw6SxLDMktMzouCCQDbo1xSvhz2eW7gjX3finCuPKgzP5jvCCHL7ndGWJMVuf1TcXPXCQi6uCNFGKcaNAyQMje55h1sMJKuupAJweMgD79NURNcFcvZsfR2EihcbSxs5ZYcuWRoNe4kCE7ZZpQRmEBJmDY1cjZ9TZeUkXgAUXRDBwnk7iG5Bpv7ocjZ8Xa7dZyaqJ7gNzcmjZEdUznQPVQuc3Ytiwy5yL7rMXn9PQQR2zTYesiZFK8NzKETLpQbSkJD7ro69TWhwyDBgUe9z74teu3fDTajSwxuApDZLve9aQC831YQn3hJ6hjuB9f9U8q7FKrCNi3otcdhPaD8843sesWhvQaPkYM7KEgJjc98WTVGeY9mwdoxys5b' \
     --header 'X-API-KEY: YOUR_API_KEY' \
     --header 'accept: text/plain'

Response: An object containing the bundleId and txId of the provided signed transaction.

Example Response:

{
    "success": true,
    "data": {
        "bundleId": "f4227ba3c31ce9d689594e7bbc77d6516760732fa1011b9708564f49727f5622",
        "txId": "4WZqbtbNp7daeYQJQG9ydkiENgFrKmHmeQXzRwGTZg4GEEijuBhpXqEUMPfW5xSSSQixajvTn8JUNTM2BiEYmrTL"
    }
}