All global methods and utilities can be found at this service module.
Service Methods
Lists all available currencies
Using SDK
// init your sdk as defined in main page of Commerce service
import { W3blockCommerceSDK } from '@w3block/sdk-commerce';
const sdk: W3blockCommerceSDK;
...
const currencies = await sdk.api.globals.listCurrencies({ page: 1, limit: 10 });
console.log('currencies', currencies);
Rest API reference:
๐จโ๐ป
get
Lists system available currencies and its supported payment providers