# x402ProfileOf

x402ProfileOf in @provenanceauth/rails/x402, Rails. Agent side: the business's discovery block in a 402's extension, or null (older merchants send none).

## Signature

```ts
x402ProfileOf(paymentRequired: Pick<X402PaymentRequired, "extensions"> | null | undefined): DiscoveryBlock | null
```

## Parameters

- `paymentRequired` (Pick<X402PaymentRequired, "extensions"> | null | undefined)

## Returns

`DiscoveryBlock | null`

Runs locally, with no request to the API.
