# Transaction API

AUTHORIZATION - <mark style="color:red;">Bearer Token</mark>

This folder is using Bearer Token

~~**-------------------------------------------------------------------------------------------------**~~

## ◾ Domain Code&#x20;

### TX Status

<table><thead><tr><th width="342">txStDcd</th><th width="396">txSt</th></tr></thead><tbody><tr><td>1007001</td><td>Pending</td></tr><tr><td>1007002</td><td>Success</td></tr><tr><td>1007003</td><td>Failed</td></tr></tbody></table>

### Signature Type

<table><thead><tr><th width="288">SignatureType</th><th width="461">desc</th></tr></thead><tbody><tr><td>SIGNATURE_TYPE_FOR_ASSET_TRANSFER</td><td>General asset transfer(native coin, token, nft)<br>asset id is required for native coin and token transfer<br>nft id is required for nft transfer</td></tr><tr><td>SIGNATURE_TYPE_FOR_SMARTCONTRACT_EXECUTION</td><td>Using when running SmartContracts, must enter a contract address in transferTo, contractAddress<br>* TX from the maket<br>required <strong>contractAddress, txInput</strong><br>* nft transfer for wallet -> game<br>required  <strong>contractAddress,</strong> <strong>transferMethod</strong>, <strong>nftId</strong></td></tr><tr><td>SIGNATURE_TYPE_FOR_WALLETCONNECT</td><td>Using when Wallet Contract</td></tr></tbody></table>

### Transfer Method

<table><thead><tr><th>Method</th><th width="373">desc</th></tr></thead><tbody><tr><td>gameNftLock</td><td>nft transfer for wallet -> game<br>required <strong>transferMethod, nftid</strong></td></tr></tbody></table>

## ◾ <mark style="color:blue;">**GET**</mark>

~~*---------------------------------------------------------------------------------------------------*~~

## Search - Recent withdrawal list

<mark style="color:blue;">`GET`</mark> `https://apis.cubeapi.io/v1/wallets/{wid}/assets/transfers/recent`

#### Path Parameters

| Name                                  | Type | Description |
| ------------------------------------- | ---- | ----------- |
| wid<mark style="color:red;">\*</mark> | Int  | wellet id   |

#### Query Parameters

