snap_resolveInterface
Resolve an interactive interface. For use in custom dialogs.
Parameters
object
requiredThe request parameters for the snap_resolveInterface method.
id
stringThe interface ID.
value
JSONThe 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.
},
},
})