Skip to main content

Function: calculateAddress()

function calculateAddress(
shardId,
code,
salt): Uint8Array<ArrayBufferLike>

Calculates an address.

Parameters

ParameterTypeDescription

shardId

number

The ID of the shard containing the address.

code

Uint8Array<ArrayBufferLike>

The bytecode to be deployed at the address.

salt

Uint8Array<ArrayBufferLike>

Arbitrary data for address generation.

Returns

Uint8Array<ArrayBufferLike>

The address.

Defined

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