Auth
verifyBackendWalletSignature
Verifies a backend wallet signature to be used in backend-to-backend requests.
Usage
Returns
Promise<string>
- The address recovered from the signature, which corresponds to a backend wallet address for use in backend-to-backend requests.
Parameters
client
TreasureConnectClient
- The Treasure Connect client created with a Treasure-provided client ID.
chainId
number
- Chain ID where the smart backend wallet was used for signing.
backendWallet
string
- The smart backend wallet address that was used for signing, returned by the
generateBackendWalletSignature
function.
signature
string
- Signature created with the
generateBackendWalletSignature
function.
expirationTime
number
- Signature expiration time, returned by the
generateBackendWalletSignature
function.