assertIsProgramDerivedAddress
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 Parameter | Default type |
|---|---|
TAddress extends string | string |
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
asserts value is readonly [Address<TAddress>, ProgramDerivedAddressBump]
See
The assertIsAddress function for an example of how to use an assertion function.