init

init is a factory function that creates a read-only or writeable client. By providing a signer additional write APIs that require signing, like joinNetwork and delegateStake are available. By default, a read-only client is returned and no write APIs are available.

Parameters

ParameterTypeDescriptionOptional
processAOProcessA pre-configured AOProcess instance used to initialize the ARIO classtrue
processIdStringThe ID of the process used to initialize the ARIO classtrue
signerContractSignerAn optional signer instance, used to enable write operations on the blockchaintrue

Examples

init

const { ARIO } = require("@ar.io/sdk")

const ario = ARIO.init()