Skip to main content
  • Snap

snap_resolveInterface

Description

Resolve an interactive interface. For use in custom dialogs.

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

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.
},
},
});
On this page