Skip to main content

useAccountSigners

Get all the signers (or session keys) on a smart wallet account.

const { data: accounts, isLoading, error } = useAccountSigners(contract);

Usage

Provide the smart wallet account contract address as the argument.

import { useAccountSigners } from "@thirdweb-dev/react";

const accountAddress = "{{account_address}}";

function App() {
const { data: signers, isLoading } = useAccountSigners(accountAddress);
}

Return Value

A response object that includes the data property containing an array of all signers of the provided account.