SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/nomos-guild/cgov-api --skill meshwallet명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | MeshWallet |
| description | Cardano wallet integration with @meshsdk/wallet |
| version | 1.0.0 |
| triggers | ["wallet","browser wallet","mesh wallet","connect wallet","sign transaction","sign data","cip-30","eternl","nami","flint","mnemonic","seed phrase"] |
AI-assisted Cardano wallet integration using @meshsdk/wallet.
npm install @meshsdk/wallet
# or
npm install @meshsdk/core # includes wallet + transaction + provider
| Type | Class | Use Case |
|---|---|---|
| Browser | MeshCardanoBrowserWallet | Web apps - connect to Eternl, Nami, Flint, etc. |
| Headless | MeshCardanoHeadlessWallet | Server-side, CLI, backend - from mnemonic/keys |
import { MeshCardanoBrowserWallet } from '@meshsdk/wallet';
// List installed wallets
const wallets = MeshCardanoBrowserWallet.getInstalledWallets();
// → [{ id: 'eternl', name: 'Eternl', icon: '...', version: '...' }, ...]
// Connect to wallet
const wallet = await MeshCardanoBrowserWallet.enable('eternl');
// Get addresses (Bech32)
const addresses = await wallet.getUsedAddressesBech32();
const changeAddr = await wallet.getChangeAddressBech32();
const stakeAddrs = await wallet.getRewardAddressesBech32();
// Get UTxOs and balance (Mesh format)
const utxos = await wallet.getUtxosMesh();
const balance = await wallet.getBalanceMesh();
const collateral = await wallet.getCollateralMesh();
// Sign and submit
const signedTx = await wallet.signTxReturnFullTx(unsignedTxHex);
const txHash = await wallet.submitTx(signedTx);
// Sign data (CIP-8)
const signature = await wallet.signData(address, 'Hello Cardano!');
import { MeshCardanoHeadlessWallet } from '@meshsdk/wallet';
import { BlockfrostProvider } from '@meshsdk/core';
const provider = new BlockfrostProvider('your-api-key');
// From mnemonic
const wallet = await MeshCardanoHeadlessWallet.fromMnemonic({
mnemonic: ['word1', 'word2', ...], // 24 words
networkId: 0, // 0 = testnet, 1 = mainnet
walletAddressType: 'Base', // 'Base' or 'Enterprise'
fetcher: provider,
submitter: provider,
});
// Same API as browser wallet
const address = await wallet.getChangeAddressBech32();
const utxos = await wallet.getUtxosMesh();
const signedTx = await wallet.signTxReturnFullTx(unsignedTxHex);
Standard wallet interface methods:
| Method | Returns | Description |
|---|---|---|
getNetworkId() | number | 0 = testnet, 1 = mainnet |
getUtxos() | string[] | UTxOs in CBOR hex |
getCollateral() | string[] | Collateral UTxOs in CBOR hex |
getBalance() | string | Balance in CBOR hex |
getUsedAddresses() | string[] | Addresses in hex |
getUnusedAddresses() | string[] | Addresses in hex |
getChangeAddress() | string | Address in hex |
getRewardAddresses() | string[] | Stake addresses in hex |
signTx(tx, partial) | string | Witness set in CBOR hex |
signData(addr, data) | DataSignature | CIP-8 signature |
submitTx(tx) | string | Transaction hash |
Enhanced methods for better developer experience:
| Method | Returns | Description |
|---|---|---|
getUtxosMesh() | UTxO[] | UTxOs in Mesh format |
getCollateralMesh() | UTxO[] | Collateral in Mesh format |
getBalanceMesh() | Asset[] | Balance in Mesh format |
getUsedAddressesBech32() | string[] | Bech32 addresses |
getUnusedAddressesBech32() | string[] | Bech32 addresses |
getChangeAddressBech32() | string | Bech32 address |
getRewardAddressesBech32() | string[] | Bech32 stake addresses |
signTxReturnFullTx(tx, partial) | string | Full signed tx (not just witness) |
enable() prompts the user