payTo
readonly payTo: (
address: Address | AddressStr,
amount: number | bigint | Value,
datum?: CanBeData,
refScript?: Script
) => TxBuilderRunner
address
:Address
|AddressStr
,amount
:number
|bigint
|Value
,datum
?:CanBeData
,refScript
?:Script
adds a transaction output.
if amount
is number
or bigint
it is intended to be lovelaces only.
if datum
is present is always added as inline datum.
returns a reference to the same TxBuilderRunner
.