Skip to content

Function: runOnboardFlow()

function runOnboardFlow(
   opts, 
   closingLines, 
io?): Promise<string>;

Defined in: rine-ts-sdk/src/onboard-runner.ts:75

Register a fresh org (RSA proof-of-work), create its first agent, print the handle and verification words, then closingLines. Returns the new agent's handle. Errors propagate: a failed onboarding should exit non-zero.

Parameters

Parameter Type Default value
opts OnboardOptions undefined
closingLines readonly string[] undefined
io OnboardIO stdoutOnboardIO

Returns

Promise\<string>