curl --request GET \
--url https://api.anchorage-staging.com/v2/transactions \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/transactions"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"amount": {
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
},
"assetType": "BTC",
"description": "Withdrawing to exchange",
"id": "9d570c38a148a6e0b4facf1e0d8c27dd6eba48c41421be1ba8bb778cbeb1a4df",
"status": "INITIATING",
"transactionType": "WITHDRAW",
"vaultId": "1c920f4241b78a1d483a29f3c24b6c4c",
"vaultName": "Long Hold Vault",
"blockchainTxId": "0xd7b99c44240ae5bdd7d2f8572358ee2a521c4d93b74c8fd3df6557ac9f02b008",
"customerId": "3b8e1f6d2a9c4e7fb5d0a1c8e3f92647",
"dateTime": "2019-01-02T12:34:56.000Z",
"destinationAddresses": [
"<string>"
],
"destinationCustomerId": "9c2f7a1e4b8d4e3fa6c0d5b1e8f34a72",
"destinationVirtualAccountId": "5a1d8c3e7f2b4a9db6e0c4f8a2d71e39",
"destinationWalletId": "d24b424293c0d64c6194f52801b3d293",
"extra": "Blockchain-specific details, such as memo in XLM",
"fee": {
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
},
"fiatDetails": {
"rail": "WIRE",
"accountNumber": "123456789",
"ach": {
"authorization": {
"checks": [
{
"check": "NAME_MATCH",
"checkedAt": "2019-01-02T12:34:56.000Z",
"isBusinessNameDetected": true,
"isFirstNameOrLastNameMatch": true,
"isNicknameMatch": true,
"passed": true,
"score": 90
}
],
"outcome": "PASSED",
"reason": "invalid_source"
},
"companyId": "1234567890",
"originatorName": "ACME CORP",
"remittanceInformation": "Invoice 1042",
"returnCode": "R01",
"sameDayAch": true,
"secCode": "WEB",
"sourceLastFour": "6789",
"sourceType": "PLAID_PROCESSOR_TOKEN",
"statementDescriptor": "PAYROLL",
"traceNumber": "021000021234567"
},
"bankId": "IRVTUS3N",
"bankName": "The Bank of New York Mellon",
"fedWire": "20260524ABCDXXXX012345",
"memo": "Quarterly dividend",
"name": "Satoshi Nakamoto"
},
"originalTransactionId": "9c3e5a7f1b2d4e6a8c0f2b4d6e8a0c2e4f6a8b0d2c4e6f8a0b2d4c6e8f0a2b4d",
"rawTransaction": {
"chainId": "0x1",
"networkId": "ETH",
"payload": {},
"type": "ETH_SEND_TRANSACTION",
"dappUrl": "https://app.aave.com/"
},
"returnTransactionId": "4f1d8a2c9b7e3f6a0d5c1b8e2a9f7c3d6b0e4a1f8c2d9b5e7a3f0c6d1b8e4a2f",
"sourceAddresses": [
"<string>"
],
"virtualAccountId": "7f3c2a9e5b1d4c8fa0e6b2d9c4f1a873",
"walletId": "d24b424293c0d64c6194f52801b3d293"
}
],
"page": {
"next": "<next page url>"
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}List transactions
Permissions required: Read vault activity
List all transactions for the vaults permissioned to your API key. You can retrieve metadata about your API key from the API Key endpoints.
NOTE: price and USD value information is recent but does not reflect real-time data.
Filters
You may optionally supply the following filters:
- Set a date range by providing the
startDateand/orendDatequery parameters. The date refers to the end time of a transaction: when the transaction succeeded or failed. If the date parameters are omitted, all transactions will be returned. - Select transactions involving a specific vault by providing the
vaultIdparameter. If thevaultIdparameter is omitted, transactions for all vaults for which your API key is permissioned will be returned. - Filter transactions of one or more types with the
typesparameter. Multiple types should be separated by commas. - Filter fiat transactions by payment rail with the
railsparameter. Multiple rails should be separated by commas. - Select transactions involving a specific wallet by providing the
walletIdparameter. If thewalletIdparameter is omitted, transactions for all vaults for which your API key is permissioned will be returned. - Filter transactions by the receiving address with the
destinationAddressparameter. - Filter fiat transactions on a virtual account with the
virtualAccountIdparameter, or by the customer who owns the virtual account on this wallet’s side with thecustomerIdparameter.
curl --request GET \
--url https://api.anchorage-staging.com/v2/transactions \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/transactions"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"amount": {
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
},
"assetType": "BTC",
"description": "Withdrawing to exchange",
"id": "9d570c38a148a6e0b4facf1e0d8c27dd6eba48c41421be1ba8bb778cbeb1a4df",
"status": "INITIATING",
"transactionType": "WITHDRAW",
"vaultId": "1c920f4241b78a1d483a29f3c24b6c4c",
"vaultName": "Long Hold Vault",
"blockchainTxId": "0xd7b99c44240ae5bdd7d2f8572358ee2a521c4d93b74c8fd3df6557ac9f02b008",
"customerId": "3b8e1f6d2a9c4e7fb5d0a1c8e3f92647",
"dateTime": "2019-01-02T12:34:56.000Z",
"destinationAddresses": [
"<string>"
],
"destinationCustomerId": "9c2f7a1e4b8d4e3fa6c0d5b1e8f34a72",
"destinationVirtualAccountId": "5a1d8c3e7f2b4a9db6e0c4f8a2d71e39",
"destinationWalletId": "d24b424293c0d64c6194f52801b3d293",
"extra": "Blockchain-specific details, such as memo in XLM",
"fee": {
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
},
"fiatDetails": {
"rail": "WIRE",
"accountNumber": "123456789",
"ach": {
"authorization": {
"checks": [
{
"check": "NAME_MATCH",
"checkedAt": "2019-01-02T12:34:56.000Z",
"isBusinessNameDetected": true,
"isFirstNameOrLastNameMatch": true,
"isNicknameMatch": true,
"passed": true,
"score": 90
}
],
"outcome": "PASSED",
"reason": "invalid_source"
},
"companyId": "1234567890",
"originatorName": "ACME CORP",
"remittanceInformation": "Invoice 1042",
"returnCode": "R01",
"sameDayAch": true,
"secCode": "WEB",
"sourceLastFour": "6789",
"sourceType": "PLAID_PROCESSOR_TOKEN",
"statementDescriptor": "PAYROLL",
"traceNumber": "021000021234567"
},
"bankId": "IRVTUS3N",
"bankName": "The Bank of New York Mellon",
"fedWire": "20260524ABCDXXXX012345",
"memo": "Quarterly dividend",
"name": "Satoshi Nakamoto"
},
"originalTransactionId": "9c3e5a7f1b2d4e6a8c0f2b4d6e8a0c2e4f6a8b0d2c4e6f8a0b2d4c6e8f0a2b4d",
"rawTransaction": {
"chainId": "0x1",
"networkId": "ETH",
"payload": {},
"type": "ETH_SEND_TRANSACTION",
"dappUrl": "https://app.aave.com/"
},
"returnTransactionId": "4f1d8a2c9b7e3f6a0d5c1b8e2a9f7c3d6b0e4a1f8c2d9b5e7a3f0c6d1b8e4a2f",
"sourceAddresses": [
"<string>"
],
"virtualAccountId": "7f3c2a9e5b1d4c8fa0e6b2d9c4f1a873",
"walletId": "d24b424293c0d64c6194f52801b3d293"
}
],
"page": {
"next": "<next page url>"
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Query Parameters
The start date (inclusive) in YYYY-MM-DD format. The earliest valid start date is '2017-01-01`. Dates are always in UTC RFC 3339 'full-date'.
The end date (inclusive) in YYYY-MM-DD format. The latest valid end date is the current date. Dates are always in UTC RFC 3339 'full-date'.
A comma-separated list of payment rails to return. ACH matches both ACH_DEBIT and ACH_CREDIT and never appears in a response; the other values match fiatDetails.rail. Only transactions with fiatDetails carry a rail, so any value excludes every transaction without it. That covers crypto transactions, FIAT_INTEREST payments, internal fiat transfers, and older fiat deposits, withdrawals and transfers recorded before their wire details were stored.
WIRE, ACH, ACH_CREDIT, ACH_DEBIT Was this page helpful?