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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pyxie-solana-0.1.0.tar.gz.

File metadata

  • Download URL: pyxie-solana-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyxie-solana-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4a54a136990abf4142c5da46a4abd10f3bc971ec6db425380bb700611745bd9
MD5 846728a3bd7c60d6e0564a19616f64e1
BLAKE2b-256 2b32c9977f41c27165a262a236aa2efe5e1d943c00e6d32892047eb459a79274

See more details on using hashes here.

File details

Details for the file pyxie_solana-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyxie_solana-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyxie_solana-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 435aefc527e9587ef1a0d3e3b2bbf0047eed4c28c5ab474823cfaf3040f60cb4
MD5 9b4c475413fcf6bc39fa75bac91aa28a
BLAKE2b-256 6a62dc1cc7a6080fff20a57205eb3a84074dedd7c769d3a1f9ac37c6145c9aad

See more details on using hashes here.

Supported by

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