MEM
WebsiteLabsGuides
  • โš—๏ธMolecular Execution Machine
  • ๐Ÿ‘‹Introduction
    • What is MEM?
    • MEM features
    • MEM vs alternatives
    • Technical architecture
    • Use-case examples
  • โšกQuickstart
    • Quickstart guide
  • ๐Ÿ“–MEM Specifications
    • Function syntax
    • Function specs
    • Transaction specs
    • Supported languages
    • About MIPs
  • โš›๏ธMolecules
    • Overview
    • Multichain authentication
    • Using APIs
    • API reference
  • ๐ŸงชMEM IDE
    • Overview
    • Function ABI
  • โš’๏ธMEM Carbon Testnet
    • Overview
    • Deploy to testnet
    • Interact with testnet functions
  • โš™๏ธMEM SDK
    • SDK Usage
  • ๐Ÿ–ฅ๏ธMEM CLI
    • Function deployment
    • Function interaction
  • ๐Ÿ—๏ธMEM API
    • Overview
    • Write operations
    • Read operations
  • โš›๏ธ3EM-MEM
    • Overview
    • EXM API
    • Key-Value Storage (KVS)
  • ๐ŸงฉExamples
    • Pastebin clone
    • Query onchain data
Powered by GitBook

mem.tech ยฉ 2023

On this page
  1. Molecules

Using APIs

Flexible RESTful Requests with MEM

When working with MEM, you are not restricted to using only molecule.sh for making RESTful requests. The 3EM environment offers the EXM.deterministicFetch() function, which allows you to make any desired request. This flexibility enables you to seamlessly integrate RESTful interactions into your MEM applications, expanding the range of possibilities for data retrieval and communication.

Example: GET request

const req = await EXM.deterministicFetch("http://rand.molecule.sh/generate/0/100")
const res = req.asJSON() // -> '{"result":63}'
PreviousMultichain authenticationNextAPI reference

Last updated 1 year ago

โš›๏ธ