> For the complete documentation index, see [llms.txt](https://circular-protocol.gitbook.io/circular-protocol-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://circular-protocol.gitbook.io/circular-protocol-documentation/developer-tools/enterprise-apis/php/cep_account.submitcertificate.md).

# 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"
}
```
