Transaction Status

Transaction Status By Request ID

Get the status of the transfer transaction bypassing the transaction request ID.

let recipients = {
            recipients:[
                {
                  address:"MP2W5NwaCCDKSR8hHNCsYvgSc7evNdhmj1",
                  amount:0.0002
                }
            ],
          sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        };

let transactionResponse = await walletInstance.SendMany(recipients);
console.log("Send Many Transaction: =>", transactionResponse);

// Status of Transfer Transaction
let status = await walletInstance.TransferStatus({
                        id:transactionResponse.id
                    });
console.log("Status Object : => ",JSON.stringif(status));
let recipients: PrebuildAndSignTransactionOptions = {
            recipients:[
               {
                  address:"MP2W5NwaCCDKSR8hHNCsYvgSc7evNdhmj1",
                  amount:0.0002
               }
            ],
                    sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        };

let transactionResponse:any = await walletInstance.SendMany(recipients);
console.log("Send Many Transaction: =>", JSON.stringify(transactionResponse));

let status:TransferTransactionRequestResult=await walletInstance.TransferStatus({
                        id:transactionResponse.id
                    });
console.log("Status Object : => ", JSON.stringify(status));

Parameter:

Param

Data Type

Description

transactionRequestId

Integer

Pass the transaction request ID where you will get the Transaction request object.

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

{
   "id":1615,
   "raw":"{\"txHex\":\"70736274ff0100770200000001a3b7e512a330613549912bcf83e9a3af7db23d7485f5076ec4479873b4832d5d0100000000ffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac00e1f505000000001976a9144f012c80b19ca3e8fa7feae356a39e346d56c7dd88ac00000000000100fd9501020000000139d896a1b2c1750e73c1b8e94601fe32be9beacd729bc3a064ffeac5e6a1141e01000000fd1e010047304402205a759b4b9e771dde471294e87dbc3e6aebcff0ab62cbf09dadfc3a9b4ce579d202206afad1f0312db8a5ab288eb32246427273d1ee1cee759e1d2769ccd8db1dc8210147304402202ffdd42de0b35d5c106fc849c37edbd9b9031afe2cacc716b7a5269acb30fcad02205dc584da7eb70fb4f859954b09ee24a9bc82f27aff6e59328dad61051db246ab014c8b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154aeffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac80bcb1180000000017a914bb8beb762651152b7c8345bce4a25a2ca256d9298700000000220202a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f0483045022100c7dc3a5662653c4b56c35cad3298a8810e888def243d00f24707713731c7a0ef02204c7d0e6c93cc9cc505d8c8e82f41ae5c6679035933630edf08323fa431a0ac12010103040100000001048b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154ae000000\",\"halfSigned\":{\"payload\":\"Some Value\",\"txBase64\":\"cHNidP8BAHcCAAAAAaO35RKjMGE1SZErz4Ppo699sj10hfUHbsRHmHO0gy1dAQAAAAD/////AgDh9QUAAAAAGXapFLH/UJF2pco6ZdzSHDJkz7XhGNDfiKwA4fUFAAAAABl2qRRPASyAsZyj6Pp/6uNWo540bVbH3YisAAAAAAABAP2VAQIAAAABOdiWobLBdQ5zwbjpRgH+Mr6b6s1ym8OgZP/qxeahFB4BAAAA/R4BAEcwRAIgWnWbS553Hd5HEpTofbw+auvP8Ktiy/Cdrfw6m0zledICIGr60fAxLbilqyiOsyJGQnJz0e4c7nWeHSdpzNjbHcghAUcwRAIgL/3ULeCzXVwQb8hJw37b2bkDGv4srMcWt6Ummssw/K0CIF3FhNp+tw+0+FmVSwnuJKm8gvJ6/25ZMo2tYQUdskarAUyLUiECC8Nyc779jmFpLb4gcdN7txZEXlCAPblOPArAVj5HScIhAiolHi3YR7BodTNGHQRdbZSz+THXq+VpaUzABsj1WpMMIQKp3+ANCwYanp2tyg/lboOyTt9hCion/5g/GWIdaFGl8CEC63a+OH2smnEsANL1mKVIjVKLmculyd1uoIUeTJbyLeFUrv////8CAOH1BQAAAAAZdqkUsf9QkXalyjpl3NIcMmTPteEY0N+IrIC8sRgAAAAAF6kUu4vrdiZRFSt8g0W85KJaLKJW2SmHAAAAACICAqnf4A0LBhqena3KD+Vug7JO32EKKif/mD8ZYh1oUaXwSDBFAiEAx9w6VmJlPEtWw1ytMpiogQ6Ije8kPQDyRwdxNzHHoO8CIEx9DmyTzJzFBdjI6C9BrlxmeQNZM2MO3wgyP6QxoKwSAQEDBAEAAAABBItSIQILw3Jzvv2OYWktviBx03u3FkReUIA9uU48CsBWPkdJwiECKiUeLdhHsGh1M0YdBF1tlLP5Mder5WlpTMAGyPVakwwhAqnf4A0LBhqena3KD+Vug7JO32EKKif/mD8ZYh1oUaXwIQLrdr44fayacSwA0vWYpUiNUouZy6XJ3W6ghR5MlvIt4VSuAAAA\",\"txHex\":\"70736274ff0100770200000001a3b7e512a330613549912bcf83e9a3af7db23d7485f5076ec4479873b4832d5d0100000000ffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac00e1f505000000001976a9144f012c80b19ca3e8fa7feae356a39e346d56c7dd88ac00000000000100fd9501020000000139d896a1b2c1750e73c1b8e94601fe32be9beacd729bc3a064ffeac5e6a1141e01000000fd1e010047304402205a759b4b9e771dde471294e87dbc3e6aebcff0ab62cbf09dadfc3a9b4ce579d202206afad1f0312db8a5ab288eb32246427273d1ee1cee759e1d2769ccd8db1dc8210147304402202ffdd42de0b35d5c106fc849c37edbd9b9031afe2cacc716b7a5269acb30fcad02205dc584da7eb70fb4f859954b09ee24a9bc82f27aff6e59328dad61051db246ab014c8b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154aeffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac80bcb1180000000017a914bb8beb762651152b7c8345bce4a25a2ca256d9298700000000220202a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f0483045022100c7dc3a5662653c4b56c35cad3298a8810e888def243d00f24707713731c7a0ef02204c7d0e6c93cc9cc505d8c8e82f41ae5c6679035933630edf08323fa431a0ac12010103040100000001048b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154ae000000\",\"sequenceId\":\"8a3ac341-1591-d17c-9f3b-86916a01120f\"},\"user\":{\"id\":76,\"displayName\":\"Machine\",\"photoURL\":\"https://cdn.icon-icons.com/icons2/1378/PNG/512/avatardefault_92824.png\",\"lastLoginAt\":\"2021-11-02T07:57:42.000Z\",\"email\":\"[email protected]\",\"phoneNumber\":null,\"status\":1,\"created_at\":\"2021-09-08T09:05:22.000Z\",\"clientid\":\"UT3DKwJuEf1L5LiDU7jkwnhE16JU3NKu\",\"type\":2},\"sequenceId\":\"8a3ac341-1591-d17c-9f3b-86916a01120f\"}",
   "walletid":"185",
   "status":4,
   "userid":76,
   "identifier":"15503d3c06e9ca3e896892606189816d7ff7bcadd38a4d309a3e217d5ab843d4",
   "destinationAddress":"Multiple address",
   "amount":"2.00000000",
   "type":1,
   "asset":"DOGE",
   "chain":"DOGE",
   "comment":null,
   "noceidentifier":null,
   "timestamp":"2021-11-02T07:58:19.000Z",
   "transactionSequenceId":110,
   "sequenceId":"8a3ac341-1591-d17c-9f3b-86916a01120f"
}

