snap_listEntropySources
Description
Get a list of entropy sources available to the Snap. The requesting origin must have at least one of the following permissions to access entropy source metadata:
snap_getBip32Entropysnap_getBip32PublicKeysnap_getBip44Entropysnap_getEntropy
Parameters
null
The request parameters for the snap_listEntropySources method.
Returns
array
An array of entropy sources available to the Snap. Each entropy source consists of:
name- The name of the entropy source.id- The ID of the entropy source.type- The type of the entropy source. Currently, onlymnemonicis supported.primary- Whether the entropy source is the primary source.
object
An entropy source that can be used to retrieve entropy using the
snap_get*Entropy methods.
name
stringThe name of the entropy source.
id
stringThe ID of the entropy source
type
"mnemonic"The type of the entropy source. Currently, only mnemonic is supported.
primary
booleanWhether the entropy source is the primary source.