Transactions

Get transactions by pool ID

Retrieves a list of transactions associated with a specific pool.

GEThttps://indexer-dev.saturnbtc.io/v0/transaction/pool/{poolId}
Path parameters
poolId*string

The unique identifier of the pool.

Query parameters
Response

A paginated response containing an array of transaction data.

Body
response*array of one of
offset*number
Request
const response = await fetch('https://indexer-dev.saturnbtc.io/v0/transaction/pool/{poolId}?offset=0', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "response": [
    {
      "id": "text",
      "bitcoinTxId": "text",
      "blockHeight": 0,
      "blockHash": "text",
      "poolId": "text",
      "userId": "text",
      "rollbackStatus": false,
      "error": "text",
      "createdAt": "text",
      "token0": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": "text",
        "tradeable": false,
        "verified": false,
        "icon": "text",
        "priority": 0,
        "divisibility": 0,
        "supply": "text",
        "batchSize": "text",
        "transactionId": "text",
        "createdAt": "text"
      },
      "token1": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": "text",
        "tradeable": false,
        "verified": false,
        "icon": "text",
        "priority": 0,
        "divisibility": 0,
        "supply": "text",
        "batchSize": "text",
        "transactionId": "text",
        "createdAt": "text"
      }
    }
  ],
  "offset": 0
}

Get transactions by user public key

Retrieves a list of transactions associated with a specific user.

GEThttps://indexer-dev.saturnbtc.io/v0/transaction/user/{pubkey}
Path parameters
pubkey*string

The public key of the user.

Pattern: ^[0-9a-fA-F]+$
Query parameters
Response

A paginated response containing an array of transaction data.

Body
response*array of one of
offset*number
Request
const response = await fetch('https://indexer-dev.saturnbtc.io/v0/transaction/user/{pubkey}?offset=0', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "response": [
    {
      "id": "text",
      "bitcoinTxId": "text",
      "blockHeight": 0,
      "blockHash": "text",
      "poolId": "text",
      "userId": "text",
      "rollbackStatus": false,
      "error": "text",
      "createdAt": "text",
      "token0": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": "text",
        "tradeable": false,
        "verified": false,
        "icon": "text",
        "priority": 0,
        "divisibility": 0,
        "supply": "text",
        "batchSize": "text",
        "transactionId": "text",
        "createdAt": "text"
      },
      "token1": {
        "id": "text",
        "name": "text",
        "displayName": "text",
        "symbol": "text",
        "tradeable": false,
        "verified": false,
        "icon": "text",
        "priority": 0,
        "divisibility": 0,
        "supply": "text",
        "batchSize": "text",
        "transactionId": "text",
        "createdAt": "text"
      }
    }
  ],
  "offset": 0
}

Last updated