sponsoring

fun sponsoring(sponsorAccount: AccountKeyPair, sponsoredAccount: AccountKeyPair? = null, body: SponsoringBuilder.() -> SponsoringBuilder): TransactionBuilder

Start a sponsoring block

Return

TransactionBuilder

Receiver

SponsoringBuilder

Parameters

sponsorAccount

account that will be used to sponsor all operations inside the block

sponsoredAccount

account that is sponsored and will be used as a source account of all operations inside the block. If not specified, defaults to builder's sourceAddress.

body

main code block, that contains logic of operations sponsoring