Function specs
MEM function specifications
Similar to transactions, MEM functions must adhere to specific rules to ensure compatibility with the MEM specifications.
Function DA Transaction Tags
Content-Type
: the function source code type (MIME type)App-Name
:EM
Type
:Serverless-Function
EM-Bundled
:true
Size
: thecontractSrc
array length
MEM Functions Source Code Arweave Transaction Data
{
"contentType": "$MIME_TYPE",
"contractSrc": [], // array of character codes
"initState": "{}" // the stringified JSON initial state
}
Last updated