gill

checkedTokenProgramAddress

function checkedTokenProgramAddress(tokenProgram?): Address;

Check the provided program is one of the supported token programs. Including setting the default to TOKEN_PROGRAM_ADDRESS (the original SPL token program)

Example

args.tokenProgram = checkedTokenProgramAddress(args.tokenProgram);

Parameters

ParameterType
tokenProgram?| Address | TokenProgramMonikers

Returns

Address

On this page