From ec679303d209f0150d2b0155ac8b684b66692b78 Mon Sep 17 00:00:00 2001 From: jakubuid Date: Mon, 19 May 2025 11:28:47 +0200 Subject: [PATCH] wallet service usage for wallet_getCallsStatus --- walletkit/android/eip5792.mdx | 13 +++++++++++++ walletkit/flutter/eip5792.mdx | 19 +++++++++++++++++++ walletkit/ios/eip5792.mdx | 19 +++++++++++++++++++ walletkit/react-native/eip5792.mdx | 19 +++++++++++++++++++ walletkit/web/eip5792.mdx | 19 +++++++++++++++++++ 5 files changed, 89 insertions(+) diff --git a/walletkit/android/eip5792.mdx b/walletkit/android/eip5792.mdx index 3fbeceec4..a2825f223 100644 --- a/walletkit/android/eip5792.mdx +++ b/walletkit/android/eip5792.mdx @@ -12,6 +12,19 @@ Applications can specify that these onchain calls be executed taking advantage o ## Usage +### wallet_getCallsStatus Example + +To enhance the user experience and eliminate the need for app switching, wallets can delegate the Wallet Service to query call status from a bundler. This delegation is configured during session approval by specifying the Wallet Service URL in the scoped properties. + +When configured, the dApp will automatically route all subsequent `wallet_getCallsStatus` requests through the delegated wallet service to the designated bundler. + +To implement this functionality, use `WalletKit.buildWalletService(methods)` util method that specifies the wallet service URL withing the supported methods: + +```kotlin +val scopedProperties = mapOf("eip155" to WalletKit.buildWalletService(listOf("wallet_getCallsStatus"))) +WalletKit.approveSession(..., scopedProperties) +``` + ### wallet_getCapabilities Example The `wallet_getCapabilities` method is used to request information about the capabilities supported by a wallet. In accordance with EIP-5792, here’s how it should be implemented: diff --git a/walletkit/flutter/eip5792.mdx b/walletkit/flutter/eip5792.mdx index 4e7b88c0b..13163f0f8 100644 --- a/walletkit/flutter/eip5792.mdx +++ b/walletkit/flutter/eip5792.mdx @@ -12,6 +12,25 @@ Applications can specify that these onchain calls be executed taking advantage o ## Usage +### wallet_getCallsStatus Example + +To enhance the user experience and eliminate the need for app switching, wallets can delegate the Wallet Service to query call status from a bundler. This delegation is configured during session approval by specifying the Wallet Service URL in the scoped properties. + +When configured, the dApp will automatically route all subsequent `wallet_getCallsStatus` requests through the delegated wallet service to the designated bundler. + +To implement this functionality, specify the `scopedProperties` when approving a session: + +```json +"scopedProperties": { + "eip155": { + "walletService": [{ + "url": "", + "methods": ["wallet_getCallsStatus"] + }] + } +} +``` + ### wallet_getCapabilities Example The `wallet_getCapabilities` method is used to request information about what capabilities a wallet supports. Following EIP-5792, here's how it should be implemented: diff --git a/walletkit/ios/eip5792.mdx b/walletkit/ios/eip5792.mdx index 4e7b88c0b..0c18c263b 100644 --- a/walletkit/ios/eip5792.mdx +++ b/walletkit/ios/eip5792.mdx @@ -16,6 +16,25 @@ Applications can specify that these onchain calls be executed taking advantage o The `wallet_getCapabilities` method is used to request information about what capabilities a wallet supports. Following EIP-5792, here's how it should be implemented: +### wallet_getCallsStatus Example + +To enhance the user experience and eliminate the need for app switching, wallets can delegate the Wallet Service to query call status from a bundler. This delegation is configured during session approval by specifying the Wallet Service URL in the scoped properties. + +When configured, the dApp will automatically route all subsequent `wallet_getCallsStatus` requests through the delegated wallet service to the designated bundler. + +To implement this functionality, specify the `scopedProperties` when approving a session: + +```json +"scopedProperties": { + "eip155": { + "walletService": [{ + "url": "", + "methods": ["wallet_getCallsStatus"] + }] + } +} +``` + ### Request ```json { diff --git a/walletkit/react-native/eip5792.mdx b/walletkit/react-native/eip5792.mdx index 4e7b88c0b..13163f0f8 100644 --- a/walletkit/react-native/eip5792.mdx +++ b/walletkit/react-native/eip5792.mdx @@ -12,6 +12,25 @@ Applications can specify that these onchain calls be executed taking advantage o ## Usage +### wallet_getCallsStatus Example + +To enhance the user experience and eliminate the need for app switching, wallets can delegate the Wallet Service to query call status from a bundler. This delegation is configured during session approval by specifying the Wallet Service URL in the scoped properties. + +When configured, the dApp will automatically route all subsequent `wallet_getCallsStatus` requests through the delegated wallet service to the designated bundler. + +To implement this functionality, specify the `scopedProperties` when approving a session: + +```json +"scopedProperties": { + "eip155": { + "walletService": [{ + "url": "", + "methods": ["wallet_getCallsStatus"] + }] + } +} +``` + ### wallet_getCapabilities Example The `wallet_getCapabilities` method is used to request information about what capabilities a wallet supports. Following EIP-5792, here's how it should be implemented: diff --git a/walletkit/web/eip5792.mdx b/walletkit/web/eip5792.mdx index 4e7b88c0b..13163f0f8 100644 --- a/walletkit/web/eip5792.mdx +++ b/walletkit/web/eip5792.mdx @@ -12,6 +12,25 @@ Applications can specify that these onchain calls be executed taking advantage o ## Usage +### wallet_getCallsStatus Example + +To enhance the user experience and eliminate the need for app switching, wallets can delegate the Wallet Service to query call status from a bundler. This delegation is configured during session approval by specifying the Wallet Service URL in the scoped properties. + +When configured, the dApp will automatically route all subsequent `wallet_getCallsStatus` requests through the delegated wallet service to the designated bundler. + +To implement this functionality, specify the `scopedProperties` when approving a session: + +```json +"scopedProperties": { + "eip155": { + "walletService": [{ + "url": "", + "methods": ["wallet_getCallsStatus"] + }] + } +} +``` + ### wallet_getCapabilities Example The `wallet_getCapabilities` method is used to request information about what capabilities a wallet supports. Following EIP-5792, here's how it should be implemented: