> ## Documentation Index
> Fetch the complete documentation index at: https://stellaraddresskit.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Extract routing information in three languages.

The core function of this library is `extractRouting`. It takes an address and an optional memo and returns a canonical `address` and `routingId`.

## Example: M-Address

An M-address contains both the base G-address and a multiplexed ID. The library extracts both automatically.

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { extractRouting } from 'stellar-address-kit';

  const result = extractRouting({
    address: "MA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLT7AV7Y6S33Z6S3CHBAAAAAAAAAAAAABQD"
  });

  console.log(result.address);   // "GA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLT7AV7Y6S33Z6S3CHB"
  console.log(result.routingId); // "123"
  ```

  ```go Go theme={null}
  import "github.com/Boxkit-Labs/stellar-address-kit/packages/core-go/addresskit"

  result := addresskit.ExtractRouting(addresskit.RoutingInput{
      Address: "MA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLT7AV7Y6S33Z6S3CHBAAAAAAAAAAAAABQD",
  })

  fmt.Println(result.Address)   // "GA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLT7AV7Y6S33Z6S3CHB"
  fmt.Println(result.RoutingId) // "123"
  ```

  ```dart Dart theme={null}
  import 'package:stellar_address_kit/stellar_address_kit.dart';

  final result = extractRouting(RoutingInput(
    address: "MA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLT7AV7Y6S33Z6S3CHBAAAAAAAAAAAAABQD",
  ));

  print(result.address);   // "GA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLT7AV7Y6S33Z6S3CHB"
  print(result.routingId); // "123"
  ```
</CodeGroup>
