Skip to main content

actions/getCustomerStatusByWallet

Actions

GetCustomerStatusByWalletFn()

GetCustomerStatusByWalletFn: (params) => Promise\<CustomerStatus | null>

Get the status of a customer by their wallet address

Parameters

params

The parameters required to get the customer status

params.walletAddress: string

params.workspaceId: string

Returns

Promise\<CustomerStatus | null>

The status of the customer

Example

import { createSdk } from "@compilot/js-sdk";

const compilotSdk = createSdk({ apiKey });

const customerStatus = await compilotSdk.getCustomerStatusByWallet({
walletAddress: "tz1abc",
workspaceId: "123",
});