setTimeRange
Sets the time range for an object and returns the object itself for chaining.
Import
import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
Usage
import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
const builder = new SessionKeyPermissionsBuilder();
builder.setTimeRange({
validFrom: Date.now(),
validUntil: Date.now() + 15 * 60 * 1000,
});
Parameters
timeRange
TimeRange
The time range to be set
Returns
SessionKeyPermissionsBuilder
The current object for method chaining