Skip to main content

Import

These types are exported by @getpara/rest-sdk.

Transfers and fee estimates

value is the recipient’s transfer amount in asset base units, separate from the network fee (gas). For USDC with 6 decimals, "1000000" sends 1 USDC. Wallet-paid gas requires native tokens such as ETH, even for a USDC transfer. Set sponsoredGas: false or omit it to use the optional initiatorUserId from the signing requests. Sponsored requests reject it, including null or empty values, with 400 SPONSORSHIP_UNSUPPORTED_REQUEST. Set sponsoredGas: true to require Para-paid gas. false and omission select wallet-paid execution, even for enrolled partners. Explicit sponsorship returns an error for unsupported or unavailable execution and never changes the payer. See Gas sponsorship for constraints and replay behavior. With true, supply the payment’s recipient, amount, and supported chain/token; Para manages the nonce, gas limits, fees, and submission. Caller-provided nonce, gas/fee/type fields, and autoRetry are errors, even null or empty; they are never ignored or silently dropped. Sponsored requests accept only to, value, chainId, tokenAddress, kind, broadcast, addressScreening, and sponsoredGas. All other keys, including initiatorUserId and Solana’s network, are rejected even when null or empty. Ordinary transfers also accept the optional reviewId. Explicit sponsorship rejects reviewId, even null or empty, with 400 SPONSORSHIP_UNSUPPORTED_REQUEST. With the flag omitted or false, reviewId uses the ordinary transfer path. A transfer with autoRetry rejects the field with 400 INVALID_REQUEST and the message unsupported auto-retry field. A sponsored transfer paused for review resumes through resumeRestTransaction instead.
Use isSponsoredTransfer(result) from @getpara/rest-sdk to identify the sponsored response, which has a tracking ID and no signed bytes. Read signedTransaction only in the ordinary branch, when the helper returns false. The helper reads sponsoredGas first and falls back to the deprecated response-only executionMode for older responses without the Boolean. Sending executionMode in a request returns 400. transfer() throws ParaRestSponsorshipError when the response’s gas payer differs from the requested sponsoredGas value. TransferRequest does not expose autoRetry; use the HTTP examples in Automatic fee retry for managed transfers. Managed signing uses signTransactionWithAutoRetry, and yield uses CreateYieldRequest.autoRetry.

Transaction history

History queries filter by status or intent and use a cursor for pagination. Each transaction records its state, identifiers and any failure details.

Automatic retry details

Managed signing responses and the single-transaction lookup expose retry processing separately from the chain outcome. hash can be null before signing. A stopped retry can still be pending; inspect status, monitoring and the saved attempts. Transaction-list summaries omit autoRetry.

Yield operations

createYieldDeposit and createYieldWithdrawal require options.idempotencyKey. getYieldOperation reads the same operation after acceptance, review pauses, restarts and replacements. The optional retry authorization is explicit for each phase and retains one original deadline. See Yield for fee semantics and partial progress.