Get transaction by ID
curl --request GET \
--url https://api.anchorage-staging.com/v2/transactions/{transactionId} \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/transactions/{transactionId}"
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/{transactionId}', 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": {
"accountNumber": "123456789",
"ach": {
"sameDayAch": true,
"secCode": "WEB",
"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"
},
"remittanceInformation": "Invoice 1042",
"sourceLastFour": "6789",
"statementDescriptor": "PAYROLL",
"traceNumber": "021000021234567"
},
"bankId": "IRVTUS3N",
"bankName": "The Bank of New York Mellon",
"fedWire": "20260524ABCDXXXX012345",
"memo": "Quarterly dividend",
"name": "Satoshi Nakamoto",
"rail": "WIRE"
},
"rawTransaction": {
"chainId": "0x1",
"networkId": "ETH",
"payload": {},
"type": "ETH_SEND_TRANSACTION",
"dappUrl": "https://app.aave.com/"
},
"returnTransactionId": "4f1d8a2c9b7e3f6a0d5c1b8e2a9f7c3d6b0e4a1f8c2d9b5e7a3f0c6d1b8e4a2f",
"sourceAddresses": [
"<string>"
],
"virtualAccountId": "7f3c2a9e5b1d4c8fa0e6b2d9c4f1a873",
"walletId": "d24b424293c0d64c6194f52801b3d293"
}
}{
"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'."
}Get transaction by ID
Permissions required: Read vault activity
Get transaction by ID.
GET
/
transactions
/
{transactionId}
Get transaction by ID
curl --request GET \
--url https://api.anchorage-staging.com/v2/transactions/{transactionId} \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/transactions/{transactionId}"
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/{transactionId}', 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": {
"accountNumber": "123456789",
"ach": {
"sameDayAch": true,
"secCode": "WEB",
"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"
},
"remittanceInformation": "Invoice 1042",
"sourceLastFour": "6789",
"statementDescriptor": "PAYROLL",
"traceNumber": "021000021234567"
},
"bankId": "IRVTUS3N",
"bankName": "The Bank of New York Mellon",
"fedWire": "20260524ABCDXXXX012345",
"memo": "Quarterly dividend",
"name": "Satoshi Nakamoto",
"rail": "WIRE"
},
"rawTransaction": {
"chainId": "0x1",
"networkId": "ETH",
"payload": {},
"type": "ETH_SEND_TRANSACTION",
"dappUrl": "https://app.aave.com/"
},
"returnTransactionId": "4f1d8a2c9b7e3f6a0d5c1b8e2a9f7c3d6b0e4a1f8c2d9b5e7a3f0c6d1b8e4a2f",
"sourceAddresses": [
"<string>"
],
"virtualAccountId": "7f3c2a9e5b1d4c8fa0e6b2d9c4f1a873",
"walletId": "d24b424293c0d64c6194f52801b3d293"
}
}{
"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'."
}Was this page helpful?