| Name  | Type | Description |
| ----- | ---- | ----------- |
| limit | Int  | Default 5   |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "apiVersion": "1",
    "status": {
        "code": 200,
        "message": "OK"
    },
    "data": {
        "items": [
            {
                "historySeq": 38642,
                "chainId": 0,
                "transferSeq": 35932,
                "fid": 1111112,
                "wid": 10361,
                "walletAddress": "walletAddress",
                "assetInfo": {
                    "assetId": 6,
                    "createKst": null,
                    "updateKst": null,
                    "chainId": 0,
                    "chainNm": null,
                    "assetTypeDcd": null,
                    "assetType": null,
                    "contractAddress": null,
                    "assetNm": null,
                    "assetSymbol": null,
                    "assetSymbolImg": null,
                    "assetDecimal": 0,
                    "fncyYn": null,
                    "cubeYn": null,
                    "gcoinYn": null,
                    "useYn": null,
                    "defaultAssetYn": null,
                    "assetDesc": null,
                    "marketId": null,
                    "gameCode": null,
                    "btnDepositYn": null,
                    "btnWithdrawYn": null,
                    "btnBridgeYn": null,
                    "btnCubetogcoinYn": null,
                    "btnExchangeYn": null,
                    "btnGcointopointYn": null,
                    "btnGcointocubeYn": null,
                    "btnBuywithcardYn": null,
                    "assetButtonTypeDcd": null,
                    "assetButtonType": null,
                    "assetOrder": 0
                },
                "transferEventIndex": 0,
                "transferEventDcd": "1008001",
                "transferEvent": "Transfer",
                "transferMethod": "Transfer",
                "txStDcd": null,
                "txSt": null,
                "inOutDcd": "1006002",
                "inOut": "Withdrawal",
                "transferFrom": "transferFrom",
                "transferTo": "transferTo",
                "transferVal": 10000000000000000000,
                "displayTransferVal": "10,000,000,000,000,000,000",
                "blockNumber": 0,
                "blockHash": null,
                "blockTimestamp": 1667800823,
                "txId": null,
                "txIndex": 0,
                "txNonce": 0,
                "txVal": 0,
                "txFee": 0,
                "displayTxFee": "0",
                "txAnnotation": "transfer",
                "historyUts": 1667800827,
                "historyKst": null
            },
            {
                "historySeq": 38641,
                "chainId": 0,
                "transferSeq": 35927,
                "fid": 1111112,
                "wid": 10361,
                "walletAddress": "walletAddress",
                "assetInfo": {
                    "assetId": 6,
                    "createKst": null,
                    "updateKst": null,
                    "chainId": 0,
                    "chainNm": null,
                    "assetTypeDcd": null,
                    "assetType": null,
                    "contractAddress": null,
                    "assetNm": null,
                    "assetSymbol": null,
                    "assetSymbolImg": null,
                    "assetDecimal": 0,
                    "fncyYn": null,
                    "cubeYn": null,
                    "gcoinYn": null,
                    "useYn": null,
                    "defaultAssetYn": null,
                    "assetDesc": null,
                    "marketId": null,
                    "gameCode": null,
                    "btnDepositYn": null,
                    "btnWithdrawYn": null,
                    "btnBridgeYn": null,
                    "btnCubetogcoinYn": null,
                    "btnExchangeYn": null,
                    "btnGcointopointYn": null,
                    "btnGcointocubeYn": null,
                    "btnBuywithcardYn": null,
                    "assetButtonTypeDcd": null,
                    "assetButtonType": null,
                    "assetOrder": 0
                },
                "transferEventIndex": 0,
                "transferEventDcd": "1008001",
                "transferEvent": "Transfer",
                "transferMethod": "Transfer",
                "txStDcd": null,
                "txSt": null,
                "inOutDcd": "1006002",
                "inOut": "Withdrawal",
                "transferFrom": "transferFrom",
                "transferTo": "transferTo",
                "transferVal": 1000000000000000000000,
                "displayTransferVal": "1,000,000,000,000,000,000,000",
                "blockNumber": 0,
                "blockHash": null,
                "blockTimestamp": 1667797583,
                "txId": null,
                "txIndex": 0,
                "txNonce": 0,
                "txVal": 0,
                "txFee": 0,
                "displayTxFee": "0",
                "txAnnotation": "transfer",
                "historyUts": 1667797586,
                "historyKst": null
            }
            ...
        ]
    }
}
```

{% endtab %}
{% endtabs %}

## Search - ERC20 asset transfer history list

<mark style="color:blue;">`GET`</mark> `https://apis.cubeapi.io/v1/wallets/{wid}/assets/transfers`

