Skip to main content

Function: getAddressFromPublicKey()

function getAddressFromPublicKey(publicKey, shardId): Address

Returns the address from the public key.

Parameters

ParameterTypeDescription

publicKey

0x${string}

The public key in hex format

shardId

number

The ID of the shard where the address is located.

Returns

Address

The address in hex format.

Defined

@nilfoundation/niljs/src/signers/publicKey.ts:26