Submit order by Kaspa

This document describes how to submit Kaspa orders:

Fields
Description

Address

The current address of the user's connected kaspa wallet.

PublicKey

The publicKey of the current address.

Chain

Required. KAS

Signature

The user's signature of the post body

Body

Fields
Description

sourceCerts

The hex string of the transaction data.

orderType

Transaction type. β€’ orderType: 1 represents cross-chain.

β€’ orderType: 2 represents Aggregate.

toIndex

The index value of the token used in the transaction within our system.

toChain

The nickName value of the Chain used in the transaction within our system.

toAddr

The target user’s address for this transaction.

slippage

The slippage information for this transaction. This value is in ten-thousandths, e.g., 10 (0.1%). When orderType = 1, the slippage is always 0.

execStrategy

Reserved field, pass an empty string by default.

extra

Transaction verification information; the accuracy of this value determines whether the transaction can be successful.

triggerPrice

Reserved field, pass "0" by default.

timeout

Reserved field, pass "0" by default.

channel

chainge

sourceCerts

Fields
Description

fromAmount

Transaction quantity.

fromIndex

The index value of the token used in the transaction within our system.

fromChain

The nickName value of the Chain used in the transaction within our system.

fromAddr

The current address of the user's connected kaspa wallet.

certHash

Transaction hash.

fromPublicKey

The publicKey of the current address.

signature

"123456"

example:

This example is for demonstration purposes only.

NOTE: We have three minter addresses; make sure to distinguish between them when using them.

KAS TOKEN:

kaspa:qpgmt2dn8wcqf0436n0kueap7yx82n7raurlj6aqjc3t3wm9y5ssqtg9e4lsm

CUSDT/CUSDC/CETH/CBTC/CXCHNG TOKEN: kaspa:qpy03sxk3z22pacz2vkn2nrqeglvptugyqy54xal2skha6xh0cr7wjueueg79 KRC20 TOKEN: kaspa:qz9cqmddjppjyth8rngevfs767m5nvm0480nlgs5ve8d6aegv4g9xzu2tgg0u

Last updated

Was this helpful?