Kana Labs
  • Getting Started
    • Welcome to Kana Labs
  • CROSS CHAIN SWAPS
    • AMM DEX Aggregator
  • INTEGRATE KANA WIDGET
    • Kana Widget
      • Install Widget
      • Configure Widget
      • Configure Aptos Keyless
  • Web3 Aggregator SDK
    • Web3 Aggregator SDK
      • Installation
      • SameChain
      • Cross Chain Swap
      • Aggregator API's
  • SPOT TRADING PLATFORM
    • Kana Trade
      • API Docs
  • PERPETUAL FUTURES
    • Kana Perps
      • Getting Started
        • Mint Tokens on Testnet
      • Breaking Down Kana Perps
        • Assets Supported
        • Order Types
        • Orderbook
        • Funding Rate
        • Leverage
        • Margin and Liquidation
        • Hedge Mode
          • Hedging a Short-Term 2-3% Price Decline
          • Dual Positioning for Flexible Profit-Taking
        • Trading Fees
      • API Docs
        • Installation Setup
        • Kana Perps Typescript REST API
        • Kana Perps Python Websocket API
        • Kana Perps Python REST API
        • Steps to place an order
        • Perps Contract Error Codes
        • Websocket Connection
        • Supported Markets
    • Perpetual Exchange(2)
      • Technical Architecture
      • Features
        • 1-Click Trading in Kana Perps
        • Delegation
      • Tutorials
        • Getting Started
        • Connecting Wallet & Enabling β€œOne Click Transaction”
        • Deposit & Withdraw Tokens
        • Placing a Market Trade Order
        • Placing a Limit Trade Order
        • Partially & Fully Closing a Live Trade Order
        • Adding Margin to an Open Position
        • Defining Take Profit & Stop Loss
      • For Developers & MMs
        • Installation setup
        • Available Markets
        • Integrating REST APIs
          • Typescript
          • Python
          • Walkthrough
        • Integrating WebSockets
        • FAQ
          • Faucets
  • SPOT & PERP APIs
    • Trading APIs
      • Kana Trade API
      • Kana Perps API
        • Installation Setup
        • Example setup functions
        • Kana Perps Typescript REST API
        • Kana Perps Websocket API
        • Kana Perps Python Websocket API
        • Kana Perps Python REST API
        • Steps to place an order
  • PAYMASTER SERVICE
    • Kana Paymaster For Aptos and Supra
      • How it works?
      • How to Register?
      • Deposit Allowance
      • Manage Users
      • Paymaster SDK Tutorial (Typescript)
      • Paymaster API
      • Module & Function Whitelist
      • Subscription - Coming soon
      • FAQS
  • PERPETUAL OPTIONS
    • OPerps
  • Tokenomics & Governance
    • Kana Labs Tokenomics
  • REWARDS & REFERRAL PROGRAM
    • Rewards Program
      • Reward Program Season 1
      • Reward Program Season 2
      • How to Keep Track of Your Points?
      • Where to find the Missions Dashboard?
  • Referral Program
    • How to Generate Referral Link? (For the Referrer)
    • How to map your wallet to the invite IDs? (For the invited users)
Powered by GitBook
On this page
  1. PERPETUAL FUTURES
  2. Perpetual Exchange(2)
  3. Features

1-Click Trading in Kana Perps

PreviousFeaturesNextDelegation

Last updated 1 month ago

1-Click Trading allows users to trade seamlessly on without repeated wallet popups. By leveraging the , users can authorize a delegate account to execute trades on their behalf β€” securely and efficiently.


πŸš€ How It Works

When users connect a wallet (e.g., Petra, Martian, etc.) to the Kana Perps frontend, they are prompted to enable 1-Click Trading. Here’s what happens under the hood:

  1. User Signs a Message: The user signs a short message using their main wallet. This signature is used to verify ownership and generate a consistent, unique delegate key.

  2. Delegate Wallet Generation: On the frontend, a delegate account is created. This process uses:

    • A server-side secure key (salt)

    • The signed message This ensures a deterministic delegate address that is unique to the user and can be regenerated whenever they reconnect.

  3. Enable Delegation On-Chain: The frontend triggers a transaction to authorize the delegate account on-chain. This allows the delegate to manage positions and place/cancel orders, but not withdraw funds.

  4. Persistent 1-Click Experience: Every time the user reconnects using the same wallet, the same delegate address is derived and re-enabled, enabling consistent, no-popup trading.


🧠 Why It’s Secure

  • The delegate account is scoped by on-chain permissions β€” it can only interact with trading functions, never withdrawals.

  • Since delegation uses a server-held salt and signed message, only the original user can regenerate the same delegate.

  • Users can revoke or rotate delegates at any time from the UI or by direct on-chain action.


πŸ” Requirements

To use 1-Click Trading:

  • A supported wallet extension (e.g., Petra, Nightly)

  • Sign a delegation-enabling message

  • Approve the on-chain delegation transaction


βœ… Benefits

  • No repeated popups when trading

  • Faster execution, ideal for scalping or bot-assisted strategies

  • Maintains fund-level security β€” delegate can’t touch deposits or withdrawals


πŸ“Œ Notes

  • Delegation is optional, but required for 1-Click Trading.

Kana.trade
delegation model