[TX Status](#tx-status)

#### Path Parameters

| Name                                  | Type | Description |
| ------------------------------------- | ---- | ----------- |
| wid<mark style="color:red;">\*</mark> | Int  | wallet id   |

#### Query Parameters

| Name    | Type   | Description                       |
| ------- | ------ | --------------------------------- |
| InOut   | String | deposit \| withdrawal             |
| assetId | int    | asset id managed by wallet server |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "apiVersion": "1",
    "status": {
        "code": 200,
        "message": "OK"
    },
    "data": {
        "paging": {
            "pageNo": 1,
            "pageSize": 20,
            "totalCount": 3,
            "hasMore": false
        },
        "items": [
            {
                "historySeq": 38642,
                "transferSeq": 35932,
                "wid": 10361,
                "walletAddress": "walletAddress",
                "assetInfo": {
                    "assetId": 6,
                    "contractAddress": null,
                    "assetNm": "FNCY",
                    "assetSymbol": "FNCY",
                    "assetSymbolImg": null,
                    "assetDecimal": 18,
                    "fncyYn": null,
                    "cubeYn": null,
                    "gcoinYn": "N",
                    "assetDesc": null
                },
                "transferEventDcd": "1008001",
                "transferEvent": "Send",
                "transferMethod": "Transfer",
                "txStDcd": "1007002",
                "txSt": "Success",
                "inOutDcd": "1006002",
                "inOut": "Withdrawal",
                "transferFrom": "transferFrom",
                "transferTo": "transferTo",
                "transferVal": 10000000000000000000,
                "displayTransferVal": "10",
                "blockTimestamp": 1667800823,
                "txAnnotation": "transfer",
                "historyUts": 1667800827
            },
            {
                "historySeq": 38641,
                "transferSeq": 35927,
                "wid": 10361,
                "walletAddress": "walletAddress",
                "assetInfo": {
                    "assetId": 6,
                    "contractAddress": null,
                    "assetNm": "FNCY",
                    "assetSymbol": "FNCY",
                    "assetSymbolImg": null,
                    "assetDecimal": 18,
                    "fncyYn": null,
                    "cubeYn": null,
                    "gcoinYn": "N",
                    "assetDesc": null
                },
                "transferEventDcd": "1008001",
                "transferEvent": "Send",
                "transferMethod": "Transfer",
                "txStDcd": "1007002",
                "txSt": "Success",
                "inOutDcd": "1006002",
                "inOut": "Withdrawal",
                "transferFrom": "transferFrom",
                "transferTo": "transferTo",
                "transferVal": 1000000000000000000000,
                "displayTransferVal": "1,000",
                "blockTimestamp": 1667797583,
                "txAnnotation": "transfer",
                "historyUts": 1667797586
            },
            ...
        ]
    }
}
```

{% endtab %}
{% endtabs %}

## Search - ERC20 asset transfer history detail V1

<mark style="color:blue;">`GET`</mark> `https://apis.cubeapi.io/v1/wallets/{wid}/assets/transfers/{transferSeq}`

#### Path Parameters

| Name                                          | Type | Description     |
| --------------------------------------------- | ---- | --------------- |
| wid<mark style="color:red;">\*</mark>         | Int  | wallet id       |
| transferSeq<mark style="color:red;">\*</mark> | Int  | seq of transfer |

#### Query Parameters

