Skip to main content

Simple Python CLI tool for viewing Solana program metadata

Project description

Pyxie

Pyxie (pronounced "pixie") is a simple CLI tool for viewing Solana program metadata.

By default, pyxie will use the mainnet-beta cluster and Phoenix V1

Installation:

$ pip install pyxie-solana

Usage:

usage: pyxie [-h] [-u URL] [program_id]

positional arguments:
  program_id         Program ID of requested Solana Program, by default Phoenix V1 is requested

options:
  -h, --help         show this help message and exit
  -u URL, --url URL  RPC Endpoint

Example:

$ pyxie TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
+------------------------------------+---------------------------------------------+
|              Property              |                    Value                    |
+------------------------------------+---------------------------------------------+
|             Program ID             | TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA |
|            SOL Balance             |                   ◎0.9341                   |
|     Program Data account size      |                  130.94 KB                  |
|        Actual Program Size         |                  130.38 KB                  |
| Total number of eBPF instructions  |                    14124                    |
| Program entrypoint virtual address |                 0x10000f9d8                 |
+------------------------------------+---------------------------------------------+

Virtual Memory Layout of Program Data:
+--------------+---------------------------+--------------+
|   Section    |   Virtual Address Range   | Size (Bytes) |
+--------------+---------------------------+--------------+
|    .text     | 0x100000000 - 0x10001b960 |    112992    |
|   .rodata    | 0x10001b960 - 0x10001d227 |     6343     |
| .data.rel.ro | 0x10001d228 - 0x10001ddf8 |     3024     |
|   .dynamic   | 0x10001ddf8 - 0x10001dea8 |     176      |
|   .dynsym    | 0x10001dea8 - 0x10001dfb0 |     264      |
|   .dynstr    | 0x10001dfb0 - 0x10001e031 |     129      |
|   .rel.dyn   | 0x10001e038 - 0x100020818 |    10208     |
|  .shstrtab   | 0x100020818 - 0x100020860 |      72      |
+--------------+---------------------------+--------------+

System Call Frequencies:
+---------------------+-----------+
|     System Call     | Frequency |
+---------------------+-----------+
|        abort        |    113    |
|     sol_memcmp_     |     11    |
|       sol_log_      |     29    |
|     custom_panic    |     1     |
|     sol_memset_     |     1     |
| sol_set_return_data |     1     |
| sol_get_rent_sysvar |     1     |
|     sol_memcpy_     |     1     |
|     sol_memmove_    |     1     |
+---------------------+-----------+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxie-solana-0.1.0.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

pyxie_solana-0.1.0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page