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

- Snap

# snap_resolveInterface

Resolve an interactive interface. For use in [custom dialogs](https://metamask-docs-f8nytczy3-consensys-ddffed67.vercel.app/snaps/features/custom-ui/dialogs/#display-a-custom-dialog).

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

object

required

The request parameters for the `snap_resolveInterface` method.

### id

string

required

The interface ID.

### value

JSON

required

The value to resolve the interface with.

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

null

The result returned by the `snap_resolveInterface` method.

## Example

```
const id = await snap.request({
  method: 'snap_createInterface',
  params: {
    // The parameters to create the interface with.
  },
})

// Later, when the user has interacted with the interface, and you want to
// resolve it:
await snap.request({
  method: 'snap_resolveInterface',
  params: {
    id: interfaceId,
    value: {
      // The value to resolve the interface with.
    },
  },
})

```
