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

# suix_getAllCoins

> Return all Coin objects owned by an address.

### Parameters

<ParamField query="chainId" type="string" default="sui" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="suix_getAllCoins" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x41f5975e3c6bd5c95f041a8493ad7e9934be26e69152d2c2e86d8a9bdbd242b3","0x2564cd31a71cf9833609b111436d8f0f47b7f8b9927ec3f8975a1dcbf9b25564",3]} placeholder="[&#x22;0x41f5975e3c6bd5c95f041a8493ad7e9934be26e69152d2c2e86d8a9bdbd242b3&#x22;,&#x22;0x2564cd31a71cf9833609b111436d8f0f47b7f8b9927ec3f8975a1dcbf9b25564&#x22;,3]" required>
  Parameters for suix\_getAllCoins: \[ownerAddress, cursor, limit]

  Positional parameters for <code>suix\_getAllCoins</code>:

  <ul>
    <li><code>params\[0]</code>: The owner's Sui address</li>
    <li><code>params\[1]</code>: Optional paging cursor</li>
    <li><code>params\[2]</code>: Maximum number of items per page</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Response for suix\_getAllCoins

  <Expandable title="properties">
    <ResponseField name="data" type="array">
      List of coin objects

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          <Expandable title="properties">
            <ResponseField name="coinType" type="string" />

            <ResponseField name="coinObjectId" type="string" />

            <ResponseField name="version" type="string" />

            <ResponseField name="digest" type="string" />

            <ResponseField name="balance" type="string">
              uint128 string
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="hasNextPage" type="boolean">
      Whether more pages are available
    </ResponseField>

    <ResponseField name="nextCursor" type="string">
      Cursor to fetch the next page, or null if there is no next page
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "suix_getAllCoins",
      "params": [
        "0x41f5975e3c6bd5c95f041a8493ad7e9934be26e69152d2c2e86d8a9bdbd242b3",
        "0x2564cd31a71cf9833609b111436d8f0f47b7f8b9927ec3f8975a1dcbf9b25564",
        3
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "data": [
        {
          "coinType": "0x2::sui::SUI",
          "coinObjectId": "0x861c5e055605b2bb1199faf653a8771e448930bc95a0369fad43a9870a2e5878",
          "version": "103626",
          "digest": "Ao1QyN9UTmYzb2ead3D5xhSBk7TvACRvmnJW8gRbwP99",
          "balance": "200000000",
          "previousTransaction": "7dp5WtTmtGp83EXYYFMzjBJRFeSgR67AzqMETLrfgeFx"
        },
        {
          "coinType": "0x2::sui::SUI",
          "coinObjectId": "0x7e769678d059761bff8a8f3944642e4c33a6e4fb0b55f8face36fadaa22f2a0d",
          "version": "103626",
          "digest": "5taVxHU9QLQD5cNdqxt8kNGAab93GMG4vX7zYDxEaohx",
          "balance": "200000000",
          "previousTransaction": "9xLdMXezY8d1yRA2TtN6pYjapyy2EVKHWNriGPFGCFvd"
        },
        {
          "coinType": "0x2::sui::SUI",
          "coinObjectId": "0xa323d541ba5cf9e34919d2644cda38a263f69f47ae954dec65295231e0d2c7c8",
          "version": "103626",
          "digest": "82ZNKSSueWUQkpFNbBZGHSr3sUL5Rxfr7ucVRsvgQzz2",
          "balance": "200000000",
          "previousTransaction": "5xexWFq6QpGHBQyC9P2cbAJXq9qm2EjzfuRM9NwS1uyG"
        }
      ],
      "nextCursor": "abcd",
      "hasNextPage": true
    }
  }
  ```
</ResponseExample>
