Skip to content

Home of the stellar/quickstart docker image for development and testing

License

Notifications You must be signed in to change notification settings

suhailvs/stellar_quickstart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stellar Quickstart Docker Image

To get new changes

Pull new changes in master branch.

Now rebase this branch with master branch and force push it.

git switch master
git pull origin master
git switch main
git rebase master
git push -f origin main

Quick Start

# initialize submodule: https://github.com/chatch/stellarexplorer
$ git submodule update --init
# run horizon, postgresql, stellar-core
$ docker run -d -p "8000:8000" --name stellar stellar/quickstart --local
$ cd stellarexplorer
$ npm i && npm i nodemon && npm run build && npm run dev

Create a new Address

https://developers.stellar.org/docs/build/guides/basics/create-account

# https://github.com/StellarCN/py-stellar-base
# pip install stellar-sdk
>>> from stellar_sdk import Keypair
>>> pair = Keypair.random()
>>> print(f"Secret: {pair.secret}",f"Public Key: {pair.public_key}")
Secret: SBSDA4H2D4OGT5UFHBHK5HSFHCMUS3P3R2ZHIESKUYZ2VSEYBJGOB4GU 
Public Key: GB3SSRJE7CETRO3WZYBKMSIH2HT74LV5DZ64IWPEVSAODVP6C6EVORWP

Create Account

A valid keypair, however, does not make an account: in order to prevent unused accounts from bloating the ledger, Stellar requires accounts to hold a minimum balance of 1 XLM before they actually exist.

To do that, send Friendbot the public key you created.

$ curl http://localhost:8000/friendbot?addr=GB3SSRJE7CETRO3WZYBKMSIH2HT74LV5DZ64IWPEVSAODVP6C6EVORWP

Now you can get account details:

curl -L 'http://localhost:8000/accounts/GB3SSRJE7CETRO3WZYBKMSIH2HT74LV5DZ64IWPEVSAODVP6C6EVORWP' \
-H 'Accept: application/json'

horizon api reference: https://developers.stellar.org/docs/data/horizon/api-reference

About

Home of the stellar/quickstart docker image for development and testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 72.1%
  • Go 16.3%
  • Makefile 7.6%
  • Dockerfile 4.0%