Retrieve an Account's Effects

This endpoint returns the effects of a specific account and can be used in streaming mode. Streaming mode allows you to listen for new effects for this account 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.

This method will use 20 Compute Units.


Reference: Here

Retrieve an Account's Effects

This endpoint returns the effects of a specific account and can be used in streaming mode. Streaming mode allows you to listen for new effects for this account 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.

GEThttps://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/accounts/{account_id}/effects
Path parameters
account_id*string

This account’s public key encoded in a base32 string representation.

Example: "GDMQQNJM4UL7QIA66P7R2PZHMQINWZBM77BEBMHLFXD5JEUAHGJ7R4JZ"
Query parameters
Response

Success

Body
_linksobject
one of
Request
const response = await fetch('https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/accounts/{account_id}/effects', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "_links": {
    "self": {
      "href": "text",
      "templated": false
    },
    "transaction": {
      "href": "text",
      "templated": false
    },
    "effects": {
      "href": "text",
      "templated": false
    },
    "succeeds": {
      "href": "text",
      "templated": false
    },
    "precedes": {
      "href": "text",
      "templated": false
    }
  },
  "id": "text",
  "paging_token": "text",
  "transaction_successful": false,
  "source_account": "text",
  "type": "create_account",
  "type_i": 0,
  "created_at": "text",
  "transaction_hash": "text",
  "starting_balance": "text",
  "funder": "text",
  "account": "text"
}

Last updated