aToken

Makes a request to the STokenService API. The aToken API retrieves information about aToken contract interaction. For more details, see the Agile API documentation.

  • options (object) A JavaScript object of API request parameters.

  • RETURN (object) Returns the HTTP response body or error.

(async function() {
  const sEthData = await Agile.api.aToken({
    "addresses": Agile.util.getAddress(Agile.aBNB)
  });

  console.log('sEthData', sEthData); // JavaScript Object
})().catch(console.error);

Last updated