estimatePrivacyTxComplexity()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / solanaOptimizations / estimatePrivacyTxComplexity
Function: estimatePrivacyTxComplexity()
Section titled “Function: estimatePrivacyTxComplexity()”estimatePrivacyTxComplexity(
options):TransactionComplexity
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:23718
Estimate compute units for a privacy transaction
Parameters
Section titled “Parameters”options
Section titled “options”Transaction options
transferCount
Section titled “transferCount”number
Number of transfers in batch
createsATAs
Section titled “createsATAs”boolean
Whether creating new ATAs
newATACount?
Section titled “newATACount?”number
Number of new ATAs to create
includesMemo
Section titled “includesMemo”boolean
Whether includes memo
customInstructionCount?
Section titled “customInstructionCount?”number
Custom instruction count
Returns
Section titled “Returns”TransactionComplexity
Transaction complexity estimate