Note:
"identifier" property is also known as "Transaction Hash".

Transaction Status by Sequence ID

Get the status of the transfer transaction bypassing the transaction sequence ID.

let recipients = {
          recipients:[
            {
                address:"MP2W5NwaCCDKSR8hHNCsYvgSc7evNdhmj1",
                amount:0.0002
            }
          ],
          sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        };

let transactionResponse = await walletInstance.SendMany(recipients);
console.log("Send Many Transaction: =>", JSON.stringify(transactionResponse));

let status=await walletInstance.TransferStatus({
                        sequenceId:transactionResponse1.sequenceId
                    });
console.log("Status Object : => ", JSON.stringify(status));
let recipients: PrebuildAndSignTransactionOptions = {
            recipients:[
               {
                  address:"MP2W5NwaCCDKSR8hHNCsYvgSc7evNdhmj1",
                  amount:0.0002
               }
            ],
                    sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        };

let transactionResponse:any = await walletInstance.SendMany(recipients);
console.log("Send Many Transaction: =>", JSON.stringify(transactionResponse));

let status:TransferTransactionRequestResult=await walletInstance.TransferStatus({
                        sequenceId:transactionResponse1.sequenceId
                    });
console.log("Status Object : => ", JSON.stringify(status));

Parameter:

Params

Data Type

Description

sequenceId

String

Pass the sequence ID where you will get the Transaction request object.

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

