Skip to main content

Function: calculateAddress()

function calculateAddress(
shardId,
code,
salt): Uint8Array

Calculates an address.

Parameters

ParameterTypeDescription

shardId

number

The ID of the shard containing the address.

code

Uint8Array

The bytecode to be deployed at the address.

salt

Uint8Array

Arbitrary data for address generation.

Returns

Uint8Array

The address.

Defined

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