> For the complete documentation index, see [llms.txt](https://docs.ekubo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ekubo.org/integration-guides/reference/starknet-contracts.md).

# Starknet Contracts

## Starknet

The source code for the smart contracts is available [here](https://github.com/EkuboProtocol/starknet-contracts) and it can be used as a scarb package.

### Upgradeable contracts

The addresses of these contracts do not change. The contracts are updated to new versions in-place. These contracts are owned by the governance contracts.

<table><thead><tr><th width="197.33333333333331">Contract / Network</th><th>Sepolia</th><th>Mainnet</th><th data-hidden>Goerli (Deprecated)</th></tr></thead><tbody><tr><td>Core</td><td><code>0x0444a09d96389aa7148f1aada508e30b71299ffe650d9c97fdaae38cb9a23384</code><br><a href="https://sepolia.voyager.online/contract/0x0444a09d96389aa7148f1aada508e30b71299ffe650d9c97fdaae38cb9a23384">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x0444a09d96389aa7148f1aada508e30b71299ffe650d9c97fdaae38cb9a23384">Starkscan</a></td><td><code>0x00000005dd3D2F4429AF886cD1a3b08289DBcEa99A294197E9eB43b0e0325b4b</code><br><a href="https://voyager.online/contract/0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b">Voyager</a> <a href="https://starkscan.co/contract/0x00000005dd3D2F4429AF886cD1a3b08289DBcEa99A294197E9eB43b0e0325b4b">Starkscan</a></td><td><code>0x031e8a7ab6a6a556548ac85cbb8b5f56e8905696e9f13e9a858142b8ee0cc221</code><br><a href="https://goerli.voyager.online/contract/0x031e8a7ab6a6a556548ac85cbb8b5f56e8905696e9f13e9a858142b8ee0cc221">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x031e8a7ab6a6a556548ac85cbb8b5f56e8905696e9f13e9a858142b8ee0cc221">Starkscan</a></td></tr><tr><td>Positions</td><td><code>0x06a2aee84bb0ed5dded4384ddd0e40e9c1372b818668375ab8e3ec08807417e5</code><br><a href="https://sepolia.voyager.online/contract/0x06a2aee84bb0ed5dded4384ddd0e40e9c1372b818668375ab8e3ec08807417e5">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x06a2aee84bb0ed5dded4384ddd0e40e9c1372b818668375ab8e3ec08807417e5">Starkscan</a></td><td><code>0x02e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067</code><br><a href="https://voyager.online/contract/0x02e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067">Voyager</a> <a href="https://starkscan.co/contract/0x02e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067">Starkscan</a></td><td><code>0x073fa8432bf59f8ed535f29acfd89a7020758bda7be509e00dfed8a9fde12ddc</code><br><a href="https://goerli.voyager.online/contract/0x073fa8432bf59f8ed535f29acfd89a7020758bda7be509e00dfed8a9fde12ddc">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x073fa8432bf59f8ed535f29acfd89a7020758bda7be509e00dfed8a9fde12ddc">Starkscan</a></td></tr><tr><td>Positions NFT</td><td><code>0x04afc78d6fec3b122fc1f60276f074e557749df1a77a93416451be72c435120f</code><br><a href="https://sepolia.voyager.online/contract/0x04afc78d6fec3b122fc1f60276f074e557749df1a77a93416451be72c435120f">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x04afc78d6fec3b122fc1f60276f074e557749df1a77a93416451be72c435120f">Starkscan</a></td><td><code>0x07b696af58c967c1b14c9dde0ace001720635a660a8e90c565ea459345318b30</code><br><a href="https://voyager.online/contract/0x07b696af58c967c1b14c9dde0ace001720635a660a8e90c565ea459345318b30">Voyager</a> <a href="https://starkscan.co/contract/0x07b696af58c967c1b14c9dde0ace001720635a660a8e90c565ea459345318b30">Starkscan</a></td><td><code>0x01090e3cfd9990c396f246cd1d5c7fb091905cba9f99739653db1f2960a3311f</code><br><a href="https://goerli.voyager.online/contract/0x01090e3cfd9990c396f246cd1d5c7fb091905cba9f99739653db1f2960a3311f">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x01090e3cfd9990c396f246cd1d5c7fb091905cba9f99739653db1f2960a3311f">Starkscan</a></td></tr><tr><td>TWAMM Extension</td><td><code>0x073ec792c33b52d5f96940c2860d512b3884f2127d25e023eb9d44a678e4b971</code><br><a href="https://sepolia.voyager.online/contract/0x073ec792c33b52d5f96940c2860d512b3884f2127d25e023eb9d44a678e4b971">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x073ec792c33b52d5f96940c2860d512b3884f2127d25e023eb9d44a678e4b971">Starkscan</a></td><td><code>0x043e4f09c32d13d43a880e85f69f7de93ceda62d6cf2581a582c6db635548fdc</code><br><a href="https://voyager.online/contract/0x043e4f09c32d13d43a880e85f69f7de93ceda62d6cf2581a582c6db635548fdc">Voyager</a> <a href="https://starkscan.co/contract/0x043e4f09c32d13d43a880e85f69f7de93ceda62d6cf2581a582c6db635548fdc">Starkscan</a></td><td></td></tr><tr><td>Oracle Extension</td><td><code>0x003ccf3ee24638dd5f1a51ceb783e120695f53893f6fd947cc2dcabb3f86dc65</code><br><a href="https://sepolia.voyager.online/contract/0x003ccf3ee24638dd5f1a51ceb783e120695f53893f6fd947cc2dcabb3f86dc65">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x003ccf3ee24638dd5f1a51ceb783e120695f53893f6fd947cc2dcabb3f86dc65">Starkscan</a></td><td><code>0x005e470ff654d834983a46b8f29dfa99963d5044b993cb7b9c92243a69dab38f</code><br><a href="https://voyager.online/contract/0x005e470ff654d834983a46b8f29dfa99963d5044b993cb7b9c92243a69dab38f">Voyager</a> <a href="https://starkscan.co/contract/0x005e470ff654d834983a46b8f29dfa99963d5044b993cb7b9c92243a69dab38f">Starkscan</a></td><td></td></tr><tr><td>Limit Orders Extension</td><td><code>0x00c4c863f6de467b91ce974be48cc17ad7209d0d600926e82845a43a7848b822</code><br><a href="https://sepolia.voyager.online/contract/0x00c4c863f6de467b91ce974be48cc17ad7209d0d600926e82845a43a7848b822">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x00c4c863f6de467b91ce974be48cc17ad7209d0d600926e82845a43a7848b822">Starkscan</a></td><td><code>0x050ed6ab03aef492cd062e25facf40ceef63294c53d12b514226f8fb4753266e</code><br><a href="https://voyager.online/contract/0x050ed6ab03aef492cd062e25facf40ceef63294c53d12b514226f8fb4753266e">Voyager</a> <a href="https://starkscan.co/contract/0x050ed6ab03aef492cd062e25facf40ceef63294c53d12b514226f8fb4753266e">Starkscan</a></td><td></td></tr></tbody></table>

### Immutable contracts

These are the addresses of the latest versions of the contracts. They may change, but the old versions will remain. We do not upgrade these contracts because it is often the case that old versions still work fine with core. Prefer to use the latest version whenever possible.

<table><thead><tr><th width="190">Contract / Network</th><th>Sepolia</th><th>Mainnet</th><th data-hidden>Goerli (Deprecated)</th></tr></thead><tbody><tr><td>Router V3.0.13</td><td><code>0x0045f933adf0607292468ad1c1dedaa74d5ad166392590e72676a34d01d7b763</code><br><a href="https://sepolia.voyager.online/contract/0x0045f933adf0607292468ad1c1dedaa74d5ad166392590e72676a34d01d7b763">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x0045f933adf0607292468ad1c1dedaa74d5ad166392590e72676a34d01d7b763">Starkscan</a></td><td><code>0x0199741822c2dc722f6f605204f35e56dbc23bceed54818168c4c49e4fb8737e</code><br><a href="https://voyager.online/contract/0x0199741822c2dc722f6f605204f35e56dbc23bceed54818168c4c49e4fb8737e">Voyager</a> <a href="https://starkscan.co/contract/0x0199741822c2dc722f6f605204f35e56dbc23bceed54818168c4c49e4fb8737e">Starkscan</a></td><td></td></tr><tr><td>Router V3.0.3</td><td><code>0x050d4da9f66589eadaa1d5e31cf73b08ac1a67c8b4dcd88e6fd4fe501c628af2</code><br><a href="https://sepolia.voyager.online/contract/0x050d4da9f66589eadaa1d5e31cf73b08ac1a67c8b4dcd88e6fd4fe501c628af2">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x050d4da9f66589eadaa1d5e31cf73b08ac1a67c8b4dcd88e6fd4fe501c628af2">Starkscan</a></td><td><code>0x04505a9f06f2bd639b6601f37a4dc0908bb70e8e0e0c34b1220827d64f4fc066</code><br><a href="https://voyager.online/contract/0x04505a9f06f2bd639b6601f37a4dc0908bb70e8e0e0c34b1220827d64f4fc066">Voyager</a> <a href="https://starkscan.co/contract/0x04505a9f06f2bd639b6601f37a4dc0908bb70e8e0e0c34b1220827d64f4fc066">Starkscan</a></td><td><code>0x014d923c16ce183496053eba0b33062f0c60a793080e4f3ca90e11638ad149df</code><br><a href="https://goerli.voyager.online/contract/0x014d923c16ce183496053eba0b33062f0c60a793080e4f3ca90e11638ad149df">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x014d923c16ce183496053eba0b33062f0c60a793080e4f3ca90e11638ad149df">Starkscan</a></td></tr><tr><td>Router V2.0.1</td><td><code>0x02bcf6ff92070beb7ed9a022744a659666e87830b591a8b375af4370eeadaa5b</code><br><a href="https://sepolia.voyager.online/contract/0x02bcf6ff92070beb7ed9a022744a659666e87830b591a8b375af4370eeadaa5b">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x02bcf6ff92070beb7ed9a022744a659666e87830b591a8b375af4370eeadaa5b">Starkscan</a></td><td><code>0x03266fe47923e1500aec0fa973df8093b5850bbce8dcd0666d3f47298b4b806e</code><br><a href="https://voyager.online/contract/0x03266fe47923e1500aec0fa973df8093b5850bbce8dcd0666d3f47298b4b806e">Voyager</a> <a href="https://starkscan.co/contract/0x03266fe47923e1500aec0fa973df8093b5850bbce8dcd0666d3f47298b4b806e">Starkscan</a></td><td><code>0x037d4ba7ea2cd87993f2c0e38080ed442c740c536ae2861a61ac6ff8228964aa</code><br><a href="https://goerli.voyager.online/contract/0x037d4ba7ea2cd87993f2c0e38080ed442c740c536ae2861a61ac6ff8228964aa">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x037d4ba7ea2cd87993f2c0e38080ed442c740c536ae2861a61ac6ff8228964aa">Starkscan</a></td></tr><tr><td>Router V2</td><td><code>0x04576498a328e5b44f88da12204b6138028643ee4c8c0146cfe3c3de7a22f783</code><br><a href="https://sepolia.voyager.online/contract/0x04576498a328e5b44f88da12204b6138028643ee4c8c0146cfe3c3de7a22f783?lang=en-US&#x26;theme=light">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x04576498a328e5b44f88da12204b6138028643ee4c8c0146cfe3c3de7a22f783">Starkscan</a></td><td><code>0x010c7eb57cbfeb18bde525912c1b6e9a7ebb4f692e0576af1ba7be8b3b9a70f6</code><br><a href="https://voyager.online/contract/0x010c7eb57cbfeb18bde525912c1b6e9a7ebb4f692e0576af1ba7be8b3b9a70f6#code">Voyager</a> <a href="https://starkscan.co/contract/0x010c7eb57cbfeb18bde525912c1b6e9a7ebb4f692e0576af1ba7be8b3b9a70f6">Starkscan</a></td><td><code>0x0384211022228b84eda3a07336b68e83618ee658ad92ff7b176a9e4958b1ae51</code><br><a href="https://goerli.voyager.online/contract/0x0384211022228b84eda3a07336b68e83618ee658ad92ff7b176a9e4958b1ae51#code">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x0384211022228b84eda3a07336b68e83618ee658ad92ff7b176a9e4958b1ae51">Starkscan</a></td></tr><tr><td>Router</td><td><code>0x02a3328b7f0f83c3ca23149623b6cee9e7fddb5591d36d52c77d2a9302d221d0</code><br><a href="https://sepolia.voyager.online/contract/0x02a3328b7f0f83c3ca23149623b6cee9e7fddb5591d36d52c77d2a9302d221d0">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x02a3328b7f0f83c3ca23149623b6cee9e7fddb5591d36d52c77d2a9302d221d0">Starkscan</a></td><td><code>0x01b6f560def289b32e2a7b0920909615531a4d9d5636ca509045843559dc23d5</code><br><a href="https://voyager.online/contract/0x01b6f560def289b32e2a7b0920909615531a4d9d5636ca509045843559dc23d5#writeContract">Voyager</a> <a href="https://starkscan.co/contract/0x01b6f560def289b32e2a7b0920909615531a4d9d5636ca509045843559dc23d5">Starkscan</a></td><td><code>0x04c95177eb2aee798d901c34d825715136d5dd33c5cbeff1930e52f8b74ce3c3</code><br><a href="https://goerli.voyager.online/contract/0x04c95177eb2aee798d901c34d825715136d5dd33c5cbeff1930e52f8b74ce3c3">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x04c95177eb2aee798d901c34d825715136d5dd33c5cbeff1930e52f8b74ce3c3">Starkscan</a></td></tr><tr><td>Token Registry V3 (supports ByteArray)</td><td><code>0x04484f91f0d2482bad844471ca8dc8e846d3a0211792322e72f21f0f44be63e5</code><br><a href="https://sepolia.voyager.online/contract/0x04484f91f0d2482bad844471ca8dc8e846d3a0211792322e72f21f0f44be63e5">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x04484f91f0d2482bad844471ca8dc8e846d3a0211792322e72f21f0f44be63e5">Starkscan</a></td><td><code>0x064bdb4094881140bc39340146c5fcc5a187a98aec5a53f448ac702e5de5067e</code><br><a href="https://voyager.online/contract/0x064bdb4094881140bc39340146c5fcc5a187a98aec5a53f448ac702e5de5067e">Voyager</a> <a href="https://starkscan.co/contract/0x064bdb4094881140bc39340146c5fcc5a187a98aec5a53f448ac702e5de5067e">Starkscan</a></td><td></td></tr><tr><td>Token Registry V2</td><td><code>0x0293c0d738eff5aa65619069d437eba2bcb320fb8003f37c9708afcdbe8739c8</code><br><a href="https://sepolia.voyager.online/contract/0x0293c0d738eff5aa65619069d437eba2bcb320fb8003f37c9708afcdbe8739c8">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x0293c0d738eff5aa65619069d437eba2bcb320fb8003f37c9708afcdbe8739c8">Starkscan</a></td><td><code>0x0013e25867b6eef62703735aa4cfa7754e72f4e94a56c9d3d9ad8ebe86cee4aa</code><br><a href="https://voyager.online/contract/0x0013e25867b6eef62703735aa4cfa7754e72f4e94a56c9d3d9ad8ebe86cee4aa">Voyager</a> <a href="https://starkscan.co/contract/0x0013e25867b6eef62703735aa4cfa7754e72f4e94a56c9d3d9ad8ebe86cee4aa">Starkscan</a></td><td><code>0x0205b51a3ca54e718dac5f8424c7e67b6d169af5255316ff65be388f0a7e2eaf</code><br><a href="https://goerli.voyager.online/contract/0x0205b51a3ca54e718dac5f8424c7e67b6d169af5255316ff65be388f0a7e2eaf">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x0205b51a3ca54e718dac5f8424c7e67b6d169af5255316ff65be388f0a7e2eaf">Starkscan</a></td></tr><tr><td>Token Registry V1 (Legacy)</td><td>N/A</td><td><code>0x006f55e718ae592b22117c3e3b557b6b2b5f827ddcd7e6fdebd1a4ce7462c93e</code><br><a href="https://voyager.online/contract/0x006f55e718ae592b22117c3e3b557b6b2b5f827ddcd7e6fdebd1a4ce7462c93e">Voyager</a> <a href="https://starkscan.co/contract/0x006f55e718ae592b22117c3e3b557b6b2b5f827ddcd7e6fdebd1a4ce7462c93e">Starkscan</a></td><td><code>0x0016da7891c07b6338d1126cb9181f36376775c57029c424063b4fc403bc720a</code><br><a href="https://goerli.voyager.online/contract/0x0016da7891c07b6338d1126cb9181f36376775c57029c424063b4fc403bc720a">Voyager</a> <a href="https://testnet.starkscan.co/contract/0x0016da7891c07b6338d1126cb9181f36376775c57029c424063b4fc403bc720a">Starkscan</a></td></tr><tr><td>Revenue buybacks v1.0.0</td><td><code>0x03e65ebb45d47e0874fba9a41af0ba5df625bb7e67952ce7e567f40da52c509c</code><br><a href="https://sepolia.voyager.online/contract/0x03e65ebb45d47e0874fba9a41af0ba5df625bb7e67952ce7e567f40da52c509c">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x03e65ebb45d47e0874fba9a41af0ba5df625bb7e67952ce7e567f40da52c509c">Starkscan</a></td><td><code>0x00f2e9a400ba65b13255ef2792612b45d5a20a7a7cf211ffb3f485445022ef72</code><br><a href="https://voyager.online/contract/0x00f2e9a400ba65b13255ef2792612b45d5a20a7a7cf211ffb3f485445022ef72">Voyager</a> <a href="https://starkscan.co/contract/0x00f2e9a400ba65b13255ef2792612b45d5a20a7a7cf211ffb3f485445022ef72">Starkscan</a></td><td></td></tr><tr><td>Price Fetcher</td><td><code>0x04613bee55d8a37adfa249b24c6b13451dedf7cf4f02d01de859579119de3add</code><br><a href="https://sepolia.voyager.online/contract/0x04613bee55d8a37adfa249b24c6b13451dedf7cf4f02d01de859579119de3add">Voyager</a> <a href="https://sepolia.starkscan.co/contract/0x04613bee55d8a37adfa249b24c6b13451dedf7cf4f02d01de859579119de3add">Starkscan</a></td><td><code>0x04946fb4ad5237d97bbb1256eba2080c4fe1de156da6a7f83e3b4823bb6d7da1</code><br><a href="https://voyager.online/contract/0x04946fb4ad5237d97bbb1256eba2080c4fe1de156da6a7f83e3b4823bb6d7da1">Voyager</a> <a href="https://starkscan.co/contract/0x04946fb4ad5237d97bbb1256eba2080c4fe1de156da6a7f83e3b4823bb6d7da1">Starkscan</a></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ekubo.org/integration-guides/reference/starknet-contracts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
