Saltar al contenido principal

Retrieve a Ledger's Payments

GET 

https://horizon-testnet.stellar.org/ledgers/:sequence/payments

This endpoint returns all payment-related operations in a specific ledger. Operation types that can be returned by this endpoint include: create_account, payment, path_payment, and account_merge.

Request

Path Parameters

    sequence integerrequired

    The sequence number of a specific ledger.

Query Parameters

    cursor integer

    A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.

    order string

    Possible values: [asc, desc]

    A designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.

    limit integer

    The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

    include_failed boolean

    Possible values: [true, false]

    Set to true to include failed operations in results. Options include true and false.

    join any

    Set to transactions to include the transactions which created each of the operations in the response.

Responses

Success

Schema
    _links object
    self object
    hreflinkrequired
    templatedboolean
    next object
    hreflinkrequired
    templatedboolean
    prev object
    hreflinkrequired
    templatedboolean
    _embedded object
    records object[]
  • Array [
  • _links object
    self objectrequired
    hreflinkrequired
    templatedboolean
    transaction objectrequired
    hreflinkrequired
    templatedboolean
    effects objectrequired
    hreflinkrequired
    templatedboolean
    succeeds objectrequired
    hreflinkrequired
    templatedboolean
    precedes objectrequired
    hreflinkrequired
    templatedboolean
    idid (string)required
    paging_tokenstringrequired
    transaction_successfulbooleanrequired
    source_accountaddress (string)required

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

    typestringrequired
    Example: payment
    type_istringrequired
    created_atstringrequired
    transaction_hashstringrequired
    asset_typestringrequired
    asset_code

    Possible values: [native, credit_alphanum4, credit_alphanum12]

    asset_issueraddress (string)

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

    fromaddress (string)required

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

    toaddress (string)required

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

    amountstringrequired
  • ]
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://horizon-testnet.stellar.org/ledgers/:sequence/payments");
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
— pathrequired
— query
— query
— query
— query
— query
ResponseClear

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

¿Te fue útil esta página?