AGENT SKILL

sage-txn

Sage transaction operations. List transactions, sign coin spends, view without signing, submit transactions.

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

01 前言 Front Matter

name
sage-txn
description
Sage transaction operations. List transactions, sign coin spends, view without signing, submit transactions.

03 SKILL.md 正文

Sage Transactions

Transaction signing and submission.

Endpoints

Query Transactions

Endpoint Payload Description
get_transactions See below List transactions
get_transaction {"height": 1234567} Get by height
get_pending_transactions {} List pending

get_transactions Payload

{
  "offset": 0,
  "limit": 50,
  "ascending": false,
  "find_value": null
}

Sign & Submit

Endpoint Payload Description
sign_coin_spends See below Sign transaction
view_coin_spends {"coin_spends": [...]} Preview without signing
submit_transaction {"spend_bundle": {...}} Broadcast

sign_coin_spends

{
  "coin_spends": [
    {
      "coin": {
        "parent_coin_info": "0x...",
        "puzzle_hash": "0x...",
        "amount": 1000000000000
      },
      "puzzle_reveal": "0x...",
      "solution": "0x..."
    }
  ],
  "auto_submit": false,
  "partial": false
}
  • partial: true for multi-sig partial signatures

submit_transaction

{
  "spend_bundle": {
    "coin_spends": [...],
    "aggregated_signature": "0x..."
  }
}

Transaction Record Structure

{
  "height": 1234567,
  "timestamp": 1700000000,
  "fee": "100000000",
  "inputs": [...],
  "outputs": [...]
}

Pending Transaction Structure

{
  "transaction_id": "0x...",
  "fee": "100000000",
  "submitted_at": 1700000000,
  "coin_spends": [...]
}

Examples

# List recent transactions
sage_rpc get_transactions '{"limit": 20, "ascending": false}'

# Get pending
sage_rpc get_pending_transactions '{}'

# View coin spends (preview)
sage_rpc view_coin_spends '{"coin_spends": [...]}'

# Sign and submit
sage_rpc sign_coin_spends '{
  "coin_spends": [...],
  "auto_submit": true
}'

# Manual submit
sage_rpc submit_transaction '{"spend_bundle": {...}}'

Workflow

  1. Build coin spends (from other endpoints with auto_submit: false)
  2. Optionally view_coin_spends to preview
  3. sign_coin_spends to create spend bundle
  4. submit_transaction to broadcast (or use auto_submit: true)

Notes

  • auto_submit: true signs and broadcasts in one call
  • partial: true for multi-signature workflows
  • Pending transactions await mempool confirmation

04 同仓库更多 Skills

kbarbel640-del
kbarbel640-del/skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

★ 1
kbarbel640-del
kbarbel640-del/skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

★ 1