๐ฏUtil API
Notes
For more details visit BCH APIs page.
//imports
using Cash.NetCore.Contracts;
using Cash.NetCore.Models.Response.Util;
//inject
private readonly IUtilService _utilService;
๐ฐGet information about single bitcoin cash address.โ
Returns information about single bitcoin cash address.โ
- Request
- Response
- ...
//Sample Request ๐
var validateAddress = await _utilService!.ValidateAddressAsync(
"bitcoincash:qzs02v05l7qs5s24srqju498qu55dwuj0cx5ehjm2c");
//will return AddressInfo: ๐
var validateAddress = new AddressInfo
{
IsValid = true,
Address = "bitcoincash:qzs02v05l7qs5s24srqju498qu55dwuj0cx5ehjm2c",
ScriptPubKey = "76a914a0f531f4ff810a415580c12e54a7072946bb927e88ac",
IsScript = false
};
๐ For more information Check out Get information about single bitcoin cash address.
๐ฐGet information about bulk bitcoin cash addresses..โ
Returns information about bulk bitcoin cash addresses..โ
- Request
- Response
- ...
//Sample Request ๐
var validateAddresses = await _utilService!.ValidateAddressesAsync(new[]
{
"bitcoincash:qzs02v05l7qs5s24srqju498qu55dwuj0cx5ehjm2c",
"bitcoincash:qrehqueqhw629p6e57994436w730t4rzasnly00ht0"
});
//will return List<AddressInfo>: ๐
var validateAddresses = new List<AddressInfo>
{
new()
{
IsValid = true,
Address = "bitcoincash:qzs02v05l7qs5s24srqju498qu55dwuj0cx5ehjm2c",
ScriptPubKey = "76a914a0f531f4ff810a415580c12e54a7072946bb927e88ac",
IsScript = false
},
new()
{
IsValid = true,
Address = "bitcoincash:qrehqueqhw629p6e57994436w730t4rzasnly00ht0",
ScriptPubKey = "76a914f3707320bbb4a28759a78a5ad63a77a2f5d462ec88ac",
IsScript = false
}
};
๐ For more information Check out Get information about bulk bitcoin cash addresses..