GrpcTransactionBuilderInterface
interface GrpcTransactionBuilderInterface
A builder for creating transactions which uses a gRPC client to automatically resolve inputs. Use finish to finalize the transaction data.
Inheritors
| GrpcTransactionBuilder |
Functions
| Name | Summary |
|---|---|
| authorizeUpgrade | abstract fun authorizeUpgrade(upgradeCapability: PtbArgument, upgradePolicy: UpgradePolicy, digest: Digest, upgradeTicketName: String): GrpcTransactionBuilder Authorize a package upgrade by calling 0x2::package::authorize_upgrade. |
| commitUpgrade | abstract fun commitUpgrade(upgradeCapability: PtbArgument, upgradeReceipt: PtbArgument): GrpcTransactionBuilder Commit a package upgrade by calling 0x2::package::commit_upgrade, consuming the UpgradeReceipt returned by upgrade(). |
| divideCoin | abstract fun divideCoin(coin: PtbArgument, count: ULong, coinType: TypeTag? = null): GrpcTransactionBuilder Divide a coin into count coins of equal value, all kept by the sender. |
| dryRun | abstract suspend fun dryRun(skipChecks: Boolean = false): GrpcSimulatedTransaction Dry run the transaction. |
| execute | abstract suspend fun execute(signer: TransactionSigner, waitFor: WaitForTransaction? = null): TransactionEffects Execute the transaction and optionally wait for finalization. |
| executeWithGasStation | abstract suspend fun executeWithGasStation(gasStation: GasStation, signer: TransactionSigner): TransactionEffects Execute the transaction with its gas paid by gas_station, and wait for finalization. |
| executeWithSponsorSigner | abstract suspend fun executeWithSponsorSigner(signer: TransactionSigner, sponsorSigner: TransactionSigner, waitFor: WaitForTransaction? = null): TransactionEffects Execute the transaction with both the sender's and the sponsor's signature, and optionally wait for finalization. |
| expiration | abstract fun expiration(epoch: ULong): GrpcTransactionBuilder Set the expiration of the transaction to be a specific epoch. |
| finish | abstract suspend fun finish(): Transaction Convert this builder into a transaction. |
| finishWithBudget | abstract suspend fun finishWithBudget(gasBudget: ULong): Transaction Convert this builder into a transaction with the given gas budget, used as-is (no estimation or minimum clamp) and overriding any budget set via gas_budget. |
| gas | abstract fun gas(objectIds: List<ObjectId>): GrpcTransactionBuilder Add gas coins that will be consumed. Optional. |
| gasBudget | abstract fun gasBudget(budget: ULong): GrpcTransactionBuilder Set the gas budget for the transaction. |
| gasPrice | abstract fun gasPrice(price: ULong): GrpcTransactionBuilder Set the gas price for the transaction. |
| makeMoveVec | abstract fun makeMoveVec(elements: List<MoveArg>, typeTag: TypeTag, name: String): GrpcTransactionBuilder Make a move vector from a list of elements. The elements must all be of the type indicated by type_tag. |
| mergeCoins | abstract fun mergeCoins(primaryCoin: PtbArgument, consumedCoins: List<PtbArgument>): GrpcTransactionBuilder Merge multiple coins into one. |
| moveCall | abstract fun moveCall(package: Address, module: Identifier, function: Identifier, arguments: List<PtbArgument> = listOf(), typeArgs: List<TypeTag> = listOf(), names: List<String> = listOf()): GrpcTransactionBuilder Call a Move function with the given arguments. |
| pay | abstract fun pay(coins: List<PtbArgument>, payments: List<Payment>): GrpcTransactionBuilder Send coins to multiple recipients, each paired with the amount to send. |
| payIota | abstract fun payIota(payments: List<Payment>): GrpcTransactionBuilder Send IOTA to multiple recipients, each paired with the amount to send. |
| publishPackage | abstract fun publishPackage(packageData: MovePackageData, upgradeCapName: String): GrpcTransactionBuilder Publish a list of modules with the given dependencies. The result assigned to upgrade_cap_name is the 0x2::package::UpgradeCap Move type. Note that the upgrade capability needs to be handled after this call: |
| sendCoins | abstract fun sendCoins(coins: List<PtbArgument>, recipient: Address, amount: PtbArgument? = null): GrpcTransactionBuilder Transfer some coins to a recipient address. If multiple coins are provided then they will be merged. |
| sender | abstract fun sender(sender: Address): GrpcTransactionBuilder Set the sender address. |
| sendIota | abstract fun sendIota(recipient: Address, amount: PtbArgument): GrpcTransactionBuilder Send IOTA to a recipient address. |
| splitCoins | abstract fun splitCoins(coin: PtbArgument, amounts: List<PtbArgument>, names: List<String> = listOf()): GrpcTransactionBuilder Split a coin into many. |
| sponsor | abstract fun sponsor(sponsor: Address): GrpcTransactionBuilder Set the sponsor of the transaction. |
| stake | abstract fun stake(stake: PtbArgument, validatorAddress: Address): GrpcTransactionBuilder Add stake to a validator's staking pool. |
| transferObjects | abstract fun transferObjects(recipient: Address, objects: List<PtbArgument>): GrpcTransactionBuilder Transfer a list of objects to the given address, without producing any result. |
| unstake | abstract fun unstake(stakedIota: PtbArgument): GrpcTransactionBuilder Withdraw stake from a validator's staking pool. |
| upgrade | abstract fun upgrade(packageId: ObjectId, packageData: MovePackageData, upgradeTicket: PtbArgument, name: String? = null): GrpcTransactionBuilder Upgrade a Move package. |
| upgradePackage | abstract fun upgradePackage(packageId: ObjectId, packageData: MovePackageData, upgradeCapability: PtbArgument, upgradePolicy: UpgradePolicy): GrpcTransactionBuilder Upgrade a Move package. |