Create Contract Order
Request
POST https://custody-example-url/custody/v1/api/projects/{b_id}/contract/call
Parameters
Field | Type | Description |
---|---|---|
b_id | String | Business line ID |
order_no | String | Order number (max 50 characters) |
from_wallet_code | String | From Wallet ID |
from_address | String | From address |
to_address | String | Contract Address |
amount | Decimal | Amount |
chain | String | Cactus chain name Allowed Value: Refer to Cactus Network Name (For API) column in Supported Token |
contract_data | String | Contract Data(Hexadecimal Bytes) |
gas_price_level Optional |
String | ETH series rate level Allowed values: NORMAL、HIGHER、LOW、CUSTOM |
gas_price Optional |
Decimal | ETH series customize rate gas_price_level value must 'CUSTOM', Parameter reference 'Get Withdrawal Rate Range' interface |
max_fee_per_gas Optional |
Decimal | Max fee |
max_priority_fee_per_gas Optional |
Decimal | Priority fee |
gas_limit | String | Refer to contract suggest gas limit |
description Optional |
String | Order description Size: 50 |
Request Example
{
"order_no": "D666666000001",
"from_wallet_code": "CHETH6454313788",
"from_address": "0x018050e30e4bf1cf79bb8b8c2297aa750da04544",
"to_address": "0xb597cd8d3217ea6477232f9217fa70837ff667af",
"amount": "0",
"contract_data": "0x095ea7b3000000000000000000000000f2fbf9a6710afda1c4aab2e922de9d69e0c97fd2ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"gas_price_level ": "NORMAL",
"gas_price": null,
"gas_limit": 52418,
"description": "Contract call test"
}
Response Example
{
"code": 0,
"message": "",
"data": {
"OrderNo": "D555222000000001"
},
"successful": true
}