Learn R Programming

xlm (version 0.1.1)

getAccountDetail: Get an overview of an account on the Stellar ledger.

Description

Query the accounts endpoint, specifying no extra resources. Converts the JSON response to a list.

Usage

getAccountDetail(pk, data = NA, domain = "public")

Arguments

pk

character - your Stellar account address (also known as a public key.)

data

character - if the Stellar account has data key-value pairs assigned to it, pass the key name to get the value. The internal request builder will attempt to parse the key to ASCII if it contains any non-ASCII characters.

domain

character - signalling to query the testnet or public network. Can be either "testnet" or "public".

Value

list or Account class.

Examples

Run this code
# NOT RUN {
getAccountDetail("GCO2IP3MJNUOKS4PUDI4C7LGGMQDJGXG3COYX3WSB4HHNAHKYV5YL3VC")
# }

Run the code above in your browser using DataLab