waves_logo Docs
  • Overview
    Overview
  • How-to Guides
    • Reading Blockchain Data
      Reading Blockchain Data
    • Creating & Broadcasting Transactions
      Creating & Broadcasting Transactions
    • Tokenization
      Tokenization
    • Airdrop
      Airdrop
    • Payments
      Payments
    • Exchange Tokens
      Exchange Tokens
    • Simple Voting
      Simple Voting
    • Reading Band’s Price Data
      Reading Band’s Price Data
    How-to Guides
  • Waves Smart Contracts
    Waves Smart Contracts
  • dApp
    • Creating & Launching dApp
      Creating & Launching dApp
    dApp
  • Smart Account
    • Creating smart account
      Creating smart account
    • Creating and deploying a script manually
      Creating and deploying a script manually
    • Video tutorials
      • Introduction to the Waves blockchain, Waves Smart Accounts and Waves Smart Assets
        Introduction to the Waves blockchain, Waves Smart Accounts and Waves Smart Assets
      • Waves Smart Account with multisignature
        Waves Smart Account with multisignature
      • Waves Smart Account with escrow service
        Waves Smart Account with escrow service
      • Creating multisignature account via Waves IDE tools
        Creating multisignature account via Waves IDE tools
      • Creating multisignature account via Waves Client
        Creating multisignature account via Waves Client
      • Waves console explained
        Waves console explained
      Video tutorials
    Smart Account
  • Smart Asset
    Smart Asset
  • Developer Tools
    • Waves IDE
      Waves IDE
    • Visual Studio Code Extension
      Visual Studio Code Extension
    • Surfboard
      Surfboard
    • Ride REPL
      Ride REPL
    Developer Tools
  • Signer ◆
    Signer ◆
  • Waves API
    • Data Service API
      Data Service API
    • Node REST API 🡥
      Node REST API 🡥
    • Node gRPC Server 🡥
      Node gRPC Server 🡥
    • Blockchain Updates 🡥
      Blockchain Updates 🡥
    • Waves Keeper API 🡥
      Waves Keeper API 🡥
    Waves API
  • Client libraries
    • Waves transactions
      Waves transactions
    • PyWaves
      PyWaves
    • WavesJ
      WavesJ
    • WavesCS
      WavesCS
    • WavesC
      WavesC
    • GoWaves
      GoWaves
    • WavesRS
      WavesRS
    • Community libraries
      Community libraries
    Client libraries
      • English
      • Русский
      On this page
        • Getting Started
        • Documentation
      waves_logo Docs

          # PyWaves

          PyWaves is an object-oriented Python interface to the Waves blockchain platform. The library is developing by community and open source. Latest documentation and examples can be found in Github repository (opens new window).

          # Getting Started

          You can install PyWaves using:

          pip install pywaves
          

          # Documentation

          The library utilizes classes to represent various Waves data structures:

          • pywaves.Address
          • pywaves.Asset
          • pywaves.AssetPair
          • pywaves.Order

          # Code Example

          import pywaves as pw
          
          myAddress = pw.Address(privateKey='CtMQWJZqfc7PRzSWiMKaGmWFm4q2VN5fMcYyKDBPDx6S')
          otherAddress = pw.Address('3PNTcNiUzppQXDL9RZrK3BcftbujiFqrAfM')
          myAddress.sendWaves(otherAddress, 10000000)
          myToken = myAddress.issueAsset('Token1', 'My Token', 1000, 0)
          while not myToken.status():
          	pass
          myAddress.sendAsset(otherAddress, myToken, 50)
          
          

          # Source code

          PyWaves Github repository (opens new window)

          Waves transactions
          WavesJ
          Waves transactions
          WavesJ