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.


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

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference