Buy Energy
Create resource order
Authorizations
CF-ACCESS-KEYstringRequired
CF-ACCESS-SIGNstringRequired
CF-ACCESS-TIMESTAMPstringRequired
Query parameters
quantityinteger · int32 · min: 65000Required
delegation energy quantity,must >= 65000
receiverstringRequired
Address to receive the resource
durationstringRequired
Duration of the order: allowed values are 1h
client_order_idstringOptional
Client order id,For Idempotent verification(length <= 64)
activatebooleanOptionalDefault:
Whether activation is required. Defaults to true.If set to false and the recipient address is not activated, an error will be returned.
trueHeader parameters
CF-ACCESS-KEYstringRequiredExample:
The API Access key as a string
your api keyCF-ACCESS-SIGNstringRequiredExample:
The Base64-encoded signature (see signing messages subsection for details)
signatureCF-ACCESS-TIMESTAMPstringRequired
The UTC timestamp of your request .e.g : 2008-08-08T08:08:08.888Z
Responses
200
OK
application/json
post
/v1/order200
OK
Key API: Create Order (POST /v1/order)
❓How to Ensure Energy Has Been Successfully Sent?
Example Workflow
FAQs
Last updated