> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# SendElement

> 계정에서 수신자에게 자금을 보냅니다. 수신자는 사용자, 다른 계정 또는 누구나 받을 수 있는 공개 수령 링크일 수 있습니다. 직접 이체는 출금 계정에 구성된 법정 화폐 또는 암호화폐 수단을 사용합니다. 계정 자체 토큰 외의 자격 증명 없이 계정 ID로 확인되는 자체 수신자 검색을 렌더링합니다. 직접 이체에는 `payout:transfer_funds`, 수신자 목록에는 `payout:withdraw_funds` 스코프가 지정된 `accessToken`이 필요합니다. 계정 수신자 검색에는 추가로 `company:authorized_user:read`와 `member:basic:read`가, 계정 수령 링크에는 `airdrop_link:manage`가 필요합니다. 이 스코프 중 하나가 없는 호스트는 403 오류를 낼 행을 남겨 두지 말고 해당 prop을 끄세요.

> [!NOTE]
>
> 이 페이지는 `@whop/elements@1.10.0` 및 `@whop/elements-react@1.10.0`을 다룹니다.

*Since `v1.0.0`.*

[`Wallet`](https://docs.whop.com/ko/elements/latest/wallet/overview) 안에 마운트됩니다. `accountId`와 `accessToken`은 Wallet에서 가져옵니다. props와 콜백은 생성 옵션 또는 React props로 전달합니다. `refresh()`를 호출하려면 생성된 핸들 또는 React `ref`를 보관하세요.

> [!NOTE]
>
> 이 엘리먼트는 **인라인**으로 마운트(`create`)하거나 **모달** 오버레이로 열 수(`createOverlay`) 있습니다.

```tsx React theme={null}
import { WhopElements, Wallet, SendElement } from "@whop/elements-react";
import { loadWhop } from "@whop/elements";

function Example() {
  return (
    <WhopElements elements={loadWhop()}>
      <Wallet /* options */>
        <SendElement onStepChanged={(e) => console.log(e)} onSendCompleted={(e) => console.log(e)} onLinkCreated={(e) => console.log(e)} onDone={(e) => console.log(e)} />
      </Wallet>
    </WhopElements>
  );
}
```

```html JavaScript theme={null}
<script src="https://cdn.whop.com/elements/amber/elements.js" data-whop-elements></script>
<script type="module">
  const wallet = window.WhopElements().wallet.create({ /* options */ });
  wallet.create('send', {
    onStepChanged: (e) => console.log(e),
    onSendCompleted: (e) => console.log(e),
    onLinkCreated: (e) => console.log(e),
    onDone: (e) => console.log(e)
  }).mount('#wallet-send');
</script>
```

예시 데이터입니다. [Playground 열기](https://docs.whop.com/ko/elements/latest/wallet/overview#playground).

## Props

**accessToken** `string`

권한이 필요한 읽기/쓰기에 사용되는 범위 지정 토큰입니다. 직접 이체에는 `payout:transfer_funds`, 수신자 목록에는 `payout:withdraw_funds`, 수령 링크에는 `airdrop_link:manage`가 필요합니다. 생략하면 읽기에 뷰어 자신의 세션이 사용되며, 이는 동일 출처에서만 응답합니다.

**title** `string`

수신자 선택기 헤더를 재정의합니다. 생략하면 헤더는 "Choose recipient"입니다.

**canSearchRecipients** `boolean`

수신자 조회를 활성화합니다. 저장된 수신자가 6명 미만이면 사람과 비즈니스를 추천하고, Add recipient에서 입력하면 검색합니다. 기본값은 `true`입니다.

**canCreateLink** `boolean`

수신자 선택기에 수령 링크 작업을 표시합니다. `airdrop_link:manage`가 없는 호스트에서는 끄세요. 기본값은 `true`입니다.

**initialRecipient** `SendRecipient | null`

선택기를 건너뛰고 이 수신자의 금액 화면으로 바로 엽니다. "이 사람에게 송금" 작업 행에 사용하세요. 이 경우 뒤에 선택기가 없으므로 뒤로 가기 버튼이 표시되지 않습니다. 기본값은 `null`입니다.

**속성**

**id** `string` *required*

**name** `string | null` *required*

**username** `string | null` *required*

**profilePicUrl** `string | null` *required*

**kind** `"email" | "business" | "user"` *required*

**initialCurrency** `string`

금액 화면의 선택기에서 통화를 미리 선택합니다. 설정하지 않으면 `currency`, 그다음 USD가 사용됩니다. 기본값은 `""`입니다.

## 이벤트

생성 옵션 또는 React props로 콜백을 전달합니다.

### `onStepChanged`

표시되는 화면이 변경되었습니다.

**payload** `object`

**속성**

**step** `string` *required*

`"success"`, `"enter_amount"`, `"select_recipient"`, `"add_recipient"`, `"create_link"` 또는 `"link_success"` 중 하나입니다.

### `onSendCompleted`

이체가 성공했습니다. 계정의 잔액이나 활동을 읽는 자체 화면을 새로 고치세요.

**payload** `object`

**속성**

**recipient** `SendRecipient | Omit\<SendRecipient, "kind"\> & object` *required*

**SendRecipient**

**id** `string` *required*

**name** `string | null` *required*

**username** `string | null` *required*

**profilePicUrl** `string | null` *required*

**kind** `"email" | "business" | "user"` *required*

**형태 2**

**id** `string` *required*

**name** `string | null` *required*

**username** `string | null` *required*

**profilePicUrl** `string | null` *required*

**kind** `"bill_pay"` *required*

**nickname** `string | null`

**after** `string`

**methodName** `string` *required*

**destinationCurrency** `string` *required*

**amount** `number` *required*

**currency** `string` *required*

### `onLinkCreated`

수령 링크가 생성되었습니다. 계정의 잔액을 읽는 자체 화면을 새로 고치세요.

**payload** `object`

**속성**

**claimUrl** `string` *required*

**amount** `number` *required*

**redeemableCount** `number` *required*

### `onDone`

뷰어가 성공 화면에서 "Done"을 클릭했습니다. 엘리먼트를 담고 있는 화면을 닫으세요.

### `onLoaderStart`

로딩 스켈레톤이 처음 그려진 후, `onReady` 전에 실행됩니다.

### `onReady`

엘리먼트가 처음으로 완전히 그려진 후 실행됩니다.

### `onError`

엘리먼트가 로드에 실패하거나 충돌할 때 실행됩니다. 대체 화면은 계속 표시됩니다. 프로그래밍 방식으로 처리하려면 `code`를 사용하세요. `sourceKey`는 실패한 호스트 상태 소스를 식별합니다.

**e** `object`

**속성**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## 메서드

`create`가 반환한 핸들에서, 또는 React `ref`를 통해 호출합니다.

### `refresh`

계정의 잔액과 수신자 목록을 다시 가져옵니다. 제공할 수 있는 내용을 바꾸는 변경이 있은 후 호출하세요.

**반환값** `Promise<void>`

### `mount`

`target`에 엘리먼트를 마운트하고 로딩을 시작합니다. React 컴포넌트는 자동으로 마운트됩니다.

**매개변수**

**target** `string | HTMLElement` *required*

### `destroy`

엘리먼트를 제거하고 프레임과 구독을 해제합니다. 여러 번 호출해도 됩니다. React는 엘리먼트를 자동으로 제거합니다.

### `update`

마운트된 엘리먼트에 새 props를 병합합니다. React에서는 대신 컴포넌트 props를 변경하세요.

**매개변수**

**options** `Partial\<SendElementProps\>` *required*

## 스타일링

`appearance.classes`를 통해 다음 부분의 스타일을 지정합니다. 속성 이름은 카멜 케이스 또는 케밥 케이스를 사용하고 단위를 포함하세요. 페이지 스타일시트는 엘리먼트의 프레임에 적용되지 않습니다. 프레임워크는 각 선언을 삽입하기 전에 유효성을 검사합니다.

| 클래스 | 대상 |
| - | - |
| `.whop-AddressSuggestion` | 자동 완성 오버레이의 추천 행 하나 |
| `.whop-AddressSuggestionActive` | 키보드/포인터로 활성화된 추천 행에 추가됨 |
| `.whop-AddressSuggestionManual` | 추천 목록 맨 끝의 "Enter address manually" 행 |
| `.whop-AddressSuggestionsEmpty` | 검색 결과 일치하는 주소가 없을 때 표시되는 안내 문구 |
| `.whop-SendSurface` | send 엘리먼트 루트 — 한 번에 한 화면 |

```ts theme={null}
const wallet = whop.wallet.create({
  appearance: {
    classes: {
      'whop-AddressSuggestion': { borderRadius: '8px', fontWeight: '600' },
      'whop-AddressSuggestionActive': { borderRadius: '8px', fontWeight: '600' },
      'whop-AddressSuggestionManual': { borderRadius: '8px', fontWeight: '600' }
    }
  }
});

// 5 classes use this shape
wallet.update({
  appearance: {
    classes: { 'whop-AddressSuggestion': { fontWeight: '700' } }
  }
});
```

React에서는 `appearance`를 `<Wallet>`에 전달합니다. 전역으로 설정하려면 `WhopElements({ appearance })`를 사용하세요.
