---
title: Connect to Polkadot
description: Explore how to connect to Polkadot Hub, configure your wallet, and obtain test tokens for developing and testing smart contracts.
categories:
- Smart Contracts
url: https://docs.polkadot.com/smart-contracts/connect/
word_count: 645
token_estimate: 1243
version_hash: sha256:b4007a8078553990eaa6edd18f6784aadec548eb4687e7fddd6f1e093408635c
last_updated: '2026-02-26T12:14:54+00:00'
---

# Connect to Polkadot

<div class="button-wrapper">
  <a href="#" class="md-button connect-metamask" value="polkadotTestNet">
    Connect to Polkadot Hub TestNet
  </a>
  
  <a href="#" class="md-button connect-metamask" value="polkadot">
    Connect to Polkadot Hub
  </a>
</div>

For more information about how to connect to Polkadot Hub, please check the [Wallets for Polkadot Hub](/smart-contracts/integrations/wallets/) guide.

!!! warning "Account Mapping"
    If you are using a native Polkadot account (32-byte format) that was created with a Polkadot/Substrate keypair (Ed25519/Sr25519) rather than an Ethereum-compatible keypair (secp256k1), you'll need to map your account to enable Ethereum compatibility. See the [Account Mapping](/smart-contracts/for-eth-devs/accounts/#account-mapping-for-native-polkadot-accounts) section for more details.

## Networks Details

Developers can leverage smart contracts across diverse networks, from TestNets to MainNet. This section outlines the network specifications and connection details for each environment.

!!! note "WebSocket (WSS) endpoints"
    The WSS endpoints listed below are not behind an eth-rpc proxy. For Ethereum JSON-RPC compatibility, use the HTTP RPC URLs provided for each network instead.

=== "Polkadot Hub TestNet"

    Network name

    ```text
    Polkadot Hub TestNet
    ```

    ---

    Currency symbol
    
    ```text
    PAS
    ```

    ---
    
    Chain ID
    
    ```text
    420420417
    ```

    ---
    
    RPC URL
    
    === "Parity"

        ```text
        https://eth-rpc-testnet.polkadot.io/
        ```

    === "OpsLayer"

        ```text
        https://services.polkadothub-rpc.com/testnet/
        ```

    ---
    
    Block explorer URL

    === "Blockscout"

        ```text
        https://blockscout-testnet.polkadot.io/
        ```

    === "Routescan"

        ```text
        https://polkadot.testnet.routescan.io/
        ```

    ---

    WSS URL

    ```text
    wss://asset-hub-paseo-rpc.n.dwellir.com
    ```


=== "Polkadot Hub"

    Network name

    ```text
    Polkadot Hub
    ```

    ---

    Currency symbol
    
    ```text
    DOT
    ```

    ---
    
    Chain ID
    
    ```text
    420420419
    ```

    ---
    
    RPC URL

    === "Parity"

        ```text
        https://eth-rpc.polkadot.io/
        ```

    === "OpsLayer"

        ```text
        https://services.polkadothub-rpc.com/mainnet/
        ```

    ---
    
    Block explorer URL

    === "Blockscout"

        ```text
        https://blockscout.polkadot.io/
        ```

    ---

    WSS URL

    ```text
    wss://polkadot-asset-hub-rpc.polkadot.io
    ```

=== "Kusama Hub"

    Network name

    ```text
    Kusama Hub
    ```

    ---

    Currency symbol
    
    ```text
    KSM
    ```

    ---
    
    Chain ID
    
    ```text
    420420418
    ```

    ---
    
    RPC URL

    === "Parity"
    
        ```text
        https://eth-rpc-kusama.polkadot.io/
        ```

    ---

    Block explorer URL

    === "Blockscout"

        ```text
        https://blockscout-kusama.polkadot.io/
        ```

    ---

    WSS URL

    ```text
    wss://kusama-asset-hub-rpc.polkadot.io
    ```


## Test Tokens

You will need testnet tokens to perform transactions and engage with smart contracts on any chain. Here's how to obtain Paseo (PAS) tokens for testing purposes:

1. Navigate to the [Polkadot Faucet](https://faucet.polkadot.io/). If the desired network is not already selected, choose it from the Network drop-down.

2. Copy your address linked to the TestNet and paste it into the designated field.

    ![](/images/smart-contracts/connect/connect-to-polkadot-01.webp)

3. Click the **Get Some PASs** button to request free test PAS tokens. These tokens will be sent to your wallet shortly.

    ![](/images/smart-contracts/connect/connect-to-polkadot-02.webp)

Now that you have obtained PAS tokens in your wallet, you’re ready to deploy and interact with smart contracts on Polkadot Hub TestNet! These tokens will allow you to pay for gas fees when executing transactions, deploying contracts, and testing your dApp functionality in a secure testnet environment. 

## Where to Go Next

For your next steps, explore the various smart contract guides demonstrating how to use and integrate different tools and development environments into your workflow.

<div class="grid cards" markdown>

-   <span class="badge guide">Guide</span> __Get started with Remix__

    ---

    Learn how to get started with Remix, a browser-based IDE for writing, deploying, and interacting with smart contracts.

    [:octicons-arrow-right-24: Build with Remix IDE](/smart-contracts/dev-environments/remix/)

-   <span class="badge guide">Guide</span> __Deploy a contract using Remix__

    ---

    Deploy your first contract on Polkadot Hub using the Remix IDE.

    [:octicons-arrow-right-24: Build with Remix IDE](/smart-contracts/cookbook/smart-contracts/deploy-basic/basic-remix/)

-   <span class="badge guide">Guide</span> __Interact with the blockchain with viem__

    ---

    Use viem to deploy and interact with smart contracts on Polkadot Hub.

    [:octicons-arrow-right-24: Build with viem](/smart-contracts/libraries/viem/)

</div>
