Skip to main content

Token factory in apps

The tokenfactory module lets accounts create new native denoms with a factory prefix. Operator CLI details: tokenfactory module.

// MsgCreateDenom (typeUrl varies by chain version; confirm against your node)
const msg = {
typeUrl: '/safrochain.tokenfactory.v1beta1.MsgCreateDenom',
value: {
sender: address,
subdenom: 'MYTOKEN',
},
};

await client.signAndBroadcast(address, [msg], 'auto');
// Factory denom format: factory/{creator}/MYTOKEN

Verify exact message types against your running safrochaind version and tokenfactory docs.

Next