accountInfo
function accountInfo(client, options): Promise<AccountInfoResult>;Defined in: packages/synapse-core/src/pay/payments.ts:62
Get the account info from the payments contract.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use. |
options | AccountInfoOptions | The options to use. |
Returns
Section titled “Returns”The account info including funds, lockup details, and available balance.
Throws
Section titled “Throws”- ReadContractErrorType if the read contract fails.
Throws
Section titled “Throws”- GetBlockNumberErrorType if the get block number fails.