For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Flash Refill Order

Create flash-charge order

post

code=0 means the request succeeded. Resource delegation may still be in progress. Save the returned id and query the order to check its progress. The same status definitions apply to creation and duplicate responses.

Query parameters
resource_typestring · enumRequired

ResourceType, ENERGY | BANDWIDTH

Possible values:
quantityinteger · int32Required

Purchased energy amount (>=500000), bandwidth amount (>=50000)

receiverstringRequired

Address receiving resources

client_order_idstringOptional

Client order ID

Header parameters
CF-ACCESS-KEYstringRequired

The API access key.

Example: your api key
CF-ACCESS-SIGNstringRequired

The Base64-encoded signature.

Example: signature
CF-ACCESS-TIMESTAMPstringRequired

The UTC request timestamp (e.g. 2008-08-08T08:08:08.888Z).

Responses
200

OK

application/json
codeinteger · int32Optional

Returns 0 on success; all other values indicate errors

msgstringOptional

Error message returned when an error occurs

sub_codestringOptional
sub_msgstringOptional
post/v1/flash/open/order
POST /v1/flash/open/order?resource_type=ENERGY&quantity=1&receiver=text HTTP/1.1
Host: api.catfee.io
CF-ACCESS-KEY: text
CF-ACCESS-SIGN: text
CF-ACCESS-TIMESTAMP: text
Accept: */*
200

OK

{
  "code": 1,
  "msg": "text",
  "sub_code": "text",
  "sub_msg": "text",
  "data": {
    "id": "text",
    "client_order_id": "text",
    "resource_type": "ENERGY",
    "source_type": "TRANSFER",
    "pay_timestamp": 1,
    "receiver": "text",
    "delegate_hash": "text",
    "delegate_timestamp": 1,
    "reclaim_hash": "text",
    "reclaim_timestamp": 1,
    "pay_amount_sun": 1,
    "activate_amount_sun": 1,
    "quantity": 1,
    "staked_sun": 1,
    "duration": "text",
    "expired_timestamp": 1,
    "status": "PAYMENT_SUCCESS",
    "activate_status": "DEACTIVATE",
    "confirm_status": "UNCONFIRMED"
  }
}

code=0 means the request succeeded. Resource delegation may still be in progress. Save the returned id and query the order to check its progress.

Reusing the same client_order_id may return an existing order. The status and confirm_status fields in creation and duplicate responses follow the same definitions as the query endpoint.

Last updated