REST APIWallet & TransactWallet

POST

Mark the unspents as reserved and cannot be used in transactions until the given expire time.

Path Params

  • walletId string required
    The wallet ID.

    matches ^[0-9a-f]{32}$

Body Params

object

  • unspentIds array of strings required

    at least 1 items

  • expireTime string required
    Time when reservation expires. Use date-time format or 'never'. If 'never', reservation doesn't expire.
  • type string enum
    Type of reservation to make on the unspent.
    ordinalinscription
  • inscriptionIds array of strings

Responses

200
OK

Response Body

object

  • unspents array of objects
    unspents object
    • id string required
      The id of the unspent in the form :<tx_index>
    • walletId string required

      matches ^[0-9a-f]{32}$

    • expireTime string date-time required
    • userId string required

      matches ^[0-9a-f]{32}$

400
Bad Request

Response Body

object

  • error string required
    Human-readable error message
  • requestId string required
    Client request id
  • context object
    Properties that apply to a specific error name
  • name string required
    Error code