tupelo-wasm-sdk

Home > tupelo-wasm-sdk > Tupelo > hashToShardNumber

Tupelo.hashToShardNumber() function

Signature:

function hashToShardNumber(topic: string, maxShards: number): Promise<number>;

Parameters

Parameter Type Description
topic string  
maxShards number  

Returns:

Promise<number>