---
title: "Gate Submit OTCBank Personal Supplement Example | Siebly"
description: "Gate REST submit otcbank personal supplement JavaScript example for the Siebly Gate SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs."
canonical: "https://siebly.io/examples/Gate/Rest/otc/submitOTCBankPersonalSupplement"
robots: "index,follow"
---

# Gate Submit OTCBank Personal Supplement Example

Gate REST submit otcbank personal supplement JavaScript example for the Siebly Gate SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs.

**Path:** [Home](/) / [Examples](/examples) / [Gate](/examples/Gate) / [Rest](/examples/Gate/Rest) / [otc](/examples/Gate/Rest/otc) / [submitOTCBankPersonalSupplement.ts](/examples/Gate/Rest/otc/submitOTCBankPersonalSupplement)

[View source on GitHub](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Gate/Rest/otc/submitOTCBankPersonalSupplement.ts)

[Open the Gate JavaScript SDK guide](/sdk/gate/javascript)

## submitOTCBankPersonalSupplement.ts

```typescript
import { readFileSync } from 'fs';
import { RestClient } from 'gateio-api';

const account = {
  key: process.env.API_KEY || 'yourApiHere',
  secret: process.env.API_SECRET || 'yourSecretHere',
};

const gateRestClient = new RestClient({
  apiKey: account.key,
  apiSecret: account.secret,
});

async function submitOTCBankPersonalSupplementExample() {
  try {
    console.log('Using API keys:', account);

    const bank_id =
      process.env.OTC_BANK_ID || 'your_bank_id_from_getOTCBankList';

    const result = await gateRestClient.submitOTCBankPersonalSupplement({
      bank_id,
      id_document_front: {
        filename: 'id_front.jpg',
        content: readFileSync(
          process.env.OTC_ID_FRONT_FILE || './id_front.jpg',
        ),
      },
      id_document_back: {
        filename: 'id_back.jpg',
        content: readFileSync(process.env.OTC_ID_BACK_FILE || './id_back.jpg'),
      },
      address_proof: {
        filename: 'address_proof.pdf',
        content: readFileSync(
          process.env.OTC_ADDRESS_PROOF_FILE || './address_proof.pdf',
        ),
      },
    });

    console.log('Response: ', result);
  } catch (e) {
    console.error('Error in execution: ', e);
  }
}

submitOTCBankPersonalSupplementExample();
```
