# Demo using UI

## 1. Overview <a href="#id-1.-overview" id="id-1.-overview"></a>

Relayer accounts are Hedera accounts designated to execute on-chain transactions associated with specific policy subflows during runtime.

They are typically used to isolate and organize on-chain activities across multiple projects. This separation allows different Hedera accounts to be assigned for financing and executing blockchain operations - such as posting messages, minting tokens, or performing other policy-driven actions - within the context of distinct projects.

### 1.1 Creation

Users can add Relayer Accounts using the corresponding button on their profile page.

<figure><img src="/files/qMfA06iIGGFqFexu4xus" alt=""><figcaption></figcaption></figure>

To add an existing account, the account name, the Hedera account ID, and its private key must be provided.

<figure><img src="/files/Ez3OjKKM6Dqg2KSPllvX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GJ9rJ3klOB0M8uwN8wHx" alt=""><figcaption></figcaption></figure>

It is also possible to create a new Hedera account and set it up as one of the relayer account for the user.

{% hint style="info" %}
Note 1: hbar balance of the new account would be 0 and would need to be toped-up (externally to Guardian) for the account to become useable.
{% endhint %}

<figure><img src="/files/AzLpUj76raHUQjNGANmD" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note 2: make sure that the private key of the generated account is securely saved somewhere. Guardian does not have facilities to recover the lost key.
{% endhint %}

### 1.2 Configuration <a href="#id-1.2-configuration" id="id-1.2-configuration"></a>

To enable Guardian users to use Relayer Accounts when executing policy workflow, the policy must have ‘Custom Relayer Account’ option switched on in the corresponding *requestVcDocumentBlock*, for example that which is responsible for project document. 

<figure><img src="/files/BV3XGSIuxckz4Hy2cZzS" alt=""><figcaption></figcaption></figure>

All linked documents will inherit parent’s Relayer Account, there is no need to configure this setting for each of them specifically. I.e. it is only required to be set for the main (i.e. project) document.

### 1.3 Usage <a href="#id-1.3-usage" id="id-1.3-usage"></a>

For policies with enabled ‘Relayer Accounts’ option users will be presented with the options to select account options

<figure><img src="/files/vSgoAcetfGv0eTlee8hD" alt=""><figcaption></figcaption></figure>

1. User account – default behaviour backward compatible with previous Guardian versions. In this configuration individual user accounts will be used for each operation on Hedera corresponding to the user performing them.

<figure><img src="/files/YmJnEhHsvyH7fzGlbz7r" alt=""><figcaption></figcaption></figure>

2. Existing relayer account – users can add one of previously added Relayer Accounts.

<figure><img src="/files/CWd2xO75XfxSwgAdr4CK" alt=""><figcaption></figcaption></figure>

3. New relayer account – the account can be added directly from this form.

<figure><img src="/files/QcrijCI0iDGq5GcSopiB" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*Note*: Make sure the selected account is funded, the account has hbar balance sufficient to finance on-chain operations required by the policy workflows.
{% endhint %}

## 2. Viewing <a href="#id-2.-viewing" id="id-2.-viewing"></a>

### 2.1 Document to account associations <a href="#id-2.1-document-to-account-associations" id="id-2.1-document-to-account-associations"></a>

Document view shows which Relayer Account is associated with it.

<figure><img src="/files/hoAhZqE4HUgs2rikeurO" alt=""><figcaption></figcaption></figure>

### 2.2 Standard Registry (SR) functionality <a href="#id-2.2-standard-registry-sr-functionality" id="id-2.2-standard-registry-sr-functionality"></a>

Standard Registry can view all Relayer Accounts and balances for all users operating in its domain.

<figure><img src="/files/pycV7TKQPEHzhGx1WDln" alt=""><figcaption></figcaption></figure>

## 3. Tokens <a href="#id-3.-tokens" id="id-3.-tokens"></a>

Unless the policy is configured to send minted tokens to a specific account, tokens minted under Relayer Account configuration will be sent to the Relayer Account associated with the VC document on the basis of which the mint operation has been triggered.

<figure><img src="/files/O1dmfuigZJzjDE8MujS7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dKoJHnAL2G6wO7kvBTQx" alt=""><figcaption></figcaption></figure>


---

# 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.guardianservice.app/technical-information/project-account-relayer-account/demo-using-ui.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.
