Get Account Info
Once your web application successfully connects to Adena, in most cases, you would first want to get information about the connected account. Use the getAccount
method to receive a series of data about the account including its address, balance, public key, account number, and sequence.
Code
Params
-
-
-
Response
code
number
Numeric result code
status
string
Returns success
or failure
type
string
Response type
message
string
Descriptive message of the result
data
object
Account Model
Account Model
accountNumber
string
Account number
address
string
Account address
coins
string
Account balance
chainId
string
Current chain's Chain ID
sequence
string
Number of transactions signed by the account
status
string
Returns ACTIVE
or IN_ACTIVE
publicKey.@type
string
Public key type
publicKey.value
string
Public key value
Sample Request
Sample Response
Last updated