bToken

Makes a request to the BTokenService API. The bToken API retrieves information about bToken contract interaction. For more details, see the Belugas 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 Belugas.api.bToken({
    "addresses": Belugas.util.getAddress(Belugas.bBNB)
  });

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

Last updated