EVM
Private key to address + public key API
Derive the EVM address and uncompressed secp256k1 public key from a 32-byte private key (via viem); the raw key is masked in the response and never logged. Answers 'What address owns this private key?','What is the public key for this key?'.
Price$0.01per request
MethodPOST
Route/v1/evm/private-to-address
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
evmprivatekeypublickeysecp256k1addressderivecrypto
API URL
Integration docshttps://x402.hexl.dev/v1/evm/private-to-addressExample request
{
"privateKey": "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
}Example response
{
"privateKey": "0xac09…ff80",
"address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"publicKey": "0x048318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5"
}Input schema
{
"type": "object",
"required": [
"privateKey"
],
"properties": {
"privateKey": {
"type": "string",
"examples": [
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
]
}
},
"examples": [
{
"privateKey": "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
}
]
}Output schema
{
"type": "object",
"additionalProperties": true
}