I hereby claim:
- I am ire-and-curses on github.
- I am ericsaunders (https://keybase.io/ericsaunders) on keybase.
- I have a public key ASDy82e_GBAr5Qx-J6xqYVRrq9NRhHb1y68pXwz7kgJgJwo
To claim this, I am signing this object:
| // Create a ManageOffer operation configured for deletion | |
| op, err := DeleteOfferOp(offerID) |
| // Set only the fields we're interested in | |
| op := SetOptions{ | |
| ClearFlags: []AccountFlag{AuthRevocable}, | |
| SetFlags: []AccountFlag{AuthRequired, AuthImmutable}, | |
| } |
| // Serialise the transaction to XDR, and sign it | |
| err := tx.Build() | |
| err = tx.Sign(kp) | |
| // Submit the transaction | |
| resp, err := client.SubmitTransaction(tx) |
| // An operation to create a new Stellar account funded from an existing one | |
| createAccountOp := txnbuild.CreateAccount{ | |
| Destination: "GDKT2RF3P7VVKOCAN5UXZ2WNGRXTRWNWOCWZZWRL2WQPPROCFSE3RGRQ", | |
| Amount: "10", | |
| } | |
| // Construct the transaction that will carry the operation | |
| tx := txnbuild.Transaction{ | |
| SourceAccount: horizonAcct, | |
| Operations: []txnbuild.Operation{&createAccountOp}, |
| // Create a new randomly generated address | |
| kp, err := keypair.Random() | |
| // Create and fund the new address on TestNet, using friendbot | |
| client := horizonclient.DefaultTestNetClient | |
| resp, err := client.Fund(kp.Address()) | |
| // Get information about the account we just created | |
| accountRequest := horizonclient.AccountRequest{AccountID: kp.Address()} | |
| horizonAcct, err := client.AccountDetail(accountRequest) |
I hereby claim:
To claim this, I am signing this object: