Check address format

Check address format within provided network

Check address format

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body

Object with address and network

addressstringOptional

Address

Example: 0x48EDAB72d22cebb5eE081351E6f471De6cE5567D
networkstringOptional

Network

Example: bsc
Responses
200Success
application/json
post
POST /api-gateway/utils/validate-address HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 72

{
  "address": "0x48EDAB72d22cebb5eE081351E6f471De6cE5567D",
  "network": "bsc"
}
200Success
{
  "success": true,
  "response": {
    "isValid": true,
    "regex": "text"
  }
}

Last updated