Tutorial: interop.getInfoForIntentsByContext

interop.getInfoForIntentsByContext

Get information from the Interop Broker on all Intents that are meant to handle a particular context. To resolve this info, the function handleInfoForIntentsByContext is meant to be overridden in the Interop Broker. The format for the response will be determined by the App Provider overriding the function.

Example

tickerElement.on('click', (element) => {
    const ticker = element.innerText;

    const context = { 
        type: 'fdc3.instrument', 
        id: { 
            ticker 
        }
    }

    const intentsInfo = await fin.me.interop.getInfoForIntentByContext(context);
})