Skip to main content

RPC

View as Markdown

This page lists the Python SDK names for RPCs. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Python SDK API reference.

API names​

TaskPython APIDex behavior
Define an RPC handler@rpc on a Flow methodFlow definition
Set the durable RPC namename of @rpc. It defaults to the method name.Flow definition
Set the RPC timeouttimeout of @rpcRPC timeout
Lock Attributes for the whole calllock_attributes of @rpcLocks
Request transactional reads and writes without locksis_transactional of @rpcTransactional RPCs
Load AttributeMap values and Channel messagesload_attribute_maps, load_attribute_map_instances, load_channels, load_channel_maps, and load_channel_map_instances of @rpcSelective state loading
Return the output and start next StepsRPCResultRPCs
Cancel running StepsRPCResult.with_canceling_stepsCancel running Steps
Let a person invoke the RPC from Dex Webaction of @rpc, with ActionActions
Invoke the RPC from a ClientClient.invoke_rpcInvoke an RPC
Lock or load map instances chosen at call timeRPCInvokeOptionsRuntime-selected map instances

Example​

Example: examples/python/dex_examples/primitives/rpc/rpc_flow.py