Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

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