# CEP\_Account.submitCertificate()

### Function Signature

<pre class="language-javascript"><code class="lang-javascript"><strong>async submitCertificate(pdata, privateKey)
</strong></code></pre>

### Parameters

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

### Example&#x20;

```javascript
const Address = 'your-wallet-address';

let account = new CEP_Account();

//...
var privateKey = "your_private_key"
console.log("Submitting Transaction");
const submitResult = account.submitCertificate("test Enterprise APIs", privateKey);

console.log("Result :", submitResult);
if (submitResult.Result === 200) {
    console.log("Certificate submitted successfully:", submitResult);
    txID = submitResult.Response.TxID;
    // ...
} else {
    console.log("Error during 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"
}
```
