Applications and blobs
Applications are the WASM programs a context runs. Blobs are the binary objects (including application bytecode) the node stores. This guide covers both.
Installing an application
Section titled “Installing an application”Install by the coordinates the application is published at. The node fetches the bundle from the registry it is configured with:
result = client.install_application( package="com.example.app", version="1.0.0",)For local development, install straight from a bundle on the node’s filesystem:
client.install_dev_application("/path/to/app.mpk")Listing and inspecting
Section titled “Listing and inspecting”client.list_applications() # all installed applicationsclient.get_application("<application-id>") # one application's infoclient.list_application_versions("<application-id>") # retained bytecode versionslist_application_versions returns each locally retained bytecode version —
the latest install plus any older blobs still referenced by groups or context
activation markers. Each row’s blobId doubles as the app_key accepted by
create_namespace.
Removing an application
Section titled “Removing an application”client.uninstall_application("<application-id>")Application aliases
Section titled “Application aliases”Give an application a friendly name:
client.create_application_alias("my-app", "<application-id>")client.lookup_application_alias("my-app")client.resolve_application_alias("my-app")client.list_application_aliases()client.delete_application_alias("my-app")Upload raw bytes, optionally scoped to a context:
info = client.upload_blob(b"...raw bytes...", context_id=None)Download returns the blob’s bytes directly:
data = client.download_blob("<blob-id>", context_id=None) # -> bytesInspect and manage stored blobs:
client.list_blobs() # all blobsclient.get_blob_info("<blob-id>") # one blob's metadataclient.delete_blob("<blob-id>") # remove a blobBlob IDs are validated — an invalid ID raises ValueError.