Skip to main content
Call read and write functions on deployed contracts and retrieve transaction receipts.

Methods

readCallFunction()

Call a read-only function on a deployed contract. Signature:
Parameters:
ParameterTypeRequiredDescription
networkIdstringYesNetwork ID (UUID from getNetworks())
contractAddressstringYesContract address
request.abiFunctionobjectYesABI function object
Example Request:
Example Response:
Response Fields:
FieldTypeRequiredDescription
data.result.data.resultobjectNoDecoded function result
data.result.data.functionNamestringNoFunction name that was called
data.result.data.contractAddressstringNoContract address
data.result.data.networkstringNoNetwork
data.result.data.encodedDatastringNoEncoded function call data
data.result.successbooleanNoWhether the call was successful
data.result.statusnumberNoHTTP status code

writeCallFunction()

Call a write function on a deployed contract. Returns a workflow ID for async processing. Signature:
Parameters:
ParameterTypeRequiredDescription
networkIdstringYesNetwork ID (UUID from getNetworks())
contractAddressstringYesContract address
request.addressIdstringYesAddress ID for signing
request.clientSharestringYesClient share for signing
request.abiFunctionobjectYesABI function object
request.amountstringNoAmount to send with transaction
request.feeLevelstringNoTransaction fee level
Example Request:
Example Response:
Response Fields:
FieldTypeRequiredDescription
data.workflowResult.workflowIdstringYesWorkflow ID for tracking function call
data.workflowResult.operationIdstringYesOperation ID (e.g. writeCallId)
data.workflowResult.status'started' | 'already_running'YesWorkflow status
data.workflowResult.messagestringYesHuman-readable status message

getTransactionReceipt()

Get transaction receipt for a transaction hash. Signature:
Parameters:
ParameterTypeRequiredDescription
networkIdstringYesNetwork ID (UUID from getNetworks())
txIdstringYesTransaction hash
Example:

getDeployedContractAbi()

Get contract ABI for a deployed contract. Signature:
Example: