Comments (6)
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.
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.
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.
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.
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.
close until there is more information.
from py-stellar-base.
Related Issues (20)
- Soroban simulate transaction error HOT 2
- Soroban - binascii.Error: Non-hexadecimal digit found HOT 2
- Soroban - authorization gives IndexError HOT 8
- Failing to invoke contract function that requires authorization HOT 4
- Support for Protocol 20: Soroban HOT 1
- `parameters` should be optional when building a contract-invoking transaction HOT 1
- Drop support for Python 3.7.
- Updating the SDKs to the stable Protocol 20 release HOT 1
- Soroban - Failing to invoke function with struct parameter HOT 3
- Feature Request: Add helper functions to create SCAddress instance HOT 2
- Protocol 20: Add support for resource leeway in `simulateTransaction`
- Soroban CLI HOT 9
- Stream not successful transactions from horison HOT 2
- Add support for new fields in Soroban RPC's `sendTransaction` endpoint
- server.trade_aggregations.stream() not working HOT 4
- Required changes for passing parameters when communicating with Soroban RPC. HOT 1
- Pass the allowed_methods parameter when the Retry class is instantiated HOT 1
- Add helper to [de]serialize `Keypair` HOT 5
- Protocol 21 SDK Support
- How do I get contract balance from contract data in python sdk? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-stellar-base.