Getting Started

Connecting eosTock

When you install the eostock Chrome Extension, an eostock Instance is added to windows.

// The eosTock Instance is added to windows asynchronously.
const eosTock = window.eosTock;
// You must delete the references of window.eosTock.
window.eosTock = null;

window.eosTock reference deletion

If you do not delete the window.eosTock reference, it can be used elsewhere. You must delete it. (eosTock does not take responsibility of the consequences due to non-deletion).

window.eosTock = null;

Connected Event

To get the Event that EOStock is connected, use as below.

document.addEventListener('EOSTOCK_CONNECTED', () => {
const eosTock = window.eosTock;
window.eosTock = null;
});