Carlos Mucuho
Jan 27, 2022 ⋅ 19 min read

How to build a Solana Discord wallet with Python

Carlos Mucuho A geologist-turned-programmer.

Recent posts:

Exploring Hurl An Alternative To Postman

Exploring Hurl, a command line alternative to Postman

Hurl is an excellent Postman alternative that improves the DX of working with APIs through the command line.

Nwani Victory
May 20, 2024 ⋅ 8 min read
How To Integrate WunderGraph With Your Frontend Application

How to integrate WunderGraph with your frontend application

Unify and simplify APIs using WunderGraph to integrate REST, GraphQL, and databases in a single endpoint.

Boemo Mmopelwa
May 17, 2024 ⋅ 5 min read
Understanding The Latest Webkit Features In Safari 17.4

Understanding the latest Webkit features in Safari 17.4

The Safari 17.4 update brought in many modern features and bug fixes. Explore the major development-specific updates you should be aware of.

Rahul Chhodde
May 16, 2024 ⋅ 10 min read
Using Webrtc To Implement Peer To Peer Video Streaming In A Node Js Project

Using WebRTC to implement P2P video streaming

Explore one of WebRTC’s major use cases in this step-by-step tutorial: live peer-to-peer audio and video streaming between systems.

Oduah Chigozie
May 16, 2024 ⋅ 18 min read
View all posts

9 Replies to "How to build a Solana Discord wallet with Python"

  1. Hey Carlos, thanks for the informative blog post. Would like you to clarify, did you mean 1 trillion or 1 billion, because the number and the words are contradicing themselves. I mean in the fund_account function. You put 1,000,000,000 but then say it as 1 trillion

  2. “secret_key”: “\u00d1R>\u00fe5\u0088\u009bm\u0014\u0095$u\u00aa\u00e3^\u00e8\u00a0\u0097\b\u00c…
    how to convert it to utf-8

  3. ‘charmap’ codec can’t encode character ‘\x9f’ in position 45: character maps to having this problem while decoding secret_key in create_account

  4. This is super informative and would love to give it a try! I only have one question – is it possible to use a custom token built on the Solana chain, such as by using the custom token address/ID?

  5. Hey, I have a question. Whenever I try to execute a command I get in my IDE, the error: ‘str’ object has no attribute ‘to_solders’. In discord I get the message “Failed to fund account”. Only the create command works for me. How can I solve this problem?

    1. Yo,
      After debbuging this a little bit, I found that the problem is when he is trying to use the public key,
      you should use PublicKey(account[“public_key”])
      instead of account[‘public_key’]
      hope that it helps to you or anyone that try to follow this tutorial 🙂

  6. Wow, nice tutorial thanks for sharing it. Does this still work? I was trying another youtube tutorial on creating wallets and transactions using solana.py and it doesn’t work anymore.


Leave a Reply