Verifies an account signature to be used in backend-to-backend requests.

Usage

import { verifyAccountSignature } from "@treasure-dev/tdk-core";

const backendWallet = await verifyAccountSignature({
  accountAddress: "...",
  signature: "...",
});

Returns

Promise<string>

  • The address recovered from the signature, which corresponds to a backend wallet address for use in backend-to-backend requests.

Parameters

accountAddress

string

  • The smart account address to be used in the backend-to-backend request.

signature

string