# Build NEAR Intents Swap Integrations

Cross-chain swap integrations require careful quote, deposit, and status handling. This skill gives Claude, Codex, and Claude Code focused NEAR Intents 1Click guidance.

## Install

```bash
npx skillstore add internet-court/near-intents
```

## Metadata

- Status: approved
- Slug: internet-court-near-intents
- Skillstore revision: r1
- Version status: missing
- Tree hash: 5064979b684c98380a1d83799f48857176e363830efdee334d13135dba87b55a
- Author: internet-court
- GitHub username: internet-court
- License: MIT
- Repository: https://github.com/internet-court/internet-court-skill/tree/main/vendored/near/near-intents
- Ref: 3f6e026a3363e0954ede7bef0cfe88d4475de137
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, env\_access
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/internet-court-near-intents
- Manifest: https://skillstore.pages.dev/api/skills/internet-court-near-intents/manifest

## Capabilities

- Explains the NEAR Intents 1Click quote, deposit, submit, and status flow.
- Provides React hook and widget patterns for token swaps with wallet connections.
- Shows server-side TypeScript examples for EVM deposits and status polling.
- Documents chain-specific deposit requirements for EVM, Solana, NEAR, TON, Tron, and Stellar.
- Covers dry quote previews, committed quotes, ANY\_INPUT withdrawals, and intents balance flows.
- Highlights memo, refund, slippage, deadline, and terminal status handling requirements.

## Use Cases

- Create a swap widget: Build a React interface that previews quotes, connects wallets, sends deposits, and shows swap status.
- Automate server-side swaps: Use TypeScript examples to request quotes, send EVM deposits, submit transaction hashes, and poll results.
- Plan multi-chain transfer flows: Compare chain-specific deposit rules before adding NEAR Intents support to a product roadmap.

## Prompt Templates

### Explain the swap flow

```
Use near-intents to explain the NEAR Intents 1Click swap lifecycle for a new developer. Include quote, deposit, submit, and status steps.
```

### Design a quote preview

```
Use near-intents to design a dry quote preview for USDC to wNEAR. Include required fields, validation, and display notes.
```

### Build a React widget

```
Use near-intents to outline a React swap widget with token loading, wallet connection, quote preview, deposit transaction, and status polling.
```

### Review a production integration

```
Use near-intents to review my planned production NEAR Intents integration. Focus on key handling, slippage, deadlines, refund addresses, and status failures.
```

## Limitations

- The examples are integration patterns, not audited production code.
- It does not replace custody, signing, or smart contract security review.
- API behavior, token support, and chain requirements can change over time.
- Users must manage private keys, API keys, compliance, and transaction approvals separately.

## Best Practices

- Use dry quotes for previews and request committed quotes only when the user is ready to swap.
- Validate chain, asset, amount, recipient, refund address, deadline, and memo before any deposit transaction.
- Keep signing keys server-side or in user wallets, and use least-privilege API key handling.

## Anti Patterns

- Do not place partner API keys in browser-exposed environment variables.
- Do not send funds to a deposit address without showing the user amount, asset, chain, and recipient details.
- Do not treat display-only USD fields as settlement, accounting, or slippage enforcement values.

## Security Audit

- Audited at: 2026-07-21T03:46:56.938\+00:00
- Summary: Static detections are false positives caused by Markdown and TypeScript syntax, expected API calls, and explicit configuration examples. The skill nevertheless documents an unattended server-side flow that signs and broadcasts live cryptocurrency transfers, so production users need strong transaction controls.

## Stats

- Views: 0
- Downloads: 9
- Favorites: 1
- Popularity score: 0
