Skip to content

Instantly share code, notes, and snippets.

View thejollyrogers's full-sized avatar

Andrew Rogers thejollyrogers

  • Syllable
  • San Francisco
View GitHub Profile
### Keybase proof
I hereby claim:
* I am thejollyrogers on github.
* I am andrewrogers (https://keybase.io/andrewrogers) on keybase.
* I have a public key whose fingerprint is CC18 8238 5093 C341 71F9 27B8 8958 4272 3631 AE18
To claim this, I am signing this object:
Verifying that +andrewrogers is my openname (Bitcoin username). https://onename.io/andrewrogers
@thejollyrogers
thejollyrogers / gist:b114b5a98fa11a5a4ad0
Last active October 13, 2018 20:49
Simple steps to start a Stellar Gateway

You can become your own gateway in two simple steps! Here we'll show how easy it is to issue your own currency on the Stellar network.

Extending trust & issuing credit

1: A user extends trust to your gateway account for a "maximum" amount of your currency. Remember, they're trusting you'll honor whatever your currency represents when they give it back to you.

$ curl -X POST https://test.stellar.org:9002  -d '
{
    "method": "submit",
@thejollyrogers
thejollyrogers / gist:56fabd8eaa5ebb06af36
Last active October 13, 2018 20:31
Trading on the Stellar distributed exchange

Trading on the Stellar Distributed Exchange

Here we'll show how a simple trade works on the Stellar distributed exchange.

1: You submit an offer (using TransactionType "OfferCreate"), offering the currency you want to sell for another currency you want to buy. In this example, we'll put in an order that says "I'm selling 500 Stellar for 10 USD!" Now, you must specify the issuer (gateway) of USD you'd like to buy (a gateway you've already trusted).

$ curl -X POST https://test.stellar.org:9002  -d '
{