Documentation
Docs2. Quick Start

2. Quick Start

2.1 Adding Kortana to MetaMask

Kortana is fully compatible with EIP-155. You can add the Testnet to your MetaMask or any standard Web3 wallet using the following configuration (EIP-3085 wallet_addEthereumChain):

{ "chainId": "0x11B3F", "chainName": "Kortana Testnet", "nativeCurrency": { "name": "Dinar", "symbol": "DNR", "decimals": 18 }, "rpcUrls": ["https://poseidon-rpc.testnet.kortana.xyz/"], "blockExplorerUrls": ["https://explorer.testnet.kortana.xyz"] }

(For Mainnet, use "chainId": "0x232A" / 9002)

2.2 First Transaction

Because Kortana supports standard Ethereum JSON-RPC and secp256k1 ECDSA signatures, any Ethereum library works without modification.

Using ethers.js:

import { ethers } from "ethers"; const provider = new ethers.JsonRpcProvider("https://poseidon-rpc.testnet.kortana.xyz/"); const height = await provider.getBlockNumber(); console.log(`Current Block: ${height}`);

2.3 Deploying Your First Contract (Solidity)

Solidity contracts compile to EVM bytecode and deploy on Kortana exactly as they do on Ethereum (up to the Cancun hard fork revision).

# Using Hardhat or Foundry, simply point your RPC URL to Kortana Testnet forge create --rpc-url https://poseidon-rpc.testnet.kortana.xyz/ --private-key <YOUR_KEY> src/MyContract.sol:MyContract

2.4 Deploying Your First Contract (Quorlin)

Quorlin is Kortana's native language. Contracts do not require init-code indirection; deployment verifies the module, stores it, and runs the constructor once.

# Compile a Quorlin contract to KVM bytecode quorlinc Token.ql -o build/ # Deploy using the Kortana CLI kortana-cli tx deploy --code build/Token.kvm --key your_wallet.key

2.5 Using the Block Explorer

The Kortana Block Explorer provides real-time visibility into blocks, transactions, dual-VM contract interactions, and dPOH ticks.