Skip to main content

Native Token Handling

KAS is the native currency of the Kasplex blockchain (similar to ETH on Ethereum). Since AMM smart contracts operate exclusively with ERC-20 tokens, KAS is wrapped as WKAS (Wrapped KAS) for on-chain operations.

KAS vs WKAS

WKAS Contract Addresses

How Wrapping Works

WKAS is a simple deposit/withdraw contract:
  • Wrap: Send KAS to the WKAS contract → receive equal WKAS
  • Unwrap: Call withdraw() on WKAS → receive equal KAS
The Universal Router handles this automatically during swaps. Users never need to wrap or unwrap manually.

Token Representation

In the Kroko DEX system, tokens have two address fields:

When Calling APIs

Always use the WKAS address (not the zero address) when calling the Quote or Swap APIs with KAS as input or output:

Sending Native KAS in Swaps

When KAS is the input token, include the amount as the transaction value:
The Swap API automatically sets the value field when it detects WKAS as the input token.