# offerHash

offerHash in @provenanceauth/rails/deals, Rails. Sha256 (hex) of the offer's canonical JSON payload: the value the acceptance token binds.

## Signature

```ts
offerHash(payload: OfferPayload | Record<string, unknown>): Promise<string>
```

## Parameters

- `payload` (OfferPayload | Record<string, unknown>)

## Returns

`Promise<string>`

Runs locally, with no request to the API.
