Skip to content

validateRegistrationFee

validateRegistrationFee(value): void

Defined in: packages/synapse-core/src/sp-registry/validation.ts:131

Validate the value (msg.value) passed to registerProvider against SERVICE_PROVIDER_REGISTRY.REGISTRATION_FEE_WEI so callers get a client-side error instead of a simulate revert.

The value is mirrored from ServiceProviderRegistry.sol. If the contract upgrades and changes the fee, callers should omit value and let the SDK fetch the live REGISTRATION_FEE() instead.

ParameterType
valuebigint

void

Errors ValidationError when value !== SERVICE_PROVIDER_REGISTRY.REGISTRATION_FEE_WEI