Skip to main content

Overview

AgentPay SDK enables AI agents to hold and spend USD1 on EVM chains. @sigilcore/agent-hooks provides a decision helper for AgentPay transfers. The payment host must call it and refuse signing unless it returns approved: true. When the host invokes the helper before signing a USD1 transfer on Ethereum (chainId 1) or BNB Smart Chain (chainId 56), the wallet.transfer action routes through your Sigil policy first. The helper does not interpose AgentPay by itself and cannot stop a caller that ignores or bypasses the result. The layers are additive: AgentPay handles payment mechanics and key management. Sigil determines whether the agent is authorized to initiate the payment at all. AgentPay tells agents how to spend. Sigil tells agents what theyโ€™re allowed to do. @sigilcore/agent-hooks ships a dedicated AgentPay export: checkAgentPayTransfer. It normalizes chain id, recipient, transfer amount, transaction commit, and AgentPay metadata into a wallet.transfer intent. It forces failMode: 'closed' for value-transfer checks. This adapter does not emit typed http intents; HTTP method derivation is not part of the AgentPay transfer payload.

Usage

For wallet.* actions, always set failMode: 'closed'. A fail-open authorization layer in front of on-chain value transfer is worse than no policy layer because operators may relax downstream controls while believing Sigil is still enforcing policy.

Supported Chains

USD1 is pre-configured on: Both chains are already in Sigil Signโ€™s supported EVM chain set. No policy changes required to govern USD1 transfers on either chain.

Policy Configuration

To enforce limits on USD1 agent transfers, add an ## evm block to your warranty.md:
This policy allows USD1 transfers on Ethereum and BSC, caps single transfers at 1 ETH equivalent, and requires human approval for transfers above 0.5 ETH. Generate and sign your policy at sigilcore.com/tools/warrant.