Kit
Functions

assertIsProgramDerivedAddress

assertIsProgramDerivedAddress<TAddress>(value): asserts value is readonly [Address<TAddress>, ProgramDerivedAddressBump]

In the event that you receive an address/bump-seed tuple from some untrusted source, use this function to assert that it conforms to the ProgramDerivedAddress interface.

Type Parameters

Type ParameterDefault type
TAddress extends stringstring

Parameters

ParameterType
valueunknown

Returns

asserts value is readonly [Address<TAddress>, ProgramDerivedAddressBump]

See

The assertIsAddress function for an example of how to use an assertion function.

On this page