Skip to content

Structure ​

Order details for buyer ​

TIP

BuyOrderDetail

FieldTypeRequiredExampleDescription
order_nostringtrue2304170329503866885309Order No.
resource_typeintegertrue1Pass 0 for bandwidth, 1 for energy
receive_addressstringtrueTAktKDJa2n5hRvXVrgRaBx5fnhau4x4v9iResource receiving address
price_in_sunintegertrue130Price
freeze_timeintegertrue1681720304Delegation time
create_timeintegertrue1681720304Create time
resource_valueintegertrue32779Resource quantity
frozen_resource_valueintegertrue32779Amount of resources delegated
rent_durationintegertrue1Rental duration
rent_time_unitstringtruehRental time unit: d (days), h (hours), or m (minutes)
rent_expire_timeintegertrue1681723904Rental expiration time
frozen_tx_idstringtruef6df4349b954e9d57ebcf0cecb98e072e182e29ad31545a34868316fc155bd06Delegation transaction hash
pay_timeintegertrue1681720303Payment time
pay_amountintegertrue4.26127Payment amount
refund_amountintegertrue0Refund amount, if refund
refund_timeintegertrue0Refund time, if refund
is_splitintegertrue0Whether to split the order, 1 means to split the order and it is the parent order
statusintegertrue9Order status: 1 Unpaid; 2 Closed (payment not detected before timeout); 3 Paid, awaiting verification; 4 Paid, awaiting delegation; 5 Delegated, awaiting verification; 6 Delegated; 7 Delegation failed; 8 Reclaimed, awaiting verification; 9 Reclaimed; 10 Reclaim failed; 11 Cancellation pending; 12 Canceled; 13 Refund pending (insufficient funds; refund within 15 minutes); 14 Refunded; 15 Delegation in progress (partially delegated); 17 Reclaim delayed
business_statusintegertrue2Business status: 1 Pending activation; 2 Active; 3 Ended; 4 Closed
sub_order[]BuyOrderDetailfalseSub order
json
{
    "order_no": "2304143332237281280100",
    "resource_type": 1,
    "receive_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "price_in_sun": 120,
    "freeze_time": 1681481763,
    "create_time": 1681481556,
    "resource_value": 200000,
    "frozen_resource_value": 200000,
    "rent_duration": 1,
    "rent_time_unit": "h",
    "rent_expire_time": 1681485363,
    "frozen_tx_id": "",
    "pay_time": 1681481556,
    "pay_amount": 24,
    "refund_amount": 0,
    "refund_time": 0,
    "is_split": 1,
    "status": 9,
    "sub_order": [
        {
            "order_no": "2304146808245381122007",
            "resource_type": 1,
            "receive_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
            "price_in_sun": 120,
            "freeze_time": 1681481763,
            "create_time": 1681481762,
            "resource_value": 70273,
            "frozen_resource_value": 70273,
            "rent_duration": 1,
            "rent_time_unit": "h",
            "rent_expire_time": 1681485362,
            "frozen_tx_id": "aa8b93b2d03b3b496fe4e5a8c99de30b32b9f3d80f4674473b99b3f5f9fb519b",
            "pay_time": 1681481556,
            "pay_amount": 8.43276,
            "refund_amount": 0,
            "refund_time": 0,
            "is_split": 0,
            "status": 9
        }
    ]
}

Order details for seller ​

TIP

SellerOrderDetail

FieldTypeRequiredExampleDescription
order_nostringtrue2304170329503866885309Order No.
resource_typeintegertrue1Pass 0 for bandwidth, 1 for energy
owner_addressstringtrueTAktKDJa2n5hRvXVrgRaBx5fnhau4x4v9iDelegator address
receive_addressstringtrueTAktKDJa2n5hRvXVrgRaBx5fnhau4x4v9iResource receiving address
price_in_sunintegertrue130Price
min_amountintegertrue130The minimum amount of resources to sell
min_payoutnumbertrue130The minimum payout
min_freezenumbertrue130Minimum amount used for delegation
max_amountintegertrue130The maximum amount of resources to sell
max_payoutnumbertrue130The maximum payout
max_freezenumbertrue130Maximum amount used for delegation
freeze_timeintegertrue1681720304Delegation time
unfreeze_timeintegertrue1681720304Reclaim time
create_timeintegertrue1681720304Create time
resource_valueintegertrue32779Resource quantity
resource_split_valueintegerfalse100000Energy split value, if it exceeds this value, it is allowed to split the order
frozen_resource_valueintegertrue32779Amount of resources delegated
rent_durationintegertrue1Rental duration
rent_time_unitstringtruehRental time unit: d (days) or h (hours)
rent_expire_timeintegertrue1681723904Rental expiration time
frozen_balancenumbertrue1917Amount used for delegation
frozen_tx_idstringtruef6df4349b954e9d57ebcf0cecb98e072e182e29ad31545a34868316fc155bd06Delegation transaction hash
is_locknumberfalse1Whether the resource delegation is locked. If true, it cannot be undelegated during lock_period; otherwise, it can be undelegated at any time
lock_periodnumberfalse28800Lock period in blocks (about 3 seconds per block); valid only when is_lock is true. 28,800 blocks are about one day
statusintegertrue9Order status: 1 Unpaid; 2 Closed (payment not detected before timeout); 3 Paid, awaiting verification; 4 Paid, awaiting delegation; 5 Delegated, awaiting verification; 6 Delegated; 7 Delegation failed; 8 Reclaimed, awaiting verification; 9 Reclaimed; 10 Reclaim failed; 11 Cancellation pending; 12 Canceled; 13 Refund pending (insufficient funds; refund within 15 minutes); 14 Refunded; 15 Delegation in progress (partially delegated); 17 Reclaim delayed
json

{
    "order_no": "2308281405970647044149",
    "resource_type": 1,
    "owner_address": "",
    "receive_address": "TBtArLbRjZmb8mysXMCfRn3AmHd67p6666",
    "price_in_sun": 30,
    "min_amount": 100000,
    "min_payout": 31.5,
    "min_freeze": 5872,
    "max_amount": 26857515,
    "max_payout": 8460.117225,
    "max_freeze": 1576961,
    "freeze_time": 1693225082,
    "create_time": 1693225080,
    "resource_value": 100000000,
    "resource_split_value": 100000,
    "frozen_resource_value": 73142485,
    "rent_duration": 14,
    "rent_time_unit": "d",
    "rent_expire_time": 1694434682,
    "frozen_balance": 5869957,
    "is_lock": 1,
    "lock_period": 403200,
    "status": 15
}