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

Create Order

CatFee returns signed but unbroadcast Energy or Bandwidth delegation transaction data. Save the response and broadcast the transaction within your own business flow.

Create delegated resource transaction, sign without broadcasting

post
Query parameters
quantityinteger · int32Required

Delegated resource quantity

receiverstringRequired

Address receiving resources

client_order_idstringOptional

Client order ID

resource_typestring · enumOptional

Resource type, default is ENERGY

Possible values:
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/mate/open/transaction
POST /v1/mate/open/transaction?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": {
    "order_id": "text",
    "receiver": "text",
    "quantity": 1,
    "hash": "text",
    "hex": "text",
    "amount_sun": 1,
    "payee_address": "text"
  }
}

Last updated