oToken
Makes a request to the OTokenService API. The oToken API retrieves information about oToken contract interaction. For more details, see the Onyx API documentation.
options
(object) A JavaScript object of API request parameters.RETURN
(object) Returns the HTTP response body or error.
(async function() {
const oEthData = await Onyx.api.oToken({
"addresses": Onyx.util.getAddress(Onyx.oETH)
});
console.log('oEthData', oEthData); // JavaScript Object
})().catch(console.error);
Last updated