function isAddressable(value): value is Addressable

Returns true if value is an object which implements the Addressable interface.

Parameters

ParameterTypeDescription
valueanyThe value to check.

Returns

value is Addressable

True if the value is an Addressable.

Example

// Wallets and AbstractSigner sub-classes
isAddressable(Wallet.createRandom());

// Contracts
contract = new Contract('0x643aA0A61eADCC9Cc202D1915D942d35D005400C', [], provider);
isAddressable(contract);

Source

address/checks.ts:25