Create a caller-paid Glide bridge session.
const url = 'https://data.predictefy.com/v1/bridge/session';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fromChain":"example","fromToken":"example","fromAmount":"example","fromAddress":"example","toVenue":"sxbet","paymentCurrency":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://data.predictefy.com/v1/bridge/session \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fromChain": "example", "fromToken": "example", "fromAmount": "example", "fromAddress": "example", "toVenue": "sxbet", "paymentCurrency": "example" }'Creates session metadata only and returns Glide’s response verbatim under data, including sessionId, expiry, amounts, fees, paymentAction, and the unsignedTransaction payment envelope. First obtain a Glide quote and choose one returned paymentCurrency. When paymentAction is signAndSendTransaction, sign and broadcast unsignedTransaction with input as calldata, then call updateBridgeSessionPayment with its hash. Poll getBridgeSession until paymentStatus progresses and sponsoredTransactionHash lands. paymentAction signTypedData denotes Glide’s gasless typed-data payment variant. Predictefy never receives the key or moves funds. Hyperliquid settles into Hypercore spot; first-party HIP-4 callers spend directly from that spot balance, while POST /v1/funding/hyperliquid/steps reports total-minus-hold readiness and returns no transfer steps.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Origin EVM chain id used by the preceding quote.
Six-decimal USDC base-unit amount, as used by the quote route.
CAIP-19 paymentCurrency selected from the preceding Glide quote.
Responses
Section titled “Responses”Provider-native Glide session data for caller-side signing.
object
Verbatim Glide session fields. Unknown provider fields, amounts, fees, expiry details, and status substates are preserved.
object
Opaque Glide EVM payment envelope for the caller’s wallet to review, sign, and broadcast.
object
Primary calldata field returned by Glide’s REST API.
Compatibility fallback for provider transaction variants.
Required caller action. signTypedData denotes Glide’s gasless typed-data payment variant.
object
object
Glide — a bridge session create, status, or payment-update response produced by Glide.
Example
{ "data": { "paymentAction": "signAndSendTransaction" }, "meta": { "provenance": { "source": "glide" } }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Enveloped error.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}