provider Crypto Wallet POST /v1/crypto_wallets/authenticate/start
@utdk/stytch /v1/crypto_wallets/authenticate/start
Authenticatestart
Initiate the authentication of a crypto wallet. After calling this endpoint, the user will need to sign a message containing the returned `challenge` field. For Ethereum crypto wallets, you can optionally use the Sign In With Ethereum (SIWE) protocol for the message by passing in the `siwe_params`. The only required fields are `domain` and `uri`. If the crypto wallet detects that the domain in the message does not match the website's domain, it will display a warning to the user. If not using the SIWE protocol, the message will simply consist of the project name and a random string.

Try it

Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

apiCryptoWalletV1Authenticatestart
POST/v1/crypto_wallets/authenticate/start
Initiate the authentication of a crypto wallet. After calling this endpoint, the user will need to sign a message containing the returned `challenge` field. For Ethereum crypto wallets, you can optionally use the Sign In With Ethereum (SIWE) protocol for the message by passing in the `siwe_params`. The only required fields are `domain` and `uri`. If the crypto wallet detects that the domain in the message does not match the website's domain, it will display a warning to the user. If not using the SIWE protocol, the message will simply consist of the project name and a random string.

Input

required

The type of wallet to authenticate. Currently `ethereum` and `solana` are supported. Wallets for any EVM-compatible chains (such as Polygon or BSC) are also supported and are grouped under the `ethereum` type.

required

The crypto wallet address to authenticate.

The unique ID of a specific User. You may use an `external_id` here if one is set for the user.

The `session_token` associated with a User's existing Session.

The `session_jwt` associated with a User's existing Session.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stytch from '@utdk/stytch';

await stytch.apiCryptoWalletV1Authenticatestart()