getAdmin()
function getAdmin(client, props): Promise<`0x${string}`>
Reads the project admin address of a mixed token.
Parameters
Parameter | Type | Description |
---|---|---|
client | ReadClient | ReadClient The read client to use. |
props | MixedTokenGetAdminProps | MixedTokenGetAdminProps The properties to use. |
type MixedTokenGetAdminProps: {
address: Address;
};
Returns
Promise
<`0x${string}`>
The project admin address.
Example
mixed-token.ts
import { mixedToken } from '@solio/core';
import { createClient, http } from 'viem';
import { sepolia } from 'viem/chains';
const readClient = createClient({
chain: sepolia,
transport: http(),
});
const adminAddress = await mixedToken.read.getAdmin(readClient, {
address: '0x...' // mixed token address
});
console.log(adminAddress);