Kite Stablecoin

This section describes how users interact with Kite Chain tokens under both normal (gas-paid) and gasless (meta-transaction) transfer flows, along with the backend API interface, integration scenarios, reference smart contract implementation, and security considerations.

Normal Transfer

In a normal transfer flow, the token behaves like a standard ERC-20 token.

Flow

  1. The user signs a standard ERC-20 transfer transaction.

  2. The transaction is sent directly to the Kite Chain RPC endpoint.

  3. The transaction is executed on-chain.

Key Characteristics

  • Fully compatible with all standard ERC-20 wallets.

  • No additional infrastructure is required.

  • Gas fees are paid by the user.

  • Ideal for power users, DeFi integrations, and direct on-chain interactions.

Gasless Transfer

Gasless transfers use EIP-712 typed data signatures and EIP-3009-style authorizations, allowing a third party to pay gas on behalf of the user.

Flow

  1. The user signs a TransferWithAuthorization message using EIP-712.

  2. The signed message is sent to a backend relayer service.

  3. The backend service:

    • Verifies the signature and authorization state.

    • Composes the on-chain transaction.

  4. The backend submits the transaction to the Kite Chain RPC endpoint.

  5. The backend returns the transaction hash to the user.

  6. The user monitors the transaction status using the returned hash.

Key Characteristics

  • No native token balance required by the user.

  • Gas fees are paid by the backend service.

  • Ideal for:

    • Consumer-facing wallets

    • Web2-style UX

    • Agent-based and automated payments

    • Stablecoin-first onboarding

API Interface

Request Example

Response Example

User Scenarios

Kite Chain supports multiple relayer deployment models to accommodate different scale, security, and user-experience requirements.

Public Relayer (Default)

Kite operates a public backend relayer service as shared infrastructure for the ecosystem.

Characteristics

  • Kite runs the backend service as public infrastructure.

  • Any user can submit gasless transfer requests.

  • Built-in security controls are enforced to prevent abuse and DDoS attacks.

Best For

  • End users

  • Wallet integrations

  • Consumer-facing applications

Private Relayer (Partner-Hosted)

Ecosystem partners can operate their own private backend relayer service.

Characteristics

  • Partners (wallets, DeFi protocols, AI agents, platforms) run their own backend service.

  • Full control over relayer logic, policies, and operational parameters.

  • Custom security rules tailored to specific business or product needs.

Best For

  • High-volume platforms

  • Custom UX and application-specific flows

  • Protocol- or platform-owned gas sponsorship models

Stablecoin Smart Contract Reference Implementation

The following reference implementation demonstrates an ERC-20 stablecoin with EIP-3009-style authorization support:

Security Considerations

Preventing DDoS Attacks

Gasless transfers introduce an additional attack surface because transaction gas fees are paid by the relayer rather than the end user. Without safeguards, a relayer can be spammed with signed messages that consume infrastructure resources and on-chain gas.

To mitigate this risk, the backend relayer service must enforce strict validation and rate-limiting controls before submitting any transaction on-chain.

Potential Protection Rules

The following protections can be applied individually or in combination:

  • Rate limiting per IP address Limits the number of requests originating from a single IP within a given time window.

  • Rate limiting per user address Caps the number of gasless transfers a single wallet can submit over time.

  • Minimum token balance requirement Requires the sender to hold at least a minimum balance (e.g. ≥ 10 PYUSD) before a gasless transfer is accepted.

  • Signature expiration windows Enforces short validity periods to prevent replay or delayed execution.

  • Per-address daily transfer caps Limits the total value or number of gasless transfers per address per day.

  • Optional allowlists or reputation scoring Enables preferential access for trusted users, applications, or agents, while restricting unknown or low-reputation actors.

Deployment Flexibility

These security rules are configurable and can be tuned based on the relayer deployment model:

  • Public relayers typically enforce stricter limits and conservative thresholds.

  • Private or partner-operated relayers can apply customized rules aligned with their UX, volume, and risk tolerance.

This layered approach ensures gasless transfers remain secure, reliable, and economically sustainable across the Kite Chain ecosystem.

Source:

  • EIP 3009: https://eips.ethereum.org/EIPS/eip-3009

Last updated