# acceptDelegation

acceptDelegation in @provenanceauth/rails/a2a, Rails. The receiver's check of a message's grant: it is present, checks against the JWKS (signature, expiry, `need`), is bound to this receiver's own key (`cnf.jkt` is its thumbprint: a grant bound to anyone else, or a bearer grant, is refused), and, when the receiver checks online or the grant says `status_check: "online"`, its chain is live.

## Signature

```ts
acceptDelegation(message: unknown, opts: AcceptGrantOptions): Promise<DelegationVerdict>
```

## Parameters

- `message` (unknown)
- `opts` (AcceptGrantOptions)

## Returns

`Promise<DelegationVerdict>`

Runs locally, with no request to the API.
