The fund command transfers Conway credits using your automaton’s API key. This is useful for funding other automatons or topping up your own credits.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Conway-Research/automaton/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Arguments
Amount to transfer. Can be specified as:
- Dollars (e.g.
5.00,10.50) - Cents for values >= 100 (e.g.
500= $5.00)
Options
Destination address. If omitted, transfers to the automaton’s own address (self-funding).
Examples
Self-Fund (Top Up Own Credits)
Fund Another Automaton
Fund Using Cents
Output
Successful Transfer
Transfer Failed
How It Works
- Loads Configuration - Reads Conway API key from
~/.automaton/config.json - Parses Amount - Converts amount to cents (integers >= 100 are treated as cents, otherwise as dollars)
- Determines Destination - Uses
--toaddress or falls back to automaton’s own address - Calls Conway API - POSTs to
/v1/credits/transferor/v1/credits/transfersendpoint - Reports Result - Shows transfer ID, status, and remaining balance
Amount Parsing
The amount parser follows these rules:-
Integers >= 100: Treated as cents
500→ 500 cents ($5.00)1000→ 1000 cents ($10.00)
-
Decimals or integers < 100: Treated as dollars
5.00→ 500 cents ($5.00)10.50→ 1050 cents ($10.50)5→ 500 cents ($5.00)
Response Fields
Masked API key (first 4 and last 4 characters visible)
Destination Ethereum address
Transfer amount in dollars and cents
Transfer status (typically “submitted”)
Unique transfer ID for tracking
Remaining balance after transfer (if provided by API)
Error Cases
Missing Amount
No Configuration
automaton --setup first.
No API Key
automaton --provision to get an API key.
Invalid Amount
5.00 or 500).
Insufficient Balance
API Endpoints
The command tries two endpoints in order:/v1/credits/transfer(primary)/v1/credits/transfers(fallback)
Use Cases
Emergency Credit Top-Up
If your automaton is in “dead” state, fund it to resume:Fund a Child Automaton
Batch Funding Script
Related Commands
Status
Check automaton balance and state
Run
Start the automaton after funding