πsol
Last updated
npm install @nest25/wallet-lib
OR
yarn add @nest25/wallet-lib// import Nest SDK
import { Wallet } from 'nest25/wallet-lib';
// Create a new instance of the Wallet class
const wallet = new Wallet();
const main = async () => {
// Get the status of a transaction
const response = await wallet.txStatus(
'sol',
'4iDWwQDUoasbZZS9ARdSydrLdFqMcNC1RDfqarAQgbRXpFXty624PQ3Z3AMnoiioKLJyCwtfpG5owHLAcWFr9ywa',
);
// Print the response
console.log(response);
};
main(); { code: 1, result: 'confirmed' }