Skip to main content

🎯Encryption API

Notes

For more details visit BCH APIs page.

//imports
using Cash.NetCore.Contracts;
using Cash.NetCore.Models.Response.Encryption;

//inject
private readonly IEncryptionService _encryptionService;

💰Get public key for a BCH address.

Searches the blockchain for a public key associated with a BCH address. Returns an object. If successful, the publicKey property will contain a hexidecimal representation of the public key.

//Sample Request 🍎
var publicKey = await _encryptionService!.GetPublicKeyAsync(
"bitcoincash:qrdka2205f4hyukutc2g0s6lykperc8nsu5u2ddpqf");