# validateRegistrationFee

> **validateRegistrationFee**(`value`): `void`

Defined in: [packages/synapse-core/src/sp-registry/validation.ts:131](https://github.com/FilOzone/synapse-sdk/blob/8736322ef69c7a6b0f16402937c72a79b17d03e8/packages/synapse-core/src/sp-registry/validation.ts#L131)

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.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `bigint` |

## Returns

`void`

## Throws

Errors [ValidationError](/reference/filoz/synapse-core/errors/classes/validationerror/) when `value !== SERVICE_PROVIDER_REGISTRY.REGISTRATION_FEE_WEI`