View Transactions
Retrieve detailed transaction information for a wallet including fees and confirmations. See the Guide.
-
You retrieve detailed information about the transactions in a wallet by listing transfers. BitGo enables you to filter rejected transactions or those pending approval. In addition to basic transaction information such as amount and timestamps, the response includes block height, fees, number of co-signer confirmations, and input/output details.
Prerequisites: You must have completed Get Started.
// 1. List Transfers
export COIN="tltc"
export WALLET_ID="<YOUR_WALLET_ID>"
export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"
curl -X GET \
https://app.bitgo-test.com/api/v2/$COIN/wallet/$WALLET_ID \
-H "Authorization: Bearer $ACCESS_TOKEN"
// 1. List Transfers
import * as dotenv from "dotenv";
import {EnvironmentName} from "bitgo";
import {BitGoAPI} from "@bitgo/sdk-api";
import {Tltc} from "@bitgo/sdk-coin-ltc";
dotenv.config();
const bitgo = new BitGoAPI({
env: process.env.ENV as EnvironmentName,
accessToken: process.env.TESTNET_ACCESS_TOKEN
});
const coin = 'tltc';
bitgo.register(coin, Tltc.createInstance);
const walletId = process.env.WALLET_ID;
async function main() {
const walletInstance = await bitgo.coin(coin).wallets().get({id: walletId});
walletInstance.transfers().then(function (transfers) {
// print transfers
console.dir(transfers);
});
}
main().catch((err) => console.error(err));
Response
// 1. List Transfers Response
{
"transfers": [
{
"coin": "btc",
"id": "59cd72485007a239fb00282ed480da1f",
"wallet": "59cd72485007a239fb00282ed480da1f",
"enterprise": "59cd72485007a239fb00282ed480da1f",
"txid": "b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26",
"height": 0,
"heightId": "string",
"date": "2019-08-24T14:15:22Z",
"type": "send",
"value": 0,
"valueString": "string",
"baseValue": 0,
"baseValueString": "string",
"feeString": "string",
"payGoFee": 0,
"payGoFeeString": "string",
"usd": 0,
"usdRate": 0,
"state": "confirmed",
"tags": [
"59cd72485007a239fb00282ed480da1f"
],
"history": [
{
"date": "2019-08-24T14:15:22Z",
"user": "59cd72485007a239fb00282ed480da1f",
"action": "created",
"comment": "string"
}
],
"comment": "string",
"vSize": 0,
"nSegwitInputs": 0,
"coinSpecific": {},
"sequenceId": "string",
"entries": [
{
"address": "2NAUwNgXaoFj2VVnSEvNLGuez8CfdU2UCMZ",
"wallet": "string",
"value": 0,
"valueString": "string",
"isChange": true,
"isPayGo": true,
"token": "omg",
"label": "string"
}
],
"usersNotified": true,
"confirmations": 0
}
],
"coin": "btc",
"nextBatchPrevId": "585951a5df8380e0e3063e9f"
}