Tutorial: interop.fireIntent

interop.fireIntent

Sends an intent to the Interop Broker to resolve.

Example

// View wants to fire an Intent after a user clicks on a ticker
tickerElement.on('click', (element) => {
    const ticker = element.innerText;
    const intent = {
        name: 'ViewChart',
        context: {type: 'fdc3.instrument', id: { ticker }}
    }

    fin.me.interop.fireIntent(intent);
})