SDK Usage
How to use the SDK
Install
Import MEM SDK
React, and other frameworks (also check out React Version):
Node (TS)
Node (ES6)
Retrieve a function state
Send an interaction (only works on server-side)
Deploy a function
Fork a function to mainnet or testnet
While the SDK should be initialized for mainnet
using this method, the fork
functionality allows forking mainnet deployed function to either mainnet or carbon testnet:
Get a function's KV object (only mainnet
)
mainnet
)Named functions resolving DX (only mainnet
)
mainnet
)It is possible to assign a memorable name to a function ID using the function registry tool (e.g., ans.mem
instead of Tih...I5M
). These .mem
names are resolvable with the MEM SDK the same way you would pass a function ID:
Source code
The MEM SDK is an OSS licensed under the MIT license, check out the code's repository here.
Last updated