(scriptHashs: string[])
| 107 | |
| 108 | // Calculate wallet balance using multiple scriptHashes |
| 109 | async walletBalance(scriptHashs: string[]): Promise<IBalance> { |
| 110 | const balance = await this._post("wallet-balance", { |
| 111 | scriptHashs, |
| 112 | }); |
| 113 | return { |
| 114 | ...balance, |
| 115 | confirmed: BigInt(balance.confirmed), |
| 116 | unconfirmed: BigInt(balance.unconfirmed), |
| 117 | total: BigInt(balance.confirmed) + BigInt(balance.unconfirmed), |
| 118 | }; |
| 119 | } |
| 120 | |
| 121 | // Get balance for a specific Token |
| 122 | tokenBalance(scriptHash: string, tick: string): Promise<IBalance> { |
no test coverage detected