filecoin-pin
    Preparing search index...

    Variable getPaymentStatus

    getPaymentStatus: (synapse: Synapse) => Promise<PaymentStatus>

    Type Declaration

      • (synapse: Synapse): Promise<PaymentStatus>
      • Get current payment status including all balances and approvals

        Example usage:

        const status = await getPaymentStatus(synapse)
        console.log(`Address: ${status.address}`)
        console.log(`FIL Balance: ${ethers.formatEther(status.filBalance)}`)
        console.log(`USDFC Balance: ${ethers.formatUnits(status.walletUsdfcBalance, 18)}`)
        console.log(`Deposited: ${ethers.formatUnits(status.filecoinPayBalance, 18)}`)

        Parameters

        • synapse: Synapse

          Initialized Synapse instance

        Returns Promise<PaymentStatus>

        Complete payment status