# Transaction approval

If the user approves the transaction request, the **PKSA** must check if the App requested it to broadcast the transaction to the blockchain.

If so, it must try to do it and inform the **HAS** upon success or failure.

If not, the **PKSA** must inform the **HAS** of the user's approval and return a signed transaction object.

In both cases, it will send the following message:

### sign\_ack

```js
{
    cmd: "sign_ack",
    uuid: string,
    data : object,
    broadcast: boolean,
    pok: string
}
```

{% tabs %}
{% tab title="Properties" %}

* **`uuid`**: the transaction request identifier
* **`data`**: the transactions id (`txid`) if `broadcast` is `true` or a signed transaction object (`signed_tx)` if `broadcast` is `false`.
* **`broadcast`**: `true` if the transaction was broadcasted by the PKSA, otherwise `false`
* **`pok`**: the `uuid` encrypted using the account private key and the HAS server public key (see [Proof of Key](/has-for-wallets-pksa/proof-of-key.md))
  {% endtab %}
  {% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hiveauth.com/has-for-wallets-pksa/transactions/transaction-approval.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
