// config network
var network = {
blockchain: "coinex",
chainId: "coinexdex"
};
// login
mathExtension.getIdentity(network)
// logout
mathExtension.forgetIdentity()
// sign transaction
mathExtension.requestSignature(transaction, network)
For details, please find the sample in this repo.