Transactions

get

Get a paginated list of all transactions in the specified pool that match the provided filter

Path parameters
pool_idstringRequired

Pool ID in hex format

Query parameters
startDatestring | nullOptional
endDatestring | nullOptional
typesarray | nullOptional
offsetinteger | nullOptional
limitinteger | nullOptional
sortCreatedAtone ofOptional
nullOptional
or
string · enumOptionalPossible values:
Responses
200

List of transactions

application/json
get
GET /transaction/pool/{pool_id} HTTP/1.1
Host: 127.0.0.1:3000
Accept: */*
{
  "response": [
    {
      "id": "text",
      "status": {
        "type": "Queued"
      },
      "rollbackStatus": {
        "message": "text",
        "type": "rolledback"
      },
      "bitcoinTxId": null,
      "bitcoinBlockHeight": null,
      "bitcoinTxStatus": null,
      "blockHeight": "text",
      "poolPubkey": "text",
      "userPubkey": "text",
      "transactionType": "open_position",
      "createdAt": "2025-09-19T01:57:40.787Z",
      "details": {
        "type": "initialize_protocol"
      },
      "writableAccounts": [
        "text"
      ]
    }
  ],
  "offset": 1
}
get

Fetches a paginated list of user's transactions that match the provided filter

Path parameters
pubkeystringRequired

User public key in hex format

Query parameters
startDatestring | nullOptional
endDatestring | nullOptional
typesarray | nullOptional
offsetinteger | nullOptional
limitinteger | nullOptional
sortCreatedAtone ofOptional
nullOptional
or
string · enumOptionalPossible values:
Responses
200

Paginated list of transactions

application/json
get
GET /transaction/user/{pubkey} HTTP/1.1
Host: 127.0.0.1:3000
Accept: */*
{
  "response": [
    {
      "transaction": {
        "id": "text",
        "status": {
          "type": "Queued"
        },
        "rollbackStatus": {
          "message": "text",
          "type": "rolledback"
        },
        "bitcoinTxId": null,
        "bitcoinBlockHeight": null,
        "bitcoinTxStatus": null,
        "blockHeight": "text",
        "poolPubkey": "text",
        "userPubkey": "text",
        "transactionType": "open_position",
        "createdAt": "2025-09-19T01:57:40.787Z",
        "details": {
          "type": "initialize_protocol"
        },
        "writableAccounts": [
          "text"
        ]
      },
      "token0": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": null,
        "divisibility": 1,
        "supply": "text",
        "createdAt": "2025-09-19T01:57:40.787Z",
        "updatedAt": "2025-09-19T01:57:40.787Z",
        "type": "btc"
      },
      "token1": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": null,
        "divisibility": 1,
        "supply": "text",
        "createdAt": "2025-09-19T01:57:40.787Z",
        "updatedAt": "2025-09-19T01:57:40.787Z",
        "type": "btc"
      }
    }
  ],
  "offset": 1
}
get

Paginated list of all transactions that match the provided filter

Query parameters
startDatestring | nullOptional
endDatestring | nullOptional
typesarray | nullOptional
offsetinteger | nullOptional
limitinteger | nullOptional
sortCreatedAtone ofOptional
nullOptional
or
string · enumOptionalPossible values:
Responses
200

Paginated list of transactions

application/json
get
GET /transaction/all HTTP/1.1
Host: 127.0.0.1:3000
Accept: */*
200

Paginated list of transactions

{
  "response": [
    {
      "id": "text",
      "status": {
        "type": "Queued"
      },
      "rollbackStatus": {
        "message": "text",
        "type": "rolledback"
      },
      "bitcoinTxId": null,
      "bitcoinBlockHeight": null,
      "bitcoinTxStatus": null,
      "blockHeight": "text",
      "poolPubkey": "text",
      "userPubkey": "text",
      "transactionType": "open_position",
      "createdAt": "2025-09-19T01:57:40.787Z",
      "details": {
        "type": "initialize_protocol"
      },
      "writableAccounts": [
        "text"
      ]
    }
  ],
  "offset": 1
}
get

List of swap transactions for specific collections

Query parameters
token0stringRequired
token1stringRequired
offsetinteger | nullOptional
limitinteger | nullOptional
Responses
200

Paginated list of transactions

application/json
get
GET /transaction/swaps HTTP/1.1
Host: 127.0.0.1:3000
Accept: */*
200

Paginated list of transactions

{
  "response": [
    {
      "transaction": {
        "id": "text",
        "status": {
          "type": "Queued"
        },
        "rollbackStatus": {
          "message": "text",
          "type": "rolledback"
        },
        "bitcoinTxId": null,
        "bitcoinBlockHeight": null,
        "bitcoinTxStatus": null,
        "blockHeight": "text",
        "poolPubkey": "text",
        "userPubkey": "text",
        "transactionType": "open_position",
        "createdAt": "2025-09-19T01:57:40.787Z",
        "details": {
          "type": "initialize_protocol"
        },
        "writableAccounts": [
          "text"
        ]
      },
      "token0": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": null,
        "divisibility": 1,
        "supply": "text",
        "createdAt": "2025-09-19T01:57:40.787Z",
        "updatedAt": "2025-09-19T01:57:40.787Z",
        "type": "btc"
      },
      "token1": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": null,
        "divisibility": 1,
        "supply": "text",
        "createdAt": "2025-09-19T01:57:40.787Z",
        "updatedAt": "2025-09-19T01:57:40.787Z",
        "type": "btc"
      }
    }
  ],
  "offset": 1
}

Last updated