outputMinAdaAmount

open fun outputMinAdaAmount(toAddress: String, tokenBundle: Array<Byte>, coinsPerUtxoByte: String): String

Calculates the minimum ADA amount needed for an output.

Return

the minimum ADA amount (Base-10 decimal string).

See also

reference

https://docs.cardano.org/native-tokens/minimum-ada-value-requirement

Parameters

toAddress

valid destination address, as string.

tokenBundle

serialized data of TW.Cardano.Proto.TokenBundle.

coinsPerUtxoByte

cost per one byte of a serialized UTXO (Base-10 decimal string).