gill
@gillsdk/react/Functions

useTokenAccount

function useTokenAccount<TConfig, TAddress>(__namedParameters): 
  | {
  account: {
     exists: true;
  };
}
  | {
  account: {
     exists: true;
  };
}
  | {
  account: {
     exists: true;
  };
}
  | {
  account: {
     exists: true;
  };
}
  | {
  account: {
     exists: true;
  };
};

Get and parse an owner's Token account for a Mint and Token Program

Type Parameters

Type ParameterDefault type
TConfig extends { }{ }
TAddress extends AddressAddress

Parameters

ParameterType
__namedParametersUseTokenAccountInput<TConfig, TAddress>

Returns

| { account: { exists: true; }; } | { account: { exists: true; }; } | { account: { exists: true; }; } | { account: { exists: true; }; } | { account: { exists: true; }; }

On this page