getWalletCapabilities
Retrieves the capabilities and supported features of the current wallet, particularly focusing on available services like paymaster support.
Function Signature
Parameters
None - This function doesn't require any parameters.
Returns
A WalletCapabilitiesResponse
dictionary containing:
Chain identifiers mapped to
WalletCapabilitiesValue
objectsEach
WalletCapabilitiesValue
includes:paymasterService
: Information about paymaster supportsupported
: Boolean indicating if paymaster service is available
Example Usage
Implementation Notes
Chain Support
Check capabilities per chain before feature-dependent operations
Handle missing chain capabilities gracefully
Verify feature support before initiating operations
Error Handling
Handle network failures when fetching capabilities
Verify capability existence before access
Consider fallback options for unsupported features
Capability Changes
Capabilities might change during runtime
Consider refreshing capabilities periodically
Don't cache capabilities for extended periods
Last updated
Was this helpful?