Skip to content

Query deposit history

Request

Query the deposit history for current customer

Security
SSO_TOKEN
Query
currencystring, <= 17 characters

Digital asset code.

txIdstring, <= 255 characters

External blockchain transaction ID.

statusinteger

An integer that indicates the status of the deposit transactions to return:

  • 0 = pending
  • 1 = successful
limitinteger, <= 1000

Number of records to return. If your query results in more than 1000 transactions, only the first 1000 are returned.

startTimeinteger, (int64)

Start of time period of deposits to return based on the transaction's createdTime.

Unix time in milliseconds.

If you specify startTime and do not specify endTime, the current time is used. The startTime must be before endTime.

endTimeinteger, (int64)

End of time period of deposits to return based on the transaction's createdTime.

Unix time in milliseconds.

If this parameter is specified, you must also specify a startTime value before endTime.

If you specify startTime and do not specify endTime, the current time is used.

JavaScript
const query = new URLSearchParams({
  currency: 'string',
  txId: 'string',
  status: '0',
  limit: '1000',
  startTime: '0',
  endTime: '0'
}).toString();

const resp = await fetch(
  `https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/custody/v2/deposit/history?${query}`,
  {
    method: 'GET',
    headers: {
      SSO_TOKEN: 'YOUR_API_KEY_HERE'
    }
  }
);

const data = await resp.text();
console.log(data);

Responses

Successful operation

Headers
X-Rate-Limitinteger, (int32)

Calls per hour allowed by the user

Bodyapplication/json
Array [
idstring, <= 255 characters

Deposit transaction ID.

Example:"769800519366885376"
amountstring, <= 32 characters

Deposit amount.

Example:"0.01"
currencystring, <= 17 characters

Digital asset code.

Example:"BTC"
networkstring, <= 255 characters

Chain name / network.

Example:"BTC"
statusinteger

An integer that indicates the status of the deposit transactions to return:

  • 0 = pending
  • 1 = successful
Example:0
addressstring, <= 255 characters

Deposit address.

Example:"bc1qrpp7g75sx3ejclvsfdw2uahzchtyu7vumkuadu"
tagstring, <= 255 characters

Additional field required by some blockchains for identifying the transaction recipient beyond a wallet address.

Example:""
txIdstring, <= 255 characters

Transaction ID.

Example:"98A3EA560C6B3336D348B6C83F0F95ECE4F1F5919E94BD006E5BF3BF264FACFC"
createdTimeinteger, (int64)

The time the transaction was created. Unix time in milliseconds.

Example:1661493146000
confirmedTimeinteger, (int64)

The time the transaction was confirmed. Unix time in milliseconds.

Example:1661493146000
]
Response
[ { "id": "769800519366885376", "amount": "0.01", "currency": "BTC", "network": "BTC", "status": 0, "address": "bc1qrpp7g75sx3ejclvsfdw2uahzchtyu7vumkuadu", "tag": "", "txId": "98A3EA560C6B3336D348B6C83F0F95ECE4F1F5919E94BD006E5BF3BF264FACFC", "createdTime": 1661493146000, "confirmedTime": 1661493146000 } ]