# x402BindingHash

x402BindingHash in @provenanceauth/rails/x402, Rails. Sha256(canonical JSON) of the binding, the value a bound token carries as `payload_hash`.

## Signature

```ts
x402BindingHash(b: X402Binding): Promise<string>
```

## Parameters

- `b` (X402Binding)

## Returns

`Promise<string>`

Runs locally, with no request to the API.
