title | category | description | previewImage | theme |
---|---|---|---|---|
Code of Conduct |
Code of Conduct |
This Code of Conduct lays out a few ground rules for the Stellar community. |
/images/community-thumbnail.png |
bland |
import { PALETTE } from "constants/styles"; import { BulletPoints, NestedBulletPoints, LinkBulletPoints, } from "components/BulletPoints"; import { MethodTable } from "components/MethodTable"; import { MethodList, ColumnContentEl, ColumnLabelEl } from "components/MethodList"; import { Expansion } from "components/Expansion";
// create a completely new and unique pair of keys
// see more about KeyPair objects: https://stellar.github.io/js-stellar-sdk/Keypair.html
const pair = StellarSdk.Keypair.random();
pair.secret();
// SAV76USXIJOBMEQXPANUOQM6F5LIOTLPDIDVRJBFFE2MDJXG24TAPUU7
pair.publicKey();
// GCFXHS4GXL6BVUCXBWXGTITROWLVYXQKQLF4YH5O5JT3YZXCYPAFBJZB
// create a completely new and unique pair of keys.
// see more about KeyPair objects: https://stellar.github.io/java-stellar-sdk/org/stellar/sdk/KeyPair.html
import org.stellar.sdk.KeyPair;
KeyPair pair = KeyPair.random();
System.out.println(new String(pair.getSecretSeed()));
// SAV76USXIJOBMEQXPANUOQM6F5LIOTLPDIDVRJBFFE2MDJXG24TAPUU7
System.out.println(pair.getAccountId());
// GCFXHS4GXL6BVUCXBWXGTITROWLVYXQKQLF4YH5O5JT3YZXCYPAFBJZB
package main
import (
"log"
"github.com/stellar/go/keypair"
)
func main() {
pair, err := keypair.Random()
if err != nil {
log.Fatal(err)
}
log.Println(pair.Seed())
// SAV76USXIJOBMEQXPANUOQM6F5LIOTLPDIDVRJBFFE2MDJXG24TAPUU7
log.Println(pair.Address())
// GCFXHS4GXL6BVUCXBWXGTITROWLVYXQKQLF4YH5O5JT3YZXCYPAFBJZB
}
- account_id
- string
- The current sequence number that can be used when submitting a transaction from this account.
- _links.self
- array
- an "href" key with...
- AttributesData Type Description
- accountstring The canonical id of this account, suitable for use as the :id parameter for url templates that require an account’s ID.
- account_idstring The account’s public key encoded into a base32 string representation.
- sequencestring The current sequence number that can be used when submitting a transaction from this account. <Expansion title="Hide child attributes" hasBorder style={{marginTop: "1rem"}}> _links.self array An “href” key with a link to the response itself as the value. _links.next array An “href” key with a link to the next page for this endpoint as the value. _links.prev array An “href” key with a link to the previous page for this endpoint as the value. <Expansion title="Show types" hasBorder style={{marginTop: "1rem"}}> signers.public_key string REMOVED in 0.17.0: Use key instead signers.weight number The numerical weight of a signer, necessary to determine whether a transaction meets the threshold requirements.
Make sure to have "hasHeader" props to display "thead" when rendered
Field | Requirements | Description |
---|---|---|
FEDERATION_SERVER | uses https:// |
The endpoint for clients to resolve stellar addresses for users on your domain via SEP-2 Federation Protocol |
AUTH_SERVER | uses https:// |
The endpoint used for SEP-3 Compliance Protocol <Expansion title="Show types" hasBorder style={{marginTop: "1rem"}}>signers.public_keystringREMOVED in 0.17.0: Use key insteadsigners.weightnumberThe numerical weight of a signer, necessary to determine whether a transaction meets the threshold requirements. |
TRANSFER_SERVER | uses https:// |
The server used for SEP-6 Anchor/Client interoperability |
KYC_SERVER | uses https:// |
The server used for SEP-12 Anchor/Client customer info transfer |
WEB_AUTH_ENDPOINT | uses https:// |
The endpoint used for SEP-10 Web Authentication |
SIGNING_KEY | Stellar public key | The signing key is used for SEP-3 Compliance Protocol |
HORIZON_URL | url | Location of public-facing Horizon instance (if you offer one) |
ACCOUNTS | list of G... strings |
A list of Stellar accounts that are controlled by this domain |
VERSION | string | The version of SEP-1 your stellar.toml adheres to. This helps parsers know which fields to expect. |
URI_REQUEST_SIGNING_KEY | Stellar public key | The signing key is used for SEP-7 delegated signing |
Error Categories | Error Categories Description |
---|---|
HTTP Status Codes | Generic HTTP result codes that indicate success or failure. |
Horizon-Specific Codes | Result codes specific to the Horizon server’s setup. |
Transaction Codes | Result codes indicating the failure reasons at the transaction level. |
Operation Codes | Result codes indicating the failure reasons at the operation level. |
Operation-Specific Codes | Result codes specific to each operation type. |
{
"type": "https://stellar.org/horizon-errors/transaction_failed",
"title": "Transaction Failed",
"status": 400,
"detail": "The transaction failed when submitted to the stellar network. The `extras.result_codes` field on this response contains further details. Descriptions of each code can be found at: https://www.stellar.org/developers/learn/concepts/list-of-operations.html",
"extras": {
"envelope_xdr": "AAAAANPRjCD1iCti3hovsrrz6aSAjmp263grVr6+mI3SQSkcAAAAZAAPRLgAAAADAAAAAAAAAAAAAAABAAAAAQAAAACuSL9OciKkFztj4d3zuadl20HHObu+7qJenBxHPrMayQAAAAUAAAABAAAAANPRjCD1iCti3hovsrrz6aSAjmp263grVr6+mI3SQSkcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtJBKRwAAABA1N0iqDAgqS6+3RIZGoNB9OXrY3wd/nLruXYi+eiTt4jn94fLVLwAw6jJCaK+qxStwO7c4kP6u5k0RPbuYC55CT6zGskAAABAiUGCNCS4pGlfcRmi82kbralzcFlTQAFzLyfUrYGn3RtQ4p/7TUwAqIanVoWGfEqzIJo64ZT+mYtJ72BfI+FiDg==",
"result_codes": {
"transaction": "tx_failed",
"operations": ["op_no_source_account"]
},
"result_xdr": "AAAAAAAAAGT/////AAAAAf////4AAAAA"
}
}
- Dashes work just as well
- And if you have sub points, put two spaces before the dash or star:
- Like this
- And this
- Like this
- And this