Skip to main content

Contract Info

Write Functions

createToken

Create a new token. Requires a platform signature obtained through kas.fun.
CreateTokenParams: Value: creationFee + creatorBuyAmount

buy

Buy tokens with KAS.
Value: Amount of KAS to spend (wei)

sell

Sell tokens for KAS. Requires prior ERC-20 approval.

Read Functions

getTokenInfo

Returns (TokenInfo):

getCurrentPrice

Returns the current price in KAS per token (18 decimals).

getBondingCurveProgress

Returns progress from 0 to 10000 (representing 0.00% to 100.00%).

getTokenParamVersion

Returns (ParamVersion):

computeTokenAddress

Predict the token contract address before creation.

bondingCurve

Returns the BondingCurve contract address.

creationFee

Returns the token creation fee in KAS (wei).

authorizedSigner

Returns the platform’s authorized signer address.

Events

Created

Buy

Sell

Full ABI (JSON)