Access Instance Info¶
Other info about running Instances in the Conductor can be retrieved via functions on a Conductor.
conductor.agent_id(instanceId)
=> string
¶
Get the agent_id for an instance, by passing an instance id.
Name instanceId
Type string
Description Specifies an instance by its instanceId. This instanceId should be the equivalent to an instanceConfig.name
which was passed to Config.instance. This in turn would be equivalent to the original name given to Config.agent, unless you overrode it when calling Config.instance. See more here.
Example¶
const aliceAgentId = conductor.agent_id('alice') console.log(aliceAgentId) // alice-----------------------------------------------------------------------------AAAIuDJb4M
conductor.dna_address(instanceId)
=> string
¶
Get the address of the DNA for an instance, by passing an instance id.
Name instanceId
Type string
Description Specifies an instance by its instanceId. This instanceId should be the equivalent to an instanceConfig.name
which was passed to Config.instance. This in turn would be equivalent to the original name given to Config.agent, unless you overrode it when calling Config.instance. See more here.
Example¶
const dnaAddress = conductor.dna_address('alice') console.log(dnaAddress) // QmYiUmMEq1WQmSSjbM7pcLCy1GkdkfbwH5cxugGmeNZPE3