Methods
readCallFunction()
Call a read-only function on a deployed contract.
Signature:
| Parameter | Type | Required | Description |
|---|---|---|---|
network | string | Yes | Blockchain network (e.g., ‘tBTC’, ‘tETH’, ‘AVAX’, ‘FUJI’, ‘SANDBOX’) |
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 |
|---|---|---|---|
network | string | Yes | Blockchain network (e.g., ‘tBTC’, ‘tETH’, ‘AVAX’, ‘FUJI’, ‘SANDBOX’) |
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.result.workflowId | string | No | Workflow ID for tracking function call |
data.result.status | string | No | Workflow status |
getTransactionReceipt()
Get transaction receipt for a transaction hash.
Signature:
| Parameter | Type | Required | Description |
|---|---|---|---|
request.network | 'ETH' | 'tETH' | Yes | Blockchain network |
request.txId | string | Yes | Transaction hash |