# How It Works

## Example: Borrower takes loan against his Bitcoin Frog

Signed Program Transaction:&#x20;

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

State Info before Signed Program Transaction:

```json

{
    "id":"5ba59eca41925d020feb370ab1405d9afc26f4dfcfdaac2ff68d181432c0b81b",
    "data":{
        "utxo":{
            "txid":"bf39e253fed74ead7cc7b679a7e90464a5c27e013d4aab3026c49b1bca62bf88",
            "vout":1,
            "value":1000,
            "owner":"tb1pl02mqcgmzge4837fvevtw3mjh5wcdhlumcgevv8q3q4p0kefe4jskyca6r"
        },
        "loan_value":1100,
        "loan_period":2592000,
        "lender_ordinals_address":"tb1pgkjr6r8apfvdm5fk6xk0vryrhzea5pv8rvn2vt34lsx65tclvp4sfn0hz2",
        "lender_payments_address":"2MzcAVUFfHb1ni46AXCn5z7ADQKrKvz52nn",
        "collection":"frogs",
        "inscription":null,
        "borrower_ordinals_address":null,
        "borrower_payments_address":null,
        "loan_started_at":null
    },
    "utxo":{
        "txid":"5ba59eca41925d020feb370ab1405d9afc26f4dfcfdaac2ff68d181432c0b81b",
        "vout":0,
        "value":500,
        "owner":"tb1pl02mqcgmzge4837fvevtw3mjh5wcdhlumcgevv8q3q4p0kefe4jskyca6r"
    }
}
```

State Info after Signed Program Transaction:

```json
{
    "id":"5ba59eca41925d020feb370ab1405d9afc26f4dfcfdaac2ff68d181432c0b81b",
    "data":{
        "utxo":{
            "txid":"bf39e253fed74ead7cc7b679a7e90464a5c27e013d4aab3026c49b1bca62bf88",
            "vout":1,
            "value":1000,
            "owner":
            "tb1pl02mqcgmzge4837fvevtw3mjh5wcdhlumcgevv8q3q4p0kefe4jskyca6r"
        },
        "loan_value":1100,
        "loan_period":2592000,
        "lender_ordinals_address":"tb1pgkjr6r8apfvdm5fk6xk0vryrhzea5pv8rvn2vt34lsx65tclvp4sfn0hz2",
        "lender_payments_address":"2MzcAVUFfHb1ni46AXCn5z7ADQKrKvz52nn",
        "collection":"frogs",
        "inscription": {
            "inscription_id":"39a97675c3468f72bfd739108890e3041d623c2e54913eebd00cf689d6aa26e2i0",
            "utxo":{
                "txid":"4fefcb0b026047b868a20b87bcbdcc1a1fb76ae96b58dee969a52253d2317094",
                "vout":0,
                "value":500,
                "owner":"tb1pl02mqcgmzge4837fvevtw3mjh5wcdhlumcgevv8q3q4p0kefe4jskyca6r"
            }
        },
        "borrower_ordinals_address":"tb1pgkjr6r8apfvdm5fk6xk0vryrhzea5pv8rvn2vt34lsx65tclvp4sfn0hz2",
        "borrower_payments_address":"2MzcAVUFfHb1ni46AXCn5z7ADQKrKvz52nn",
        "loan_started_at":1707568045
    },
    "utxo": {
        "txid":"7eb471480aa8926c186519629baa462cd9046ce326a0047406a10d583a364f6a",
        "vout":0,
        "value":500,
        "owner":"tb1pl02mqcgmzge4837fvevtw3mjh5wcdhlumcgevv8q3q4p0kefe4jskyca6r"
    }
}
```


---

# 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://arch-network.gitbook.io/arch-documentation/fundamentals/step-by-step-user-journey-on-arch/how-it-works.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.
