Skip to main content
Version: Next

Function: starknetKeccak()

starknetKeccak(str): bigint

Defined in: src/utils/hash/selector.ts:50

Calculate the BigInt Starknet Keccak hash for a given string Reference

Parameters

str

string

value to hash

Returns

bigint

BigInt Keccak hash

Example

const result = starknetKeccak('test').toString();
// result = '61835310290161785288773114225739080147441215596947647498723774891619563096'