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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/bitcoin-getmemoryinfo",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# getmemoryinfo | Bitcoin

The `getmemoryinfo` method provides detailed information about the memory usage of the node. It can return data in two formats: a summary view (`stats`) or a detailed XML format (`mallocinfo`).

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `mode` (optional): Specifies the format of the memory information. Can be either `stats` for a summary view or `mallocinfo` for detailed XML format. The default is `stats`.

## Response

* `result` — an object containing memory information in the requested format.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request.

## Use case

The `getmemoryinfo` method is useful for monitoring the memory usage of the node, helping in diagnosing memory-related issues or for general performance monitoring.


## OpenAPI

````yaml /openapi/bitcoin_node_api/getmemoryinfo.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: getmemoryinfo example
  version: 1.0.0
  description: >-
    This is an API example for getmemoryinfo, a method to get detailed
    information about the node's memory  usage.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: getmemoryinfo
      operationId: getMemoryInfo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: getmemoryinfo
                params:
                  type: array
                  items:
                    type: string
                    enum:
                      - stats
                      - mallocinfo
                    description: >-
                      The mode in which memory information should be returned.
                      'stats' for a summary view,  'mallocinfo' for detailed XML
                      format.
                  default:
                    - stats
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Detailed information about the node's memory usage.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    description: Memory information in the requested format.
                  error:
                    type: object
                  id:
                    type: integer

````