List All Effects
This endpoint lists all effects and can be used in streaming mode. Streaming mode allows you to listen for new effects as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known effect unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream effects created since your request time.
curl --request GET \
--url 'https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects'import requests
url = "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/effects?cursor=&limit=10&order=asc"
},
"next": {
"href": "https://horizon-testnet.stellar.org/effects?cursor=33676838572034-1&limit=10&order=asc"
},
"prev": {
"href": "https://horizon-testnet.stellar.org/effects?cursor=12884905985-1&limit=10&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985-1"
}
},
"id": "0000000012884905985-0000000001",
"paging_token": "12884905985-1",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "account_created",
"type_i": 0,
"created_at": "2015-09-30T17:15:54Z",
"starting_balance": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985-2"
}
},
"id": "0000000012884905985-0000000002",
"paging_token": "12884905985-2",
"account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "account_debited",
"type_i": 3,
"created_at": "2015-09-30T17:15:54Z",
"asset_type": "native",
"amount": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985-3"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985-3"
}
},
"id": "0000000012884905985-0000000003",
"paging_token": "12884905985-3",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "signer_created",
"type_i": 10,
"created_at": "2015-09-30T17:15:54Z",
"weight": 1,
"public_key": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905986"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905986-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905986-1"
}
},
"id": "0000000012884905986-0000000001",
"paging_token": "12884905986-1",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "account_credited",
"type_i": 2,
"created_at": "2015-09-30T17:15:54Z",
"asset_type": "native",
"amount": "99999999959.9999700"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905986"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905986-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905986-2"
}
},
"id": "0000000012884905986-0000000002",
"paging_token": "12884905986-2",
"account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "account_debited",
"type_i": 3,
"created_at": "2015-09-30T17:15:54Z",
"asset_type": "native",
"amount": "99999999959.9999700"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905987"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905987-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905987-1"
}
},
"id": "0000000012884905987-0000000001",
"paging_token": "12884905987-1",
"account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "signer_removed",
"type_i": 11,
"created_at": "2015-09-30T17:15:54Z",
"weight": 0,
"public_key": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572033"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572033-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572033-1"
}
},
"id": "0000033676838572033-0000000001",
"paging_token": "33676838572033-1",
"account": "GAP2KHWUMOHY7IO37UJY7SEBIITJIDZS5DRIIQRPEUT4VUKHZQGIRWS4",
"type": "account_created",
"type_i": 0,
"created_at": "2015-10-01T04:15:01Z",
"starting_balance": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572033"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572033-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572033-2"
}
},
"id": "0000033676838572033-0000000002",
"paging_token": "33676838572033-2",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "account_debited",
"type_i": 3,
"created_at": "2015-10-01T04:15:01Z",
"asset_type": "native",
"amount": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572033"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572033-3"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572033-3"
}
},
"id": "0000033676838572033-0000000003",
"paging_token": "33676838572033-3",
"account": "GAP2KHWUMOHY7IO37UJY7SEBIITJIDZS5DRIIQRPEUT4VUKHZQGIRWS4",
"type": "signer_created",
"type_i": 10,
"created_at": "2015-10-01T04:15:01Z",
"weight": 1,
"public_key": "GAP2KHWUMOHY7IO37UJY7SEBIITJIDZS5DRIIQRPEUT4VUKHZQGIRWS4",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572034"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572034-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572034-1"
}
},
"id": "0000033676838572034-0000000001",
"paging_token": "33676838572034-1",
"account": "GCZTBYH66ISTZKUPVJWTMHWBH4S4JIJ7WNLQJXCTQJKWY3FIT34BWZCJ",
"type": "account_created",
"type_i": 0,
"created_at": "2015-10-01T04:15:01Z",
"starting_balance": "20.0000000"
}
]
}
}20 Compute Units.
Reference: Here
Query Parameters
A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
6606617478959105
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.
asc, desc 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.
10
curl --request GET \
--url 'https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects'import requests
url = "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/effects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/effects?cursor=&limit=10&order=asc"
},
"next": {
"href": "https://horizon-testnet.stellar.org/effects?cursor=33676838572034-1&limit=10&order=asc"
},
"prev": {
"href": "https://horizon-testnet.stellar.org/effects?cursor=12884905985-1&limit=10&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985-1"
}
},
"id": "0000000012884905985-0000000001",
"paging_token": "12884905985-1",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "account_created",
"type_i": 0,
"created_at": "2015-09-30T17:15:54Z",
"starting_balance": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985-2"
}
},
"id": "0000000012884905985-0000000002",
"paging_token": "12884905985-2",
"account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "account_debited",
"type_i": 3,
"created_at": "2015-09-30T17:15:54Z",
"asset_type": "native",
"amount": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985-3"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985-3"
}
},
"id": "0000000012884905985-0000000003",
"paging_token": "12884905985-3",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "signer_created",
"type_i": 10,
"created_at": "2015-09-30T17:15:54Z",
"weight": 1,
"public_key": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905986"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905986-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905986-1"
}
},
"id": "0000000012884905986-0000000001",
"paging_token": "12884905986-1",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "account_credited",
"type_i": 2,
"created_at": "2015-09-30T17:15:54Z",
"asset_type": "native",
"amount": "99999999959.9999700"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905986"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905986-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905986-2"
}
},
"id": "0000000012884905986-0000000002",
"paging_token": "12884905986-2",
"account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "account_debited",
"type_i": 3,
"created_at": "2015-09-30T17:15:54Z",
"asset_type": "native",
"amount": "99999999959.9999700"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/12884905987"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905987-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905987-1"
}
},
"id": "0000000012884905987-0000000001",
"paging_token": "12884905987-1",
"account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "signer_removed",
"type_i": 11,
"created_at": "2015-09-30T17:15:54Z",
"weight": 0,
"public_key": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572033"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572033-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572033-1"
}
},
"id": "0000033676838572033-0000000001",
"paging_token": "33676838572033-1",
"account": "GAP2KHWUMOHY7IO37UJY7SEBIITJIDZS5DRIIQRPEUT4VUKHZQGIRWS4",
"type": "account_created",
"type_i": 0,
"created_at": "2015-10-01T04:15:01Z",
"starting_balance": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572033"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572033-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572033-2"
}
},
"id": "0000033676838572033-0000000002",
"paging_token": "33676838572033-2",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"type": "account_debited",
"type_i": 3,
"created_at": "2015-10-01T04:15:01Z",
"asset_type": "native",
"amount": "20.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572033"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572033-3"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572033-3"
}
},
"id": "0000033676838572033-0000000003",
"paging_token": "33676838572033-3",
"account": "GAP2KHWUMOHY7IO37UJY7SEBIITJIDZS5DRIIQRPEUT4VUKHZQGIRWS4",
"type": "signer_created",
"type_i": 10,
"created_at": "2015-10-01T04:15:01Z",
"weight": 1,
"public_key": "GAP2KHWUMOHY7IO37UJY7SEBIITJIDZS5DRIIQRPEUT4VUKHZQGIRWS4",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/33676838572034"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=33676838572034-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=33676838572034-1"
}
},
"id": "0000033676838572034-0000000001",
"paging_token": "33676838572034-1",
"account": "GCZTBYH66ISTZKUPVJWTMHWBH4S4JIJ7WNLQJXCTQJKWY3FIT34BWZCJ",
"type": "account_created",
"type_i": 0,
"created_at": "2015-10-01T04:15:01Z",
"starting_balance": "20.0000000"
}
]
}
}