New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

2 min read

Method /account/get/from-public-key Nem (XEM)
connect with REST protocol

/account/get/from-public-key

info-circle-fill

Alternatively you can retrieve the account data by providing the publickey for the account.

Parameters

publicKey -

The public key of the account as hex string.

Request

curl --location --request GET 'https://xem.getblock.io/account/get/from-public-key?publicKey=107051c28a2c009a83ae0861cdbff7c1cbab387c964cc433f7d191d9c3115ed7'
 --header 'x-api-key: YOUR-API-KEY' 
 --header 'Content-Type: application/json'

Response

{
    "account": {
        "address": "NCXIQA4FF5JB6AMQ53NQ3ZMRD3X3PJEWDJJJIGHT",
        "balance": 20612640711967,
        "harvestedBlocks": 52431,
        "importance": 0.0019859907077256836,
        "label": null,
        "multisigInfo": {},
        "publicKey": "107051c28a2c009a83ae0861cdbff7c1cbab387c964cc433f7d191d9c3115ed7",
        "vestedBalance": 20612602402832
    },
    "meta": {
        "cosignatories": [],
        "cosignatoryOf": [],
        "remoteStatus": "ACTIVE",
        "status": "LOCKED"
    }
}
banner icon

Start Building with GetBlock RPCs for Free