Links

Get Current Blockchain

This method can be used to fetch active blockchain name in the wallet.
Below is an example code describing the way to fetch blockchain name.
aptos
sui
// Fetch blockchain info
const blockchain = await window.martian.getCurrentBlockchain();
console.log(blockchain);
// above code output
aptos or sui
// Fetch blockchain info
const blockchain = await window.martian.sui.getCurrentBlockchain();
console.log(blockchain);
// above code output
aptos or sui