SigningInput constructor

SigningInput({
  1. List<int>? privateKey,
  2. String? recentBlockhash,
  3. bool? v0Msg,
  4. Transfer? transferTransaction,
  5. DelegateStake? delegateStakeTransaction,
  6. DeactivateStake? deactivateStakeTransaction,
  7. DeactivateAllStake? deactivateAllStakeTransaction,
  8. WithdrawStake? withdrawTransaction,
  9. WithdrawAllStake? withdrawAllTransaction,
  10. CreateTokenAccount? createTokenAccountTransaction,
  11. TokenTransfer? tokenTransferTransaction,
  12. CreateAndTransferToken? createAndTransferTokenTransaction,
  13. CreateNonceAccount? createNonceAccount,
  14. String? sender,
  15. String? nonceAccount,
  16. WithdrawNonceAccount? withdrawNonceAccount,
  17. List<int>? feePayerPrivateKey,
  18. String? feePayer,
  19. AdvanceNonceAccount? advanceNonceAccount,
  20. RawMessage? rawMessage,
  21. Encoding? txEncoding,
  22. PriorityFeePrice? priorityFeePrice,
  23. PriorityFeeLimit? priorityFeeLimit,
  24. TokenTransferToFeePayer? tokenTransferToFeePayer,
  25. Transfer? transferToFeePayer,
})

Implementation

factory SigningInput({
  $core.List<$core.int>? privateKey,
  $core.String? recentBlockhash,
  $core.bool? v0Msg,
  Transfer? transferTransaction,
  DelegateStake? delegateStakeTransaction,
  DeactivateStake? deactivateStakeTransaction,
  DeactivateAllStake? deactivateAllStakeTransaction,
  WithdrawStake? withdrawTransaction,
  WithdrawAllStake? withdrawAllTransaction,
  CreateTokenAccount? createTokenAccountTransaction,
  TokenTransfer? tokenTransferTransaction,
  CreateAndTransferToken? createAndTransferTokenTransaction,
  CreateNonceAccount? createNonceAccount,
  $core.String? sender,
  $core.String? nonceAccount,
  WithdrawNonceAccount? withdrawNonceAccount,
  $core.List<$core.int>? feePayerPrivateKey,
  $core.String? feePayer,
  AdvanceNonceAccount? advanceNonceAccount,
  RawMessage? rawMessage,
  Encoding? txEncoding,
  PriorityFeePrice? priorityFeePrice,
  PriorityFeeLimit? priorityFeeLimit,
  TokenTransferToFeePayer? tokenTransferToFeePayer,
  Transfer? transferToFeePayer,
}) {
  final result = create();
  if (privateKey != null) result.privateKey = privateKey;
  if (recentBlockhash != null) result.recentBlockhash = recentBlockhash;
  if (v0Msg != null) result.v0Msg = v0Msg;
  if (transferTransaction != null)
    result.transferTransaction = transferTransaction;
  if (delegateStakeTransaction != null)
    result.delegateStakeTransaction = delegateStakeTransaction;
  if (deactivateStakeTransaction != null)
    result.deactivateStakeTransaction = deactivateStakeTransaction;
  if (deactivateAllStakeTransaction != null)
    result.deactivateAllStakeTransaction = deactivateAllStakeTransaction;
  if (withdrawTransaction != null)
    result.withdrawTransaction = withdrawTransaction;
  if (withdrawAllTransaction != null)
    result.withdrawAllTransaction = withdrawAllTransaction;
  if (createTokenAccountTransaction != null)
    result.createTokenAccountTransaction = createTokenAccountTransaction;
  if (tokenTransferTransaction != null)
    result.tokenTransferTransaction = tokenTransferTransaction;
  if (createAndTransferTokenTransaction != null)
    result.createAndTransferTokenTransaction =
        createAndTransferTokenTransaction;
  if (createNonceAccount != null)
    result.createNonceAccount = createNonceAccount;
  if (sender != null) result.sender = sender;
  if (nonceAccount != null) result.nonceAccount = nonceAccount;
  if (withdrawNonceAccount != null)
    result.withdrawNonceAccount = withdrawNonceAccount;
  if (feePayerPrivateKey != null)
    result.feePayerPrivateKey = feePayerPrivateKey;
  if (feePayer != null) result.feePayer = feePayer;
  if (advanceNonceAccount != null)
    result.advanceNonceAccount = advanceNonceAccount;
  if (rawMessage != null) result.rawMessage = rawMessage;
  if (txEncoding != null) result.txEncoding = txEncoding;
  if (priorityFeePrice != null) result.priorityFeePrice = priorityFeePrice;
  if (priorityFeeLimit != null) result.priorityFeeLimit = priorityFeeLimit;
  if (tokenTransferToFeePayer != null)
    result.tokenTransferToFeePayer = tokenTransferToFeePayer;
  if (transferToFeePayer != null)
    result.transferToFeePayer = transferToFeePayer;
  return result;
}