注意: 此页面尚未翻译成中文。以下内容为英文原版。
value is an object which implements the Addressable interface.
Parameters
Returns
value is Addressable
True if the value is an Addressable.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
注意: 此页面尚未翻译成中文。以下内容为英文原版。
function isAddressable(value): value is Addressable
value is an object which implements the Addressable interface.
| Parameter | Type | Description |
|---|---|---|
value | any | The value to check. |
value is Addressable
True if the value is an Addressable.
// Wallets and AbstractSigner sub-classes
isAddressable(Wallet.createRandom());
// Contracts
contract = new Contract('0x643aA0A61eADCC9Cc202D1915D942d35D005400C', [], provider);
isAddressable(contract);
