> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# Pending transactions

> <Note>This content applies to WaaS 1.0 only. We highly recommend that you upgrade to [WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).</Note> This endpoint returns a JSON response with a list of pending transactions filtered by coin, side, max_id, min_id, and limit parameters. The response includes transaction details such as transaction ID, coin type, amount, and timestamp.

<Tip> FAQ：[How do I query the details of a pending transaction?](/v1/faqs/transaction-management#how-do-i-query-the-details-of-a-pending-transaction)</Tip>

<Note>it's possible that there may be no pending transactions for various reasons.
Firstly, it depends on whether the customer has selected the option to receive callbacks for pending transactions.
Additionally, it's possible that the blockchain processing speed for this particular cryptocurrency is fast,so transactions are confirmed without going through a pending state.</Note>

#### Request

<ParamField query="coin" type="String">Coin code (Does not return all currencies)</ParamField>
<ParamField query="side" type="enum(deposit / withdraw)">Deposit/withdraw</ParamField>
<ParamField query="max_id" type="String">The transaction history ID limit is optional. If not included, will by default return the most recent records.(cannot be used with min\_id)</ParamField>
<ParamField query="min_id" type="String">Optional. If included, the sequence will be changed to time ASC. If not included, will by default return the most recent records, time DESC.(cannot be used with max\_id)</ParamField>
<ParamField query="limit" type="Integer">Page size is optional. If not included, the default size will be 50, and the maximum size will also be 50.</ParamField>

#### Response

<ResponseField name="success" type="bool">request successful or failed</ResponseField>

<ResponseField name="result" type="object[]">
  <Expandable title="object">
    <Snippet file="full_custodian_transaction_snippet.mdx" />
  </Expandable>
</ResponseField>

<RequestExample>
  ```python Python theme={null}
  request(
      'GET',
      '/v1/custody/pending_transactions/',
      {
          "coin": "XRP",
          "side": "withdraw"
      },
      api_key, api_secret, host
  )
  ```

  ```javascript JavaScript theme={null}
  coboFetch('GET', '/v1/custody/pending_transactions/',
          {
              "coin": "XRP",
              "side": "withdraw"
          },
          api_key, api_secret, host
      ).then(res => {
          res.json().then((data)=>{
              console.log(JSON.stringify(data, null, 4));
          })
      }).catch(err => {
          console.log(err)
      });
  ```

  ```go Go theme={null}
  Request("GET", "/v1/custody/pending_transactions/", map[string]string{
      "coin": "XRP",
      "side": "withdraw",
  })
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "result": [
      {
          "id": "20211119225929000317830000006164",
          "coin": "XRP",
          "display_code": "XRP",
          "description": "Ripple",
          "address": "rfKyCMyoV6Ln2GZ7YDbrBrnXCbAyBbxRqB|1175609358",
          "source_address": "rfsEqW6MTpfsedoCNZ6DfDy8r8yFENvtjE",
          "side": "withdraw",
          "amount": "1",
          "decimal": 6,
          "abs_amount": "0.000001",
          "txid": "924D917E537D449408E7CBD9F6F849116EBBDA2E08509818718F1989CE78C9A3",
          "vout_n": 0,
          "request_id": "IntegrationTest-575195389281796588",
          "status": "pending",
          "created_time": 1637333969867,
          "last_time": 1637333969867,
          "confirming_threshold": 1,
          "confirmed_num": 0,
          "waiting_audit": false,
          "remark": "",
          "tx_detail": {
              "txid": "924D917E537D449408E7CBD9F6F849116EBBDA2E08509818718F1989CE78C9A3",
              "blocknum": 0,
              "blockhash": "",
              "fee": 0,
              "actualgas": 0,
              "gasprice": 1,
              "hexstr": ""
          },
          "source_address_detail": "rfsEqW6MTpfsedoCNZ6DfDy8r8yFENvtjE",
          "memo": "1175609358",
          "type": "external"
      },
      {
          "id": "20211119225929000317830000006163",
          "coin": "XRP",
          "display_code": "XRP",
          "description": "Ripple",
          "address": "rfKyCMyoV6Ln2GZ7YDbrBrnXCbAyBbxRqB|1175609358",
          "source_address": "rfsEqW6MTpfsedoCNZ6DfDy8r8yFENvtjE",
          "side": "withdraw",
          "amount": "1",
          "decimal": 6,
          "abs_amount": "0.000001",
          "txid": "AB50566D8463CB11CE8CABC976D5A338EC5D86BE63FFC85E81CDA8B6B9918905",
          "vout_n": 0,
          "request_id": "IntegrationTest-575171218722709682",
          "status": "pending",
          "created_time": 1637333969545,
          "last_time": 1637333969545,
          "confirming_threshold": 1,
          "confirmed_num": 0,
          "waiting_audit": false,
          "remark": "",
          "tx_detail": {
              "txid": "AB50566D8463CB11CE8CABC976D5A338EC5D86BE63FFC85E81CDA8B6B9918905",
              "blocknum": 0,
              "blockhash": "",
              "fee": 0,
              "actualgas": 0,
              "gasprice": 1,
              "hexstr": ""
          },
          "source_address_detail": "rfsEqW6MTpfsedoCNZ6DfDy8r8yFENvtjE",
          "memo": "1175609358",
          "type": "external"
      }
    ]
  }
  ```
</ResponseExample>
