Validate payment capacity for a specific piece size
This function checks if the deposit is sufficient for the piece upload. It
does not account for allowances since WarmStorage is assumed to be given
full trust with max allowances.
Note: This function will attempt to automatically set max allowances
unless using session key authentication, in which case allowances must
be configured separately by the owner wallet.
Validate payment capacity for a specific piece size
This function checks if the deposit is sufficient for the piece upload. It does not account for allowances since WarmStorage is assumed to be given full trust with max allowances.
Note: This function will attempt to automatically set max allowances unless using session key authentication, in which case allowances must be configured separately by the owner wallet.
Example usage: