创建合约订单

请求

POST https://custody-example-url/custody/v1/api/projects/{b_id}/contract/call

参数

字段 类型 描述
b_id String 业务线id
order_no String 自定义订单编号
字符上限 50
from_wallet_code String 链接钱包编号
from_address String 链接钱包地址
to_address String 合约地址
amount Decimal 金额
chain String 所属链
允许值: 参考币种列表Cactus Network Name (For API)
contract_data String 合约信息/参数十六进制字符串
gas_price_level 可选 String 费率等级
取值范围: HIGHER(高)、NORMAL(标准)、LOW(低)、CUSTOM(自定义)
gas_price 可选 Decimal 自定义费率
gas_price_level传'CUSTOM',取值参考提币费率范围接口
max_fee_per_gas 可选 Decimal max fee (适用于支持EIP559协议币种)
max_priority_fee_per_gas 可选 Decimal priority fee (适用于支持EIP559协议币种)
gas_limit Decimal 参考合约推荐gasLimit
sign_trans 可选 Boolean solana签名交易
contract_instructions List solana合约信息
description 可选 String 订单描述
字符上限 50

请求示例

{
    "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"
}

响应示例

{
    "code": 0,
    "message": "",
    "data": {
                "OrderNo": "D555222000000001"
             },
    "successful": true
}
Copyright © 2025 Cactus Custody all right reserved,powered by GitbookUpdated: 17-Apr-2025 10:11:15

results matching ""

    No results matching ""

    results matching ""

      No results matching ""