Create a single C1 (Bid) order of EVM type
Creates a UI command (QR code string) for creating a single EVM C1 (Bid) order (ETH, USDC, etc.). The UI command can be used to compose a Coinweb L2 transaction, by means of @coinweb/wallet-lib library or Coinweb Mobile Wallet (by scanning QR generated from the UI command with a camera). The L2 Transaction then can be signed and broadcasted, with the wallet-library or mobile wallet. Validates order amounts and calculates the total cost including fees. Throws an error if baseAmount is not defined or if l1Amount is less than minL1Amount.
The L2 contract address for the EVM token (ETH, USDC, etc.).
Amount of base tokens (CWEB) to spend. Required for creating the order. Must be provided as a string representation of a bigint.
Amount of L1 tokens (ETH/USDC/etc.) to receive. Must be provided as a string representation of a bigint.
Minimum acceptable L1 token amount. If the actual amount received is less than this, the order will fail. Must be provided as a string representation of a bigint.
Recipient address on the EVM chain (normalized Ethereum address).
Optional unique identifier for history tracking. Used to track order creation in off-chain history systems.
Fee paid to the contract owner (in base token units). Deprecated: Set to "0". No fee should be paid to the contract owner. Will be removed in a future version.
Response Body
curl -X POST "https://cwap-api.coinhq.store/pactswap_cm/ui-commands/c1/createOrderEvm" \
-H "Content-Type: application/json" \
-d '{
"contractId": "0x1234567890123456789012345678901234567890",
"l1Amount": "100000000000000000",
"l1Address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"contractOwnerFee": "0"
}'{
"rawTx": "string"
}Was this documentation helpful? Any suggestions?