@midnight-ntwrk/midnight-js-types v0.2.5 • API
Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-types / WalletProvider
Interface: WalletProvider
Interface for a wallet
Properties
coinPublicKey
readonly
coinPublicKey:string
Wallet public coin key
Methods
balanceTx()
balanceTx(
tx
,newCoins
):Promise
<BalancedTransaction
>
Balances selects coins, creates spend proofs, and pays fees for a transaction with call proofs.
Parameters
• tx: UnbalancedTransaction
The transaction to balance.
• newCoins: CoinInfo
[]
The outputs created during a transaction.
Returns
Promise
<BalancedTransaction
>