Giter VIP home page Giter VIP logo

Comments (6)

overcat avatar overcat commented on July 17, 2024

It works well for me, maybe you should try again? It may be caused by a network error.

In addition, if the target address has not been activated, you need to activate it first.

from stellar_base.builder import Builder
seed = "seed"
builder = Builder(secret=seed, network='public') 
bob_address = 'GBSNPTNJFNYOOPKRQE5VQTRVDP7F43RY4Z4OK4CNQWYCOL6QDCHCII57'
builder.append_create_account_op(bob_address, 1)
builder.sign()
builder.submit()

from py-stellar-base.

HWUq avatar HWUq commented on July 17, 2024

thanks for answer. But if I generate new address and I want to send Stellar to new address. How should I do it?

from py-stellar-base.

overcat avatar overcat commented on July 17, 2024

At first, you need to activate your new account.

from stellar_base.builder import Builder
seed = "THE_SECRET_KEY_OF_YOUR_OLD_ACCOUNT"
builder = Builder(secret=seed, network='public') 
bob_address = 'YOUR_NEW_STELLAR_ADDRESS' 
builder.append_create_account_op(bob_address, 1)
builder.sign()
builder.submit()

Then you can send xlm to your new address.

from stellar_base.builder import Builder
seed = "THE_SECRET_KEY_OF_YOUR_OLD_ACCOUNT"
builder = Builder(secret=seed, network='public') 
bob_address = 'YOUR_NEW_STELLAR_ADDRESS' 
builder.append_payment_op(bob_address,'100','XLM')
builder.sign()
builder.submit()

from py-stellar-base.

HWUq avatar HWUq commented on July 17, 2024

Thanks, but...
Lets say some user generate address and wants to withdraw Stellar to new generate address. But address is not activated. And I dont have seed. How should I deal with that?

I tried with my own address and seed and I got this error "Exception: have no sequence, maybe not funded?"

from py-stellar-base.

overcat avatar overcat commented on July 17, 2024
seed = "THE_SECRET_KEY_OF_YOUR_OLD_ACCOUNT"

Are you sure you are using the correct seed? The seed is the secret key of your old account, if you want to withdraw xlm to a new address, you must provide the secret of your old account, if this seed is incorrect(for example, the account of the seed is not activated), you will get that error.

from py-stellar-base.

overcat avatar overcat commented on July 17, 2024

close until there is more information.

from py-stellar-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.