---
name: sage-walletconnect
description: Sage WalletConnect integration. Filter coins, get asset coins, sign messages, send transactions for dApp connectivity.
---

# Sage WalletConnect

WalletConnect protocol integration for dApp connectivity.

## Endpoints

### Coin Operations

| Endpoint | Payload | Description |
|----------|---------|-------------|
| `filter_unlocked_coins` | `{"coin_ids": [...]}` | Filter to unlocked |
| `get_asset_coins` | See below | Get spendable coins |

#### get_asset_coins Payload

```json
{
  "type": "cat",
  "asset_id": "a628c1c2...",
  "included_locked": false,
  "offset": 0,
  "limit": 50
}
```

Asset types: `"cat"`, `"did"`, `"nft"`

### Message Signing

| Endpoint | Payload | Description |
|----------|---------|-------------|
| `sign_message_with_public_key` | `{"message": "...", "public_key": "0x..."}` | Sign with pubkey |
| `sign_message_by_address` | `{"message": "...", "address": "xch1..."}` | Sign with address key |

### Transaction

| Endpoint | Payload | Description |
|----------|---------|-------------|
| `send_transaction_immediately` | `{"spend_bundle": {...}}` | Direct broadcast |

## Spendable Coin Structure

```json
{
  "coin": {
    "parent_coin_info": "0x...",
    "puzzle_hash": "0x...",
    "amount": 1000000000000
  },
  "coin_name": "0x...",
  "puzzle": "0x...",
  "confirmed_block_index": 1234567,
  "locked": false,
  "lineage_proof": {
    "parent_name": "0x...",
    "inner_puzzle_hash": "0x...",
    "amount": 1000
  }
}
```

## Sign Message Response

```json
{
  "public_key": "0x...",
  "signature": "0x..."
}
```

## Send Transaction Response

```json
{
  "status": 1,
  "error": null
}
```

Status: `1` = success, other = error

## Examples

```bash
# Filter unlocked coins
sage_rpc filter_unlocked_coins '{"coin_ids": ["0xabc...", "0xdef..."]}'

# Get CAT coins for WalletConnect
sage_rpc get_asset_coins '{
  "type": "cat",
  "asset_id": "a628c1c2...",
  "limit": 20
}'

# Sign message with address
sage_rpc sign_message_by_address '{
  "message": "Login to MyDApp",
  "address": "xch1abc..."
}'

# Sign with specific pubkey
sage_rpc sign_message_with_public_key '{
  "message": "Verify ownership",
  "public_key": "0x89abcdef..."
}'

# Send transaction directly
sage_rpc send_transaction_immediately '{
  "spend_bundle": {
    "coin_spends": [...],
    "aggregated_signature": "0x..."
  }
}'
```

## WalletConnect Flow

1. dApp requests connection
2. User approves in Sage
3. dApp calls `get_asset_coins` to find spendable coins
4. dApp builds transaction
5. User signs via `sign_message_*` or transaction signing
6. dApp broadcasts or calls `send_transaction_immediately`

## Notes

- WalletConnect enables dApp ↔ wallet communication
- `lineage_proof` is required for CAT spends
- Message signing proves address ownership without spending


---
Source attribution: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/koba42corp/sage-wallet/sub-skills/sage-walletconnect/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 clawdbot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/koba42corp/sage-wallet/sub-skills/sage-walletconnect/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering, Marketing, Product Management
Roles: Backend Developer, Growth Marketer, Mobile Developer, Product Manager, Product Marketer
Specialties: API, Backend
Tools: Walletconnect
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: adf24fbeed294cfeab2ea63f951f0396b4f5a5c5c7d6f9380279086dcd12d8b5
