Methods
readCallFunction()
Call a read-only function on a deployed contract.
Signature:
| Parameter | Type | Required | Description |
|---|---|---|---|
networkId | string | Yes | Network ID (UUID from getNetworks()) |
contractAddress | string | Yes | Contract address |
request.abiFunction | object | Yes | ABI function object |
| Field | Type | Required | Description |
|---|---|---|---|
data.result.data.result | object | No | Decoded function result |
data.result.data.functionName | string | No | Function name that was called |
data.result.data.contractAddress | string | No | Contract address |
data.result.data.network | string | No | Network |
data.result.data.encodedData | string | No | Encoded function call data |
data.result.success | boolean | No | Whether the call was successful |
data.result.status | number | No | HTTP status code |
writeCallFunction()
Call a write function on a deployed contract. Returns a workflow ID for async processing.
Signature:
| Parameter | Type | Required | Description |
|---|---|---|---|
networkId | string | Yes | Network ID (UUID from getNetworks()) |
contractAddress | string | Yes | Contract address |
request.addressId | string | Yes | Address ID for signing |
request.clientShare | string | Yes | Client share for signing |
request.abiFunction | object | Yes | ABI function object |
request.amount | string | No | Amount to send with transaction |
request.feeLevel | string | No | Transaction fee level |
| Field | Type | Required | Description |
|---|---|---|---|
data.workflowResult.workflowId | string | Yes | Workflow ID for tracking function call |
data.workflowResult.operationId | string | Yes | Operation ID (e.g. writeCallId) |
data.workflowResult.status | 'started' | 'already_running' | Yes | Workflow status |
data.workflowResult.message | string | Yes | Human-readable status message |
getTransactionReceipt()
Get transaction receipt for a transaction hash.
Signature:
| Parameter | Type | Required | Description |
|---|---|---|---|
networkId | string | Yes | Network ID (UUID from getNetworks()) |
txId | string | Yes | Transaction hash |