SpendBundle
    SpendBundle
    • /spends
      GET
    • /spends/:id
      DELETE
    • /fees
      POST
    • /singleton
      POST
    • /payment/pay-per-spend
      GET
    • /payment/token
      GET
    • /limits
      GET

      /spends

      GET
      /spends

      Request

      Query Params
      network
      enum<string> 
      required
      Network to get spends for
      Allowed values:
      mainnettestnet11
      state
      enum<string> 
      required
      Spend state to filter by
      Allowed values:
      pendingsubmittedcancellingcancelledspentexpirederror
      Header Params
      x-api-key
      string 
      required
      API key for authentication

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET '/spends?network&state' \
      --header 'x-api-key;'

      Responses

      🟢200OK
      application/json
      Spends found.
      Body
      spends
      array[object (SpendDto) {7}] 
      required
      Spends made by current user.
      id
      string 
      required
      ID of spend.
      userId
      string 
      required
      ID of user.
      network
      enum<string> 
      required
      Network to get spends for
      Allowed values:
      mainnettestnet11
      type
      enum<string> 
      required
      type of the spend.
      Allowed values:
      feessingleton
      state
      enum<string> 
      required
      State of the spend.
      Allowed values:
      pendingsubmittedcancellingcancelledspentexpirederror
      fees
      number 
      required
      Amount of fees for the spend.
      coins
      array[string]
      required
      Names of coins being spent.
      Example
      {
          "spends": [
              {
                  "id": "string",
                  "userId": "string",
                  "network": "mainnet",
                  "type": "fees",
                  "state": "pending",
                  "fees": 0,
                  "coins": [
                      "string"
                  ]
              }
          ]
      }
      🟠400Bad Request
      🟠403Forbidden
      🟠404Record Not Found
      Modified at 2025-03-26 11:47:19
      Next
      /spends/:id
      Built with