{
   "id":1615,
   "raw":"{\"txHex\":\"70736274ff0100770200000001a3b7e512a330613549912bcf83e9a3af7db23d7485f5076ec4479873b4832d5d0100000000ffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac00e1f505000000001976a9144f012c80b19ca3e8fa7feae356a39e346d56c7dd88ac00000000000100fd9501020000000139d896a1b2c1750e73c1b8e94601fe32be9beacd729bc3a064ffeac5e6a1141e01000000fd1e010047304402205a759b4b9e771dde471294e87dbc3e6aebcff0ab62cbf09dadfc3a9b4ce579d202206afad1f0312db8a5ab288eb32246427273d1ee1cee759e1d2769ccd8db1dc8210147304402202ffdd42de0b35d5c106fc849c37edbd9b9031afe2cacc716b7a5269acb30fcad02205dc584da7eb70fb4f859954b09ee24a9bc82f27aff6e59328dad61051db246ab014c8b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154aeffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac80bcb1180000000017a914bb8beb762651152b7c8345bce4a25a2ca256d9298700000000220202a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f0483045022100c7dc3a5662653c4b56c35cad3298a8810e888def243d00f24707713731c7a0ef02204c7d0e6c93cc9cc505d8c8e82f41ae5c6679035933630edf08323fa431a0ac12010103040100000001048b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154ae000000\",\"halfSigned\":{\"payload\":\"Some Value\",\"txBase64\":\"cHNidP8BAHcCAAAAAaO35RKjMGE1SZErz4Ppo699sj10hfUHbsRHmHO0gy1dAQAAAAD/////AgDh9QUAAAAAGXapFLH/UJF2pco6ZdzSHDJkz7XhGNDfiKwA4fUFAAAAABl2qRRPASyAsZyj6Pp/6uNWo540bVbH3YisAAAAAAABAP2VAQIAAAABOdiWobLBdQ5zwbjpRgH+Mr6b6s1ym8OgZP/qxeahFB4BAAAA/R4BAEcwRAIgWnWbS553Hd5HEpTofbw+auvP8Ktiy/Cdrfw6m0zledICIGr60fAxLbilqyiOsyJGQnJz0e4c7nWeHSdpzNjbHcghAUcwRAIgL/3ULeCzXVwQb8hJw37b2bkDGv4srMcWt6Ummssw/K0CIF3FhNp+tw+0+FmVSwnuJKm8gvJ6/25ZMo2tYQUdskarAUyLUiECC8Nyc779jmFpLb4gcdN7txZEXlCAPblOPArAVj5HScIhAiolHi3YR7BodTNGHQRdbZSz+THXq+VpaUzABsj1WpMMIQKp3+ANCwYanp2tyg/lboOyTt9hCion/5g/GWIdaFGl8CEC63a+OH2smnEsANL1mKVIjVKLmculyd1uoIUeTJbyLeFUrv////8CAOH1BQAAAAAZdqkUsf9QkXalyjpl3NIcMmTPteEY0N+IrIC8sRgAAAAAF6kUu4vrdiZRFSt8g0W85KJaLKJW2SmHAAAAACICAqnf4A0LBhqena3KD+Vug7JO32EKKif/mD8ZYh1oUaXwSDBFAiEAx9w6VmJlPEtWw1ytMpiogQ6Ije8kPQDyRwdxNzHHoO8CIEx9DmyTzJzFBdjI6C9BrlxmeQNZM2MO3wgyP6QxoKwSAQEDBAEAAAABBItSIQILw3Jzvv2OYWktviBx03u3FkReUIA9uU48CsBWPkdJwiECKiUeLdhHsGh1M0YdBF1tlLP5Mder5WlpTMAGyPVakwwhAqnf4A0LBhqena3KD+Vug7JO32EKKif/mD8ZYh1oUaXwIQLrdr44fayacSwA0vWYpUiNUouZy6XJ3W6ghR5MlvIt4VSuAAAA\",\"txHex\":\"70736274ff0100770200000001a3b7e512a330613549912bcf83e9a3af7db23d7485f5076ec4479873b4832d5d0100000000ffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac00e1f505000000001976a9144f012c80b19ca3e8fa7feae356a39e346d56c7dd88ac00000000000100fd9501020000000139d896a1b2c1750e73c1b8e94601fe32be9beacd729bc3a064ffeac5e6a1141e01000000fd1e010047304402205a759b4b9e771dde471294e87dbc3e6aebcff0ab62cbf09dadfc3a9b4ce579d202206afad1f0312db8a5ab288eb32246427273d1ee1cee759e1d2769ccd8db1dc8210147304402202ffdd42de0b35d5c106fc849c37edbd9b9031afe2cacc716b7a5269acb30fcad02205dc584da7eb70fb4f859954b09ee24a9bc82f27aff6e59328dad61051db246ab014c8b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154aeffffffff0200e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac80bcb1180000000017a914bb8beb762651152b7c8345bce4a25a2ca256d9298700000000220202a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f0483045022100c7dc3a5662653c4b56c35cad3298a8810e888def243d00f24707713731c7a0ef02204c7d0e6c93cc9cc505d8c8e82f41ae5c6679035933630edf08323fa431a0ac12010103040100000001048b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221022a251e2dd847b0687533461d045d6d94b3f931d7abe569694cc006c8f55a930c2102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f02102eb76be387dac9a712c00d2f598a5488d528b99cba5c9dd6ea0851e4c96f22de154ae000000\",\"sequenceId\":\"8a3ac341-1591-d17c-9f3b-86916a01120f\"},\"user\":{\"id\":76,\"displayName\":\"Machine\",\"photoURL\":\"https://cdn.icon-icons.com/icons2/1378/PNG/512/avatardefault_92824.png\",\"lastLoginAt\":\"2021-11-02T07:57:42.000Z\",\"email\":\"[email protected]\",\"phoneNumber\":null,\"status\":1,\"created_at\":\"2021-09-08T09:05:22.000Z\",\"clientid\":\"UT3DKwJuEf1L5LiDU7jkwnhE16JU3NKu\",\"type\":2},\"sequenceId\":\"8a3ac341-1591-d17c-9f3b-86916a01120f\"}",
   "walletid":"296",
   "status":4,
   "userid":76,
   "identifier":"15503d3c06e9ca3e896892606189816d7ff7bcadd38a4d309a3e217d5ab843d4",
   "destinationAddress":"Multiple address",
   "amount":"0.0002",
   "type":1,
   "asset":"LTC",
   "chain":"LTC",
   "comment":null,
   "noceidentifier":null,
   "timestamp":"2021-11-02T07:58:19.000Z",
   "transactionSequenceId":110,
   "sequenceId":"8a3ac341-1591-d17c-9f3b-86916a01120f"
}

