Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/aptos-labs/aptos-agent-skillsnpx agentmods add skills/aptos-labs/aptos-agent-skills/ts-sdk-wallet-adapterWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aptos-labs/aptos-agent-skills/ts-sdk-wallet-adapter)<a href="https://agentmods.dev/skills/aptos-labs/aptos-agent-skills/ts-sdk-wallet-adapter"><img src="https://agentmods.dev/badge/skills/aptos-labs/aptos-agent-skills/ts-sdk-wallet-adapter/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aptos-labs/aptos-agent-skills/ts-sdk-wallet-adapter"><img src="https://agentmods.dev/badge/skills/aptos-labs/aptos-agent-skills/ts-sdk-wallet-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.01503 |
| Opus 5.5 | $0.00033 | $0.00601 |
| Sonnet 5.5 | $0.00017 | $0.00301 |
| Haiku 4.5 | $0.00008 | $0.00150 |
Grade A, and why
ts-sdk-wallet-adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript SDK: Wallet Adapter (React)
Purpose
Guide wallet connection and frontend transaction submission in React using @aptos-labs/wallet-adapter-react. End
users sign transactions via their browser wallet (Petra, Nightly, etc.) — never via raw private keys.
ALWAYS
- Use
@aptos-labs/wallet-adapter-reactfor frontend wallet integration — this is the standard React adapter. - Wrap your app root with
AptosWalletAdapterProvider— alluseWallet()calls require this context. - Use
useWallet()hook to access wallet functions in React components. - Use the wallet adapter's
signAndSubmitTransaction(fromuseWallet()) in frontend — NOT the SDK's directaptos.signAndSubmitTransaction. - Always call
aptos.waitForTransaction({ transactionHash })after submit — the wallet returns when the tx is accepted, not committed.
NEVER
- Do not use
Account.generate()or raw private keys in browser/frontend — use wallet adapter for end users. - Do not use the SDK's
aptos.signAndSubmitTransactionin React components — use the wallet adapter's version fromuseWallet(). - Do not hardcode wallet names — use the
walletsarray fromuseWallet()for a dynamic list.
Installation
npm install @aptos-labs/wallet-adapter-react
Modern AIP-62 standard wallets (Petra, Nightly, etc.) are autodetected and do NOT require additional packages. Legacy wallets need their plugin package installed separately.
Provider setup
Wrap your app root with AptosWalletAdapterProvider:
// main.tsx or App.tsx
import { AptosWalletAdapterProvider } from "@aptos-labs/wallet-adapter-react";
import { Network } from "@aptos-labs/ts-sdk";
function App() {
return (
<AptosWalletAdapterProvider
autoConnect={true}
dappConfig={{
network: Network.TESTNET
}}
onError={(error) => console.error("Wallet error:", error)}
>
<YourApp />
</AptosWalletAdapterProvider>
);
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 202 lines · 83 tokens per session scan A a2787b101e7b
ts-sdk-wallet-adapter is a skill published in the GitHub repository aptos-labs/aptos-agent-skills (20 stars, last pushed 4mo ago), licensed MIT. It adds 83 tokens to every session and 1,503 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ts-sdk-wallet-adapter compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ts-sdk-wallet-adapteraptos-labs/aptos-agent-skills | Skill | 20 | 4mo ago | MIT | A | 83 | Claude Code |
| frontend-designrylsherdamz-rgb/stellar-forge | Skill | 17 | 5d ago | MIT | A | 51 | Claude Code |
| midnight-dapp-devmzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | A | 374 | Claude Code, Codex |
| emblem-ai-reactEmblemCompany/Agent-skills | Skill | 12 | 5mo ago | MIT | A | 68 | Claude Code |
| flow-react-sdkonflow/flow-ai-tools | Skill | 6 | 3mo ago | none | A | 237 | Claude Code |
| official-sui-skillsMystenLabs/sui | Skill | 7.8k | today | Apache-2.0 | A | 116 | Claude Code, Codex |
| sui-and-move-toolsMystenLabs/sui | Skill | 7.8k | today | Apache-2.0 | A | 105 | Claude Code, Codex |