| Name    | Type | Description |
| ------- | ---- | ----------- |
| chainId | Int  | chain id    |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "1",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "items": [
      {
        "transferSeq": 1,
        "wid": 10030,
        "walletAddress": "walletAddress",
        "assetInfo": {
          "assetId": 1,
          "assetNm": "Binance Coin",
          "assetSymbol": "BNB",
          "assetSymbolImg": "",
          "assetDecimal": 18,
          "gcoinYn": "N"
        },
        "transferEventDcd": "1008001",
        "transferEvent": "Transfer",
        "transferMethod": "Transfer",
        "txStDcd": "1007002",
        "txSt": "Success",
        "inOutDcd": "1006001",
        "inOut": "Deposit",
        "transferFrom": "transferFrom",
        "transferTo": "transferTo",
        "transferVal": 1000000000000000000,
        "blockTimestamp": 1646036385,
        "txId": "txId",
        "txIndex": 1,
        "txNonce": 3877852,
        "txVal": 1000000000000000000,
        "txFee": 378000000000000,
        "txAnnotation": null,
        "historyUts": 1646482520,
        "historyKst": null
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## Search - ERC20 asset transfer history detail V2

<mark style="color:blue;">`GET`</mark> `https://apis.cubeapi.io/v2/wallets/{wid}/assets/transfers/{historySeq}`

Lost of existing key uniqueness due to chain addition

Reset key for detail

Change trasferSeq -> historySeq&#x20;

#### Path Parameters

| Name                                         | Type | Description            |
| -------------------------------------------- | ---- | ---------------------- |
| wid<mark style="color:red;">\*</mark>        | Int  | wallet id              |
| historySeq<mark style="color:red;">\*</mark> | Int  | seq you want to search |

#### Query Parameters

| Name    | Type   | Description                       |
| ------- | ------ | --------------------------------- |
| inOut   | String | deposit \| withdraw               |
| assetId | Int    | asset id managed by wallet server |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "2",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "items": [
      {
        "transferSeq": 44,
        "fid": 2517,
        "wid": 10003,
        "walletAddress": "walletAddress",
        "assetInfo": {
          "assetId": 5,
          "contractAddress": null,
          "assetNm": "Ethereum Coin",
          "assetSymbol": "ETH",
          "assetSymbolImg": "assetSymbolImg URL",
          "assetDecimal": 18,
          "cubeYn": null,
          "gcoinYn": "N",
          "assetDesc": null
        },
        "transferEventDcd": "1008001",
        "transferEvent": "Transfer",
        "transferMethod": "Transfer",
        "txStDcd": "1007002",
        "txSt": "Success",
        "inOutDcd": "1006001",
        "inOut": "Deposit",
        "transferFrom": "transferFrom",
        "transferTo": "transferTo",
        "transferVal": 100000000000000000,
        "displayTransferVal": "0.1",
        "blockTimestamp": 1654674954,
        "txId": "txId",
        "txIndex": 55,
        "txNonce": 26,
        "txVal": 100000000000000000,
        "txFee": 31500000168000,
        "displayTxFee": "0.000031500000168",
        "txAnnotation": null,
        "historyUts": 1654675025
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## ◾ <mark style="color:green;">**POST**</mark>

~~*---------------------------------------------------------------------------------------------------*~~

## Check - Transfer Ticket V1

<mark style="color:green;">`POST`</mark> `https://apis.cubeapi.io/v1/transfers/estimate`

[Signature Type](#signature-type)

[Transfer Method](#transfer-method)

Checking transfer availability and checking nonce, gas limit before generate transfer ticket(/v1/transfers/tickets)

Returns the WalletSignatureTicketDomain from which tickets can be generated

Ethereum transfer is possible from V2

**Transacion Generation Flow**

1.Cheking transfer ticket -> Checking readiness to send and return by adding required  values for transfer

2.Generate transfer ticket -> Generate transfer history as ticket to save database and return ticket UUID

3.transfer transaction -> Through the ticket UUID and wallet passwords obtained by the generated transfer tickets, promote signature and network in server

#### Request Body

| Name                                            | Type       | Description                                                    |
| ----------------------------------------------- | ---------- | -------------------------------------------------------------- |
| formerTicketUuid                                | String     | Previous ticket UUID when using batch transaction              |
| signatureType<mark style="color:red;">\*</mark> | Enum       | [Signature Type](#signature-type)                              |
| transferTo<mark style="color:red;">\*</mark>    | String     | Address to send                                                |
| transferVal                                     | BigDecimal | <p>Coin, nft quantity to send<br>(Contract is typically 0)</p> |
| transferMethod                                  | String     | [Transfer Method](#signature-type)                             |
| txGasPrice                                      | BigDecimal | Gas price(defualt 10 gwei)                                     |
| txInput                                         | String     |                                                                |
| contractAddress                                 | String     |                                                                |
| assetId                                         | Int        | Required for asset transfer                                    |
| nftId                                           | Long       | Required for nft transfer                                      |
| contractParameters                              | List       | not implemented-no need to put it in                           |
| wid<mark style="color:red;">\*</mark>           | Int        | wallet id                                                      |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "1",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "resultType": "WalletSignatureTicketInsertResultCodes",
    "result": {
      "isSuccess": true|false,
      "code": "enum code of WalletSignatureTicketInsertResultCodes",
      "number": http status code,
      "message": http status message
    },
    "items": [
      {
        "formerTicketUuid": null,
        "wid": 10036,
        "signatureType": "SIGNATURE_TYPE_FOR_SMARTCONTRACT_EXECUTION",
        "transferFrom": "transferFrom",
        "transferTo": "transferTo",
        "transferVal": 0,
        "transferMethod": null,
        "txNonce": 9,
        "txGasPrice": 10000000000,
        "txGasLimit": 36103,
        "txInput": "txInput",
        "contractAddress": "contractAddress",
        "assetId": null,
        "nftId": null,
        "tokenId": null
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## Check - Transfer Ticket V2

<mark style="color:green;">`POST`</mark> `https://apis.cubeapi.io/v2/transfers/estimate`

[Signature Type](#signature-type)

[Transfer Method](#transfer-method)

Checking transfer availability and checking nonce, gas limit before generate transfer ticket(/v2/transfers/tickets)

Returns the WalletSignatureTicketDomain from which tickets can be generated

**Transacion Generation Flow**

1.Cheking transfer ticket -> Checking readiness to send and return by adding required  values for transfer

2.Generate transfer ticket -> Generate transfer history as ticket to save database and return ticket UUID

3.transfer transaction -> Through the ticket UUID and wallet passwords obtained by the generated transfer tickets, promote signature and network in server

#### Request Body

| Name                                            | Type       | Description                                                    |
| ----------------------------------------------- | ---------- | -------------------------------------------------------------- |
| signatureType<mark style="color:red;">\*</mark> | Enum       | [Signature Type](#signature-type)                              |
| transferTo<mark style="color:red;">\*</mark>    | String     | Address to send                                                |
| transferVal                                     | BigDecimal | <p>Coin, nft quantity to send<br>(Contract is typically 0)</p> |
| txGasPrice                                      | BigDecimal | Gas price(defualt 10 gwei)                                     |
| txInput                                         | String     |                                                                |
| contractAddress                                 | String     |                                                                |
| assetId                                         | Int        | Required for asset Transfer                                    |
| nftId                                           | Long       | Required for nft Transfer                                      |
| contractParameters                              | List       | not implemented: no need to put it in                          |
| wid<mark style="color:red;">\*</mark>           | Int        | wellet id                                                      |
| formerTicketUuid                                | String     | Previous ticket UUID when using batch transaction              |
| transferMethod                                  | String     | [Transfer Method](#transfer-method)                            |
| chainId<mark style="color:red;">\*</mark>       | Int        | bsc, eth chain id (1 or 2)                                     |
| maxPriorityPerGas                               | BigDecimal | eip-1559                                                       |
| maxFeePerGas                                    | BigDecimal | eip-1559                                                       |
| txGasLimit                                      | BigDecimal | if value is 0 apply value as gasLimit                          |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "2",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "resultType": "WalletSignatureTicketInsertResultCodes",
    "result": {
      "isSuccess": true,
      "code": "SUCCESS",
      "number": 200,
      "message": "Success"
    },
    "items": [
      {
        "formerTicketUuid": null,
        "wid": 10036,
        "signatureType": "SIGNATURE_TYPE_FOR_SMARTCONTRACT_EXECUTION",
        "transferFrom": "transferFrom",
        "transferTo": "transferTo",
        "transferVal": 0,
        "transferMethod": null,
        "txNonce": 9,
        "txGasPrice": 10000000000,
        "txGasLimit": 36103,
        "txInput": "txInput",
        "contractAddress": "contractAddress",
        "assetId": null,
        "nftId": null,
        "tokenId": null
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## Create - Transfer Ticket V1

<mark style="color:green;">`POST`</mark> `https://apis.cubeapi.io/v1/transfers/tickets`

[SignatureType](#signature-type)

**Transaction transfer process**

1.Ticket create(/v1/transfers/ticksets)

2.Ticket authenfication(/v1/transfers/tickets/:ticketUuid)

**Transaction authenfication - get HASH**

transferHash + ${transferTo} + ${transferVal} + ${txInput} + ${contractAddress}

#### Headers

| Name                                            | Type       | Description                                                                                         |
| ----------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------- |
| txInput                                         | String     | Use if walletconnect                                                                                |
| transferTo<mark style="color:red;">\*</mark>    | String     | Address to send                                                                                     |
| nftId                                           | Long       | Required for nft transfer (managed by wallet server)                                                |
| contractAddress                                 | String     | <p>Use if walletconnect<br>nft,token - Not required for transmission</p>                            |
| txGasPrice                                      | BigDecimal | <p>Gas price (defualt 10 gwei)<br>(10 gwei -> 10000000000)</p>                                      |
| wid<mark style="color:red;">\*</mark>           | Int        | wallet id                                                                                           |
| signatureType<mark style="color:red;">\*</mark> | Enum       | [Signature Type](#signature-type)                                                                   |
| transferVal<mark style="color:red;">\*</mark>   | BigDecimal | <p>Amount to transfer<br>(1 BNB -> 100000000000000000)</p>                                          |
| assetId                                         | Int        | <p>Required for native coin, token transmission<br>If this value exists, transferVal is assetId</p> |
| tokenId                                         | String     | Required for nft transfer (managed by wallet server)                                                |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "1",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "resultType": "WalletSignatureTicketInsertResultCodes",
    "result": {
      "isSuccess": true,
      "code": "SUCCESS",
      "number": 200,
      "message": "Success"
    },
    "ticketUuid": "ticketUuid",
    "ticketHash": "ticketHash"
  }
}
```

{% endtab %}
{% endtabs %}

## Create - Transfer Ticket V2

<mark style="color:green;">`POST`</mark> `https://apis.cubeapi.io/v2/transfers/tickets`

[SignatureType](#signature-type)

**Transaction transfer process**

1.Ticket create(/v2/transfers/ticksets)

2.Ticket authenfication(/v2/transfers/tickets/:ticketUuid)

**Transaction authenfication - get HASH**

transferHash + ${transferTo} + ${transferVal} + ${txInput} + ${contractAddress}

#### Headers

| Name                                            | Type       | Description                                                                                         |
| ----------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------- |
| txInput                                         | String     | Use if walletconnect                                                                                |
| transferTo<mark style="color:red;">\*</mark>    | String     | Address to send                                                                                     |
| nftId                                           | Long       | Required for nft transfer (managed by wallet server)                                                |
| contractAddress                                 | String     | <p>Use if walletconnect<br>nft,token - Not required for transmission</p>                            |
| txGasPrice                                      | BigDecimal | <p>Gas price (defualt 10 gwei)<br>(10 gwei -> 10000000000)</p>                                      |
| wid<mark style="color:red;">\*</mark>           | Int        | wallet id                                                                                           |
| signatureType<mark style="color:red;">\*</mark> | Enum       | [Signature Type](#signature-type)                                                                   |
| transferVal<mark style="color:red;">\*</mark>   | BigDecimal | <p>Amount to transfer<br>(1 BNB -> 100000000000000000)</p>                                          |
| assetId                                         | Int        | <p>Required for native coin, token transmission<br>If this value exists, transferVal is assetId</p> |
| tokenId                                         | String     | Required for nft transfer (managed by blockchain)                                                   |
| chainId<mark style="color:red;">\*</mark>       | Int        | bsc, eth chain id (1 or 2)                                                                          |
| maxPriorityPerGas                               | BigDecimal | eip-1559                                                                                            |
| maxFeePerGas                                    | BigDecimal | eip-1559                                                                                            |
| txGasLimit                                      | BigDecimal | if value is 0 apply value as gasLimit                                                               |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "2",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "resultType": "WalletSignatureTicketInsertResultCodes",
    "result": {
      "isSuccess": true,
      "code": "SUCCESS",
      "number": 200,
      "message": "Success"
    },
    "ticketUuid": "ticketUuid",
    "ticketHash": "ticketHash"
  }
}
```

{% endtab %}
{% endtabs %}

## Transfer - Transaction V2

<mark style="color:green;">`POST`</mark> `https://apis.cubeapi.io/v2/transfers/tickets/:ticketUuid`

Batch Transaction available (Generate n transaction in one block)

Require pin encrypted  with sha256

#### Headers

| Name                                                    | Type   | Description                                                                                                  |
| ------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------ |
| ticketUuidList<mark style="color:red;">\*</mark>        | List   | <p>ticketUUID list obtained from transfer ticket generation<br>If there is only one send, please put one</p> |
| rsaEncryptedHashedPin<mark style="color:red;">\*</mark> | String | Encrypted sha256 with rsa public key                                                                         |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "apiVersion": "2",
  "status": {
    "code": 200,
    "message": "OK"
  },
  "data": {
    "resultType": "SignAndSendResultCodes",
    "result": {
      "isSuccess": true,
      "code": "SUCCESS",
      "number": 200,
      "message": "Success"
    },
    "items": [
      {
        "ticketUuid": "ticketUuid",
        "txId": "txId",
        "error": null
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
