Publickey

Get public key by account id

GEThttps://ton-open-api.nownodes.io/v2/accounts/{account_id}/publickey
Path parameters
account_id*string

account ID

Example: "0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
Response

account's public key

Body
public_key*string
Example: "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..."
Request
const response = await fetch('https://ton-open-api.nownodes.io/v2/accounts/{account_id}/publickey', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "public_key": "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..."
}