INNER CODE UNIT · Rust

get_tx_url

gemwalletcom/wallet · core/crates/block_explorers/src/lib.rs:30

    fn get_tx_url(&self, hash: &str) -> String;
    fn get_address_url(&self, address: &str) -> String;
    fn get_token_url(&self, _asset_id: &AssetId) -> Option<String> {
        None
    }
    fn get_nft_url(&self, _contract: &str, _token_id: &str) -> Option<String> {
        None
    }
    fn get_validator_url(&self, _validator: &str) -> Option<String> {
        None
    }

    fn get_swap_tx_url(&self, input: &ExplorerInput) -> String {
        self.get_tx_url(&input.hash)
    }
}

pub fn get_block_explorer(chain: Chain, name: &str) -> Box<dyn BlockExplorer> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…