Loading transaction Polygon
The loading
namespace contains method used for getting info about loading transaction. The unique methods to the loading
namespace is:
isTransactionLoading(hash)
: Waits for a transaction to be processed and returns the status of the transaction.
Get Status Transaction
ts
// Import SDK
import { Polygon } from '@everstake/wallet-sdk';
// Hash transaction
const hash = '0x6a65103f50d40eb94b04fba1161e0dd44962f070bdcfc4c75b105ca37b2b08b2';
const status = await Polygon.isTransactionLoading(hash);
console.log(status); // return true or false until the transaction status is either success or failed