Class TransactionBuilder
- Namespace
- Aptos
- Assembly
- Aptos.dll
public static class TransactionBuilder
- Inheritance
-
TransactionBuilder
- Inherited Members
-
Methods
BuildRawTransaction(AptosClient, TransactionPayload, AccountAddress, bool, GenerateTransactionOptions?)
public static Task<SimpleTransaction> BuildRawTransaction(AptosClient client, TransactionPayload payload, AccountAddress sender, bool withFeePayer = false, TransactionBuilder.GenerateTransactionOptions? options = null)
Parameters
client
AptosClient
payload
TransactionPayload
sender
AccountAddress
withFeePayer
bool
options
TransactionBuilder.GenerateTransactionOptions
Returns
- Task<SimpleTransaction>
BuildRawTransaction(AptosClient, TransactionPayload, AccountAddress, List<AccountAddress>, bool, GenerateTransactionOptions?)
public static Task<MultiAgentTransaction> BuildRawTransaction(AptosClient client, TransactionPayload payload, AccountAddress sender, List<AccountAddress> secondarySignerAddresses, bool withFeePayer = false, TransactionBuilder.GenerateTransactionOptions? options = null)
Parameters
client
AptosClient
payload
TransactionPayload
sender
AccountAddress
secondarySignerAddresses
List<AccountAddress>
withFeePayer
bool
options
TransactionBuilder.GenerateTransactionOptions
Returns
- Task<MultiAgentTransaction>
GenerateRawTransaction(AptosClient, AccountAddress, TransactionPayload, AccountAddress?, GenerateTransactionOptions?)
public static Task<RawTransaction> GenerateRawTransaction(AptosClient client, AccountAddress sender, TransactionPayload payload, AccountAddress? feePayerAddress, TransactionBuilder.GenerateTransactionOptions? options = null)
Parameters
client
AptosClient
sender
AccountAddress
payload
TransactionPayload
feePayerAddress
AccountAddress
options
TransactionBuilder.GenerateTransactionOptions
Returns
- Task<RawTransaction>
GenerateSignedTransactionForSimulation(SimulateTransactionData)
public static SignedTransaction GenerateSignedTransactionForSimulation(SimulateTransactionData data)
Parameters
data
SimulateTransactionData
Returns
- SignedTransaction
GenerateTransaction(AptosClient, AccountAddress, GenerateEntryFunctionPayloadData, bool, GenerateTransactionOptions?)
public static Task<SimpleTransaction> GenerateTransaction(AptosClient client, AccountAddress sender, GenerateEntryFunctionPayloadData data, bool withFeePayer = false, TransactionBuilder.GenerateTransactionOptions? options = null)
Parameters
client
AptosClient
sender
AccountAddress
data
GenerateEntryFunctionPayloadData
withFeePayer
bool
options
TransactionBuilder.GenerateTransactionOptions
Returns
- Task<SimpleTransaction>
GenerateTransaction(AptosClient, AccountAddress, GenerateEntryFunctionPayloadData, List<AccountAddress>, bool, GenerateTransactionOptions?)
public static Task<MultiAgentTransaction> GenerateTransaction(AptosClient client, AccountAddress sender, GenerateEntryFunctionPayloadData data, List<AccountAddress> secondarySignerAddresses, bool withFeePayer = false, TransactionBuilder.GenerateTransactionOptions? options = null)
Parameters
client
AptosClient
sender
AccountAddress
data
GenerateEntryFunctionPayloadData
secondarySignerAddresses
List<AccountAddress>
withFeePayer
bool
options
TransactionBuilder.GenerateTransactionOptions
Returns
- Task<MultiAgentTransaction>
GenerateTransaction(AptosClient, AccountAddress, GenerateScriptPayloadData, bool, GenerateTransactionOptions?)
public static Task<SimpleTransaction> GenerateTransaction(AptosClient client, AccountAddress sender, GenerateScriptPayloadData data, bool withFeePayer = false, TransactionBuilder.GenerateTransactionOptions? options = null)
Parameters
client
AptosClient
sender
AccountAddress
data
GenerateScriptPayloadData
withFeePayer
bool
options
TransactionBuilder.GenerateTransactionOptions
Returns
- Task<SimpleTransaction>
GenerateTransactionPayload(AptosClient, GenerateEntryFunctionPayloadData)
public static Task<TransactionEntryFunctionPayload> GenerateTransactionPayload(AptosClient client, GenerateEntryFunctionPayloadData data)
Parameters
client
AptosClient
data
GenerateEntryFunctionPayloadData
Returns
- Task<TransactionEntryFunctionPayload>
GenerateTransactionPayload(AptosClient, GenerateMultisigPayloadData)
public static TransactionPayload GenerateTransactionPayload(AptosClient client, GenerateMultisigPayloadData data)
Parameters
client
AptosClient
data
GenerateMultisigPayloadData
Returns
- TransactionPayload
GenerateTransactionPayload(AptosClient, GenerateScriptPayloadData)
public static TransactionScriptPayload GenerateTransactionPayload(AptosClient _, GenerateScriptPayloadData data)
Parameters
_
AptosClient
data
GenerateScriptPayloadData
Returns
- TransactionScriptPayload
GenerateViewFunctionPayload(AptosClient, GenerateViewFunctionPayloadData)
public static Task<EntryFunction> GenerateViewFunctionPayload(AptosClient client, GenerateViewFunctionPayloadData data)
Parameters
client
AptosClient
data
GenerateViewFunctionPayloadData
Returns
- Task<EntryFunction>
GeneratedSignedTransaction(SubmitTransactionData)
public static SignedTransaction GeneratedSignedTransaction(SubmitTransactionData data)
Parameters
data
SubmitTransactionData
Returns
- SignedTransaction
GetAuthenticatorForSimulation(OneOf<PublicKey, IVerifyingKey>)
public static AccountAuthenticator GetAuthenticatorForSimulation(OneOf<PublicKey, IVerifyingKey> publicOrVerifyingKey)
Parameters
publicOrVerifyingKey
OneOf<PublicKey, IVerifyingKey>
Returns
- AccountAuthenticator