LogoLogo
  • Introduction to Unizen
    • Unizen Overview
      • Unizen Liquidity Distribution Mechanism (ULDM)
        • ULDM Performance
      • Unizen Interoperability Protocol (UIP)
        • LayerZero
        • DeBridge
        • Stargate
        • Celer
        • Axelar
        • Thorchain
    • Unizen Dashboard
      • General
      • Portfolio
      • History
    • Unizen Trade
      • Fees
    • Unizen Explore
      • Unizen Omni-Chain Data Pool
    • Unizen Earn
  • ZCX
    • Token Utility
    • Tokenomics
  • API - Introduction
    • Introduction
    • Before you get started
      • Understanding Price Impact and Price Slippage in Token Swaps
      • Token Allowance Management for Non-updatable Allowance Tokens
      • Tokens with taxes
      • Wrapping and Unwrapping Native Tokens
      • Quote expiration deadline
    • Security Best Practices for Integrating Unizen
      • Why disable CORS
      • How to integrate with a reverse proxy
    • Version 2 of our smart contracts
      • Migration to smart contract v2
  • API - GET STARTED
    • QuickStart guide
    • Swagger
    • Information endpoints
      • GET /trade/v1/info/chains
      • GET /trade/v1/info/sources
      • GET/v1/info/cross-providers
      • GET /trade/v1/info/token/search
      • GET /v1/info/token/popular
      • GET /trade/v1/info/token/{chainId}/{tokenAddress}
      • GET /trade/v1/info/tokenLogo/{chainId}/{tokenAddress}
      • GET /info/thorchain-inbound-address
      • GET /trade/v1/info/tx/{txHash}
      • GET /trade/v1/info/trade/{chainId}/{txHash}
      • GET /trade/v1/info/trades
    • Approval
      • GET /trade/v1/{chainId}/approval/spender
      • GET /trade/v1/{chainId}/approval/transaction
      • GET /trade/v1/{chainId}/approval/allowance
    • Single-Chain Swap
      • GET /trade/v1/{chainId}/quote/single
      • GET /trade/v1/{chainId}/swap/single
      • Send transaction in evm chains
      • Send transaction in Solana
    • Cross-Chain Swap
      • GET /trade/v1/{chainId}/quote/cross
      • GET /trade/v1/{chainId}/swap/cross
      • Send transaction
    • Gasless orders
      • POST /trade/v1/gasless/typed-data
      • POST /v1/gasless/estimate
      • POST /v1/gasless/create
      • POST /v1/gasless/cancel
      • GET /trade/v1/gasless/status/{orderId}
      • GET /v1/gasless/orderByAddress/{address}
    • UTXO Assets and Cosmos Swap
      • GET /trade/v1/{chainId}/quote/cross 1
      • GET /trade/v1/{chainId}/swap/cross
      • Sending transactions
    • Efficient Quote Retrieval with Batch Processing
      • GET /trade/v1/{chainId}/batch_quote/single
    • Error Messages
  • GASLESS TRADES
    • Obtaining gasless quotes
    • Gas estimation
    • Executing the trade
    • Following the orders
  • On-Chain Contracts - Get Started
    • Integration with Unizen Contracts for Token Swapping
    • Registering Errors on Smart Contract Calls
  • PERMIT2
    • What is Permit2?
    • Usage in our api
  • WIDGET - Get Started
    • Embed the Unizen Widget
    • Playground
  • Other
    • Smart Contracts
    • Security Audits
    • Roadmap
  • links
    • Unizen
    • Marketing Website
    • Medium
    • Twitter
    • Discord
    • Telegram
Powered by GitBook
On this page

Was this helpful?

  1. API - GET STARTED
  2. Gasless orders

POST /v1/gasless/create

PreviousPOST /v1/gasless/estimateNextPOST /v1/gasless/cancel

Last updated 1 month ago

Was this helpful?

Endpoint to create gasless order

post
Authorizations
Body
addressstringRequired

Address of the sender

Example: 0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
tokenFromstringRequired

Address of the tokenFrom

Example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
tokenTostringRequired

Address of the tokenTo

Example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
chainFromnumberRequired

Chain of the tokenFrom

Example: 56
chainTonumberRequired

Chain of the tokenTo

Example: 56
amountstringRequired

Amount of tokens being traded

Example: 1000000000000000000
feestringRequired

Percentage of fee

Example: 0.005
amountOutMinstringRequired

Minimum amount obtained

Example: 1000000000000000000
swapCallstringRequired

Data of the call for the swap

Example: call data
signaturestringRequired

Signature of the user

Example: signature
deadlinenumberRequired

Timestamp of the deadline for the order

Example: 1727862265
Responses
200
Result of the gasless order creation
post
POST /trade/v1/gasless/create HTTP/1.1
Host: 
Authorization: Bearer Bearer
Content-Type: application/json
Accept: */*
Content-Length: 347

{
  "address": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "tokenFrom": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
  "tokenTo": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
  "chainFrom": 56,
  "chainTo": 56,
  "amount": "1000000000000000000",
  "fee": "0.005",
  "amountOutMin": "1000000000000000000",
  "swapCall": "call data",
  "signature": "signature",
  "deadline": 1727862265
}
200

Result of the gasless order creation

No content