Skip to main content

Function: getShardIdFromAddress()

function getShardIdFromAddress(address): number

Returns the ID of the shard containing the provided address.

Parameters

ParameterTypeDescription

address

0x${string}

The address.

Returns

number

Defined

@nilfoundation/niljs/src/utils/address.ts:28