Retry Configuration
All Context functions accept an optional retry configuration:- Each context function call can have its own retry configuration
- If a context function fails, it retries according to its configuration
- If all context function retries are exhausted does the context function will throw
- If you don’t catch a failed context function call, a task-level retry may trigger, restarting the task and any context-function retries
- Default retry behavior for itempotent host functions (fetch GET or PUT, readContract, simulate, etc) is as follows:
- By Default, non-itempotent host functions don’t retry (fetch POST or DELETE, writeContract) but you can pass a retry configuration to override that.
Blockchain Transactions - writeContract
Execute blockchain transactions with automatic wallet management.
Wallet Configuration
ThewriteContract function supports multiple wallet configurations:
- Environment Variable: Set
PRIVATE_KEYwith your private key - Privy Integration: Uses Privy-managed wallets (configured automatically)