> For the complete documentation index, see [llms.txt](/llms.txt).

- Snap

# snap_listEntropySources

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_getBip32Entropy`
- `snap_getBip32PublicKey`
- `snap_getBip44Entropy`
- `snap_getEntropy`

## Parameters[​](#parameters "Direct link to Parameters")

This method does not have any parameters.

## Returns[​](#returns "Direct link to Returns")

object[]

An array of entropy sources available to the Snap.

object

An entropy source that can be used to retrieve entropy using the `snap_get*Entropy` methods.

### name

string

The name of the entropy source.

### id

string

The ID of the entropy source

### type

"mnemonic"

The type of the entropy source. Currently, only `mnemonic` is supported.

### primary

boolean

Whether the entropy source is the primary source.

## Example

- Manifest
- Usage

```
{
  "initialPermissions": {
    "snap_getBip32Entropy": {}
  }
}

```

```
const entropySources = await snap.request({
  method: 'snap_listEntropySources',
})
console.log(entropySources)
// Example output:
// [
//   {
//     name: 'Mnemonic 1',
//     id: 'mnemonic-1',
//     type: 'mnemonic',
//     primary: true,
//   },
//   {
//     name: 'Mnemonic 2',
//     id: 'mnemonic-2',
//     type: 'mnemonic',
//     primary: false,
//   },
// ]

```
