Pay For APIs
Sandbox and networks
Choose sandbox, localnet, mainnet, accounts, and output modes intentionally.
Network flags force how pay interprets and satisfies payment challenges.
Agent summary
- Use
--sandboxfor tests and examples. - Use
--mainnetonly when the user intends to spend real funds. - Use
--localonly when a local Surfpool RPC is running. - Use
--accountwhen the user specifies a named account.
Flags
pay --sandbox curl <url>
pay --local curl <url>
pay --mainnet curl <url>
pay --account work curl <url>Output
pay --sandbox --output json curl <url>
pay --sandbox --verbose curl <url>Only display transaction, signature, session, or status details when the command output actually includes them.