Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Mar 23, 2017
1 parent 96f0e95 commit 43ff6c2
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,16 @@ new := shapeshift.New{
response := new.Shift()

sendToAddress := response.SendTo
// i will send Ether to this address

fmt.Println("Send Ethereum to Address: ",response.SendTo)
fmt.Println("Receiving Coin: ",response.ReturnType)
fmt.Println("Send To Address: ", sendToAddress)
fmt.Println("Send Type: ", response.SendType)
fmt.Println("Receiving at Address: ", response.ReturnTo)
fmt.Println("Receiving Type: ", response.ReturnType)
fmt.Println("Send Type: ", response.SendType)
fmt.Println("API Key: ", response.ApiKey)
fmt.Println("Public Data: ", response.Public)
fmt.Println("XrpDestTag: ", response.XrpDestTag)
```

# Get Status of Transaction
Expand All @@ -41,6 +48,16 @@ fmt.Println(status.Status)
// received
// complete
// failed

if status.Status == "complete" {
fmt.Println("Incoming Coin: ", status.IncomingCoin)
fmt.Println("Incoming Type: ", status.IncomingType)
fmt.Println("Outgoing Coin: ", status.OutgoingCoin)
fmt.Println("Outgoing Type: ", status.OutgoingType)
fmt.Println("Address: ", status.Address)
fmt.Println("Transaction ID: ", status.Transaction)
fmt.Println("Withdraw: ", status.Withdraw)
}
```

# Functions
Expand Down

0 comments on commit 43ff6c2

Please sign in to comment.