> For the complete documentation index, see [llms.txt](https://dambio.gitbook.io/dambi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dambio.gitbook.io/dambi/undefined/tutorial.md). Agents can also search and read this documentation through its [MCP server](https://dambio.gitbook.io/dambi/~gitbook/mcp).

# 5분 튜토리얼: 정책으로 보호받기

정책 허브에서 정책을 받아 실제 트랜잭션에서 경고를 받아보는 실습

이 튜토리얼에서는 정책 허브에서 정책을 하나 설치하고, **실제 트랜잭션에서 경고가 뜨는 것**까지 직접 확인합니다. [설치](https://dambio.gitbook.io/dambi/undefined/install.md)가 끝났다고 가정합니다.

***

## 1단계 · 가입 및 대시보드

확장 아이콘을 눌러 팝업을 연 뒤 **대시보드 열기**([대시보드 구조](https://dambio.gitbook.io/dambi/undefined-1/dashboard.md))를 누릅니다.

상단에서 **Google 로그인**을 진행합니다.

<figure><img src="https://2239293212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4tJvLlfkuv4N3G94bjFr%2Fuploads%2FD70YrKVU3vAiNvsLMgoX%2Fimage.png?alt=media&amp;token=0c638dad-4ee5-4ef0-95c5-159301d797e9" alt="" width="188"><figcaption></figcaption></figure>

## 2단계 · 정책 허브에서 정책 찾기

대시보드 왼쪽 메뉴에서 **정책 허브(**[정책 허브에서 정책 찾기·설치하기](#id-2))로 이동합니다.

실습용으로 **"승인 한도 경고"** 류(예: *일정 USD를 넘는 토큰 승인 시 경고*) 정책을 골라봅니다.

## 3단계 · 정책 설치하기

정책 상세 페이지에서 정의·범위·대상·사용 데이터 설명과 리뷰를 확인할 수 있습니다.

1. **설치(Install)** 를 누릅니다.
2. **파라미터 맞춤 설정** | 예: 경고 기준 금액을 `100 USD`로 지정.
3. 설치하면 정책이 에디터로 복사되고 확장프로그램에 저장됩니다(로컬 `ps2:*` 저장소).

## 4단계 · 지갑별 정책 켜기

사용자가 원하는 지갑에 정책을 켜고 끌 수 있습니다.

1. 정책 설정에서 원하는 지갑의 패키지에 정책이 있는지 확인합니다.
2. 팝업 / Home / 정책 설정 페이지 중 하나에서 해당 정책 패키지 토글을 on으로 바꿉니다.

자세한 의미는 [정책 켜기·끄기와 지갑별 설](https://dambio.gitbook.io/dambi/undefined-1/managing-policies.md)을 확인하세요

## 5단계 · 실제 트랜잭션에서 확인하기

이제 진짜로 잡히는지 봅니다.

1. dApp에 접속해 방금 정책에 해당하는 행동(예: 기준 금액을 넘는 토큰 승인)을 시도합니다.
2. 지갑 서명 창이 뜨기 전/직후에 DAMBI의 **확인(confirm) 화면**이 나타납니다.
3. 화면에는 다음이 표시됩니다.
   * 해석된 행동 ("USDC를 0x… 에게 승인" 같은 사람이 읽을 수 있는 설명)
   * 판정 결과와 **이유**(어떤 정책의 어떤 규칙이 걸렸는지)
   * **계속 진행 / 취소** 선택

`Warn`이면 사용자가 직접 진행 여부를 선택할 수 있고, `Fail`이면 차단됩니다.

자세한 의미는 [판정 이해하기](https://dambio.gitbook.io/dambi/undefined/verdicts.md)를 확인하세요.

## 6단계 · 기록 확인하기

대시보드 **'기록'에**서 가로챈 모든 트랜잭션/서명과 그 판정·이유를 다시 확인할 수 있습니다. 경고를 무시하고 진행한 결정도 기록으로 남습니다.

자세한 의미는 [기록 확인하기](https://dambio.gitbook.io/dambi/undefined-1/history.md)를 확인하세요

## 다음 단계

* 판정의 정확한 의미가 궁금하다면 → [판정 이해하기 (Pass / Warn / Fail)](https://dambio.gitbook.io/dambi/undefined/verdicts.md)
* 직접 정책을 만들고 싶다면 → 대시보드의 **에디터**에서 문장형 폼으로 작성할 수 있습니다.
* 내부 동작이 궁금하다면 → [아키텍처 개요](https://dambio.gitbook.io/dambi/undefined-3/architecture.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dambio.gitbook.io/dambi/undefined/tutorial.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
