useCheckMappedAccount
Props
Name
Type
Description
Return Type
Name
Type
Description
Basic Usage
import { useCheckMappedAccount } from 'typink';
function AccountMappingStatus() {
const { isMapped, isLoading, evmAddress, refresh } = useCheckMappedAccount();
if (isLoading) return <div>Checking mapping status...</div>;
if (isMapped === false) {
return (
<div>
<p>Account not mapped. Please map your account first.</p>
<button onClick={refresh}>Check Again</button>
</div>
);
}
return <div>Account mapped to: {evmAddress}</div>;
}Last updated