API ReferenceFunding & Bridges
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. Predictefy never receives the key or moves funds.
The caller flow:
- Obtain a Glide quote and choose one returned paymentCurrency.
- When paymentAction is signAndSendTransaction, sign and broadcast unsignedTransaction
with
inputas calldata. paymentAction signTypedData denotes Glide's gasless typed-data payment variant instead. - Call updateBridgeSessionPayment with the transaction hash.
- Poll getBridgeSession until paymentStatus progresses and sponsoredTransactionHash lands.
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" } }}VALIDATION_ERROR / BRIDGE_UNSUPPORTED
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" }}The API key is missing, unknown, or revoked. A venue-authenticated read also answers 401 when the venue itself rejects the credential. Not retryable.
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" }}The account's credit balance cannot cover this endpoint's weight. Not retryable.
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" }}The API key lacks the scope this route requires, or the account's plan does not include the feature. Not retryable.
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" }}RATE_LIMITED
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" }}BRIDGE_UPSTREAM
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" }}BRIDGE_UPSTREAM / BRIDGE_PROVIDER_UNAVAILABLE / platform fail-closed
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" }}