<!-- source: https://secondlayer.tools/docs/api-reference#get-sbtc-deposit -->

## sBTC peg-in by Bitcoin txid

`GET /v1/index/sbtc/deposits/{bitcoin_txid}`

One completed deposit, looked up by the Bitcoin txid of the deposit. Past finality it is cached for good and answers `If-None-Match` with 304.

### Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `bitcoin_txid` | string, required | Deposit's Bitcoin txid, `0x`-prefixed hex, as it appears in `bitcoin_txid`. |

### Responses

- `200` The deposit
- `304` The resource is past finality and matches your `If-None-Match` ETag.
- `401` This bind requires the instance token, and it was missing or wrong
- `404` No completed deposit has this Bitcoin txid
- `429` Rate limited; retry after `Retry-After` seconds

### Example

```bash
curl https://api.secondlayer.tools/v1/index/sbtc/deposits/0x2c11f9e20d21c96daed5d851c07d0e7c4361e552ebd78a8385f06fbb2f9892d3 \
  -H "Authorization: Bearer $SECONDLAYER_API_KEY"
```

```json
{
  "deposit": {
    "cursor": "9048911:4",
    "block_height": 9048911,
    "block_time": "2026-09-23T15:06:29.000Z",
    "tx_id": "0x8600af4a0b2a911e6494d1feea0691068d8b329be0ef2c0d11a7d5aed8f9f4e5",
    "tx_index": 2,
    "event_index": 4,
    "amount": "79856",
    "sender": null,
    "bitcoin_txid": "0x2c11f9e20d21c96daed5d851c07d0e7c4361e552ebd78a8385f06fbb2f9892d3",
    "output_index": 1,
    "recipient_btc_version": null,
    "recipient_btc_hashbytes": null,
    "status": "COMPLETED"
  },
  "tip": {
    "block_height": 9048929,
    "finalized_height": 9048671,
    "lag_seconds": 22,
    "source_block_height": 9048929
  }
}
```
