Get transfer details

Get Transfer

Wallet transfer represents digital currency sent and received on your wallet. This method will help you to track funding withdrawals and deposits.

// Get Transaction Status
let status=await walletInstance.TransferStatus({
  sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
});

// Get Single Transaction data by passing transaction Id
let singleResponse = await walletInstance.GetTransfer({ txId: status.identifier });

console.log("Get Transfer Transaction Data by Passing Tx Id: =>", JSON.stringify(singleResponse));
// Get Transaction Status
let status:TransferTransactionRequestResult=await walletInstance.TransferStatus({
  sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
});

// Get Single Transaction data by passing transaction Id
let singleResponse: TransferTransactionWrapper = await walletInstance.GetTransfer({ txId: status.identifier });

console.log("Get Transfer Transaction Data by Passing Tx Id: =>", JSON.stringify(singleResponse));

Note:

If you want to get transfer transaction data response then before that you have to call TransferStatus method bypassing your sequence Id then the system will fetch status response, In that response, you will get "identifier" property which you have to pass in the GetTransfer method object parameter.

For more details on the TransferStatus method, Please visit the following page.
<https://docs.lmnl.app/docs/transaction-status#transaction-status-by-sequence-id>

Parameter:

ParamsData TypeDescription
txIdstringTransfer transaction ID. It is a mandatory field.

You will get the following response from the GetTransfer method. It is JSON representation Only.

{
   "coin":"LTC",
   "id":"27171",
   "wallet":296,
   "txid":"c823faeb339a766a6d8b87c98143b0178b3f67a9706d3218b55c5dc31018ac06",
   "date":"2021-12-27T06:02:14.000Z",
   "value":"-0.00001000",
   "valueString":"-0.00001000",
   "baseValue":-0.00001,
   "baseValueString":"-0.00001000",
   "feeString":"0.00003390",
   "usd":"-0.00466",
   "walletType":"pipeline",
   "inputs":[
      {
         "address":"3JnfuDG7WYk8zZv4YJvxfr7Dr59umBoXWC",
         "amount":"0.00948980",
         "isMine":true,
         "wallet":{
            "id":214,
            "name":"Deposit LTC",
            "type":"pipeline",
            "config":"2of4",
            "status":1,
            "balance":"0.00944590",
            "balanceusd":"4.40367858",
            "raw":null,
            "issynced":false,
            "walletpath":null,
            "walletidentifier":"3JnfuDG7WYk8zZv4YJvxfr7Dr59umBoXWC",
            "coin":"LTC",
            "chain":"LTC",
            "parentchain":"UTXO",
            "subtype":"deposit",
            "orgid":1
         }
      }
   ],
   "outputs":[
      {
         "address":"1EAvg7B4nPhTXe2nc568AXm85WKz1pfQB",
         "amount":"0.00001000",
         "isMine":false
      },
      {
         "address":"3JnfuDG7WYk8zZv4YJvxfr7Dr59umBoXWC",
         "amount":"0.00944590",
         "isMine":true,
         "wallet":{
            "id":296,
            "name":"Deposit LTC",
            "type":"pipeline",
            "config":"2of4",
            "status":1,
            "balance":"0.00944590",
            "balanceusd":"4.40367858",
            "raw":null,
            "issynced":false,
            "walletpath":null,
            "walletidentifier":"3JnfuDG7WYk8zZv4YJvxfr7Dr59umBoXWC",
            "coin":"LTC",
            "chain":"LTC",
            "parentchain":"UTXO",
            "subtype":"deposit",
            "orgid":1
         }
      }
   ]
}

Full Example

import { CoinsEnum,LiminalEnvironment, LiminalJs } from "@lmnl/liminaljs";

const main = async () => {
    try {
        // Instance of Liminal Js
        let liminalJs = new LiminalJs(LiminalEnvironment.test);
        await liminalJs
            .Authenticate({
                clientId: "YOUR_CLIENT_ID",
                clientSecret: "YOUR_CLIENT_SECRET"
            })
            .AuthenticateWithAccessToken();

        // Get Wallet Instance
        let walletInstance = await liminalJs
            .Coin(CoinsEnum.ltc)
            .Wallets()
            .Get({ walletId: 296 });

        // Get Transaction Status
        let status=await walletInstance.TransferStatus({
          sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        });

        // Get Single Transaction data by passing transaction Id
        let singleRespons = await walletInstance.GetTransfer({ txId: status.identifier });

        console.log("Get Transfer Transaction Data by Passing Tx Id: =>", JSON.stringify(singleResponse));
    }
    catch (ex) {
        throw ex;
    }
};
main().then((resolve) => console.log("Complete")).catch((error) => console.log(error));
import {
    CoinsEnum,
    LiminalEnvironment,
    LiminalJs,
    TransferTransactionWrapper,
    Wallet
} from "@lmnl/liminaljs"

const main = async (): Promise<void> => {
    try {
        // Instance of Liminal Js
        let liminalJs = new LiminalJs(LiminalEnvironment.test);
        await liminalJs
            .Authenticate({
                clientId: "YOUR_CLIENT_ID",
                clientSecret: "YOUR_CLIENT_SECRET"
            })
            .AuthenticateWithAccessToken();

        // Get Wallet Instance
        let walletInstance: Wallet = await liminalJs
            .Coin(CoinsEnum.ltc)
            .Wallets()
            .Get({ walletId: 296 });

        // Get Transaction Status
        let status:TransferTransactionRequestResult=await walletInstance.TransferStatus({
          sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        });

                // Get Single Transaction data by passing transaction Id
                let singleResponse: TransferTransactionWrapper = await walletInstance.GetTransfer({ txId: status.identifier });

        console.log("Get Transfer Transaction Data by Passing Tx Id: =>", JSON.stringify(singleResponse));
    }
    catch (ex) {
        throw ex;
    }
}

main().then((resolve) => console.log("Complete")).catch((error) => console.log(error));

Did this page help you?