View Categories

Name to Crypto Address

< 1 min read

Supported crypto addresses by Web3Domain REST API:

  • Ethereum = @eth
  • Binance Smart Chain = @bsc
  • Zilliqa = @zil
  • Solana = @sol
  • Polygon = @matic
  • Bitcoin = @btc
  • Filecoin = @fil

Curl

curl -X 'GET' \
  'https://web3domain.org/api/v1/index.php?domain={DomainName}@matic' \
  -H 'accept: application/json'

Request URL

https://web3domain.org/api/v1/index.php?domain={DomainName}@matic

Server JSON response

{
"matic": "0x0000000000000000000000000000000000001010"
}
  • {DomainName} should be replaced by Web3Domain name which is already minted.
  • Response : “invalid” (parameter value is wrong”
  • Response: “error” (Domain not minted or no records assigned.)
  • Requested URL without @ parameter will return full JSON with all the fields available.
  • If you need multiple values, do not use parameter to reduce server queries and for fast response.