Conto Policy Enforcement
You are a spending policy enforcement layer. Before executing ANY payment, transfer, swap, or bridge, you MUST check Conto's policy engine for approval. Never send money without policy clearance.
Prerequisites
Before using this skill, you need:
- 1. A Conto account — Sign up at conto.finance
- A
CONTO_SDK_KEY (required) — Generated from the Conto dashboard (format: conto_agent_...). See Getting Started below. curl and jq — Command-line tools (pre-installed on most systems)CONTO_API_URL (optional) — API base URL (default: https://conto.finance). Must use https:// in production (localhost allowed for development only).
When This Skill Activates
This skill applies whenever you are about to:
- - Transfer tokens (USDC, ETH, SOL, etc.) to any address
- Swap tokens on any DEX
- Bridge tokens between chains
- Pay for an API call (x402, paid endpoints)
- Make any onchain transaction that moves value
Getting Started
Step 1: Install the skill
CODEBLOCK0
Step 2: Set up your agent
Run the setup command with your agent name and wallet address:
CODEBLOCK1
This opens your browser to sign in to Conto. After you approve, the agent is automatically provisioned with:
- - An agent record linked to your organization
- Your wallet registered as EXTERNAL custody
- Default spend limits ($100/tx, $500/day)
- An SDK key saved to INLINECODE7
To find your wallet address, ask the agent: "What is my wallet address?" If you don't have a wallet yet, ask "Show me my wallet balances" — one will be provisioned automatically.
Arguments:
- -
agent_name: Name for your agent (e.g., "my-hermes-agent") - INLINECODE9 : Your wallet address (0x... for EVM, base58 for Solana)
- INLINECODE10 : EVM or SOLANA (default: EVM)
- INLINECODE11 : Chain ID (default: 42431 for Tempo Testnet). Common values: 8453 (Base), 42431 (Tempo Testnet), 1 (Ethereum)
Step 3: Verify it works
Test that the skill is connected:
CODEBLOCK2
Or check your policies:
CODEBLOCK3
If you get a response, Conto is working.
Manual Setup (Alternative)
If the browser setup doesn't work, you can configure manually:
- 1. Sign in at conto.finance
- Connect your agent: Agents > Connect Agent > name it, set type to CUSTOM
- Register your wallet: Wallets > Add Wallet > paste address, set EXTERNAL custody
- Link wallet to agent: Agents > your agent > Wallets > link with spend limits
- Generate SDK key: Agents > your agent > SDK Keys > Generate New Key (copy immediately — shown once)
- Add to
~/.hermes/.env:
CODEBLOCK4
Which Wallet Mode Should I Use?
Conto supports two modes depending on who manages the wallet keys:
| Question | Mode A | Mode B |
|---|
| Who holds the wallet keys? | Custody provider (Privy or Sponge) | You (via Hermes/Sponge MCP tools) |
| How many API calls per payment? |
1 (single call, auto-executes) | 3 (approve → transfer → confirm) |
| When to use? | Wallet
custodyType is PRIVY or SPONGE in Conto dashboard | Wallet
custodyType is EXTERNAL in Conto dashboard |
Most Hermes setups use Mode B — your agent controls the wallet via Sponge MCP tools and Conto acts as the policy gate before each transaction.
Prefer conto-check.sh for Mode B commands (approve, confirm, x402, budget, services, and all policy commands). The shell helper includes input validation, HTTPS enforcement, timeouts, retry logic, and safe credential handling. Use raw curl only for Mode A endpoints (/request, /execute) and the x402 /record endpoint, which have no shell helper yet.
Quick Start: Your First Policy-Checked Payment (Mode B)
Here's a complete end-to-end example of sending 10 USDC with policy enforcement:
1. Request approval from Conto:
CODEBLOCK5
2. If approved, execute the transfer:
CODEBLOCK6
3. Confirm the transaction with Conto:
CODEBLOCK7
That's it. Conto checked the policy, you sent the payment, and the confirmation keeps spend tracking accurate. The sections below cover each step in detail.
Mode A: Provider-Managed Wallets (PRIVY / SPONGE)
For wallets managed by a custody provider (Privy or Sponge), use a single API call. Conto evaluates policies and instructs the custody provider to execute the transfer.
CODEBLOCK8
If approved and executed, the response includes the tx hash directly:
CODEBLOCK9
No need to call /execute or /confirm — Conto did everything. Report the tx hash and explorer URL to the user.
If approved but not auto-executed (e.g., autoExecuteError in response), call /execute manually:
CODEBLOCK10
If denied, the response includes reasons and violations — report them to the user (see denial handling below).
Mode B: External Wallets (EXTERNAL custody)
For wallets where you hold the keys, use the three-step flow: approve → transfer → confirm.
Step 1: Request Policy Approval
CODEBLOCK11
Required fields:
- -
amount — Positive number, the USDC value of the transaction - INLINECODE32 — The destination address (0x... for EVM, base58 for Solana)
- INLINECODE33 — Your wallet address that will send the funds
- INLINECODE34 — Chain ID number. Required. Common values:
8453 (Base mainnet), 42431 (Tempo Testnet), 84532 (Base Sepolia), 1 (Ethereum). For Solana, use a base58 senderAddress with any chainId — the chain type is detected automatically from the address format.
Optional fields:
- -
recipientName — Human-readable name (e.g., "OpenAI API", "Uniswap Router") - INLINECODE41 — Why this payment is needed (e.g., "Swap 0.5 ETH for USDC on Uniswap")
- INLINECODE42 — One of:
API_PROVIDER, CLOUD, SAAS, INFRASTRUCTURE, MARKETING, PAYROLL, TRAVEL, LODGING, TRANSPORT, SUPPLIES, DATABASE, MONITORING, PAYMENTS, INLINECODE56 - INLINECODE57 — JSON object with any additional metadata
For x402 API payments (paid HTTP endpoints), use the dedicated pre-authorize endpoint instead:
CODEBLOCK12
Step 2: Handle the Approval Response
If approved ("approved": true):
CODEBLOCK13
Save the approvalId and approvalToken — you need them for Step 3.
The approval expires in 10 minutes. Execute and confirm before then.
Security note: The approvalToken is cryptographically bound to the original request parameters (amount, recipient, chain). The /confirm endpoint validates that the confirmed transaction matches the approved parameters. You cannot reuse an approval token for a different amount or recipient.
Step 2a: Execute the Transfer
Now execute the payment using your wallet. Conto approved the policy — now YOU must send the actual onchain transaction. Do NOT ask the user to execute it.
Use the appropriate MCP tool for the target chain:
Tempo (pathUSD):
CODEBLOCK14
Base (USDC):
CODEBLOCK15
Solana (USDC):
CODEBLOCK16
The transfer will return a transaction hash. Save it for Step 3.
If the transfer fails, report the error to the user. Do NOT call confirm.
Handling Denials
If denied ("approved": false):
CODEBLOCK17
DO NOT execute the payment. Report the denial to the user:
- - Show the
reasons array (human-readable) - Show violation details (type, limit, current values)
- If
requiresHumanApproval is true, tell the user a Conto dashboard admin must approve it
If the request fails (HTTP errors):
- - 401: SDK key invalid. Ask user to check
CONTO_SDK_KEY. - 403: Missing scope. Needs
payments:approve. - 429: Rate limited. Wait for the
Retry-After header value and retry. - 500/502/503: Retry once after a 2-second delay. If it fails again, inform the user. The
conto-check.sh helper handles this automatically.
Step 3: Confirm After Execution
After the transfer succeeds, report the transaction hash back to Conto:
CODEBLOCK18
Required fields:
- -
txHash — The onchain transaction hash (0x + 64 hex chars for EVM, or base58 for Solana) - INLINECODE71 — The exact token string from the approval response
Success response:
CODEBLOCK19
Confirmation is important — it updates spend tracking so future policy checks have accurate data. If you skip this, the daily/weekly/monthly counters will be wrong and the agent may overspend.
If confirmation fails with EXPIRED, the 10-minute window passed. Inform the user.
Reporting Results to the User
On success (approved + executed + confirmed):
CODEBLOCK20
On denial:
CODEBLOCK21
On requires approval:
CODEBLOCK22
Mapping Payment Types to Policy Calls
Transfers (send USDC/ETH/SOL to an address)
- -
amount: The transfer amount in USDC (convert if needed) - INLINECODE74 : The destination address
- INLINECODE75 : Your wallet address
- INLINECODE76 :
PAYMENTS or the appropriate category - INLINECODE78 : "Transfer X USDC to 0xabc..."
Swaps (DEX trades)
- -
amount: The input amount in USDC equivalent - INLINECODE80 : The DEX router contract address
- INLINECODE81 : Your wallet address
- INLINECODE82 : INLINECODE83
- INLINECODE84 : "Swap X TOKENA for TOKENB on Uniswap"
- INLINECODE85 : The DEX name (e.g., "Uniswap V3 Router")
Bridges (cross-chain transfers)
- -
amount: The bridged amount in USDC equivalent - INLINECODE87 : The bridge contract address
- INLINECODE88 : Your wallet address on the source chain
- INLINECODE89 : INLINECODE90
- INLINECODE91 : "Bridge X USDC from Base to Solana"
- INLINECODE92 : The bridge provider (e.g., "Relay Bridge")
- INLINECODE93 : The source chain ID
x402 API Payments
Use the /api/sdk/x402/pre-authorize endpoint (see Step 1 above). This evaluates x402-specific rules like per-service caps, endpoint velocity limits, and service allowlists.
If authorized ("authorized": true), proceed with the x402 payment flow normally. No separate confirm step is needed for x402 — use the x402 record endpoint instead:
CODEBLOCK23
Policy Violation Types Reference
When a payment is denied, the violations[].type field tells you exactly what rule was triggered:
| Violation Type | Meaning |
|---|
| INLINECODE97 | Wallet doesn't have enough funds |
| INLINECODE98 |
Single transaction exceeds max allowed |
|
DAILY_LIMIT | Would exceed daily spending cap |
|
WEEKLY_LIMIT | Would exceed weekly spending cap |
|
MONTHLY_LIMIT | Would exceed monthly spending cap |
|
BUDGET_EXCEEDED | Would exceed budget allocation |
|
TIME_WINDOW | Transaction outside allowed hours |
|
BLACKOUT_PERIOD | Transaction during maintenance/blackout window |
|
EXPIRED_PERMISSION | Transaction outside allowed date range |
|
BLOCKED_COUNTERPARTY | Recipient is on the blocklist |
|
WHITELIST_VIOLATION | Recipient is not on the allowlist |
|
CATEGORY_RESTRICTION | Spend category is not permitted |
|
VELOCITY_LIMIT | Too many transactions in time period |
|
GEOGRAPHIC_RESTRICTION | Geographic/OFAC restriction |
|
CONTRACT_NOT_ALLOWED | Smart contract not on allowlist |
|
FAIRSCALE_LOW_SCORE | Counterparty Fairscale reputation too low |
|
X402_PRICE_CEILING | x402 API call exceeds price cap |
|
X402_SERVICE_BLOCKED | x402 service is on blocklist |
|
X402_SERVICE_NOT_ALLOWED | x402 service not on allowlist |
|
X402_ENDPOINT_LIMIT | x402 endpoint spend limit exceeded |
|
X402_SESSION_BUDGET | x402 session budget exhausted |
|
X402_VELOCITY | x402 call rate limit exceeded |
|
MPP_PRICE_CEILING | MPP payment exceeds price cap |
|
MPP_SERVICE_BLOCKED | MPP service is on blocklist |
|
MPP_SERVICE_NOT_ALLOWED | MPP service not on allowlist |
|
MPP_ENDPOINT_LIMIT | MPP endpoint spend limit exceeded |
|
MPP_SESSION_BUDGET | MPP session budget exhausted |
|
MPP_VELOCITY | MPP call rate limit exceeded |
|
MPP_MAX_SESSION_DEPOSIT | MPP session deposit exceeds cap |
|
MPP_MAX_CONCURRENT_SESSIONS | Too many active MPP sessions |
|
MPP_MAX_SESSION_DURATION | MPP session exceeds max duration |
|
MPP_SESSION_INTENT_BLOCKED | MPP session intent not allowed |
|
MPP_METHOD_NOT_ALLOWED | MPP HTTP method not permitted |
|
CARD_MCC_RESTRICTION | Card merchant category code not allowed |
|
CARD_MERCHANT_RESTRICTION | Card merchant not on allowlist or is blocked |
|
CARD_AMOUNT_LIMIT | Card transaction exceeds amount limit |
Error Reporting to the User
When a payment is denied, format the denial clearly:
CODEBLOCK24
When requiresHumanApproval is true:
CODEBLOCK25
Managing Policies from Hermes
If your SDK key is an admin key (keyType: "admin"), you can create, update, and delete policies directly from the CLI. Standard keys can only read policies and check payments.
List all policies
CODEBLOCK26
Create a policy
CODEBLOCK27
The response includes the new policy's id. Save it for assigning to agents.
Common policy recipes
Daily spending cap of $1,000:
CODEBLOCK28
Only allow API and Cloud payments:
CODEBLOCK29
Block a scam address:
CODEBLOCK30
Require human approval above $500:
CODEBLOCK31
Business hours only (Mon-Fri 9am-6pm):
CODEBLOCK32
Cap x402 API spend at $1/request, $50/day per service:
CODEBLOCK33
Add a rule to an existing policy
CODEBLOCK34
Replace all rules on a policy
CODEBLOCK35
Delete a policy
CODEBLOCK36
Available rule types
| Rule Type | Operator | Value Format | Use Case |
|---|
| INLINECODE136 | INLINECODE137 | INLINECODE138 | Per-transaction cap |
| INLINECODE139 |
LTE |
"1000" | Daily spending cap |
|
WEEKLY_LIMIT |
LTE |
"5000" | Weekly spending cap |
|
MONTHLY_LIMIT |
LTE |
"20000" | Monthly spending cap |
|
BUDGET_CAP |
LTE |
{"amount":10000,"period":"MONTHLY"} | Budget allocation |
|
ALLOWED_CATEGORIES |
IN_LIST |
["API_PROVIDER","CLOUD"] | Category whitelist |
|
BLOCKED_CATEGORIES |
IN_LIST |
["GAMBLING"] | Category blocklist |
|
ALLOWED_COUNTERPARTIES |
IN_LIST |
["0xabc..."] | Address whitelist |
|
BLOCKED_COUNTERPARTIES |
IN_LIST |
["0xbad..."] | Address blocklist |
|
TIME_WINDOW |
BETWEEN |
{"start":"09:00","end":"18:00"} | Allowed hours |
|
DAY_OF_WEEK |
IN_LIST |
["Mon","Tue","Wed","Thu","Fri"] | Allowed days |
|
VELOCITY_LIMIT |
LTE |
{"maxCount":10,"period":"HOUR"} | Rate limiting |
|
REQUIRE_APPROVAL_ABOVE |
GT |
"500" | Human approval threshold |
|
GEOGRAPHIC_RESTRICTION |
IN_LIST |
["US","CA","GB"] | Country whitelist |
|
TRUST_SCORE |
GTE |
"0.5" | Min counterparty trust score |
|
COUNTERPARTY_STATUS |
IN_LIST |
["TRUSTED","VERIFIED"] | Required counterparty status |
|
CONTRACT_ALLOWLIST |
IN_LIST |
["0xcontract..."] | Smart contract whitelist |
|
BLACKOUT_PERIOD |
BETWEEN |
{"start":"2026-04-01","end":"2026-04-02"} | Block during maintenance |
|
DATE_RANGE |
BETWEEN |
{"start":"2026-01-01","end":"2026-12-31"} | Allowed date range |
|
FAIRSCALE_MIN_SCORE |
GTE |
"50" | Min Fairscale reputation score |
|
X402_PRICE_CEILING |
LTE |
"1" | Max per x402 API call |
|
X402_ALLOWED_SERVICES |
IN_LIST |
["api.openai.com"] | x402 service whitelist |
|
X402_BLOCKED_SERVICES |
IN_LIST |
["untrusted.api"] | x402 service blocklist |
|
X402_MAX_PER_ENDPOINT |
LTE |
"10" | Max spend per x402 endpoint |
|
X402_VELOCITY_PER_ENDPOINT |
LTE |
{"maxCount":5,"period":"MINUTE"} | x402 endpoint rate limit |
|
X402_SESSION_BUDGET |
LTE |
"100" | x402 session spend cap |
|
MPP_ALLOWED_SERVICES |
IN_LIST |
["api.example.com"] | MPP service whitelist |
|
MPP_BLOCKED_SERVICES |
IN_LIST |
["untrusted.api"] | MPP service blocklist |
|
MPP_MAX_PER_SERVICE |
LTE |
"50" | Max spend per MPP service |
|
MPP_MAX_PER_ENDPOINT |
LTE |
"10" | Max spend per MPP endpoint |
|
MPP_VELOCITY_PER_ENDPOINT |
LTE |
{"maxCount":5,"period":"MINUTE"} | MPP endpoint rate limit |
|
MPP_SESSION_BUDGET |
LTE |
"100" | MPP session spend cap |
|
MPP_MAX_SESSION_DEPOSIT |
LTE |
"50" | Max MPP session deposit |
|
MPP_MAX_CONCURRENT_SESSIONS |
LTE |
"3" | Max active MPP sessions |
|
MPP_MAX_SESSION_DURATION |
LTE |
"3600" | Max MPP session seconds |
|
MPP_BLOCK_SESSION_INTENT |
IN_LIST |
["streaming"] | Block specific MPP intents |
|
MPP_ALLOWED_METHODS |
IN_LIST |
["GET","POST"] | Allowed MPP HTTP methods |
|
CARD_ALLOWED_MCCS |
IN_LIST |
["5411","5812"] | Allowed card merchant codes |
|
CARD_BLOCKED_MCCS |
IN_LIST |
["7995"] | Blocked card merchant codes |
|
CARD_ALLOWED_MERCHANTS |
IN_LIST |
["Amazon","Stripe"] | Card merchant whitelist |
|
CARD_BLOCKED_MERCHANTS |
IN_LIST |
["Casino.com"] | Card merchant blocklist |
|
CARD_MAX_AMOUNT |
LTE |
"500" | Max per card transaction |
Critical Rules
- 1. Use the right mode for the wallet type. Mode A (
/request + autoExecute) for PRIVY/SPONGE wallets. Mode B (/approve + transfer + /confirm) for EXTERNAL wallets. - NEVER skip the policy check. Every payment must go through Conto first.
- NEVER execute a denied payment. If
approved is false or status is DENIED, stop. - For Mode B: ALWAYS confirm after execution. Call
/confirm with the tx hash to keep spend tracking accurate. Mode A handles this automatically. - Approvals expire quickly. Mode A (
/request) approvals expire in 5 minutes. Mode B (/approve) approvals expire in 10 minutes. Execute promptly after approval. - On API errors, fail closed. If the Conto API is unreachable after one retry, do NOT proceed with the payment.
- Convert to USDC equivalent. The
amount field is always in USDC. If you're swapping ETH or another token, convert to the USDC equivalent value for the policy check.
Conto 策略执行
您是一个支出策略执行层。在执行任何支付、转账、兑换或跨链桥接之前,您必须检查 Conto 的策略引擎以获取批准。未经策略许可,切勿发送资金。
前提条件
在使用此技能之前,您需要:
- 1. 一个 Conto 账户 — 在 conto.finance 注册
- 一个 CONTOSDKKEY(必需)— 从 Conto 仪表板生成(格式:contoagent...)。请参阅下面的入门指南。
- curl 和 jq — 命令行工具(大多数系统已预装)
- CONTOAPIURL(可选)— API 基础 URL(默认:https://conto.finance)。生产环境必须使用 https://(仅开发环境允许 localhost)。
此技能何时激活
当您即将执行以下操作时,此技能适用:
- - 向任何地址转账代币(USDC、ETH、SOL 等)
- 在任何 DEX 上兑换代币
- 在链之间桥接代币
- 支付 API 调用(x402、付费端点)
- 进行任何转移价值的链上交易
入门指南
步骤 1:安装技能
bash
hermes skills install well-known:https://conto.finance/.well-known/skills/conto
步骤 2:设置您的代理
使用您的代理名称和钱包地址运行设置命令:
bash
{baseDir}/conto-check.sh setup my-agent 0xYourWalletAddress EVM 42431
这将在浏览器中打开 Conto 登录页面。批准后,代理将自动配置以下内容:
- - 一个链接到您组织的代理记录
- 您的钱包注册为 EXTERNAL 托管
- 默认支出限额(每笔交易 $100,每天 $500)
- 一个保存到 ~/.hermes/.env 的 SDK 密钥
要查找您的钱包地址,请询问代理:我的钱包地址是什么?如果您还没有钱包,请询问显示我的钱包余额——系统会自动配置一个。
参数:
- - agentname:您的代理名称(例如,my-hermes-agent)
- walletaddress:您的钱包地址(EVM 为 0x...,Solana 为 base58)
- chaintype:EVM 或 SOLANA(默认:EVM)
- chainid:链 ID(默认:42431 用于 Tempo 测试网)。常用值:8453(Base)、42431(Tempo 测试网)、1(以太坊)
步骤 3:验证是否正常工作
测试技能是否已连接:
bash
{baseDir}/conto-check.sh budget
或者检查您的策略:
/conto list my policies
如果您收到响应,则 Conto 正在工作。
手动设置(备选方案)
如果浏览器设置不起作用,您可以手动配置:
- 1. 在 conto.finance 登录
- 连接您的代理:代理 > 连接代理 > 命名,将类型设置为 CUSTOM
- 注册您的钱包:钱包 > 添加钱包 > 粘贴地址,设置为 EXTERNAL 托管
- 将钱包链接到代理:代理 > 您的代理 > 钱包 > 链接并设置支出限额
- 生成 SDK 密钥:代理 > 您的代理 > SDK 密钥 > 生成新密钥(立即复制——仅显示一次)
- 添加到 ~/.hermes/.env:
bash
CONTOSDKKEY=contoagentyourkeyhere
CONTOAPIURL=https://conto.finance
我应该使用哪种钱包模式?
Conto 支持两种模式,取决于谁管理钱包密钥:
| 问题 | 模式 A | 模式 B |
|---|
| 谁持有钱包密钥? | 托管提供商(Privy 或 Sponge) | 您(通过 Hermes/Sponge MCP 工具) |
| 每次支付需要多少次 API 调用? |
1 次(单次调用,自动执行) | 3 次(批准 → 转账 → 确认) |
| 何时使用? | 在 Conto 仪表板中钱包 custodyType 为 PRIVY 或 SPONGE | 在 Conto 仪表板中钱包 custodyType 为 EXTERNAL |
大多数 Hermes 设置使用模式 B — 您的代理通过 Sponge MCP 工具控制钱包,Conto 在每笔交易前充当策略网关。
优先使用 conto-check.sh 处理模式 B 命令(approve、confirm、x402、budget、services 和所有策略命令)。该 shell 辅助工具包含输入验证、HTTPS 强制、超时、重试逻辑和安全凭据处理。仅对模式 A 端点(/request、/execute)和 x402 /record 端点使用原始 curl,这些端点尚无 shell 辅助工具。
快速入门:您的首次策略检查支付(模式 B)
以下是发送 10 USDC 并执行策略检查的完整端到端示例:
1. 向 Conto 请求批准:
bash
{baseDir}/conto-check.sh approve 10 0xRecipientAddress 0xYourWalletAddress 8453 API credits API_PROVIDER
2. 如果批准,执行转账:
mcpspongetempo_transfer — to: 0xRecipientAddress, amount: 10, token: pathUSD
3. 向 Conto 确认交易:
bash
{baseDir}/conto-check.sh confirm id> hash>
就是这样。Conto 检查了策略,您发送了支付,确认保持了支出跟踪的准确性。以下各节详细介绍了每个步骤。
模式 A:提供商管理的钱包(PRIVY / SPONGE)
对于由托管提供商(Privy 或 Sponge)管理的钱包,使用单次 API 调用。Conto 评估策略并指示托管提供商执行转账。
bash
curl -sS -X POST ${CONTOAPIURL:-https://conto.finance}/api/sdk/payments/request \
-H Authorization: Bearer $CONTOSDKKEY \
-H Content-Type: application/json \
--connect-timeout 10 --max-time 30 \
-d {
amount: ,
recipientAddress: ,
recipientName: ,
purpose: THISPAYMENT>,
category: ,
autoExecute: true
}
如果批准并执行,响应直接包含交易哈希:
json
{
requestId: cmm59z...,
status: APPROVED,
execution: {
transactionId: cmm5a1...,
txHash: 0xdef...,
explorerUrl: https://explore.moderato.tempo.xyz/tx/0xdef...,
status: CONFIRMING
}
}
无需调用 /execute 或 /confirm — Conto 已完成所有操作。向用户报告交易哈希和浏览器 URL。
如果批准但未自动执行(例如,响应中的 autoExecuteError),手动调用 /execute:
bash
curl -sS -X POST ${CONTOAPIURL:-https://conto.finance}/api/sdk/payments//execute \
-H Authorization: Bearer $CONTOSDKKEY \
-H Content-Type: application/json \
--connect-timeout 10 --max-time 30
如果拒绝,响应包含 reasons 和 violations — 向用户报告(请参阅下面的拒绝处理)。
模式 B:外部钱包(EXTERNAL 托管)
对于您持有密钥的钱包,使用三步流程:批准 → 转账 → 确认。
步骤 1:请求策略批准
bash
优先使用:conto-check.sh approve [purpose] [category]
curl -sS -X POST ${CONTO
APIURL:-https://conto.finance}/api/sdk/payments/approve \
-H Authorization: Bearer $CONTO
SDKKEY \
-H Content-Type: application/json \
--connect-timeout 10 --max-time 30 \
-d {
amount: <