Note:
"identifier" property is also known as "Transaction Hash".

Here is status Information:

Status Code

Status

1

Pending Transaction

2

Broadcasted Transaction

4

Confirmed Transaction

5

Cancelled Transaction

6

Failed Transaction

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 });
        // recipients data.
        let recipients = {
            recipients:[
                {
                  address:"MP2W5NwaCCDKSR8hHNCsYvgSc7evNdhmj1",
                  amount:0.0002
                }
            ],
          sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        };

                let transactionResponse = await walletInstance.SendMany(recipients);
                console.log("Send Many Transaction: =>", transactionResponse);
      
        // Status of Transfer Transaction
        let status1 = await walletInstance.TransferStatus({
            id: transactionResponse.id
        });
        console.log("Status Object : => ", JSON.stringify(status1));
        
        // Or You can Get Status of Transfer based on sequenceId
        // Status of Transfer Transaction
        let status2 = await walletInstance.TransferStatus({
            sequenceId: transactionResponse.sequenceId
        });
        console.log("Status Object : => ", JSON.stringify(status2));
    }
    catch (ex) {
        throw ex;
    }
};
main().then((resolve) => console.log("Complete")).catch((error) => console.log(error));
import {
    CoinsEnum,
    LiminalEnvironment,
    LiminalJs,
    PrebuildAndSignTransactionOptions,
    PrebuildTransactionResult,
    SignedTransaction,
    TransferTransactionRequestResult,
    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 });

        let recipients: PrebuildAndSignTransactionOptions = {
            recipients:[
               {
                  address:"MP2W5NwaCCDKSR8hHNCsYvgSc7evNdhmj1",
                  amount:0.0002
               }
            ],
                    sequenceId:'8a3ac341-1591-d17c-9f3b-86916a01120f'
        };

                let transactionResponse:any = await walletInstance.SendMany(recipients);
                console.log("Send Many Transaction: =>", JSON.stringify(transactionResponse));
      
         // Status of Transfer Transaction
        let status1: TransferTransactionRequestResult = await walletInstance.TransferStatus({
            id: transactionResponse1.id
        });
        console.log("Status Object : => ", JSON.stringify(status1));

        // Or You can Get Status of Transfer based on sequenceId

        // Status of Transfer Transaction
        let status2: TransferTransactionRequestResult = await walletInstance.TransferStatus({
            sequenceId: transactionResponse1.sequenceId
        });
        console.log("Status Object : => ", JSON.stringify(status2));


    }
    catch (ex) {
        throw ex;
    }
}

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

Did this page help you?