[Python] Data decoding in Solana transaction

Discussão em 'Python' iniciado por Stack, Fevereiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to create a Python code to analyze Solana transactions. Currently I am receiving transactions data in Json formats. In a certain part I think I need to decode a phrase. For example, a part of a transaction data is this:

    {'accounts': [0, 1], 'data': '3Bxs43ZMjSRQLs6o', 'programIdIndex': 2, 'stackHeight': None}


    I guess the "data" key value: "3Bxs43ZMjSRQLs6o" must be decoded somehow and I think it must be something indicating a transfer or something like that. I tried using the base58 and base64 libraries, but I was unsuccessful. I would be grateful if anyone could help.

    Continue reading...

Compartilhe esta Página