wallet_getCapabilities
Check which features and capabilities the wallet supports.
Gets supported capabilities of the cross-app wallet.
Request#
_10type Request = {_10 method: 'wallet_getCapabilities',_10}
Response#
_13type Response = {_13 capabilities: {_13 atomicBatch: {_13 supported: true_13 }_13 createAccount: {_13 supported: true_13 },_13 permissions: {_13 supported: true_13 }_13 }_13}
Example#
To make these instructions concrete, we have created a sample cross-app wallet called Rapidfire ID. To interact with it, you can find its SDK in the NPM package directory: @rapidfire/id.
You can check out the GitHub repository for Rapidfire Wallet to learn how to create your own wallet.
_10import RapidfireID from '@rapidfire/id'_10_10const rapidfire = new RapidfireID()_10const provider = rapidfire.getEthereumProvider()_10_10const capabilities = await provider.request({ _10 method: 'wallet_getCapabilities', _10})