# CEP\_Account.submitCertificate()

### Function Signature

```php
public function submitCertificate(string $pdata, string $privateKey): array
```

### Parameters

| Parameter Name | Datatype |
| -------------- | -------- |
| `$pdata`       | String   |
| `$privateKey`  | String   |

### Example

```php
//...
$dataToCertify = "your_data";
$privateKey = "your_private_key";

$txIDTemp = $account->submitCertificate(
                $dataToCertify,
                $privateKey
            );
if ($txIDTemp["Result"] == 200) {
    $txID = $txIDTemp["Response"]["TxID"];
    echo "TxID: " . $txID . "\n";
} else {
    echo "Error in certificate submission";
}
//...
```

### Expected Result

```json
{
   "Result":200,
   "Response":{
      "TxID":"your_tx_id",
      "Timestamp":"your_timestamp_in_format_YYYY:MM:DD-HH:MM:SS_UTC"
   },
   "Node":"selected_node_address"
}
```
