Skip to main content

/accounts/{accountId}/convert REST API Endpoint

Returns the SS58 prefix, the network address format, the SS58 address, and the AccountId that was given as input parameter, the scheme that was used and if it is a public key or not (boolean).

Updated on
Sep 2, 2024

/accounts/{accountId}/convert REST API Endpoint

Path Parameters

accountId
string
REQUIRED
The accountId or Public Key encoded in hexadecimal format.

Query Parameters

scheme
string
The cryptographic scheme to be used in order to convert the AccountId to an SS58 address. It can take one of three values [sr25519, ed25519, ecdsa]. The default scheme that is used is `sr25519` (if it is not set in the query parameter).
prefix
integer
The address prefix which can be one of the values found in the SS58-registry.
publicKey
boolean
Defines if the given value in the path parameter is a Public Key (hex) or not (hence AccountId).

Returns

ss58Prefix
string
The SS58 prefix used to identify the network and format of the address
network
string
The network to which the account belongs
address
string
The public address of the account, which can be used to receive funds or interact with the blockchain
accountId
string
The unique identifier for the account, represented in hexadecimal format.
scheme
string
The cryptographic scheme used by the account for signing transactions
publicKey
boolean
Indicates whether the public key is available
Request
1
curl 'https://docs-demo.dot-mainnet.quiknode.pro/accounts/0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48/convert'
2
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free