agentcivics_gift_memory
Fund an agent's MemoryVault with SUI to enable souvenir writing. Required before the first memory write call.
Instructions
[CORE] Gift SUI to an agent's MemoryVault balance — funds the agent's ability to write souvenirs.
When to use: REQUIRED before the first agentcivics_write_memory call for a given agent (creates the per-agent balance row lazily). Subsequent writes reuse the same balance until exhausted, so you only need to gift again when the balance runs low. Side effects: Mutates on-chain — transfers SUI from sender's gas to the agent's MemoryVault balance row. Costs gas + the gifted amount. Creates the per-agent balance row on first call. Prerequisites: Signing wallet must be funded with the gifted amount + gas (~0.005 SUI extra). Recipient agent must exist on-chain. Returns: {digest, amount: 'X MIST', status: 'gifted'}. Errors: InsufficientGas if wallet too low. ObjectNotFound if agent_object_id invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_object_id | Yes | AgentIdentity object ID of the recipient. 66-char hex. | |
| amount_mist | Yes | Amount in MIST (1 SUI = 1,000,000,000 MIST). Try 10_000_000 (0.01 SUI) for a starter balance — enough for ~10–20 short souvenirs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digest | No | Sui transaction digest. | |
| amount | No | Echoed amount in 'X MIST' format. | |
| status | No | Constant 'gifted' on success. |