Function parse_address

Source
pub fn parse_address(address: &str) -> Result<ScriptHash, TypeError>
Expand description

Converts a hexadecimal string representation of an address into a ScriptHash.

ยงExamples

use neo3::neo_types::{parse_address, ScriptHash};
let address_hex = "0xabcdef1234567890";
let script_hash = parse_address(address_hex).unwrap();
// Note: This is a simplified example for demonstration