Variable: getSignerFromPrivateKey()

April 29, 2026 · View on GitHub

iexec


iexec / utils / getSignerFromPrivateKey

Variable: getSignerFromPrivateKey()

const getSignerFromPrivateKey: (host, privateKey, options?) => AbstractSigner<Provider>

create a signer connected to the specified blockchain host from a private key

example:

const ethProvider = getSignerFromPrivateKey('http://localhost:8545', '0x564a9db84969c8159f7aa3d5393c5ecd014fce6a375842a45b12af6677b12407');
const iexec = new IExec({ ethProvider });

Parameters

host

string

privateKey

string

options?

allowExperimentalNetworks?

boolean

if true allows using a provider connected to an experimental networks (default false)

⚠️ experimental networks are networks on which the iExec's stack is partially deployed, experimental networks can be subject to instabilities or discontinuity. Access is provided without warranties.

Returns

AbstractSigner<Provider>