Methods
For developers, the SilkEthereumProviderInterface provides the top-level functional description.
In addition to the EIP-1193 request
and other methods, it defines the following SilkProvider methods:
Method Details
login
login
This method triggers the Login / Signup user flows in the Silk modal
loginSelector
loginSelector
The loginSelector method opens the Silk modal to display wallet options with which to sign transactions as alternatives to Silk. This provides more flexibility for application developers with audiences who might already be familiar with web3 infrastructure and have existing wallets.
requestEmail
requestEmail
By calling the requestEmail function, the Silk modal asks users to consent to sharing their verified email address with the application. By relying on the same email that Silk users verify on every Silk login, applications can opt to skip their own implementation of user email verification.
requestSBT
requestSBT
Calling requestSBT opens the user flow for a specific Proof of Identity to be completed and mint a soul-bound token. The method returns with the user's address if successfully completed. Currently supported parameters to pass to this function are "phone
" and "kyc
".
request
request
The request function is a direct implementation of the EIP-1193 Ethereum Provider JavaScript API. This allows developers and 3rd-party tools to treat Silk as a 1193-compliant EVM wallet, e.g. to list it alongside other wallets.
Last updated