Skip to main content

Submit a Transaction

POST 

https://horizon-testnet.stellar.org/transactions

This endpoint actually submits a transaction to the Stellar network. It only takes a single, required parameter: the signed transaction. Refer to the Transactions page for details on how to craft a proper one. If you submit a transaction that has already been included in a ledger, this endpoint will return the same response as would’ve been returned for the original transaction submission. This allows for safe resubmission of transactions in error scenarios, as highlighted in the error-handling guide.

Request

Query Parameters

    tx stringrequired

Responses

Success

Schema
    _embedded object
    records object[]
  • Array [
  • memostring
    memo_bytesstring
    _links object
    self objectrequired
    hreflinkrequired
    templatedboolean
    account objectrequired
    hreflinkrequired
    templatedboolean
    ledger objectrequired
    hreflinkrequired
    templatedboolean
    operations objectrequired
    hreflinkrequired
    templatedboolean
    effects objectrequired
    hreflinkrequired
    templatedboolean
    precedes objectrequired
    hreflinkrequired
    templatedboolean
    succeeds objectrequired
    hreflinkrequired
    templatedboolean
    transaction objectrequired
    hreflinkrequired
    templatedboolean
    idid (string)required
    paging_tokenstringrequired
    successfulbooleanrequired
    hashstringrequired
    ledgerint32required
    created_atstringrequired
    source_accountaddress (string)required

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    account_muxedstring
    account_muxed_idstring
    source_account_sequencestringrequired
    fee_accountaddress (string)required

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    fee_account_muxedaddress (string)

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    fee_account_muxed_idstring
    fee_chargedstringrequired
    max_feestringrequired
    operation_countint32required
    envelope_xdrstringrequired
    result_xdrstringrequired
    result_meta_xdrstringrequired
    fee_meta_xdrstring
    memo_typestringrequired
    signaturesstring[]required

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    preconditions object
    timebounds object
    min_timestring
    max_timestring
    ledgerbounds object
    min_ledgerstring
    max_ledgerstring
    min_account_sequencestring
    min_account_sequence_agestring
    min_account_sequence_ledger_gapuint32
    extra_signersstring[]
    fee_bump_transaction object
    hashhash (string)
    signaturesstring[]

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    inner_transaction object
    hashhash (string)
    signaturesstring[]

    Possible values: Value must match regular expression G[A-Z0-9]{55}

    max_feestring
  • ]
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://horizon-testnet.stellar.org/transactions");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://horizon-testnet.stellar.org
Parameters
— queryrequired
ResponseClear

Click the Send API Request button above and see the response here!

Did you find this page helpful?