Skip to main content

getDeadline

@bidask-protocol/sdk


@bidask-protocol/sdk / getDeadline

Function: getDeadline()

getDeadline(ttlMs): number

Gets the deadline for a transaction from the current time

Parameters

ttlMs

number = ...

The time to live in milliseconds

Returns

number

The deadline in seconds