Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

get_network

Retreives the current network from the SDK instance. This will either be set to mainnet or devnet.


use mirrorworld_sdk_rust::{ get_network };
fn main() {
// get auth token
let token: &str = get_network();
}

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference