> For the complete documentation index, see [llms.txt](https://docs.stacks.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacks.co/reference/api/usdcx-bridge/deposits.md).

# Deposits

## Get all deposits

> Returns all USDCx deposits from Ethereum to Stacks, aggregating data from 3 sources:\
> \- \*\*ETH Events\*\*: DepositedToRemote events from the xReserve contract\
> \- \*\*Circle Attestations\*\*: Signed attestations from Circle's API (after ETH finality)\
> \- \*\*STX Mints\*\*: Print events from the relay transaction on Stacks\
> \
> Each deposit has a status:\
> \- \`pending\`: Only the ETH event exists (waiting for Circle attestation)\
> \- \`attested\`: ETH event + Circle attestation (waiting to be relayed)\
> \- \`relayed\`: All 3 sources present (deposit completed)\
> \
> Deposits are matched by nonce and sorted chronologically (newest first).

```json
{"openapi":"3.0.3","info":{"title":"USDCx API","version":"1.0.0"},"tags":[{"name":"Deposits"}],"servers":[{"url":"https://api.usdc-on-stacks.com","description":"USDCx API Server"}],"paths":{"/{networkStr}/deposits":{"get":{"summary":"Get all deposits","description":"Returns all USDCx deposits from Ethereum to Stacks, aggregating data from 3 sources:\n- **ETH Events**: DepositedToRemote events from the xReserve contract\n- **Circle Attestations**: Signed attestations from Circle's API (after ETH finality)\n- **STX Mints**: Print events from the relay transaction on Stacks\n\nEach deposit has a status:\n- `pending`: Only the ETH event exists (waiting for Circle attestation)\n- `attested`: ETH event + Circle attestation (waiting to be relayed)\n- `relayed`: All 3 sources present (deposit completed)\n\nDeposits are matched by nonce and sorted chronologically (newest first).","tags":["Deposits"],"parameters":[{"name":"networkStr","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deposits":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"amount":{"type":"string"},"amountFormatted":{"type":"string"},"circleAttestation":{"type":"object","properties":{"attestation":{"type":"string"},"decodedAmount":{"type":"string"},"decodedRemoteRecipient":{"type":"string"},"messageHash":{"type":"string"},"payload":{"type":"string"}},"required":["attestation","decodedAmount","decodedRemoteRecipient","messageHash","payload"]},"ethEvent":{"type":"object","properties":{"blockNumber":{"type":"string"},"localDepositor":{"type":"string"},"localToken":{"type":"string"},"logIndex":{"type":"number"},"maxFee":{"type":"string"},"nonce":{"type":"string"},"remoteRecipient":{"type":"string"},"transactionHash":{"type":"string"},"value":{"type":"string"}},"required":["blockNumber","localDepositor","localToken","logIndex","maxFee","nonce","remoteRecipient","transactionHash","value"]},"ethExplorerLink":{"type":"string"},"ethTxid":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"},"nonce":{"type":"string"},"status":{"const":"attested"},"stxRecipient":{"type":"string"}},"required":["amount","amountFormatted","circleAttestation","ethEvent","ethExplorerLink","ethTxid","nonce","status","stxRecipient"]},{"type":"object","properties":{"amount":{"type":"string"},"amountFormatted":{"type":"string"},"circleAttestation":{"type":"object","properties":{"attestation":{"type":"string"},"decodedAmount":{"type":"string"},"decodedRemoteRecipient":{"type":"string"},"messageHash":{"type":"string"},"payload":{"type":"string"}},"required":["attestation","decodedAmount","decodedRemoteRecipient","messageHash","payload"]},"ethEvent":{"type":"object","properties":{"blockNumber":{"type":"string"},"localDepositor":{"type":"string"},"localToken":{"type":"string"},"logIndex":{"type":"number"},"maxFee":{"type":"string"},"nonce":{"type":"string"},"remoteRecipient":{"type":"string"},"transactionHash":{"type":"string"},"value":{"type":"string"}},"required":["blockNumber","localDepositor","localToken","logIndex","maxFee","nonce","remoteRecipient","transactionHash","value"]},"ethExplorerLink":{"type":"string"},"ethTxid":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"},"nonce":{"type":"string"},"status":{"const":"relayed"},"stxExplorerLink":{"type":"string"},"stxMint":{"type":"object","properties":{"blockHeight":{"type":"number"},"eventIndex":{"type":"number"},"feeAmount":{"type":"string"},"mintAmount":{"type":"string"},"recipient":{"type":"string"},"txId":{"type":"string"}},"required":["blockHeight","eventIndex","feeAmount","mintAmount","recipient","txId"]},"stxMintTxid":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"},"stxRecipient":{"type":"string"}},"required":["amount","amountFormatted","circleAttestation","ethEvent","ethExplorerLink","ethTxid","nonce","status","stxExplorerLink","stxMint","stxMintTxid","stxRecipient"]},{"type":"object","properties":{"amount":{"type":"string"},"amountFormatted":{"type":"string"},"ethEvent":{"type":"object","properties":{"blockNumber":{"type":"string"},"localDepositor":{"type":"string"},"localToken":{"type":"string"},"logIndex":{"type":"number"},"maxFee":{"type":"string"},"nonce":{"type":"string"},"remoteRecipient":{"type":"string"},"transactionHash":{"type":"string"},"value":{"type":"string"}},"required":["blockNumber","localDepositor","localToken","logIndex","maxFee","nonce","remoteRecipient","transactionHash","value"]},"ethExplorerLink":{"type":"string"},"ethTxid":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"},"nonce":{"type":"string"},"status":{"const":"pending"},"stxRecipient":{"type":"string"}},"required":["amount","amountFormatted","ethEvent","ethExplorerLink","ethTxid","nonce","status","stxRecipient"]}]}},"total":{"type":"number"}},"required":["deposits","total"]}}}}},"operationId":"getByNetworkStrDeposits"}}}}
```

## Look up mint transaction ids by deposit message hash

> Returns the Stacks mint transaction id for each requested deposit message hash, conforming to Circle's partner-deposit-mint-tx-lookup spec.\
> \
> Returns exactly one result per requested message hash. \`remoteMintTxId\` is null until the deposit has been relayed and its mint transaction is confirmed on-chain; \`remoteMintTxConfirmedAt\` is the confirmation timestamp (ISO 8601 UTC), looked up live at request time, and is non-null whenever \`remoteMintTxId\` is non-null.

```json
{"openapi":"3.0.3","info":{"title":"USDCx API","version":"1.0.0"},"tags":[{"name":"Deposits"}],"servers":[{"url":"https://api.usdc-on-stacks.com","description":"USDCx API Server"}],"paths":{"/{networkStr}/deposits/mint-tx-lookup":{"post":{"summary":"Look up mint transaction ids by deposit message hash","description":"Returns the Stacks mint transaction id for each requested deposit message hash, conforming to Circle's partner-deposit-mint-tx-lookup spec.\n\nReturns exactly one result per requested message hash. `remoteMintTxId` is null until the deposit has been relayed and its mint transaction is confirmed on-chain; `remoteMintTxConfirmedAt` is the confirmation timestamp (ISO 8601 UTC), looked up live at request time, and is non-null whenever `remoteMintTxId` is non-null.","tags":["Deposits"],"parameters":[{"name":"networkStr","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Deposit message hashes to look up. 1-20 per request.","required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Deposit message hashes to look up. 1-20 per request.","properties":{"messageHashes":{"type":"array","maxItems":20,"minItems":1,"items":{"type":"string","description":"A 32-byte deposit message hash, 0x-prefixed hex.","pattern":"^0x[a-fA-F0-9]{64}$"}}},"required":["messageHashes"]}},"application/x-www-form-urlencoded":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Deposit message hashes to look up. 1-20 per request.","properties":{"messageHashes":{"type":"array","maxItems":20,"minItems":1,"items":{"type":"string","description":"A 32-byte deposit message hash, 0x-prefixed hex.","pattern":"^0x[a-fA-F0-9]{64}$"}}},"required":["messageHashes"]}},"multipart/form-data":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Deposit message hashes to look up. 1-20 per request.","properties":{"messageHashes":{"type":"array","maxItems":20,"minItems":1,"items":{"type":"string","description":"A 32-byte deposit message hash, 0x-prefixed hex.","pattern":"^0x[a-fA-F0-9]{64}$"}}},"required":["messageHashes"]}}}},"responses":{"200":{"description":"Exactly one result per requested message hash.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Exactly one result per requested message hash.","properties":{"results":{"type":"array","items":{"type":"object","properties":{"messageHash":{"type":"string","description":"A 32-byte deposit message hash, 0x-prefixed hex.","pattern":"^0x[a-fA-F0-9]{64}$"},"remoteMintTxConfirmedAt":{"anyOf":[{"type":"string","description":"ISO 8601 / RFC 3339 UTC timestamp of mint confirmation. Non-null iff remoteMintTxId is non-null."},{"type":"null","description":"ISO 8601 / RFC 3339 UTC timestamp of mint confirmation. Non-null iff remoteMintTxId is non-null."}],"description":"ISO 8601 / RFC 3339 UTC timestamp of mint confirmation. Non-null iff remoteMintTxId is non-null."},"remoteMintTxId":{"anyOf":[{"type":"string","description":"The Stacks mint transaction id, or null if not yet known.","maxLength":256},{"type":"null","description":"The Stacks mint transaction id, or null if not yet known."}],"description":"The Stacks mint transaction id, or null if not yet known."}},"required":["messageHash","remoteMintTxConfirmedAt","remoteMintTxId"]}}},"required":["results"]}}}}},"operationId":"postByNetworkStrDepositsMint-tx-lookup"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stacks.co/reference/api/usdcx-bridge/deposits.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
