wallet_getCapabilities
Behavior
If a wallet is able to make use of paymaster web services to sponsor a user's EIP-5792 call bundle, it should indicate this as part of its response to an EIP-5792 wallet_getCapabilities
request. Specifically, for each chain the wallet can use paymaster services on, its response to wallet_getCapabilities
should include a paymasterService
object. This object shoud have a single field, supported
, set to true
.
Example
provider.request({
method: 'wallet_getCapabilities',
params: ['0xd46e8dd67c5d32be8058bb8eb970870f07244567']
})
{ "0x2105": { paymasterService: { supported: true, } } }