REST APIWallet & TransactWallet

GET

Query reserved unspents in the wallet.

Path Params

  • walletId string required
    The wallet ID.

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

Query Params

  • prevId string
    Return the next batch of results, based on the "nextBatchPrevId" value from the previous batch.
  • limit integer
    Maximum number of results to return. If the result set is truncated, use the nextBatchPrevId value to get the next batch.

    >= 1 · <= 500

    Defaults to 25

  • expireTimeGt string date-time
    Returns reserved unspents with an expireTime greater than this value.
  • expireTimeLte string date-time
    Returns reserved unspents with an expireTime less than or equal to this value.
  • expireTime string
    Returns reserved unspents with an expireTime equal to this value. If never, returns unspents without expiration dates.

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}$

  • nextBatchPrevId string
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