pay
Send lamports from a human-funded SpendVault to any recipient via a relayer, with optional sponsor reimbursement. Requires prior human setup of root, grant, and vault funding.
Instructions
Implemented INTENTS pay. On localnet uses the local-only intents id. On devnet builds against the grokchain-devnet INTENTS program. Agent signs. Relayer is the outer fee payer. Bot never holds SOL. Human-funded SpendVault is the SOL source. Optional sponsor reimburses the relayer from YOUR paymaster. Lands only if the human has rooted the account, issued a grant allowlisting the INTENTS id, funded SpendVault + Paymaster, and set RELAYER_KEYPAIR. Otherwise need_human_signature / need_human_setup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient pubkey | |
| root | No | Root pubkey if GROKCHAIN_ROOT_KEYPAIR is unset | |
| dry_run | No | ||
| amount_lamports | Yes | Lamports to pay from SpendVault. Must be > 0. | |
| sponsor_lamports | No | Optional reimbursement to the relayer from YOUR paymaster. 0 = none. Max 10000000. |