Key Custody

Prepare an agent spending grant (Allowance Module)

Gives one agent's server-custody Ethereum signing key a bounded, on-chain allowance from this Safe through Safe's Allowance Module v1.0.0: one Safe transaction (delegatecall into MultiSendCallOnly) that enables the module if needed, adds the agent's key as a delegate and sets the allowance per reset period. Returns the grant (pending) and the SafeTx for the owner's passkey to sign; pass operation and grant_id from prepare to execute. The cap is enforced by the module on-chain — 1claw holding the delegate key gives it exactly the allowance and nothing more. Audited as passkey_safe.grant_activated.

post/v1/treasury/passkey-safes/{id}/grants

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/treasury/passkey-safes/{id}/grants
  • Auth: HTTP bearer

Request body

agent_idstring uuid required
tokenstring

ERC-20 contract; omit for the native token.

allowance_amountstring required

Base units, decimal string, ≤ 2^96-1.

reset_time_mininteger

Reset period in minutes.

Response

Grant and what to sign

Changes

No recorded changes to this operation across all 2 revisions of this API.