├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE_URL_CHECK.md ├── pull_request_template.md ├── screenshot.png └── workflows │ ├── link_checker.yml │ └── validate.yml ├── .gitignore ├── .husky └── pre-commit ├── .nvmrc ├── .prettierrc ├── .vscode └── settings.json ├── .yarnrc ├── LICENSE ├── README.md ├── STYLE_GUIDE.mdx ├── amplify.yml ├── app ├── [[...mdxPath]] │ └── page.jsx ├── globals.css ├── layout.tsx └── not-found.tsx ├── content ├── _meta.js ├── cosmos-sdk │ ├── _meta.js │ ├── api │ │ ├── _meta.js │ │ ├── cosmos │ │ │ ├── _meta.js │ │ │ ├── auth │ │ │ │ ├── _meta.js │ │ │ │ ├── accounts.mdx │ │ │ │ ├── address.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── nextaccountnumber.mdx │ │ │ │ └── params.mdx │ │ │ ├── authz │ │ │ │ ├── _meta.js │ │ │ │ ├── grantee.mdx │ │ │ │ ├── granter.mdx │ │ │ │ ├── grants.mdx │ │ │ │ └── index.mdx │ │ │ ├── bank │ │ │ │ ├── _meta.js │ │ │ │ ├── address.mdx │ │ │ │ ├── by-denom.mdx │ │ │ │ ├── denom.mdx │ │ │ │ ├── denoms-metadata.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── params.mdx │ │ │ │ └── supply.mdx │ │ │ ├── base │ │ │ │ ├── _meta.js │ │ │ │ ├── height.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── latest.mdx │ │ │ │ ├── node-info.mdx │ │ │ │ └── syncing.mdx │ │ │ ├── cosmos-sdk │ │ │ │ ├── _meta.js │ │ │ │ ├── contract-address.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── list-resource-dependency-mapping.mdx │ │ │ │ ├── list-wasm-dependency-mapping.mdx │ │ │ │ ├── message-key.mdx │ │ │ │ └── params.mdx │ │ │ ├── distribution │ │ │ │ ├── _meta.js │ │ │ │ ├── commission.mdx │ │ │ │ ├── community-pool.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── outstanding-rewards.mdx │ │ │ │ ├── params.mdx │ │ │ │ ├── rewards.mdx │ │ │ │ ├── slashes.mdx │ │ │ │ ├── validator-address.mdx │ │ │ │ ├── validators.mdx │ │ │ │ └── withdraw-address.mdx │ │ │ ├── evidence │ │ │ │ ├── _meta.js │ │ │ │ ├── evidence-hash.mdx │ │ │ │ ├── evidence.mdx │ │ │ │ └── index.mdx │ │ │ ├── feegrant │ │ │ │ ├── _meta.js │ │ │ │ ├── grantee.mdx │ │ │ │ ├── granter.mdx │ │ │ │ └── index.mdx │ │ │ ├── gov │ │ │ │ ├── _meta.js │ │ │ │ ├── depositor.mdx │ │ │ │ ├── deposits.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── params-type.mdx │ │ │ │ ├── proposal-id.mdx │ │ │ │ ├── proposals.mdx │ │ │ │ ├── tally.mdx │ │ │ │ ├── voter.mdx │ │ │ │ └── votes.mdx │ │ │ ├── index.mdx │ │ │ ├── slashing │ │ │ │ ├── _meta.js │ │ │ │ ├── cons-address.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── params.mdx │ │ │ │ └── signing-infos.mdx │ │ │ ├── staking │ │ │ │ ├── _meta.js │ │ │ │ ├── delegations.mdx │ │ │ │ ├── delegator-addr.mdx │ │ │ │ ├── height.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── params.mdx │ │ │ │ ├── pool.mdx │ │ │ │ ├── redelegations.mdx │ │ │ │ ├── unbonding-delegation.mdx │ │ │ │ ├── unbonding-delegations.mdx │ │ │ │ ├── validator-addr.mdx │ │ │ │ └── validators.mdx │ │ │ ├── tx │ │ │ │ ├── _meta.js │ │ │ │ ├── hash.mdx │ │ │ │ ├── height.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── simulate.mdx │ │ │ │ └── txs.mdx │ │ │ └── upgrade │ │ │ │ ├── _meta.js │ │ │ │ ├── current-plan.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── last-height.mdx │ │ │ │ ├── module-versions.mdx │ │ │ │ └── name.mdx │ │ ├── cosmwasm │ │ │ ├── _meta.js │ │ │ ├── index.mdx │ │ │ └── wasm │ │ │ │ ├── _meta.js │ │ │ │ ├── address.mdx │ │ │ │ ├── code-id.mdx │ │ │ │ ├── code.mdx │ │ │ │ ├── contracts.mdx │ │ │ │ ├── history.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── pinned.mdx │ │ │ │ ├── smart.mdx │ │ │ │ └── state.mdx │ │ ├── ibc │ │ │ ├── _meta.js │ │ │ ├── apps │ │ │ │ ├── _meta.js │ │ │ │ ├── denom-traces.mdx │ │ │ │ ├── escrow-address.mdx │ │ │ │ ├── hash.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── params.mdx │ │ │ │ └── trace.mdx │ │ │ ├── client │ │ │ │ ├── _meta.js │ │ │ │ ├── index.mdx │ │ │ │ └── params.mdx │ │ │ ├── core │ │ │ │ ├── _meta.js │ │ │ │ ├── channels.mdx │ │ │ │ ├── client-id.mdx │ │ │ │ ├── client-state.mdx │ │ │ │ ├── client-states.mdx │ │ │ │ ├── connection-id.mdx │ │ │ │ ├── connections.mdx │ │ │ │ ├── heights.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── next-sequence.mdx │ │ │ │ ├── packet-acknowledgements.mdx │ │ │ │ ├── packet-commitments.mdx │ │ │ │ ├── port-id.mdx │ │ │ │ ├── revision-height.mdx │ │ │ │ ├── sequence.mdx │ │ │ │ ├── unreceived-acks.mdx │ │ │ │ ├── unreceived-packets.mdx │ │ │ │ ├── upgraded-client-states.mdx │ │ │ │ └── upgraded-consensus-states.mdx │ │ │ └── index.mdx │ │ ├── index.mdx │ │ ├── sei-protocol │ │ │ ├── _meta.js │ │ │ ├── index.mdx │ │ │ ├── sei-chain │ │ │ │ ├── _meta.js │ │ │ │ ├── actives.mdx │ │ │ │ ├── exchange-rate.mdx │ │ │ │ ├── exchange-rates.mdx │ │ │ │ ├── feeder.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── lookback-seconds.mdx │ │ │ │ ├── params.mdx │ │ │ │ ├── price-snapshot-history.mdx │ │ │ │ ├── slash-window.mdx │ │ │ │ ├── vote-penalty-counter.mdx │ │ │ │ └── vote-targets.mdx │ │ │ └── seichain │ │ │ │ ├── _meta.js │ │ │ │ ├── account.mdx │ │ │ │ ├── asset-list.mdx │ │ │ │ ├── assetDenom.mdx │ │ │ │ ├── authority-metadata.mdx │ │ │ │ ├── contractAddr.mdx │ │ │ │ ├── creator.mdx │ │ │ │ ├── denom.mdx │ │ │ │ ├── epoch.mdx │ │ │ │ ├── evm-address.mdx │ │ │ │ ├── id.mdx │ │ │ │ ├── index.mdx │ │ │ │ ├── lookbackInSeconds.mdx │ │ │ │ ├── lookbackSeconds.mdx │ │ │ │ ├── metadata.mdx │ │ │ │ ├── numOfPeriods.mdx │ │ │ │ ├── params.mdx │ │ │ │ ├── pointer-version.mdx │ │ │ │ ├── pointer.mdx │ │ │ │ ├── price.mdx │ │ │ │ ├── registered-pairs.mdx │ │ │ │ ├── sei-address.mdx │ │ │ │ ├── static-call.mdx │ │ │ │ └── timestamp.mdx │ │ └── seichain │ │ │ ├── _meta.js │ │ │ ├── index.mdx │ │ │ └── mint │ │ │ ├── _meta.js │ │ │ ├── index.mdx │ │ │ ├── minter.mdx │ │ │ └── params.mdx │ ├── execute-multiple.mdx │ ├── fee-grants.mdx │ ├── index.mdx │ ├── multi-sig-accounts.mdx │ ├── networks.mdx │ ├── querying-state.mdx │ └── transactions.mdx ├── evm │ ├── _meta.js │ ├── bridging │ │ ├── _meta.js │ │ └── thirdweb.mdx │ ├── building-a-frontend.mdx │ ├── cosmwasm-precompiles │ │ ├── _meta.js │ │ ├── addr.mdx │ │ ├── bank.mdx │ │ ├── cosmwasm.mdx │ │ ├── example-usage.mdx │ │ ├── ibc.mdx │ │ ├── pointer.mdx │ │ └── pointerview.mdx │ ├── differences-with-ethereum.mdx │ ├── evm-foundry.mdx │ ├── evm-general.mdx │ ├── evm-hardhat.mdx │ ├── evm-transactions.mdx │ ├── evm-verify-contracts.mdx │ ├── evm-wizard.mdx │ ├── ibc-protocol.mdx │ ├── index.mdx │ ├── indexer-providers │ │ ├── _meta.js │ │ ├── goldrush.mdx │ │ ├── goldsky.mdx │ │ └── the-graph.mdx │ ├── installing-seid.mdx │ ├── ledger-ethers.mdx │ ├── networks.mdx │ ├── pointers │ │ ├── _meta.js │ │ ├── ibc.mdx │ │ ├── standard.mdx │ │ └── tokenfactory.mdx │ ├── precompiles │ │ ├── _meta.js │ │ ├── distribution.mdx │ │ ├── example-usage.mdx │ │ ├── governance.mdx │ │ ├── json.mdx │ │ ├── oracle.mdx │ │ └── staking.mdx │ ├── reference.mdx │ ├── sei-global-wallet.mdx │ ├── solidity-resources.mdx │ ├── tokens.mdx │ ├── transactions.mdx │ └── wallet-integrations │ │ ├── _meta.js │ │ ├── particle.mdx │ │ └── pimlico.mdx ├── index.mdx ├── learn │ ├── _meta.js │ ├── accounts.mdx │ ├── dev-chains.mdx │ ├── dev-gas.mdx │ ├── dev-interoperability.mdx │ ├── dev-token-standards.mdx │ ├── explorers.mdx │ ├── faucet.mdx │ ├── general-brand-kit.mdx │ ├── general-governance.mdx │ ├── general-staking.mdx │ ├── general-submit-feedback.mdx │ ├── hardware-wallets.mdx │ ├── index.mdx │ ├── indexers.mdx │ ├── ledger-setup.mdx │ ├── mcp-server.mdx │ ├── mev-plugins.mdx │ ├── mev.mdx │ ├── oracles.mdx │ ├── parallelization-engine.mdx │ ├── pointers.mdx │ ├── proposals.mdx │ ├── rpc-providers.mdx │ ├── sei-giga.mdx │ ├── seidb.mdx │ ├── twin-turbo-consensus.mdx │ ├── user-FAQ.mdx │ ├── user-quickstart.mdx │ ├── wallets.mdx │ └── wrapped-sei.mdx └── node │ ├── _meta.js │ ├── advanced-config-monitoring.mdx │ ├── ibc-relayer.mdx │ ├── index.mdx │ ├── node-operators.mdx │ ├── oracle-pricefeeder.mdx │ ├── technical-reference.mdx │ └── validators.mdx ├── mdx-components.js ├── next-env.d.ts ├── next-sitemap.config.js ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── public ├── apple-icon.png ├── assets │ ├── address-derivation.png │ ├── docs-banner.png │ ├── ecosystem │ │ └── resources │ │ │ ├── goldrush │ │ │ └── wallet_ui_component.png │ │ │ ├── goldsky │ │ │ ├── goldsky_img_1.png │ │ │ ├── goldsky_img_2.png │ │ │ ├── goldsky_img_3.png │ │ │ ├── goldsky_img_4.png │ │ │ └── goldsky_img_5.png │ │ │ ├── seitrace │ │ │ ├── seitrace_image_1.png │ │ │ ├── seitrace_image_2.png │ │ │ ├── seitrace_image_3.png │ │ │ ├── seitrace_image_4.png │ │ │ ├── seitrace_image_5.png │ │ │ ├── seitrace_image_6.png │ │ │ ├── seitrace_image_7.png │ │ │ ├── seitrace_image_8.png │ │ │ └── seitrace_image_9.png │ │ │ └── the-graph │ │ │ ├── api_keys.png │ │ │ ├── cli_commands.png │ │ │ ├── cli_sample.png │ │ │ ├── create_subgraph.png │ │ │ ├── playground.png │ │ │ ├── publish_button.png │ │ │ ├── publish_screen.png │ │ │ └── query_url.png │ ├── header.svg │ ├── interoperability.png │ ├── pointer-contracts-how-it-works.png │ ├── pointer-contracts-simplified.png │ ├── pointer-contracts-without.png │ ├── wrap_final.png │ ├── wrap_select-amount.png │ ├── wrap_select-mode.png │ ├── wrap_select-wsei.png │ ├── wrap_tx.png │ ├── wrap_wallet-add-confirm.png │ └── wrap_wallet-add-wsei.png ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico └── icon.png ├── scripts ├── checkLinks.ts └── generate-seid-docs.sh ├── src ├── components │ ├── APIModule │ │ ├── APIModule.tsx │ │ ├── index.ts │ │ └── utils.ts │ ├── APIModulePaths │ │ ├── APIModulePaths.tsx │ │ └── index.ts │ ├── AddressSearch │ │ └── SeiTraceSearch.tsx │ ├── AppCard │ │ ├── AppCard.tsx │ │ ├── AppCard.v2.tsx │ │ ├── AppCardsGridCategory.tsx │ │ └── index.ts │ ├── AskCookbook │ │ ├── AskCookbook.tsx │ │ ├── ask-cookbook.d.ts │ │ └── index.ts │ ├── BrandKitGallery │ │ ├── BrandImage.tsx │ │ ├── DownloadButton.tsx │ │ └── index.ts │ ├── ChainInformation │ │ ├── config.ts │ │ ├── index.tsx │ │ └── types.ts │ ├── Collapsible │ │ └── index.tsx │ ├── CompactExplorerSearch │ │ └── index.tsx │ ├── CopyButton │ │ └── index.tsx │ ├── CopyText │ │ └── index.tsx │ ├── EcosystemCard │ │ ├── EcosystemCard.tsx │ │ └── index.ts │ ├── EcosystemMap │ │ ├── EcosystemDynamicSection.tsx │ │ ├── EcosystemSearchBar.tsx │ │ ├── EcosystemSection.tsx │ │ ├── EcosystemSkeleton.tsx │ │ ├── SearchContext.tsx │ │ └── index.ts │ ├── EvmWalletConnect │ │ ├── EvmWalletConnect.tsx │ │ └── index.ts │ ├── FaucetRequest │ │ └── index.tsx │ ├── Footer │ │ └── Footer.tsx │ ├── ImageWithCaption │ │ ├── ImageWithCaption.tsx │ │ └── index.ts │ ├── InteractiveTerminal │ │ ├── InteractiveTerminal.tsx │ │ └── index.ts │ ├── LinkCard │ │ ├── LinkCard.tsx │ │ └── index.ts │ ├── Logo │ │ ├── Logo.tsx │ │ └── index.ts │ ├── MCPDemo │ │ └── MCPDemo.tsx │ ├── NetworkTabs │ │ └── index.tsx │ ├── Nfts │ │ ├── Nfts.tsx │ │ ├── colony.png │ │ ├── index.ts │ │ └── seiyan.png │ ├── OfficeHoursCard │ │ └── index.tsx │ ├── PropertyInfo │ │ ├── PropertyInfo.tsx │ │ └── index.ts │ ├── QuickStartCard │ │ └── index.tsx │ ├── RpcSelector │ │ └── index.tsx │ ├── SwitchNetwork │ │ └── index.tsx │ ├── SyntaxHighlighter │ │ ├── index.tsx │ │ └── types.ts │ ├── Tabs │ │ ├── examples.tsx │ │ └── index.tsx │ ├── ThemeToggle │ │ └── index.tsx │ ├── VersionFetcher │ │ ├── VersionFetcher.tsx │ │ ├── VersionTable.tsx │ │ └── index.ts │ └── index.ts ├── constants │ └── chain.ts ├── data │ ├── appData.ts │ ├── cosmos-openapi.json │ ├── ecosystemData.ts │ └── generate-cosmos-api.sh ├── hooks │ └── useSeiAddress.ts ├── providers │ └── DocsProviders.tsx ├── styles │ ├── InteractiveTerminal.module.css │ ├── LinkCard.module.css │ ├── SeiIntro.module.css │ ├── custom.css │ ├── custom.module.css │ └── globals.css └── utils │ ├── chains.ts │ └── sei-utils.ts ├── tailwind.config.ts ├── tsconfig.json └── yarn.lock /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # These owners will be the default owners for everything in 2 | # the repo. Unless a later match takes precedence, 3 | # @sei-protocol/sei-core will be requested for 4 | # review when someone opens a pull request. 5 | * @sei-protocol/sei-core -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE_URL_CHECK.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "🚨 Broken URLs Detected: {{ env.TOTAL_ISSUES }} issues found" 3 | labels: bug, documentation 4 | --- 5 | 6 | ## URL Check Results 7 | 8 | ### Issues Found: {{ env.TOTAL_ISSUES }} 9 | 10 | | File | Line | URL | Status Code | Reason | 11 | |------|------|-----|-------------|--------| 12 | {{ env.ISSUE_TABLE }} 13 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## What is the purpose of the change? 2 | 3 | 4 | 5 | ## Describe the changes to the documentation 6 | 7 | 8 | 9 | ## Notes 10 | -------------------------------------------------------------------------------- /.github/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/.github/screenshot.png -------------------------------------------------------------------------------- /.github/workflows/link_checker.yml: -------------------------------------------------------------------------------- 1 | name: Link checker 2 | 3 | on: 4 | pull_request: 5 | workflow_dispatch: 6 | schedule: 7 | - cron: '0 12 * * *' 8 | 9 | defaults: 10 | run: 11 | shell: bash 12 | 13 | jobs: 14 | link-check: 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v3 18 | 19 | - uses: actions/setup-node@v3 20 | with: 21 | node-version: 18 22 | 23 | - name: Install dependencies 24 | run: yarn install 25 | 26 | - name: Install playwright browsers 27 | run: yarn playwright install 28 | 29 | - name: Run crawler 30 | id: crawler 31 | continue-on-error: true 32 | run: | 33 | if [[ "${{ github.event_name }}" == "pull_request" ]]; then 34 | echo "Running PR workflow: Building and starting local server..." 35 | yarn build 36 | sleep 5 37 | yarn start & 38 | sleep 15 39 | export BASE_URL="http://localhost:3000" 40 | else 41 | export BASE_URL="https://www.docs.sei.io/" 42 | fi 43 | echo "Running link checker for ${BASE_URL}" 44 | yarn tsx scripts/checkLinks.ts 45 | 46 | - name: Upload broken links artifact 47 | if: steps.crawler.outcome == 'failure' 48 | uses: actions/upload-artifact@v4 49 | with: 50 | name: broken-links 51 | path: brokenLinks.json 52 | 53 | - name: Fail job if crawler finds broken links 54 | if: steps.crawler.outcome == 'failure' 55 | run: exit 1 56 | -------------------------------------------------------------------------------- /.github/workflows/validate.yml: -------------------------------------------------------------------------------- 1 | name: Validate Changes 2 | 3 | on: 4 | workflow_dispatch: 5 | pull_request: 6 | 7 | 8 | defaults: 9 | run: 10 | shell: bash 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - name: Checkout code 18 | uses: actions/checkout@v3 19 | with: 20 | fetch-depth: 0 21 | 22 | - name: Enable Corepack 23 | run: corepack enable 24 | 25 | - name: Install dependencies 26 | run: yarn 27 | 28 | - name: Build docs 29 | run: yarn build 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .next 2 | node_modules 3 | .idea/* 4 | .DS_Store 5 | .vscode 6 | 7 | yarn-error.log 8 | 9 | _pagefind/ 10 | public/robots.txt 11 | public/sitemap-0.xml 12 | public/sitemap.xml 13 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v20.17.0 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": true, 4 | "bracketSpacing": true, 5 | "bracketSameLine": true, 6 | "printWidth": 164, 7 | "singleQuote": true, 8 | "jsxSingleQuote": true, 9 | "trailingComma": "none", 10 | "arrowParens": "always", 11 | "importOrderSeparation": true, 12 | "overrides": [ 13 | { 14 | "files": "*.mdx", 15 | "options": { 16 | "parser": "mdx", 17 | "useTabs": false, 18 | "tabWidth": 2, 19 | "proseWrap": "preserve", 20 | "printWidth": 999, 21 | "jsxSingleQuote": false 22 | } 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "*.mdx": "markdown", 4 | "*.md": "markdown" 5 | }, 6 | "markdown.mdxParser": "gatsby", 7 | "markdown.preview.mdxExtensions": true, 8 | "markdown.preview.mdxOptions": { 9 | "remarkPlugins": [ 10 | "remark-slug", 11 | "remark-autolink-headings" 12 | ], 13 | "rehypePlugins": [ 14 | "rehype-slug", 15 | "rehype-autolink-headings" 16 | ] 17 | }, 18 | "emmet.includeLanguages": { 19 | "mdx": "javascriptreact" 20 | }, 21 | "emmet.syntaxProfiles": { 22 | "mdx": "jsx" 23 | }, 24 | "emmet.triggerExpansionOnTab": true, 25 | "emmet.showSuggestionsAsSnippets": true, 26 | "emmet.showExpandedAbbreviation": "always", 27 | "emmet.optimizeStylesheetParsing": true, 28 | "emmet.preferences": { 29 | "jsx.singleQuote": true 30 | }, 31 | "eslint.validate": [ 32 | "javascript", 33 | "javascriptreact", 34 | "typescript", 35 | "typescriptreact", 36 | "mdx" 37 | ], 38 | "eslint.options": { 39 | "extensions": [".js", ".jsx", ".ts", ".tsx", ".mdx"] 40 | }, 41 | "eslint.workingDirectories": [ 42 | "./src", 43 | "./pages" 44 | ], 45 | "prettier.requireConfig": true, 46 | "editor.formatOnSave": true, 47 | "editor.defaultFormatter": "esbenp.prettier-vscode", 48 | "editor.codeActionsOnSave": { 49 | "source.fixAll.eslint": "never" 50 | }, 51 | "nextjs-intellisense.includePaths": [ 52 | "./src", 53 | "./pages" 54 | ], 55 | "npm-scripts.showStartNotification": false 56 | } -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | enable-pre-post-scripts=true 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Shu Ding 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /amplify.yml: -------------------------------------------------------------------------------- 1 | version: 1 2 | frontend: 3 | phases: 4 | preBuild: 5 | commands: 6 | - corepack enable 7 | - git rev-parse --is-shallow-repository && git fetch --unshallow || echo "Repository already has full history" 8 | build: 9 | commands: 10 | - yarn install 11 | - yarn build 12 | artifacts: 13 | baseDirectory: .next 14 | files: 15 | - '**/*' 16 | cache: 17 | paths: 18 | - node_modules 19 | - .yarn/cache 20 | -------------------------------------------------------------------------------- /app/[[...mdxPath]]/page.jsx: -------------------------------------------------------------------------------- 1 | import { generateStaticParamsFor, importPage } from 'nextra/pages'; 2 | import { useMDXComponents as getMDXComponents } from '../../mdx-components'; 3 | 4 | export const generateStaticParams = generateStaticParamsFor('mdxPath'); 5 | 6 | export async function generateMetadata(props) { 7 | const params = await props.params; 8 | const { metadata } = await importPage(params.mdxPath); 9 | return metadata; 10 | } 11 | 12 | const Wrapper = getMDXComponents().wrapper; 13 | 14 | export default async function Page(props) { 15 | const params = await props.params; 16 | const result = await importPage(params.mdxPath); 17 | const { default: MDXContent, toc, metadata } = result; 18 | return ( 19 | 20 | 21 | 22 | ); 23 | } 24 | -------------------------------------------------------------------------------- /app/not-found.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | import Link from 'next/link'; 3 | import Head from 'next/head'; 4 | 5 | export default function Custom404() { 6 | return ( 7 | <> 8 | 9 | 10 | 11 |
12 |
13 |

404

14 |
15 |

This page could not be found.

16 |
17 | 18 | 21 | Go to Home 22 | 23 |
24 | 25 | ); 26 | } 27 | -------------------------------------------------------------------------------- /content/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | index: { 3 | display: 'hidden', 4 | title: 'Home', 5 | theme: { 6 | sidebar: false, 7 | breadcrumb: false 8 | } 9 | }, 10 | learn: { 11 | title: 'Learn', 12 | type: 'page' 13 | }, 14 | evm: { 15 | title: 'EVM', 16 | type: 'page' 17 | }, 18 | 'cosmos-sdk': { 19 | title: 'Cosmos-SDK', 20 | type: 'page' 21 | }, 22 | node: { 23 | title: 'Operate', 24 | type: 'page' 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /content/cosmos-sdk/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | index: { 3 | title: 'Home' 4 | }, 5 | '-- Essentials': { 6 | type: 'separator', 7 | title: 'Essentials' 8 | }, 9 | networks: 'Network Information', 10 | 'querying-state': 'Querying Blockchain State', 11 | 12 | '-- Transactions': { 13 | type: 'separator', 14 | title: 'Transactions' 15 | }, 16 | transactions: 'Transaction Overview', 17 | 'execute-multiple': 'Executing Multiple Transactions', 18 | 19 | '-- Modules': { 20 | type: 'separator', 21 | title: 'Modules' 22 | }, 23 | 'multi-sig-accounts': 'Multi-Sig Accounts', 24 | 'fee-grants': 'Fee Grants', 25 | '-- Reference': { 26 | type: 'separator', 27 | title: 'Reference' 28 | }, 29 | api: 'REST API' 30 | }; 31 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "cosmos": { title: "Cosmos" }, 3 | "cosmwasm": { title: "Cosmwasm" }, 4 | "ibc": { title: "Ibc" }, 5 | "sei-protocol": { title: "Sei-protocol" }, 6 | "seichain": { title: "Seichain" } 7 | }; 8 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "auth": { title: "Auth" }, 4 | "authz": { title: "Authz" }, 5 | "bank": { title: "Bank" }, 6 | "base": { title: "Base" }, 7 | "cosmos-sdk": { title: "Cosmos-sdk" }, 8 | "distribution": { title: "Distribution" }, 9 | "evidence": { title: "Evidence" }, 10 | "feegrant": { title: "Feegrant" }, 11 | "gov": { title: "Gov" }, 12 | "slashing": { title: "Slashing" }, 13 | "staking": { title: "Staking" }, 14 | "tx": { title: "Tx" }, 15 | "upgrade": { title: "Upgrade" } 16 | }; 17 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/auth/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "accounts": { title: "accounts" }, 4 | "address": { title: "accounts/(address)" }, 5 | "nextaccountnumber": { title: "nextaccountnumber" }, 6 | "params": { title: "params" } 7 | }; 8 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/auth/accounts.mdx: -------------------------------------------------------------------------------- 1 | # accounts 2 | 3 | ## Description 4 | Since: cosmos-sdk 0.43 5 | 6 | ## Endpoint 7 | ```http 8 | get /cosmos/auth/v1beta1/accounts 9 | ``` 10 | 11 | ## Parameters 12 | > **Request Parameters** 13 | 14 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 15 | querying the next page most efficiently. Only one of offset or key 16 | should be set. 17 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 18 | It is less efficient than using key. Only one of offset or key should 19 | be set. 20 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 21 | If left empty it will default to a value to be set by each app. 22 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 23 | a count of the total number of items available for pagination in UIs. 24 | count_total is only respected when offset is used. It is ignored when key 25 | is set. 26 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 27 | 28 | Since: cosmos-sdk 0.43 29 | 30 | ## Responses 31 | > **Possible Responses** 32 | 33 | - **200**: A successful response. 34 | - **default**: An unexpected error response. 35 | 36 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/auth/address.mdx: -------------------------------------------------------------------------------- 1 | # accounts/(address) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/auth/v1beta1/accounts/{address} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **address** (path): address defines the address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/auth/nextaccountnumber.mdx: -------------------------------------------------------------------------------- 1 | # nextaccountnumber 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/auth/v1beta1/nextaccountnumber 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/auth/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/auth/v1beta1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/authz/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "grants": { title: "grants" }, 4 | "grantee": { title: "grantee/(grantee)" }, 5 | "granter": { title: "granter/(granter)" } 6 | }; 7 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/authz/grantee.mdx: -------------------------------------------------------------------------------- 1 | # grantee/(grantee) 2 | 3 | ## Description 4 | Since: cosmos-sdk 0.45.2 5 | 6 | ## Endpoint 7 | ```http 8 | get /cosmos/authz/v1beta1/grants/grantee/{grantee} 9 | ``` 10 | 11 | ## Parameters 12 | > **Request Parameters** 13 | 14 | - **grantee** (path): No description 15 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 16 | querying the next page most efficiently. Only one of offset or key 17 | should be set. 18 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 19 | It is less efficient than using key. Only one of offset or key should 20 | be set. 21 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 22 | If left empty it will default to a value to be set by each app. 23 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 24 | a count of the total number of items available for pagination in UIs. 25 | count_total is only respected when offset is used. It is ignored when key 26 | is set. 27 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 28 | 29 | Since: cosmos-sdk 0.43 30 | 31 | ## Responses 32 | > **Possible Responses** 33 | 34 | - **200**: A successful response. 35 | - **default**: An unexpected error response. 36 | 37 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/authz/granter.mdx: -------------------------------------------------------------------------------- 1 | # granter/(granter) 2 | 3 | ## Description 4 | Since: cosmos-sdk 0.45.2 5 | 6 | ## Endpoint 7 | ```http 8 | get /cosmos/authz/v1beta1/grants/granter/{granter} 9 | ``` 10 | 11 | ## Parameters 12 | > **Request Parameters** 13 | 14 | - **granter** (path): No description 15 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 16 | querying the next page most efficiently. Only one of offset or key 17 | should be set. 18 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 19 | It is less efficient than using key. Only one of offset or key should 20 | be set. 21 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 22 | If left empty it will default to a value to be set by each app. 23 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 24 | a count of the total number of items available for pagination in UIs. 25 | count_total is only respected when offset is used. It is ignored when key 26 | is set. 27 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 28 | 29 | Since: cosmos-sdk 0.43 30 | 31 | ## Responses 32 | > **Possible Responses** 33 | 34 | - **200**: A successful response. 35 | - **default**: An unexpected error response. 36 | 37 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/authz/grants.mdx: -------------------------------------------------------------------------------- 1 | # grants 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/authz/v1beta1/grants 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **granter** (query): No description 12 | - **grantee** (query): No description 13 | - **msg_type_url** (query): Optional, msg_type_url, when set, will query only grants matching given msg type. 14 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 15 | querying the next page most efficiently. Only one of offset or key 16 | should be set. 17 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 18 | It is less efficient than using key. Only one of offset or key should 19 | be set. 20 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 21 | If left empty it will default to a value to be set by each app. 22 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 23 | a count of the total number of items available for pagination in UIs. 24 | count_total is only respected when offset is used. It is ignored when key 25 | is set. 26 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 27 | 28 | Since: cosmos-sdk 0.43 29 | 30 | ## Responses 31 | > **Possible Responses** 32 | 33 | - **200**: A successful response. 34 | - **default**: An unexpected error response. 35 | 36 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "address": { title: "balances/(address)" }, 4 | "by-denom": { title: "(address)/by_denom" }, 5 | "denoms-metadata": { title: "denoms_metadata" }, 6 | "denom": { title: "denoms_metadata/(denom)" }, 7 | "params": { title: "params" }, 8 | "address": { title: "spendable_balances/(address)" }, 9 | "supply": { title: "supply" }, 10 | "denom": { title: "supply/(denom)" } 11 | }; 12 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/address.mdx: -------------------------------------------------------------------------------- 1 | # spendable_balances/(address) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/bank/v1beta1/spendable_balances/{address} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **address** (path): address is the address to query spendable balances for. 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/by-denom.mdx: -------------------------------------------------------------------------------- 1 | # (address)/by_denom 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/bank/v1beta1/balances/{address}/by_denom 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **address** (path): address is the address to query balances for. 12 | - **denom** (query): denom is the coin denom to query balances for. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/denom.mdx: -------------------------------------------------------------------------------- 1 | # supply/(denom) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/bank/v1beta1/supply/{denom} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **denom** (path): denom is the coin denom to query balances for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/denoms-metadata.mdx: -------------------------------------------------------------------------------- 1 | # denoms_metadata 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/bank/v1beta1/denoms_metadata 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/bank/v1beta1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/bank/supply.mdx: -------------------------------------------------------------------------------- 1 | # supply 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/bank/v1beta1/supply 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/base/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "latest": { title: "blocks/latest" }, 4 | "height": { title: "blocks/(height)" }, 5 | "node-info": { title: "node_info" }, 6 | "syncing": { title: "syncing" }, 7 | "latest": { title: "validatorsets/latest" }, 8 | "height": { title: "validatorsets/(height)" } 9 | }; 10 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/base/height.mdx: -------------------------------------------------------------------------------- 1 | # validatorsets/(height) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/base/tendermint/v1beta1/validatorsets/{height} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **height** (path): No description 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/base/latest.mdx: -------------------------------------------------------------------------------- 1 | # validatorsets/latest 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/base/tendermint/v1beta1/validatorsets/latest 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/base/node-info.mdx: -------------------------------------------------------------------------------- 1 | # node_info 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/base/tendermint/v1beta1/node_info 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/base/syncing.mdx: -------------------------------------------------------------------------------- 1 | # syncing 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/base/tendermint/v1beta1/syncing 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/cosmos-sdk/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "list-resource-dependency-mapping": { title: "accesscontrol/list_resource_dependency_mapping" }, 4 | "list-wasm-dependency-mapping": { title: "accesscontrol/list_wasm_dependency_mapping" }, 5 | "params": { title: "accesscontrol/params" }, 6 | "message-key": { title: "resource_dependency_mapping_from_message_key/(message_key)" }, 7 | "contract-address": { title: "wasm_dependency_mapping/(contract_address)" } 8 | }; 9 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/cosmos-sdk/contract-address.mdx: -------------------------------------------------------------------------------- 1 | # wasm_dependency_mapping/(contract_address) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/cosmos-sdk/accesscontrol/wasm_dependency_mapping/{contract_address} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contract_address** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/cosmos-sdk/list-resource-dependency-mapping.mdx: -------------------------------------------------------------------------------- 1 | # accesscontrol/list_resource_dependency_mapping 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/cosmos-sdk/accesscontrol/list_resource_dependency_mapping 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/cosmos-sdk/list-wasm-dependency-mapping.mdx: -------------------------------------------------------------------------------- 1 | # accesscontrol/list_wasm_dependency_mapping 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/cosmos-sdk/accesscontrol/list_wasm_dependency_mapping 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/cosmos-sdk/message-key.mdx: -------------------------------------------------------------------------------- 1 | # resource_dependency_mapping_from_message_key/(message_key) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/cosmos-sdk/accesscontrol/resource_dependency_mapping_from_message_key/{message_key} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **message_key** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/cosmos-sdk/params.mdx: -------------------------------------------------------------------------------- 1 | # accesscontrol/params 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/cosmos-sdk/accesscontrol/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "community-pool": { title: "community_pool" }, 4 | "rewards": { title: "(delegator_address)/rewards" }, 5 | "validator-address": { title: "rewards/(validator_address)" }, 6 | "validators": { title: "(delegator_address)/validators" }, 7 | "withdraw-address": { title: "(delegator_address)/withdraw_address" }, 8 | "params": { title: "params" }, 9 | "commission": { title: "(validator_address)/commission" }, 10 | "outstanding-rewards": { title: "(validator_address)/outstanding_rewards" }, 11 | "slashes": { title: "(validator_address)/slashes" } 12 | }; 13 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/commission.mdx: -------------------------------------------------------------------------------- 1 | # (validator_address)/commission 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/validators/{validator_address}/commission 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_address** (path): validator_address defines the validator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/community-pool.mdx: -------------------------------------------------------------------------------- 1 | # community_pool 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/community_pool 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/outstanding-rewards.mdx: -------------------------------------------------------------------------------- 1 | # (validator_address)/outstanding_rewards 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_address** (path): validator_address defines the validator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/rewards.mdx: -------------------------------------------------------------------------------- 1 | # (delegator_address)/rewards 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **delegator_address** (path): delegator_address defines the delegator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/slashes.mdx: -------------------------------------------------------------------------------- 1 | # (validator_address)/slashes 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/validators/{validator_address}/slashes 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_address** (path): validator_address defines the validator address to query for. 12 | - **starting_height** (query): starting_height defines the optional starting height to query the slashes. 13 | - **ending_height** (query): starting_height defines the optional ending height to query the slashes. 14 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 15 | querying the next page most efficiently. Only one of offset or key 16 | should be set. 17 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 18 | It is less efficient than using key. Only one of offset or key should 19 | be set. 20 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 21 | If left empty it will default to a value to be set by each app. 22 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 23 | a count of the total number of items available for pagination in UIs. 24 | count_total is only respected when offset is used. It is ignored when key 25 | is set. 26 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 27 | 28 | Since: cosmos-sdk 0.43 29 | 30 | ## Responses 31 | > **Possible Responses** 32 | 33 | - **200**: A successful response. 34 | - **default**: An unexpected error response. 35 | 36 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/validator-address.mdx: -------------------------------------------------------------------------------- 1 | # rewards/(validator_address) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **delegator_address** (path): delegator_address defines the delegator address to query for. 12 | - **validator_address** (path): validator_address defines the validator address to query for. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/validators.mdx: -------------------------------------------------------------------------------- 1 | # (delegator_address)/validators 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/delegators/{delegator_address}/validators 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **delegator_address** (path): delegator_address defines the delegator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/distribution/withdraw-address.mdx: -------------------------------------------------------------------------------- 1 | # (delegator_address)/withdraw_address 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **delegator_address** (path): delegator_address defines the delegator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/evidence/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "evidence": { title: "evidence" }, 4 | "evidence-hash": { title: "evidence/(evidence_hash)" } 5 | }; 6 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/evidence/evidence-hash.mdx: -------------------------------------------------------------------------------- 1 | # evidence/(evidence_hash) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/evidence/v1beta1/evidence/{evidence_hash} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **evidence_hash** (path): evidence_hash defines the hash of the requested evidence. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/evidence/evidence.mdx: -------------------------------------------------------------------------------- 1 | # evidence 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/evidence/v1beta1/evidence 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/evidence/index.mdx: -------------------------------------------------------------------------------- 1 | # Cosmos Evidence API 2 | 3 | This section covers the Cosmos Evidence related endpoints. Choose an endpoint to view details. 4 | 5 | ## Available Endpoints 6 | 7 |
8 | 9 | 10 |

Evidence Hash

11 |
12 |
13 | 14 | 15 |

Evidence

16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/feegrant/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "grantee": { title: "(granter)/(grantee)" }, 4 | "grantee": { title: "allowances/(grantee)" }, 5 | "granter": { title: "issued/(granter)" } 6 | }; 7 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/feegrant/grantee.mdx: -------------------------------------------------------------------------------- 1 | # allowances/(grantee) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/feegrant/v1beta1/allowances/{grantee} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **grantee** (path): No description 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/feegrant/granter.mdx: -------------------------------------------------------------------------------- 1 | # issued/(granter) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/feegrant/v1beta1/issued/{granter} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **granter** (path): No description 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/feegrant/index.mdx: -------------------------------------------------------------------------------- 1 | # Cosmos Feegrant API 2 | 3 | This section covers the Cosmos Feegrant related endpoints. Choose an endpoint to view details. 4 | 5 | ## Available Endpoints 6 | 7 |
8 | 9 | 10 |

Grantee

11 |
12 |
13 | 14 | 15 |

Granter

16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "params-type": { title: "params/(params_type)" }, 4 | "proposals": { title: "proposals" }, 5 | "proposal-id": { title: "proposals/(proposal_id)" }, 6 | "deposits": { title: "(proposal_id)/deposits" }, 7 | "depositor": { title: "deposits/(depositor)" }, 8 | "tally": { title: "(proposal_id)/tally" }, 9 | "votes": { title: "(proposal_id)/votes" }, 10 | "voter": { title: "votes/(voter)" } 11 | }; 12 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/depositor.mdx: -------------------------------------------------------------------------------- 1 | # deposits/(depositor) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **proposal_id** (path): proposal_id defines the unique id of the proposal. 12 | - **depositor** (path): depositor defines the deposit addresses from the proposals. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/deposits.mdx: -------------------------------------------------------------------------------- 1 | # (proposal_id)/deposits 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **proposal_id** (path): proposal_id defines the unique id of the proposal. 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/params-type.mdx: -------------------------------------------------------------------------------- 1 | # params/(params_type) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/params/{params_type} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **params_type** (path): params_type defines which parameters to query for, can be one of "voting", 12 | "tallying" or "deposit". 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/proposal-id.mdx: -------------------------------------------------------------------------------- 1 | # proposals/(proposal_id) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/proposals/{proposal_id} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **proposal_id** (path): proposal_id defines the unique id of the proposal. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/tally.mdx: -------------------------------------------------------------------------------- 1 | # (proposal_id)/tally 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/proposals/{proposal_id}/tally 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **proposal_id** (path): proposal_id defines the unique id of the proposal. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/voter.mdx: -------------------------------------------------------------------------------- 1 | # votes/(voter) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **proposal_id** (path): proposal_id defines the unique id of the proposal. 12 | - **voter** (path): voter defines the oter address for the proposals. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/gov/votes.mdx: -------------------------------------------------------------------------------- 1 | # (proposal_id)/votes 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/gov/v1beta1/proposals/{proposal_id}/votes 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **proposal_id** (path): proposal_id defines the unique id of the proposal. 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/slashing/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "params": { title: "params" }, 4 | "signing-infos": { title: "signing_infos" }, 5 | "cons-address": { title: "signing_infos/(cons_address)" } 6 | }; 7 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/slashing/cons-address.mdx: -------------------------------------------------------------------------------- 1 | # signing_infos/(cons_address) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/slashing/v1beta1/signing_infos/{cons_address} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **cons_address** (path): cons_address is the address to query signing info of 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/slashing/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/slashing/v1beta1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/slashing/signing-infos.mdx: -------------------------------------------------------------------------------- 1 | # signing_infos 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/slashing/v1beta1/signing_infos 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "delegator-addr": { title: "delegations/(delegator_addr)" }, 4 | "redelegations": { title: "(delegator_addr)/redelegations" }, 5 | "unbonding-delegations": { title: "(delegator_addr)/unbonding_delegations" }, 6 | "validators": { title: "(delegator_addr)/validators" }, 7 | "validator-addr": { title: "validators/(validator_addr)" }, 8 | "height": { title: "historical_info/(height)" }, 9 | "params": { title: "params" }, 10 | "pool": { title: "pool" }, 11 | "validators": { title: "validators" }, 12 | "delegations": { title: "(validator_addr)/delegations" }, 13 | "unbonding-delegation": { title: "(delegator_addr)/unbonding_delegation" }, 14 | "unbonding-delegations": { title: "(validator_addr)/unbonding_delegations" } 15 | }; 16 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/delegations.mdx: -------------------------------------------------------------------------------- 1 | # (validator_addr)/delegations 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/validators/{validator_addr}/delegations 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator_addr defines the validator address to query for. 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/delegator-addr.mdx: -------------------------------------------------------------------------------- 1 | # delegations/(delegator_addr) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator_addr defines the validator address to query for. 12 | - **delegator_addr** (path): delegator_addr defines the delegator address to query for. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/height.mdx: -------------------------------------------------------------------------------- 1 | # historical_info/(height) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/historical_info/{height} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **height** (path): height defines at which height to query the historical info. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/pool.mdx: -------------------------------------------------------------------------------- 1 | # pool 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/pool 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/redelegations.mdx: -------------------------------------------------------------------------------- 1 | # (delegator_addr)/redelegations 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **delegator_addr** (path): delegator_addr defines the delegator address to query for. 12 | - **src_validator_addr** (query): src_validator_addr defines the validator address to redelegate from. 13 | - **dst_validator_addr** (query): dst_validator_addr defines the validator address to redelegate to. 14 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 15 | querying the next page most efficiently. Only one of offset or key 16 | should be set. 17 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 18 | It is less efficient than using key. Only one of offset or key should 19 | be set. 20 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 21 | If left empty it will default to a value to be set by each app. 22 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 23 | a count of the total number of items available for pagination in UIs. 24 | count_total is only respected when offset is used. It is ignored when key 25 | is set. 26 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 27 | 28 | Since: cosmos-sdk 0.43 29 | 30 | ## Responses 31 | > **Possible Responses** 32 | 33 | - **200**: A successful response. 34 | - **default**: An unexpected error response. 35 | 36 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/unbonding-delegation.mdx: -------------------------------------------------------------------------------- 1 | # (delegator_addr)/unbonding_delegation 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator_addr defines the validator address to query for. 12 | - **delegator_addr** (path): delegator_addr defines the delegator address to query for. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/unbonding-delegations.mdx: -------------------------------------------------------------------------------- 1 | # (validator_addr)/unbonding_delegations 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator_addr defines the validator address to query for. 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/validator-addr.mdx: -------------------------------------------------------------------------------- 1 | # validators/(validator_addr) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/validators/{validator_addr} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator_addr defines the validator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/staking/validators.mdx: -------------------------------------------------------------------------------- 1 | # validators 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/staking/v1beta1/validators 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **status** (query): status enables to query for validators matching a given status. 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/tx/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "simulate": { title: "simulate" }, 4 | "txs": { title: "txs" }, 5 | "height": { title: "block/(height)" }, 6 | "hash": { title: "txs/(hash)" } 7 | }; 8 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/tx/hash.mdx: -------------------------------------------------------------------------------- 1 | # txs/(hash) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/tx/v1beta1/txs/{hash} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **hash** (path): hash is the tx hash to query, encoded as a hex string. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/tx/height.mdx: -------------------------------------------------------------------------------- 1 | # block/(height) 2 | 3 | ## Description 4 | Since: cosmos-sdk 0.45.2 5 | 6 | ## Endpoint 7 | ```http 8 | get /cosmos/tx/v1beta1/txs/block/{height} 9 | ``` 10 | 11 | ## Parameters 12 | > **Request Parameters** 13 | 14 | - **height** (path): height is the height of the block to query. 15 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 16 | querying the next page most efficiently. Only one of offset or key 17 | should be set. 18 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 19 | It is less efficient than using key. Only one of offset or key should 20 | be set. 21 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 22 | If left empty it will default to a value to be set by each app. 23 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 24 | a count of the total number of items available for pagination in UIs. 25 | count_total is only respected when offset is used. It is ignored when key 26 | is set. 27 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 28 | 29 | Since: cosmos-sdk 0.43 30 | 31 | ## Responses 32 | > **Possible Responses** 33 | 34 | - **200**: A successful response. 35 | - **default**: An unexpected error response. 36 | 37 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/tx/simulate.mdx: -------------------------------------------------------------------------------- 1 | # simulate 2 | 3 | ## Endpoint 4 | ```http 5 | post /cosmos/tx/v1beta1/simulate 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **body** (body): SimulateRequest is the request type for the Service.Simulate 12 | RPC method. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/tx/txs.mdx: -------------------------------------------------------------------------------- 1 | # txs 2 | 3 | ## Endpoint 4 | ```http 5 | post /cosmos/tx/v1beta1/txs 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **body** (body): BroadcastTxRequest is the request type for the Service.BroadcastTxRequest 12 | RPC method. 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/upgrade/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "name": { title: "applied_plan/(name)" }, 4 | "current-plan": { title: "current_plan" }, 5 | "module-versions": { title: "module_versions" }, 6 | "last-height": { title: "upgraded_consensus_state/(last_height)" } 7 | }; 8 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/upgrade/current-plan.mdx: -------------------------------------------------------------------------------- 1 | # current_plan 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/upgrade/v1beta1/current_plan 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/upgrade/last-height.mdx: -------------------------------------------------------------------------------- 1 | # upgraded_consensus_state/(last_height) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **last_height** (path): last height of the current chain must be sent in request 12 | as this is the height under which next consensus state is stored 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/upgrade/module-versions.mdx: -------------------------------------------------------------------------------- 1 | # module_versions 2 | 3 | ## Description 4 | Since: cosmos-sdk 0.43 5 | 6 | ## Endpoint 7 | ```http 8 | get /cosmos/upgrade/v1beta1/module_versions 9 | ``` 10 | 11 | ## Parameters 12 | > **Request Parameters** 13 | 14 | - **module_name** (query): module_name is a field to query a specific module 15 | consensus version from state. Leaving this empty will 16 | fetch the full list of module versions from state 17 | 18 | ## Responses 19 | > **Possible Responses** 20 | 21 | - **200**: A successful response. 22 | - **default**: An unexpected error response. 23 | 24 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmos/upgrade/name.mdx: -------------------------------------------------------------------------------- 1 | # applied_plan/(name) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmos/upgrade/v1beta1/applied_plan/{name} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **name** (path): name is the name of the applied plan to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "wasm": { title: "Wasm" } 4 | }; 5 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/index.mdx: -------------------------------------------------------------------------------- 1 | # Cosmwasm API 2 | 3 | This section covers the Cosmwasm related endpoints. Choose a category to continue. 4 | 5 | ## Categories 6 | 7 |
8 | 9 | 10 |

Wasm

11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | index: { title: 'Overview' }, 3 | code: { title: 'code' }, 4 | 'code-id': { title: 'code/(code_id)' }, 5 | contracts: { title: '(code_id)/contracts' }, 6 | pinned: { title: 'codes/pinned' }, 7 | address: { title: 'contract/(address)' }, 8 | history: { title: '(address)/history' }, 9 | smart: { title: 'smart/(query_data)' }, 10 | state: { title: '(address)/state' } 11 | }; 12 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/address.mdx: -------------------------------------------------------------------------------- 1 | # contract/(address) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/contract/{address} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **address** (path): address is the address of the contract to query 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/code-id.mdx: -------------------------------------------------------------------------------- 1 | # code/(code_id) 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/code/{code_id} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **code_id** (path): grpc-gateway_out does not support Go style CodID 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/code.mdx: -------------------------------------------------------------------------------- 1 | # code 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/code 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/contracts.mdx: -------------------------------------------------------------------------------- 1 | # (code_id)/contracts 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/code/{code_id}/contracts 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **code_id** (path): grpc-gateway_out does not support Go style CodID 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/history.mdx: -------------------------------------------------------------------------------- 1 | # (address)/history 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/contract/{address}/history 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **address** (path): address is the address of the contract to query 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/pinned.mdx: -------------------------------------------------------------------------------- 1 | # codes/pinned 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/codes/pinned 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 24 | 25 | Since: cosmos-sdk 0.43 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/smart.mdx: -------------------------------------------------------------------------------- 1 | # smart/(query_data) 2 | 3 | ## Endpoint 4 | 5 | ```http 6 | get /cosmwasm/wasm/v1/contract/{address}/smart/{query_data} 7 | ``` 8 | 9 | ## Parameters 10 | 11 | > **Request Parameters** 12 | 13 | - **address** (path): `address` is the address of the contract 14 | - **query_data** (path): `query_data` contains the encoded payload passed to the contract. 15 | - **payload** (format): Base64-encoded JSON string 16 | - **example_payload** (stringified JSON): `{"tokens":{"owner":"sei1fl48vsnmsdzcv85q5d2q4z5ajdha8yu3chcelk"}}` 17 | - **example_payload** (base64 encoded): eyJ0b2tlbnMiOnsib3duZXIiOiJzZWkxZmw0OHZzbm1zZHpjdjg1cTVkMnE0ejVhamRoYTh5dTNjaGNlbGsifX0= 18 | 19 | ## Responses 20 | 21 | > **Possible Responses** 22 | 23 | - **200**: A successful response. 24 | - **default**: An unexpected error response. 25 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/cosmwasm/wasm/state.mdx: -------------------------------------------------------------------------------- 1 | # (address)/state 2 | 3 | ## Endpoint 4 | ```http 5 | get /cosmwasm/wasm/v1/contract/{address}/state 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **address** (path): address is the address of the contract 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 25 | 26 | Since: cosmos-sdk 0.43 27 | 28 | ## Responses 29 | > **Possible Responses** 30 | 31 | - **200**: A successful response. 32 | - **default**: An unexpected error response. 33 | 34 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "apps": { title: "Apps" }, 4 | "client": { title: "Client" }, 5 | "core": { title: "Core" } 6 | }; 7 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/apps/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "params": { title: "params" }, 4 | "escrow-address": { title: "(port_id)/escrow_address" }, 5 | "trace": { title: "denom_hashes/(trace)" }, 6 | "denom-traces": { title: "denom_traces" }, 7 | "hash": { title: "denom_traces/(hash)" }, 8 | "params": { title: "params" } 9 | }; 10 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/apps/denom-traces.mdx: -------------------------------------------------------------------------------- 1 | # denom_traces 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/apps/transfer/v1/denom_traces 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | 24 | ## Responses 25 | > **Possible Responses** 26 | 27 | - **200**: A successful response. 28 | - **default**: An unexpected error response. 29 | 30 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/apps/escrow-address.mdx: -------------------------------------------------------------------------------- 1 | # (port_id)/escrow_address 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/apps/transfer/v1/channels/{channel_id}/ports/{port_id}/escrow_address 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): unique channel identifier 12 | - **port_id** (path): unique port identifier 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/apps/hash.mdx: -------------------------------------------------------------------------------- 1 | # denom_traces/(hash) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/apps/transfer/v1/denom_traces/{hash} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **hash** (path): hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/apps/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/apps/transfer/v1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/apps/trace.mdx: -------------------------------------------------------------------------------- 1 | # denom_hashes/(trace) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/apps/transfer/v1/denom_hashes/{trace} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **trace** (path): The denomination trace ([port_id]/[channel_id])+/[denom] 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/client/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "params": { title: "params" } 4 | }; 5 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/client/index.mdx: -------------------------------------------------------------------------------- 1 | # Ibc Client API 2 | 3 | This section covers the Ibc Client related endpoints. Choose an endpoint to view details. 4 | 5 | ## Available Endpoints 6 | 7 |
8 | 9 | 10 |

Params

11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/client/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/client/v1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "channels": { title: "channels" }, 4 | "port-id": { title: "ports/(port_id)" }, 5 | "client-state": { title: "(port_id)/client_state" }, 6 | "revision-height": { title: "height/(revision_height)" }, 7 | "next-sequence": { title: "(port_id)/next_sequence" }, 8 | "packet-acknowledgements": { title: "(port_id)/packet_acknowledgements" }, 9 | "sequence": { title: "packet_acks/(sequence)" }, 10 | "packet-commitments": { title: "(port_id)/packet_commitments" }, 11 | "unreceived-acks": { title: "(packet_ack_sequences)/unreceived_acks" }, 12 | "unreceived-packets": { title: "(packet_commitment_sequences)/unreceived_packets" }, 13 | "sequence": { title: "packet_commitments/(sequence)" }, 14 | "sequence": { title: "packet_receipts/(sequence)" }, 15 | "channels": { title: "(connection)/channels" }, 16 | "client-states": { title: "client_states" }, 17 | "client-id": { title: "client_states/(client_id)" }, 18 | "client-id": { title: "client_status/(client_id)" }, 19 | "client-id": { title: "consensus_states/(client_id)" }, 20 | "heights": { title: "(client_id)/heights" }, 21 | "upgraded-client-states": { title: "upgraded_client_states" }, 22 | "upgraded-consensus-states": { title: "upgraded_consensus_states" }, 23 | "client-id": { title: "client_connections/(client_id)" }, 24 | "connections": { title: "connections" }, 25 | "connection-id": { title: "connections/(connection_id)" }, 26 | "client-state": { title: "(connection_id)/client_state" }, 27 | "revision-height": { title: "height/(revision_height)" } 28 | }; 29 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/channels.mdx: -------------------------------------------------------------------------------- 1 | # (connection)/channels 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/connections/{connection}/channels 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **connection** (path): connection unique identifier 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | 25 | ## Responses 26 | > **Possible Responses** 27 | 28 | - **200**: A successful response. 29 | - **default**: An unexpected error response. 30 | 31 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/client-id.mdx: -------------------------------------------------------------------------------- 1 | # client_connections/(client_id) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/connection/v1/client_connections/{client_id} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **client_id** (path): client identifier associated with a connection 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/client-state.mdx: -------------------------------------------------------------------------------- 1 | # (connection_id)/client_state 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/connection/v1/connections/{connection_id}/client_state 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **connection_id** (path): connection identifier 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/client-states.mdx: -------------------------------------------------------------------------------- 1 | # client_states 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/client/v1/client_states 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | 24 | ## Responses 25 | > **Possible Responses** 26 | 27 | - **200**: A successful response. 28 | - **default**: An unexpected error response. 29 | 30 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/connection-id.mdx: -------------------------------------------------------------------------------- 1 | # connections/(connection_id) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/connection/v1/connections/{connection_id} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **connection_id** (path): connection unique identifier 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/connections.mdx: -------------------------------------------------------------------------------- 1 | # connections 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/connection/v1/connections 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 12 | querying the next page most efficiently. Only one of offset or key 13 | should be set. 14 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 15 | It is less efficient than using key. Only one of offset or key should 16 | be set. 17 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 18 | If left empty it will default to a value to be set by each app. 19 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 20 | a count of the total number of items available for pagination in UIs. 21 | count_total is only respected when offset is used. It is ignored when key 22 | is set. 23 | 24 | ## Responses 25 | > **Possible Responses** 26 | 27 | - **200**: A successful response. 28 | - **default**: An unexpected error response. 29 | 30 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/heights.mdx: -------------------------------------------------------------------------------- 1 | # (client_id)/heights 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/client/v1/consensus_states/{client_id}/heights 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **client_id** (path): client identifier 12 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 13 | querying the next page most efficiently. Only one of offset or key 14 | should be set. 15 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 16 | It is less efficient than using key. Only one of offset or key should 17 | be set. 18 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 19 | If left empty it will default to a value to be set by each app. 20 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 21 | a count of the total number of items available for pagination in UIs. 22 | count_total is only respected when offset is used. It is ignored when key 23 | is set. 24 | 25 | ## Responses 26 | > **Possible Responses** 27 | 28 | - **200**: A successful response. 29 | - **default**: An unexpected error response. 30 | 31 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/next-sequence.mdx: -------------------------------------------------------------------------------- 1 | # (port_id)/next_sequence 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/packet-acknowledgements.mdx: -------------------------------------------------------------------------------- 1 | # (port_id)/packet_acknowledgements 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 14 | querying the next page most efficiently. Only one of offset or key 15 | should be set. 16 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 17 | It is less efficient than using key. Only one of offset or key should 18 | be set. 19 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 20 | If left empty it will default to a value to be set by each app. 21 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 22 | a count of the total number of items available for pagination in UIs. 23 | count_total is only respected when offset is used. It is ignored when key 24 | is set. 25 | - **packet_commitment_sequences** (query): list of packet sequences 26 | 27 | ## Responses 28 | > **Possible Responses** 29 | 30 | - **200**: A successful response. 31 | - **default**: An unexpected error response. 32 | 33 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/packet-commitments.mdx: -------------------------------------------------------------------------------- 1 | # (port_id)/packet_commitments 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 14 | querying the next page most efficiently. Only one of offset or key 15 | should be set. 16 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 17 | It is less efficient than using key. Only one of offset or key should 18 | be set. 19 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 20 | If left empty it will default to a value to be set by each app. 21 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 22 | a count of the total number of items available for pagination in UIs. 23 | count_total is only respected when offset is used. It is ignored when key 24 | is set. 25 | 26 | ## Responses 27 | > **Possible Responses** 28 | 29 | - **200**: A successful response. 30 | - **default**: An unexpected error response. 31 | 32 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/port-id.mdx: -------------------------------------------------------------------------------- 1 | # ports/(port_id) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/revision-height.mdx: -------------------------------------------------------------------------------- 1 | # height/(revision_height) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **connection_id** (path): connection identifier 12 | - **revision_number** (path): No description 13 | - **revision_height** (path): No description 14 | 15 | ## Responses 16 | > **Possible Responses** 17 | 18 | - **200**: A successful response. 19 | - **default**: An unexpected error response. 20 | 21 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/sequence.mdx: -------------------------------------------------------------------------------- 1 | # packet_receipts/(sequence) 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | - **sequence** (path): packet sequence 14 | 15 | ## Responses 16 | > **Possible Responses** 17 | 18 | - **200**: A successful response. 19 | - **default**: An unexpected error response. 20 | 21 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/unreceived-acks.mdx: -------------------------------------------------------------------------------- 1 | # (packet_ack_sequences)/unreceived_acks 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | - **packet_ack_sequences** (path): list of acknowledgement sequences 14 | 15 | ## Responses 16 | > **Possible Responses** 17 | 18 | - **200**: A successful response. 19 | - **default**: An unexpected error response. 20 | 21 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/unreceived-packets.mdx: -------------------------------------------------------------------------------- 1 | # (packet_commitment_sequences)/unreceived_packets 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **channel_id** (path): channel unique identifier 12 | - **port_id** (path): port unique identifier 13 | - **packet_commitment_sequences** (path): list of packet sequences 14 | 15 | ## Responses 16 | > **Possible Responses** 17 | 18 | - **200**: A successful response. 19 | - **default**: An unexpected error response. 20 | 21 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/upgraded-client-states.mdx: -------------------------------------------------------------------------------- 1 | # upgraded_client_states 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/client/v1/upgraded_client_states 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/ibc/core/upgraded-consensus-states.mdx: -------------------------------------------------------------------------------- 1 | # upgraded_consensus_states 2 | 3 | ## Endpoint 4 | ```http 5 | get /ibc/core/client/v1/upgraded_consensus_states 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/index.mdx: -------------------------------------------------------------------------------- 1 | import openapi from '../../../src/data/cosmos-openapi.json'; 2 | import { getUniqueSections } from '../../../src/components/APIModule/utils'; 3 | import { APIModulePaths } from '../../../src/components'; 4 | 5 | # API Endpoints 6 | 7 | ## cosmos 8 | 9 | 10 | 11 | ## cosmwasm 12 | 13 | 14 | 15 | ## ibc 16 | 17 | 18 | 19 | ## sei-protocol 20 | 21 | 22 | 23 | ## seichain 24 | 25 | 26 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "sei-chain": { title: "Sei-chain" }, 4 | "seichain": { title: "Seichain" } 5 | }; 6 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "actives": { title: "denoms/actives" }, 4 | "exchange-rates": { title: "denoms/exchange_rates" }, 5 | "price-snapshot-history": { title: "denoms/price_snapshot_history" }, 6 | "lookback-seconds": { title: "twaps/(lookback_seconds)" }, 7 | "vote-targets": { title: "denoms/vote_targets" }, 8 | "exchange-rate": { title: "(denom)/exchange_rate" }, 9 | "params": { title: "oracle/params" }, 10 | "slash-window": { title: "oracle/slash_window" }, 11 | "feeder": { title: "(validator_addr)/feeder" }, 12 | "vote-penalty-counter": { title: "(validator_addr)/vote_penalty_counter" } 13 | }; 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/actives.mdx: -------------------------------------------------------------------------------- 1 | # denoms/actives 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/denoms/actives 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/exchange-rate.mdx: -------------------------------------------------------------------------------- 1 | # (denom)/exchange_rate 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/denoms/{denom}/exchange_rate 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **denom** (path): denom defines the denomination to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/exchange-rates.mdx: -------------------------------------------------------------------------------- 1 | # denoms/exchange_rates 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/denoms/exchange_rates 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/feeder.mdx: -------------------------------------------------------------------------------- 1 | # (validator_addr)/feeder 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/validators/{validator_addr}/feeder 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator defines the validator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/lookback-seconds.mdx: -------------------------------------------------------------------------------- 1 | # twaps/(lookback_seconds) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/denoms/twaps/{lookback_seconds} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **lookback_seconds** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/params.mdx: -------------------------------------------------------------------------------- 1 | # oracle/params 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/price-snapshot-history.mdx: -------------------------------------------------------------------------------- 1 | # denoms/price_snapshot_history 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/denoms/price_snapshot_history 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/slash-window.mdx: -------------------------------------------------------------------------------- 1 | # oracle/slash_window 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/slash_window 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/vote-penalty-counter.mdx: -------------------------------------------------------------------------------- 1 | # (validator_addr)/vote_penalty_counter 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/validators/{validator_addr}/vote_penalty_counter 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **validator_addr** (path): validator defines the validator address to query for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/sei-chain/vote-targets.mdx: -------------------------------------------------------------------------------- 1 | # denoms/vote_targets 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/sei-chain/oracle/denoms/vote_targets 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "asset-list": { title: "dex/asset_list" }, 4 | "denom": { title: "asset_list/(denom)" }, 5 | "numOfPeriods": { title: "(periodLengthInSeconds)/(numOfPeriods)" }, 6 | "assetDenom": { title: "(priceDenom)/(assetDenom)" }, 7 | "lookbackInSeconds": { title: "(assetDenom)/(lookbackInSeconds)" }, 8 | "id": { title: "(assetDenom)/(id)" }, 9 | "account": { title: "(contractAddr)/(account)" }, 10 | "timestamp": { title: "(assetDenom)/(timestamp)" }, 11 | "lookbackSeconds": { title: "(contractAddr)/(lookbackSeconds)" }, 12 | "price": { title: "(assetDenom)/(price)" }, 13 | "params": { title: "dex/params" }, 14 | "contractAddr": { title: "registered_contract/(contractAddr)" }, 15 | "registered-pairs": { title: "dex/registered_pairs" }, 16 | "epoch": { title: "epoch/epoch" }, 17 | "params": { title: "epoch/params" }, 18 | "evm-address": { title: "evm/evm_address" }, 19 | "pointer": { title: "evm/pointer" }, 20 | "pointer-version": { title: "evm/pointer_version" }, 21 | "sei-address": { title: "evm/sei_address" }, 22 | "static-call": { title: "evm/static_call" }, 23 | "metadata": { title: "denoms/metadata" }, 24 | "authority-metadata": { title: "(denom)/authority_metadata" }, 25 | "creator": { title: "denoms_from_creator/(creator)" }, 26 | "params": { title: "tokenfactory/params" } 27 | }; 28 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/account.mdx: -------------------------------------------------------------------------------- 1 | # (contractAddr)/(account) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/get_orders/{contractAddr}/{account} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **account** (path): No description 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/asset-list.mdx: -------------------------------------------------------------------------------- 1 | # dex/asset_list 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/asset_list 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/assetDenom.mdx: -------------------------------------------------------------------------------- 1 | # (priceDenom)/(assetDenom) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/short_book/{contractAddr}/{priceDenom}/{assetDenom} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **priceDenom** (path): No description 13 | - **assetDenom** (path): No description 14 | - **pagination.key** (query): key is a value returned in PageResponse.next_key to begin 15 | querying the next page most efficiently. Only one of offset or key 16 | should be set. 17 | - **pagination.offset** (query): offset is a numeric offset that can be used when key is unavailable. 18 | It is less efficient than using key. Only one of offset or key should 19 | be set. 20 | - **pagination.limit** (query): limit is the total number of results to be returned in the result page. 21 | If left empty it will default to a value to be set by each app. 22 | - **pagination.count_total** (query): count_total is set to true to indicate that the result set should include 23 | a count of the total number of items available for pagination in UIs. 24 | count_total is only respected when offset is used. It is ignored when key 25 | is set. 26 | - **pagination.reverse** (query): reverse is set to true if results are to be returned in the descending order. 27 | 28 | Since: cosmos-sdk 0.43 29 | 30 | ## Responses 31 | > **Possible Responses** 32 | 33 | - **200**: A successful response. 34 | - **default**: An unexpected error response. 35 | 36 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/authority-metadata.mdx: -------------------------------------------------------------------------------- 1 | # (denom)/authority_metadata 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/tokenfactory/denoms/{denom}/authority_metadata 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **denom** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/contractAddr.mdx: -------------------------------------------------------------------------------- 1 | # registered_contract/(contractAddr) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/registered_contract/{contractAddr} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/creator.mdx: -------------------------------------------------------------------------------- 1 | # denoms_from_creator/(creator) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/tokenfactory/denoms_from_creator/{creator} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **creator** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/denom.mdx: -------------------------------------------------------------------------------- 1 | # asset_list/(denom) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/asset_list/{denom} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **denom** (path): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/epoch.mdx: -------------------------------------------------------------------------------- 1 | # epoch/epoch 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/epoch/epoch 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/evm-address.mdx: -------------------------------------------------------------------------------- 1 | # evm/evm_address 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/evm/evm_address 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **sei_address** (query): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/id.mdx: -------------------------------------------------------------------------------- 1 | # (assetDenom)/(id) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/get_order_by_id/{contractAddr}/{priceDenom}/{assetDenom}/{id} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **priceDenom** (path): No description 13 | - **assetDenom** (path): No description 14 | - **id** (path): No description 15 | 16 | ## Responses 17 | > **Possible Responses** 18 | 19 | - **200**: A successful response. 20 | - **default**: An unexpected error response. 21 | 22 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/lookbackInSeconds.mdx: -------------------------------------------------------------------------------- 1 | # (assetDenom)/(lookbackInSeconds) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/get_market_summary/{contractAddr}/{priceDenom}/{assetDenom}/{lookbackInSeconds} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **priceDenom** (path): No description 13 | - **assetDenom** (path): No description 14 | - **lookbackInSeconds** (path): No description 15 | 16 | ## Responses 17 | > **Possible Responses** 18 | 19 | - **200**: A successful response. 20 | - **default**: An unexpected error response. 21 | 22 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/lookbackSeconds.mdx: -------------------------------------------------------------------------------- 1 | # (contractAddr)/(lookbackSeconds) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/get_twaps/{contractAddr}/{lookbackSeconds} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **lookbackSeconds** (path): No description 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/metadata.mdx: -------------------------------------------------------------------------------- 1 | # denoms/metadata 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/tokenfactory/denoms/metadata 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **denom** (query): denom is the coin denom to query the metadata for. 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/numOfPeriods.mdx: -------------------------------------------------------------------------------- 1 | # (periodLengthInSeconds)/(numOfPeriods) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/get_historical_prices/{contractAddr}/{priceDenom}/{assetDenom}/{periodLengthInSeconds}/{numOfPeriods} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **priceDenom** (path): No description 13 | - **assetDenom** (path): No description 14 | - **periodLengthInSeconds** (path): No description 15 | - **numOfPeriods** (path): No description 16 | 17 | ## Responses 18 | > **Possible Responses** 19 | 20 | - **200**: A successful response. 21 | - **default**: An unexpected error response. 22 | 23 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/params.mdx: -------------------------------------------------------------------------------- 1 | # tokenfactory/params 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/tokenfactory/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/pointer-version.mdx: -------------------------------------------------------------------------------- 1 | # evm/pointer_version 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/evm/pointer_version 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pointer_type** (query): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/pointer.mdx: -------------------------------------------------------------------------------- 1 | # evm/pointer 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/evm/pointer 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **pointer_type** (query): No description 12 | - **pointee** (query): No description 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/price.mdx: -------------------------------------------------------------------------------- 1 | # (assetDenom)/(price) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/short_book/{contractAddr}/{priceDenom}/{assetDenom}/{price} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **priceDenom** (path): No description 13 | - **assetDenom** (path): No description 14 | - **price** (path): No description 15 | 16 | ## Responses 17 | > **Possible Responses** 18 | 19 | - **200**: A successful response. 20 | - **default**: An unexpected error response. 21 | 22 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/registered-pairs.mdx: -------------------------------------------------------------------------------- 1 | # dex/registered_pairs 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/registered_pairs 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (query): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/sei-address.mdx: -------------------------------------------------------------------------------- 1 | # evm/sei_address 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/evm/sei_address 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **evm_address** (query): No description 12 | 13 | ## Responses 14 | > **Possible Responses** 15 | 16 | - **200**: A successful response. 17 | - **default**: An unexpected error response. 18 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/static-call.mdx: -------------------------------------------------------------------------------- 1 | # evm/static_call 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/evm/static_call 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **data** (query): No description 12 | - **to** (query): No description 13 | 14 | ## Responses 15 | > **Possible Responses** 16 | 17 | - **200**: A successful response. 18 | - **default**: An unexpected error response. 19 | 20 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/sei-protocol/seichain/timestamp.mdx: -------------------------------------------------------------------------------- 1 | # (assetDenom)/(timestamp) 2 | 3 | ## Endpoint 4 | ```http 5 | get /sei-protocol/seichain/dex/get_price/{contractAddr}/{priceDenom}/{assetDenom}/{timestamp} 6 | ``` 7 | 8 | ## Parameters 9 | > **Request Parameters** 10 | 11 | - **contractAddr** (path): No description 12 | - **priceDenom** (path): No description 13 | - **assetDenom** (path): No description 14 | - **timestamp** (path): No description 15 | 16 | ## Responses 17 | > **Possible Responses** 18 | 19 | - **200**: A successful response. 20 | - **default**: An unexpected error response. 21 | 22 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/seichain/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "mint": { title: "Mint" } 4 | }; 5 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/seichain/index.mdx: -------------------------------------------------------------------------------- 1 | # Seichain API 2 | 3 | This section covers the Seichain related endpoints. Choose a category to continue. 4 | 5 | ## Categories 6 | 7 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/seichain/mint/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | "index": { title: "Overview" }, 3 | "minter": { title: "minter" }, 4 | "params": { title: "params" } 5 | }; 6 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/seichain/mint/index.mdx: -------------------------------------------------------------------------------- 1 | # Seichain Mint API 2 | 3 | This section covers the Seichain Mint related endpoints. Choose an endpoint to view details. 4 | 5 | ## Available Endpoints 6 | 7 | 19 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/seichain/mint/minter.mdx: -------------------------------------------------------------------------------- 1 | # minter 2 | 3 | ## Endpoint 4 | ```http 5 | get /seichain/mint/v1beta1/minter 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/api/seichain/mint/params.mdx: -------------------------------------------------------------------------------- 1 | # params 2 | 3 | ## Endpoint 4 | ```http 5 | get /seichain/mint/v1beta1/params 6 | ``` 7 | 8 | ## Responses 9 | > **Possible Responses** 10 | 11 | - **200**: A successful response. 12 | - **default**: An unexpected error response. 13 | 14 | -------------------------------------------------------------------------------- /content/cosmos-sdk/index.mdx: -------------------------------------------------------------------------------- 1 | import { IconArrowsExchange, IconBrain, IconCoins, IconCode, IconLayoutDashboard, IconTools } from '@tabler/icons-react'; 2 | import { LinkCard } from '../../src/components/LinkCard'; 3 | 4 | # Cosmos-SDK 5 | 6 |
7 | } 9 | title="View Network Information" 10 | link="/cosmos-sdk/networks" 11 | description={`View essential network information like chainId, RPC providers, and explorers.`} 12 | preview={{ 13 | content: 'Detailed information about the different live Sei chains for any developer.', 14 | highlights: ['pacific-1', 'atlantic-2', 'arctic-1'] 15 | }} 16 | /> 17 |
18 | -------------------------------------------------------------------------------- /content/cosmos-sdk/networks.mdx: -------------------------------------------------------------------------------- 1 | import { ChainInformation } from '../../src/components'; 2 | 3 | # Cosmos-SDK Sei Networks 4 | 5 | 6 | -------------------------------------------------------------------------------- /content/evm/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | index: { 3 | title: 'Home' 4 | }, 5 | '-- Essentials': { 6 | type: 'separator', 7 | title: 'Essentials' 8 | }, 9 | networks: 'Network Information', 10 | 'differences-with-ethereum': 'Divergence from Ethereum', 11 | 'installing-seid': 'Installing seid CLI', 12 | 'evm-transactions': 'EVM with seid', 13 | 14 | '-- Frontend Development': { 15 | type: 'separator', 16 | title: 'Frontend Development' 17 | }, 18 | 'sei-global-wallet': { 19 | title: 'Sei Global Wallet' 20 | }, 21 | 'building-a-frontend': 'Building a Frontend', 22 | 23 | '-- Smart Contracts': { 24 | type: 'separator', 25 | title: 'Smart Contracts' 26 | }, 27 | 'evm-general': 'EVM (General)', 28 | 'evm-hardhat': 'EVM with Hardhat', 29 | 'evm-foundry': 'EVM with Foundry', 30 | 'evm-wizard': { 31 | title: 'EVM Contract Wizard', 32 | theme: { 33 | sidebar: true, 34 | toc: false, 35 | layout: 'full' 36 | } 37 | }, 38 | 'solidity-resources': 'Solidity Resources', 39 | 'evm-verify-contracts': 'Verify Contracts', 40 | precompiles: 'Precompiles', 41 | 42 | '-- Ecosystem Tutorials': { 43 | type: 'separator', 44 | title: 'Ecosystem Tutorials' 45 | }, 46 | 'indexer-providers': 'Indexers', 47 | 'wallet-integrations': 'Wallet Integrations', 48 | bridging: 'Bridging', 49 | 50 | '-- Reference': { 51 | type: 'separator', 52 | title: 'Reference' 53 | }, 54 | transactions: 'Transaction Overview', 55 | reference: 'RPC Reference', 56 | tokens: 'View Tokens', 57 | 58 | '-- Hardware Wallets': { 59 | type: 'separator', 60 | title: 'Hardware Wallets' 61 | }, 62 | 'ledger-ethers': 'Using Ledger with Ethers', 63 | 64 | '-- CosmWasm Interoperability': { 65 | type: 'separator', 66 | title: 'CosmWasm Interoperability' 67 | }, 68 | 'cosmwasm-precompiles': 'Precompiles', 69 | pointers: 'Pointer Contracts', 70 | 'ibc-protocol': 'IBC on EVM' 71 | }; 72 | -------------------------------------------------------------------------------- /content/evm/bridging/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | thirdweb: { 3 | title: 'Thirdweb' 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /content/evm/cosmwasm-precompiles/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'example-usage': 'Example Usage', 3 | addr: 'Address', 4 | bank: 'Bank', 5 | cosmwasm: 'CosmWasm', 6 | ibc: 'IBC', 7 | pointer: 'Pointer', 8 | pointerview: 'Pointerview' 9 | }; 10 | -------------------------------------------------------------------------------- /content/evm/cosmwasm-precompiles/pointer.mdx: -------------------------------------------------------------------------------- 1 | import { Callout } from 'nextra/components'; 2 | 3 | # Pointer Precompile 4 | 5 | **Address**: `0x000000000000000000000000000000000000100B` 6 | 7 | This precompile enables EVM clients to add pointers to a Cosmos-SDK native asset, or Cosmwasm contract token. 8 | 9 | ## Functions 10 | 11 | ### Transactions 12 | 13 | - `addNativePointer`: Adds a native pointer for the contract. 14 | 15 | ```solidity copy 16 | /// Adds a native pointer for the contract. 17 | /// @param token The native token to add. 18 | /// @return An Ethereum address of the pointer. 19 | function addNativePointer( 20 | string memory token 21 | ) external returns (address ret); 22 | ``` 23 | 24 | - `addCW20Pointer`: Adds a CW20 pointer for the contract. 25 | 26 | ```solidity copy 27 | /// Adds a CW20 pointer for the contract. 28 | /// @param cwAddr The CW20 contract address to add. 29 | /// @return An Ethereum address of the pointer. 30 | function addCW20Pointer( 31 | string memory cwAddr 32 | ) external returns (address ret); 33 | ``` 34 | 35 | - `addCW20Pointer`: Adds a CW721 pointer for the contract. 36 | ```solidity copy 37 | /// Adds a CW721 pointer for the contract. 38 | /// @param cwAddr The CW721 contract address to add. 39 | /// @return An Ethereum address of the pointer. 40 | function addCW721Pointer( 41 | string memory cwAddr 42 | ) external returns (address ret); 43 | ``` 44 | View the Pointer precompile source code and the contract ABI [here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/pointer). 45 | -------------------------------------------------------------------------------- /content/evm/indexer-providers/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | goldrush: { 3 | title: 'Goldrush by Covalent' 4 | }, 5 | goldsky: { 6 | title: 'Goldsky' 7 | }, 8 | 'the-graph': { 9 | title: 'The Graph' 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /content/evm/networks.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Sei EVM Networks" 3 | description: "Discover network information for Sei EVM across all environments including mainnet, testnet, and devnet. Access RPC endpoints, chain IDs, and blockchain explorers." 4 | keywords: ["sei evm", "network information", "chain ids", "rpc endpoints", "blockchain explorers"] 5 | --- 6 | import { ChainInformation } from '../../src/components'; 7 | 8 | # Sei EVM Networks 9 | 10 | 11 | -------------------------------------------------------------------------------- /content/evm/pointers/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | standard: 'Standard [20, 721, 1155]', 3 | ibc: 'IBC', 4 | tokenfactory: 'Tokenfactory' 5 | }; 6 | -------------------------------------------------------------------------------- /content/evm/pointers/tokenfactory.mdx: -------------------------------------------------------------------------------- 1 | import { Callout } from 'nextra/components'; 2 | 3 | ### **First Steps** 4 | 5 | Refer to the [Tokenfactory tutorial](/cosmos-sdk/tokenfactory-tutorial) for details 6 | on how to create a tokenfactory denom and an associated pointer contract. 7 | 8 | ## Create Pointer Contract 9 | 10 | After creating your token, in ordfer to enable seamless use across both standard 11 | and EVM environments, we can create a pointer contract. This will create what is 12 | essentially an ERC20 "proxy" token that can be imported and used in EVM wallets 13 | and applications just like any other, with the added benefit of significantly 14 | easier tracking of wallet balances, default IBC transfer capability, and more. 15 | 16 | Please note that the pointer data for factory tokens (as well as IBC tokens) can only be updated through governance. Therefore, it is crucial to ensure that the pointer contract is configured correctly the first time, as it is difficult to change once implemented. It is recommended to try the procedure on testnet before deploying to mainnet. 17 | 18 | ```bash copy 19 | seid tx evm register-evm-pointer NATIVE factory/${ACCOUNT}/${DENOM} --from=$ACCOUNT --fees 20000usei --evm-rpc=https://evm-rpc-testnet.sei-apis.com 20 | ``` 21 | 22 | This command creates an ERC20 token that is linked to the TokenFactory token. 23 | Any activities involving this ERC20 token will be reflected in the state of the 24 | TokenFactory token and vice versa. 25 | 26 | To query the pointer contract address, run the following command: 27 | 28 | ```bash copy 29 | seid q evm pointer NATIVE factory/${ACCOUNT}/${DENOM} --node=https://rpc-testnet.sei-apis.com 30 | ``` 31 | 32 | This will return the address of the pointer contract, which can be used in EVM 33 | environments to interact with your TokenFactory token. 34 | -------------------------------------------------------------------------------- /content/evm/precompiles/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'example-usage': 'Example Usage', 3 | distribution: 'Distribution', 4 | governance: 'Governance', 5 | json: 'JSON', 6 | oracle: 'Oracle', 7 | staking: 'Staking' 8 | }; 9 | -------------------------------------------------------------------------------- /content/evm/precompiles/governance.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Governance Precompile" 3 | description: "Interact with Sei's governance system from EVM applications using the governance precompile, enabling proposal voting, token deposits, and governance information queries." 4 | keywords: ["governance precompile", "proposal voting", "blockchain governance", "on-chain voting", "evm governance"] 5 | --- 6 | import { Callout } from 'nextra/components'; 7 | 8 | # Governance Precompile 9 | 10 | **Address**: `0x0000000000000000000000000000000000001006` 11 | 12 | This precompile enables participation in Sei's governance process through the 13 | EVM, allowing EVM users and contracts to submit proposals, vote, and query 14 | governance information. 15 | 16 | ## Functions 17 | 18 | ### Transactions 19 | 20 | - `vote`: Allows a user to cast a vote on a governance proposal 21 | 22 | ```solidity copy 23 | /// Cast a vote on the specified proposal. 24 | /// @param proposalId The ID of the proposal to vote on. 25 | /// @param option The option to vote for. (Refer to the governance module for allowed options) 26 | /// @return Whether the vote was successfully cast. 27 | function vote( 28 | uint64 proposalID, 29 | int32 option 30 | ) external returns (bool success); 31 | ``` 32 | 33 | - `deposit`: Enables a user to deposit tokens into a governance proposal 34 | ```solidity copy 35 | /// Deposit funds into the specified proposal. 36 | /// @param proposalId The ID of the proposal to vote on. 37 | /// @return Whether the tokens were successfully deposit cast. 38 | function deposit( 39 | uint64 proposalID, 40 | ) payable external returns (bool success); 41 | ``` 42 | 43 | View the Governance precompile source code and the contract ABI [here](https://github.com/sei-protocol/sei-chain/tree/main/precompiles/gov). 44 | -------------------------------------------------------------------------------- /content/evm/tokens.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Viewing Tokens in MetaMask' 3 | description: 'Learn how to view and manage different token types in MetaMask with Sei network, including ERC20 tokens, ERC721 NFTs, TokenFactory assets, and CW20/CW721 tokens with pointer contracts.' 4 | keywords: ['metamask tokens', 'erc20', 'erc721', 'nft display', 'cw20 tokens', 'pointer contracts'] 5 | --- 6 | 7 | import { Callout } from 'nextra/components'; 8 | 9 | # Viewing Tokens in MetaMask 10 | 11 | #### ERC20 Tokens 12 | 13 | To view ERC20 tokens in MetaMask, the process mirrors that on other EVM chains. 14 | For tokens not automatically listed, you'll need to manually import them into 15 | your wallet. Detailed instructions can be found 16 | [here](https://support.metamask.io/manage-crypto/tokens/how-to-display-tokens-in-metamask/). 17 | 18 | #### ERC721 NFTs 19 | 20 | Viewing NFTs in MetaMask requires manual addition. Follow the steps provided 21 | [here](https://support.metamask.io/manage-crypto/nfts/nft-tokens-in-your-metamask-wallet/) 22 | to add and view your NFTs in the wallet. 23 | 24 | #### TokenFactory & CW20 Tokens 25 | 26 | TokenFactory and CW20 tokens can only be visible in MetaMask if there's a 27 | pointer contract created for it. A pointer contract enables a native Sei token 28 | to be linked across Cosmos and EVM through an ERC20 interface. Once created 29 | for a native token, you can import it as an ERC20 token using the steps above. 30 | 31 | #### CW721 NFTs 32 | 33 | Similarly, CW721 NFTs can only be visible in MetaMask if a pointer contract 34 | created for it. Once created, you can import it into your wallet like a standard 35 | ERC721 NFT. 36 | 37 | Visit our [Pointer Contract page](/learn/pointers) to learn more. 38 | -------------------------------------------------------------------------------- /content/evm/wallet-integrations/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | particle: { 3 | title: 'Particle' 4 | }, 5 | pimlico: { 6 | title: 'Pimlico' 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /content/learn/faucet.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Sei Network Testnet Faucet' 3 | description: 'Request testnet tokens for development and testing on Sei Network. The faucet distributes test tokens with no real-world value.' 4 | keywords: ['sei testnet', 'blockchain faucet', 'test tokens', 'development tokens', 'sei testing'] 5 | --- 6 | 7 | import FaucetRequest from '../../src/components/FaucetRequest'; 8 | import { Callout } from 'nextra/components'; 9 | 10 | # Faucet 11 | 12 | This faucet distributes testnet (atlantic-2) tokens only, which have no real-world value and are intended for testing purposes. 13 | 14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /content/learn/general-submit-feedback.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Submit Feedback" 3 | description: "Help improve the Sei Network by submitting bug reports or general feedback through our dedicated submission forms for community contributions." 4 | keywords: ["submit feedback", "bug reports", "sei feedback", "community contributions", "improvement suggestions"] 5 | --- 6 | # Submit Feedback 7 | 8 | We welcome and encourage the community to provide feedback to help improve the 9 | chain. If you encounter a bug or have any feedback, please use the following 10 | forms: 11 | 12 | - For general feedback, please submit it 13 | [here](https://forms.gle/fQVdSChdVkEKfDN87). 14 | - For bug reports, submit via the form 15 | [here](https://forms.gle/Jn2uMNeM7zEnxAL46). 16 | 17 | Your feedback is invaluable in helping us improve the ecosystem. Thank you for 18 | your contributions! 19 | -------------------------------------------------------------------------------- /content/learn/hardware-wallets.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | keywords: 3 | - hardware 4 | - wallets 5 | - sei 6 | description: 'Comprehensive guide to Hardware Wallets on Sei. Learn key concepts, commands, and best practices.' 7 | title: Hardware Wallets 8 | --- 9 | # Hardware Wallets 10 | 11 | Signing transactions manually or using hardware wallets like Ledger ensures 12 | secure transaction approval. In order to sign Sei transactions you must have the 13 | Cosmos app installed on your wallet and interact with a Cosmos RPC endpoint. 14 | 15 | ## **Using MetaMask with Ledger** 16 | 17 | To connect your Ledger device through MetaMask and sign transactions: 18 | 19 | 1. **Install MetaMask**: Ensure MetaMask is installed on your browser. 20 | 21 | 2. **Connect Ledger**: Open MetaMask, go to the account options, and select 22 | “Connect Hardware Wallet”. 23 | 24 | 3. **Follow Instructions**: Follow the on-screen instructions to connect your 25 | Ledger device and select the account you want to use. 26 | 27 | 4. **Sign Transactions**: Once connected, you can sign transactions directly 28 | through MetaMask using your Ledger device. 29 | 30 | ## **Using Compass with Ledger** 31 | 32 | To use Compass for secure transaction signing with a Ledger device: 33 | 34 | 1. **Add Hardware Wallet**: When adding a new account in Compass, select the 35 | option to add a hardware wallet. 36 | 37 | 2. **Connect Ledger**: Follow the instructions to connect your Ledger device and 38 | select the account you wish to add. 39 | 40 | 3. **Sign Transactions**: Use the connected Ledger device to securely sign 41 | transactions through the Compass interface. 42 | 43 | **Installing the Cosmos App on Ledger** 44 | 45 | Before you can use your Ledger device to sign transactions, ensure you have the 46 | Cosmos app installed. You can download it from the Ledger app store: 47 | 48 | • [Ledger App Store - Cosmos App](https://www.ledger.com/coin/wallet/cosmos) 49 | -------------------------------------------------------------------------------- /content/learn/indexers.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: Blockchain Indexers for Sei Network 3 | description: 'Comprehensive guide to Blockchain Indexers for Sei Network on Sei. Learn key concepts, commands, and best practices.' 4 | keywords: 5 | - sei indexers 6 | - blockchain indexers 7 | - blockchain data 8 | - sei network 9 | - the graph 10 | --- 11 | 12 | import { AppCardsGridCategory } from '../../src/components'; 13 | 14 | # Indexers 15 | 16 | Indexers collect and organize blockchain data, making it easier to query and 17 | analyze. Key indexers for Sei include: 18 | 19 | 20 | 21 | ## Integration Guides 22 | 23 | - [The Graph](/evm/indexer-providers/the-graph) 24 | - [Goldsky](/evm/indexer-providers/goldsky) 25 | - [Goldrush](/evm/indexer-providers/goldrush) 26 | -------------------------------------------------------------------------------- /content/learn/rpc-providers.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Sei Network RPC Providers" 3 | description: "Directory of reliable RPC service providers for Sei blockchain. Access endpoints for development, node connections, and blockchain interactions." 4 | keywords: ["RPC endpoints", "blockchain infrastructure", "Sei connections", "node providers", "developer access"] 5 | --- 6 | 7 | import { AppCardsGridCategory } from '../../src/components'; 8 | 9 | # RPC Providers 10 | 11 | RPC providers offer endpoints for developers to interact with the Sei 12 | blockchain, archive nodes, genesis files, and more. Some notable providers 13 | include: 14 | 15 | 16 | -------------------------------------------------------------------------------- /content/learn/user-FAQ.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Sei Network User FAQ: Common Questions Answered" 3 | description: "Find answers to frequently asked questions about using Sei Network, including how to find your EVM address in Compass Wallet and how to link addresses across environments." 4 | keywords: ["sei network faq", "sei user questions", "evm address", "sei wallet", "address linking", "wallet management"] 5 | --- 6 | 7 | ### I already have a Compass Wallet. How do I find my EVM / 0x address? 8 | 9 | Simply open compass wallet and click the "Receive" button, and you will see both 10 | your Sei and 0x (EVM) addresses available to copy. Both addresses point to the 11 | same account. 12 | 13 | ### How can I link my EVM / 0x and Sei addresses? 14 | 15 | You can use the [Sei App]() to link your addresses. More information and a step by 16 | step guide is available in the 17 | [Linking Addresses](./accounts) user guide. 18 | -------------------------------------------------------------------------------- /content/node/_meta.js: -------------------------------------------------------------------------------- 1 | export default { 2 | index: { 3 | title: 'Home' 4 | }, 5 | '-- Getting Started': { 6 | type: 'separator', 7 | title: 'Getting Started' 8 | }, 9 | 'node-operators': 'Node Operations Guide', 10 | validators: 'Validator Operations Guide', 11 | 12 | '-- Advanced Operations': { 13 | type: 'separator', 14 | title: 'Advanced Operations' 15 | }, 16 | 'ibc-relayer': 'IBC Relayers', 17 | 'advanced-config-monitoring': 'Advanced Configuration & Monitoring', 18 | 'technical-reference': 'Technical Reference' 19 | }; 20 | -------------------------------------------------------------------------------- /mdx-components.js: -------------------------------------------------------------------------------- 1 | import { useMDXComponents as getThemeComponents } from 'nextra-theme-docs'; 2 | 3 | const themeComponents = getThemeComponents(); 4 | 5 | export function useMDXComponents(components) { 6 | return { 7 | ...themeComponents, 8 | ...components 9 | }; 10 | } 11 | -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. 6 | -------------------------------------------------------------------------------- /next-sitemap.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next-sitemap').IConfig} */ 2 | module.exports = { 3 | siteUrl: 'https://docs.sei.io', 4 | generateRobotsTxt: true, 5 | exclude: ['/api/*', '/server-sitemap.xml'], 6 | transform: async (config, path) => { 7 | // Don't include routes with hash fragments (#) 8 | if (path.includes('#')) { 9 | return null; 10 | } 11 | // Return default configuration for all other paths 12 | return { 13 | loc: path, 14 | changefreq: 'daily', 15 | priority: 0.7, 16 | lastmod: new Date().toISOString() 17 | }; 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- 1 | const config = { 2 | plugins: { 3 | "@tailwindcss/postcss": {}, 4 | autoprefixer: {} 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /public/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/apple-icon.png -------------------------------------------------------------------------------- /public/assets/address-derivation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/address-derivation.png -------------------------------------------------------------------------------- /public/assets/docs-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/docs-banner.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/goldrush/wallet_ui_component.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/goldrush/wallet_ui_component.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/goldsky/goldsky_img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/goldsky/goldsky_img_1.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/goldsky/goldsky_img_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/goldsky/goldsky_img_2.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/goldsky/goldsky_img_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/goldsky/goldsky_img_3.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/goldsky/goldsky_img_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/goldsky/goldsky_img_4.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/goldsky/goldsky_img_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/goldsky/goldsky_img_5.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_1.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_2.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_3.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_4.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_5.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_6.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_7.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_8.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/seitrace/seitrace_image_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/seitrace/seitrace_image_9.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/api_keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/api_keys.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/cli_commands.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/cli_commands.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/cli_sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/cli_sample.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/create_subgraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/create_subgraph.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/playground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/playground.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/publish_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/publish_button.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/publish_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/publish_screen.png -------------------------------------------------------------------------------- /public/assets/ecosystem/resources/the-graph/query_url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/ecosystem/resources/the-graph/query_url.png -------------------------------------------------------------------------------- /public/assets/interoperability.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/interoperability.png -------------------------------------------------------------------------------- /public/assets/pointer-contracts-how-it-works.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/pointer-contracts-how-it-works.png -------------------------------------------------------------------------------- /public/assets/pointer-contracts-simplified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/pointer-contracts-simplified.png -------------------------------------------------------------------------------- /public/assets/pointer-contracts-without.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/pointer-contracts-without.png -------------------------------------------------------------------------------- /public/assets/wrap_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_final.png -------------------------------------------------------------------------------- /public/assets/wrap_select-amount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_select-amount.png -------------------------------------------------------------------------------- /public/assets/wrap_select-mode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_select-mode.png -------------------------------------------------------------------------------- /public/assets/wrap_select-wsei.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_select-wsei.png -------------------------------------------------------------------------------- /public/assets/wrap_tx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_tx.png -------------------------------------------------------------------------------- /public/assets/wrap_wallet-add-confirm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_wallet-add-confirm.png -------------------------------------------------------------------------------- /public/assets/wrap_wallet-add-wsei.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/assets/wrap_wallet-add-wsei.png -------------------------------------------------------------------------------- /public/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/favicon-16x16.png -------------------------------------------------------------------------------- /public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/favicon-32x32.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/favicon.ico -------------------------------------------------------------------------------- /public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/public/icon.png -------------------------------------------------------------------------------- /src/components/APIModule/APIModule.tsx: -------------------------------------------------------------------------------- 1 | import { Cards } from 'nextra/components'; 2 | 3 | export const APIModule = ({ basePaths, prefix }: { basePaths: any[]; prefix: string }) => { 4 | return Object.values(basePaths).map((path) => { 5 | return ; 6 | }); 7 | }; 8 | -------------------------------------------------------------------------------- /src/components/APIModule/index.ts: -------------------------------------------------------------------------------- 1 | export * from './APIModule'; 2 | -------------------------------------------------------------------------------- /src/components/APIModule/utils.ts: -------------------------------------------------------------------------------- 1 | export const getUniqueSections = (paths: object, filters: string[]) => { 2 | const sections = new Set(); 3 | 4 | Object.keys(paths).forEach((path) => { 5 | const parts = path.split('/'); 6 | filters.map((filter) => { 7 | if (parts[1] === filter) { 8 | sections.add(parts[2]); 9 | } 10 | }); 11 | }); 12 | return Array.from(sections); 13 | }; 14 | -------------------------------------------------------------------------------- /src/components/APIModulePaths/APIModulePaths.tsx: -------------------------------------------------------------------------------- 1 | import { Cards } from 'nextra/components'; 2 | 3 | export const APIModulePaths = ({ basePaths, prefix }: { basePaths: any[]; prefix: string }) => { 4 | return ( 5 | 6 | {Object.values(basePaths).map((path) => { 7 | return ; 8 | })} 9 | 10 | ); 11 | }; 12 | -------------------------------------------------------------------------------- /src/components/APIModulePaths/index.ts: -------------------------------------------------------------------------------- 1 | export * from './APIModulePaths'; 2 | -------------------------------------------------------------------------------- /src/components/AddressSearch/SeiTraceSearch.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import React, { useState } from 'react'; 4 | import { Button, Flex } from '@radix-ui/themes'; 5 | import { ExternalLinkIcon } from '@radix-ui/react-icons'; 6 | 7 | const SeiTraceSearch = () => { 8 | const [address, setAddress] = useState(''); 9 | const [error, setError] = useState(''); 10 | 11 | const isValidAddress = (addr: string) => { 12 | const seiPattern = /^sei[a-z0-9]{8,}$/i; 13 | const evmPattern = /^0x[a-fA-F0-9]{40}$/; 14 | return seiPattern.test(addr) || evmPattern.test(addr); 15 | }; 16 | 17 | const getSeiTraceUrl = (addr: string) => { 18 | const chainParam = '?chain=pacific-1'; 19 | return `https://seitrace.com/address/${addr}${chainParam}`; 20 | }; 21 | 22 | const handleSearch = () => { 23 | const trimmedAddress = address.trim(); 24 | if (!trimmedAddress) { 25 | setError('Please enter an address.'); 26 | return; 27 | } 28 | if (!isValidAddress(trimmedAddress)) { 29 | setError('Invalid Sei or EVM address.'); 30 | return; 31 | } 32 | 33 | window.open(getSeiTraceUrl(trimmedAddress), '_blank'); 34 | setError(''); 35 | }; 36 | 37 | return ( 38 |
39 | setAddress(e.target.value)} 45 | className='w-full bg-transparent outline-none text-foreground' 46 | /> 47 | 48 | 51 | 52 | {error &&

{error}

} 53 |
54 | ); 55 | }; 56 | 57 | export default SeiTraceSearch; 58 | -------------------------------------------------------------------------------- /src/components/AppCard/AppCard.tsx: -------------------------------------------------------------------------------- 1 | import { IconLink } from '@tabler/icons-react'; 2 | import Image from 'next/image'; 3 | import { App } from '../../data/appData'; 4 | 5 | interface AppCardProps { 6 | app: App; 7 | } 8 | const AppCard = ({ app }: AppCardProps) => { 9 | if (!app) return null; 10 | const { title, description, href, image } = app; 11 | return ( 12 | 13 |
14 |
15 |
16 | {title} 17 |
18 |
19 | {title} 20 |
21 |
22 |
23 |

24 | {title} 25 |

26 |

{description}

27 |
28 |
29 |
30 | ); 31 | }; 32 | 33 | export default AppCard; 34 | -------------------------------------------------------------------------------- /src/components/AppCard/AppCard.v2.tsx: -------------------------------------------------------------------------------- 1 | import { IconLink } from '@tabler/icons-react'; 2 | import Image from 'next/image'; 3 | import type { EcosystemItem } from '../../data/ecosystemData'; 4 | 5 | interface AppCardV2Props { 6 | app: EcosystemItem; 7 | } 8 | 9 | export default function AppCardV2({ app }: AppCardV2Props) { 10 | if (!app) return null; 11 | 12 | const { name, logo, link, 'short-description': desc, 'integration-guide-link': integration, priority } = app.fieldData; 13 | 14 | if (!logo) return null; 15 | 16 | return ( 17 | 22 |
23 | {name} 24 |
25 | 26 |
40 | 41 | ); 42 | } 43 | -------------------------------------------------------------------------------- /src/components/AppCard/AppCardsGridCategory.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { useEffect, useState } from 'react'; 4 | import { EcosystemDocsCategory, EcosystemResponse, getSeiEcosystemAppByCategory } from '../../data/ecosystemData'; 5 | import { EcosystemSkeleton } from '../EcosystemMap'; 6 | import AppCardV2 from './AppCard.v2'; 7 | 8 | function AppCardsGridCategory({ category }: { category: EcosystemDocsCategory }) { 9 | const [apps, setApps] = useState([]); 10 | const [loading, setLoading] = useState(true); 11 | 12 | useEffect(() => { 13 | getSeiEcosystemAppByCategory(category).then((res) => { 14 | const data = res.data; 15 | setApps(data); 16 | setLoading(false); 17 | }); 18 | }, [category]); 19 | 20 | if (!apps || loading) return ; 21 | 22 | if (apps.length === 0) return null; 23 | 24 | return ( 25 |
26 |
27 | {apps.map((app) => ( 28 | 29 | ))} 30 |
31 | 32 | Projects listed here are developed by the Sei community. Inclusion on this site does not constitute endorsement. For questions related to each, please 33 | contact the project directly. 34 | 35 |
36 | ); 37 | } 38 | 39 | export default AppCardsGridCategory; 40 | -------------------------------------------------------------------------------- /src/components/AppCard/index.ts: -------------------------------------------------------------------------------- 1 | export { default as AppCard } from './AppCard'; 2 | export { default as AppCardV2 } from './AppCard.v2'; 3 | export { default as AppCardsGridCategory } from './AppCardsGridCategory'; 4 | -------------------------------------------------------------------------------- /src/components/AskCookbook/AskCookbook.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import React from 'react'; 4 | import dynamic from 'next/dynamic'; 5 | const BaseAskCookbook = dynamic(() => import('@cookbookdev/docsbot/react')); 6 | 7 | /** It's going to be exposed in HTTP requests anyway so it's fine to just hardcode it here */ 8 | const COOKBOOK_PUBLIC_API_KEY = 9 | 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NjdlZmMxYjcyYzRmNTI5YzMxODUyZmUiLCJpYXQiOjE3MTk1OTgxMDcsImV4cCI6MjAzNTE3NDEwN30.etICfDHEcewxP9QTajrS4ggral2IgaxY_rWAlK4kNiQ'; 10 | 11 | export const AskCookbook = () => { 12 | // @ts-ignore 13 | return ; 14 | }; 15 | -------------------------------------------------------------------------------- /src/components/AskCookbook/ask-cookbook.d.ts: -------------------------------------------------------------------------------- 1 | // Solves the following error: "Cannot find module ... or its corresponding type declarations. There are types at ..., but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. [2307]" 2 | declare module "@cookbookdev/docsbot/react" { 3 | export { default } from "@cookbookdev/docsbot/dist/react/index.d.ts" 4 | } 5 | -------------------------------------------------------------------------------- /src/components/AskCookbook/index.ts: -------------------------------------------------------------------------------- 1 | export * from './AskCookbook'; 2 | -------------------------------------------------------------------------------- /src/components/BrandKitGallery/BrandImage.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import NextImage from 'next/image'; 4 | import styles from '../../styles/custom.module.css'; 5 | import { useState, useEffect } from 'react'; 6 | 7 | interface BrandImageProps { 8 | url: string; 9 | alt: string; 10 | name: string; 11 | } 12 | 13 | const BrandImage = ({ url, alt, name }: BrandImageProps) => { 14 | const [imageDimensions, setImageDimensions] = useState({ width: 0, height: 0 }); 15 | const [showModal, setShowModal] = useState(false); 16 | 17 | useEffect(() => { 18 | const img = new window.Image(); 19 | img.src = url; 20 | img.onload = () => { 21 | setImageDimensions({ width: img.width, height: img.height }); 22 | }; 23 | }, [url]); 24 | 25 | const handleImageClick = () => { 26 | setShowModal(true); 27 | document.body.style.overflow = 'hidden'; 28 | }; 29 | 30 | const closeModal = () => { 31 | setShowModal(false); 32 | document.body.style.overflow = 'auto'; 33 | }; 34 | 35 | return ( 36 | <> 37 |
38 |
39 | 40 |
41 |
42 | {showModal && ( 43 |
44 |
45 | 46 |
47 |
48 | )} 49 | 50 | ); 51 | }; 52 | 53 | export default BrandImage; 54 | -------------------------------------------------------------------------------- /src/components/BrandKitGallery/DownloadButton.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { IconDownload } from '@tabler/icons-react'; 4 | 5 | const DownloadButton = ({ url, fileName, children }) => { 6 | const handleDownload = () => { 7 | const link = document.createElement('a'); 8 | link.href = url; 9 | link.setAttribute('download', fileName); 10 | // TODO: add target blank 11 | document.body.appendChild(link); 12 | link.click(); 13 | document.body.removeChild(link); 14 | }; 15 | 16 | return ( 17 | 22 | ); 23 | }; 24 | 25 | export default DownloadButton; 26 | -------------------------------------------------------------------------------- /src/components/BrandKitGallery/index.ts: -------------------------------------------------------------------------------- 1 | export { default as BrandImage } from './BrandImage'; 2 | export { default as DownloadButton } from './DownloadButton'; 3 | -------------------------------------------------------------------------------- /src/components/ChainInformation/types.ts: -------------------------------------------------------------------------------- 1 | export type ChainParams = { 2 | /** Hex‑encoded chain ID (e.g. '0x531') */ 3 | chainId: string; 4 | chainName: string; 5 | rpcUrls: string[]; 6 | nativeCurrency: { 7 | name: string; 8 | symbol: string; 9 | decimals: number; 10 | }; 11 | blockExplorerUrls: string[]; 12 | }; 13 | 14 | export type NetworkEntry = { 15 | type: 'EVM' | 'Cosmos'; 16 | name: string; 17 | chainId: string; 18 | hexChainId?: string; 19 | rpcUrl: string; 20 | explorerLinks: { name: string; url: string }[]; 21 | /** Present only for EVM networks (used by the MetaMask button) */ 22 | chainParams?: ChainParams; 23 | }; 24 | -------------------------------------------------------------------------------- /src/components/Collapsible/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import React from 'react'; 4 | import { IconChevronDown, IconChevronUp } from '@tabler/icons-react'; 5 | 6 | interface CollapsibleProps { 7 | title: string; 8 | icon?: React.ReactNode; 9 | children: React.ReactNode; 10 | } 11 | 12 | export function Collapsible({ title, icon, children }: CollapsibleProps) { 13 | return ( 14 |
15 | 16 |
17 | {icon} 18 | {title} 19 |
20 |
21 | 22 | 23 |
24 |
25 |
{children}
26 |
27 | ); 28 | } 29 | -------------------------------------------------------------------------------- /src/components/CopyButton/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { IconCheck, IconCopy } from '@tabler/icons-react'; 4 | import { useState } from 'react'; 5 | 6 | interface CopyButtonProps { 7 | textToCopy: string; 8 | } 9 | 10 | export const CopyButton = ({ textToCopy }: CopyButtonProps) => { 11 | const [copied, setCopied] = useState(false); 12 | 13 | const handleCopy = () => { 14 | navigator.clipboard.writeText(textToCopy); 15 | setCopied(true); 16 | setTimeout(() => setCopied(false), 2000); 17 | }; 18 | 19 | return ( 20 | 27 | ); 28 | }; 29 | -------------------------------------------------------------------------------- /src/components/CopyText/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { Code } from '@radix-ui/themes'; 4 | import { CopyIcon, CheckIcon } from '@radix-ui/react-icons'; 5 | import { useState } from 'react'; 6 | import { IconCheck, IconCopy } from '@tabler/icons-react'; 7 | 8 | export const CopyButton = ({ value, copyDisabled = false }: { value: string; copyDisabled?: boolean }) => { 9 | const [copied, setCopied] = useState(false); 10 | 11 | const copyToClipboard = async () => { 12 | if (copyDisabled) return; 13 | 14 | await navigator.clipboard.writeText(value); 15 | setCopied(true); 16 | setTimeout(() => setCopied(false), 2000); // Reset after 2 seconds 17 | }; 18 | 19 | return ( 20 | <> 21 |
22 | 23 | {value} 24 | 25 | {!copyDisabled ? ( 26 | 33 | ) : null} 34 |
35 | 36 | ); 37 | }; 38 | 39 | type CopyTextProps = { 40 | label: string; 41 | value: string; 42 | copyDisabled?: boolean; 43 | column?: boolean; 44 | }; 45 | 46 | export const CopyText = ({ label, value, copyDisabled = false, column = false }: CopyTextProps) => { 47 | return ( 48 |
49 |

{label}

50 | 51 |
52 | ); 53 | }; 54 | -------------------------------------------------------------------------------- /src/components/EcosystemCard/EcosystemCard.tsx: -------------------------------------------------------------------------------- 1 | import Image, { StaticImageData } from "next/image"; 2 | 3 | interface EcosystemCardProps { 4 | image: StaticImageData; 5 | title: string; 6 | description: string; 7 | href: string; 8 | } 9 | 10 | interface EcosystemCardsProps { 11 | children: React.ReactNode; 12 | } 13 | 14 | function EcosystemCard({ image, title, description, href }: EcosystemCardProps) { 15 | return ( 16 | 22 |
23 | {title} 24 |
25 |
26 |

{title}

27 |

{description}

28 |
29 |
30 | ); 31 | } 32 | 33 | function EcosystemCards({ children }: EcosystemCardsProps) { 34 | return ( 35 |
{children}
36 | ); 37 | } 38 | 39 | export { EcosystemCard, EcosystemCards }; 40 | -------------------------------------------------------------------------------- /src/components/EcosystemCard/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./EcosystemCard"; 2 | -------------------------------------------------------------------------------- /src/components/EcosystemMap/EcosystemSearchBar.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import React from 'react'; 4 | import { atom, useAtom } from 'jotai'; 5 | import { TextField } from '@radix-ui/themes'; 6 | import { IconSearch } from '@tabler/icons-react'; 7 | 8 | export const searchTermAtom = atom(''); 9 | 10 | type EcosystemSearchBarProps = { 11 | placeholder: string; 12 | }; 13 | 14 | export function EcosystemSearchBar({ placeholder }: EcosystemSearchBarProps) { 15 | const [searchTerm, setSearchTerm] = useAtom(searchTermAtom); 16 | return ( 17 | setSearchTerm(e.target.value)}> 18 | 19 | 20 | 21 | 22 | ); 23 | } 24 | -------------------------------------------------------------------------------- /src/components/EcosystemMap/EcosystemSection.tsx: -------------------------------------------------------------------------------- 1 | import type { EcosystemItem } from '../../data/ecosystemData'; 2 | import AppCardV2 from '../AppCard/AppCard.v2'; 3 | 4 | interface EcosystemSectionProps { 5 | apps: EcosystemItem[]; 6 | } 7 | 8 | export function EcosystemSection({ apps }: EcosystemSectionProps) { 9 | if (!apps || apps.length === 0) { 10 | return

No results found.

; 11 | } 12 | 13 | return ( 14 |
15 |
16 | {apps.map((app) => ( 17 | 18 | ))} 19 |
20 |
21 | ); 22 | } 23 | 24 | export default EcosystemSection; 25 | -------------------------------------------------------------------------------- /src/components/EcosystemMap/EcosystemSkeleton.tsx: -------------------------------------------------------------------------------- 1 | export function EcosystemSkeleton() { 2 | return ( 3 |
4 |
5 |
6 | {Array.from({ length: 3 }).map((_, i) => ( 7 |
8 | ))} 9 |
10 |
11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /src/components/EcosystemMap/SearchContext.tsx: -------------------------------------------------------------------------------- 1 | import React, { createContext, useContext, useState, ReactNode } from 'react'; 2 | 3 | interface SearchContextType { 4 | searchTerm: string; 5 | setSearchTerm: (v: string) => void; 6 | } 7 | 8 | const SearchContext = createContext(null); 9 | 10 | export function SearchProvider({ children }: { children: ReactNode }) { 11 | const [searchTerm, setSearchTerm] = useState(''); 12 | return {children}; 13 | } 14 | 15 | export function useSearch() { 16 | const ctx = useContext(SearchContext); 17 | if (!ctx) { 18 | throw new Error('useSearch() must be used within '); 19 | } 20 | return ctx; 21 | } 22 | -------------------------------------------------------------------------------- /src/components/EcosystemMap/index.ts: -------------------------------------------------------------------------------- 1 | export * from './EcosystemDynamicSection'; 2 | export * from './EcosystemSearchBar'; 3 | export * from './EcosystemSection'; 4 | export * from './EcosystemSkeleton'; 5 | -------------------------------------------------------------------------------- /src/components/EvmWalletConnect/index.ts: -------------------------------------------------------------------------------- 1 | export { default as EvmWalletConnect } from "./EvmWalletConnect"; 2 | -------------------------------------------------------------------------------- /src/components/ImageWithCaption/ImageWithCaption.tsx: -------------------------------------------------------------------------------- 1 | import Image, { StaticImageData } from "next/image"; 2 | import { twMerge } from "tailwind-merge"; 3 | 4 | interface ImageWithCaption { 5 | img: StaticImageData; 6 | alt: string; 7 | caption?: string; 8 | className?: string; 9 | } 10 | 11 | export default function ImageWithCaption({ 12 | img, 13 | alt, 14 | caption, 15 | className, 16 | }: ImageWithCaption) { 17 | return ( 18 |
24 | {alt} 25 | {caption &&

{caption}

} 26 |
27 | ); 28 | } 29 | -------------------------------------------------------------------------------- /src/components/ImageWithCaption/index.ts: -------------------------------------------------------------------------------- 1 | export { default as ImageWithCaption } from "./ImageWithCaption"; 2 | -------------------------------------------------------------------------------- /src/components/InteractiveTerminal/index.ts: -------------------------------------------------------------------------------- 1 | export { default as InteractiveTerminal } from './InteractiveTerminal'; 2 | -------------------------------------------------------------------------------- /src/components/LinkCard/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LinkCard } from './LinkCard'; 2 | -------------------------------------------------------------------------------- /src/components/Logo/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Logo } from "./Logo"; 2 | -------------------------------------------------------------------------------- /src/components/Nfts/Nfts.tsx: -------------------------------------------------------------------------------- 1 | import { ImageWithCaption } from "../ImageWithCaption"; 2 | import colonyNFT from "./colony.png"; 3 | import seiyanNFT from "./seiyan.png"; 4 | 5 | export default function Nfts() { 6 | return ( 7 |
8 |
9 | 14 |
15 |
16 | 21 |
22 |
23 | ); 24 | } 25 | -------------------------------------------------------------------------------- /src/components/Nfts/colony.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/src/components/Nfts/colony.png -------------------------------------------------------------------------------- /src/components/Nfts/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Nfts } from "./Nfts"; 2 | -------------------------------------------------------------------------------- /src/components/Nfts/seiyan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sei-protocol/sei-docs/314765a01f71bf1f85a65374467af4f9fd69f231/src/components/Nfts/seiyan.png -------------------------------------------------------------------------------- /src/components/OfficeHoursCard/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { useEffect, useState } from 'react'; 4 | import { IconClock } from '@tabler/icons-react'; 5 | 6 | export const OfficeHoursCard = () => { 7 | const [localTime, setLocalTime] = useState(''); 8 | 9 | useEffect(() => { 10 | const pacificTime = new Date(); 11 | pacificTime.setUTCHours(17, 0, 0, 0); 12 | 13 | const localTimeString = pacificTime.toLocaleTimeString([], { 14 | hour: 'numeric', 15 | minute: '2-digit', 16 | timeZoneName: 'short' 17 | }); 18 | 19 | setLocalTime(localTimeString); 20 | }, []); 21 | 22 | return ( 23 | 28 |
29 |
30 | 31 |
32 |
33 |

34 | Developer Office Hours 35 | 36 | Weekly 37 | 38 |

39 |

Join our Discord every Wednesday @ 9 AM Pacific ({localTime})

40 |
41 |
42 |
43 | ); 44 | }; 45 | 46 | export default OfficeHoursCard; 47 | -------------------------------------------------------------------------------- /src/components/PropertyInfo/PropertyInfo.tsx: -------------------------------------------------------------------------------- 1 | import { Code } from '@radix-ui/themes'; 2 | 3 | type PropertyInfoProps = { 4 | name: string; 5 | description: string; 6 | properties?: { name: string; description: string }[]; 7 | }; 8 | 9 | const PropertyInfo = ({ name, description, properties }: PropertyInfoProps) => { 10 | return ( 11 |
12 |
13 |

{name}

14 |

{description}

15 |
16 | {properties && ( 17 |
18 | {properties.map((property) => { 19 | return ( 20 |
21 | {property.name} 22 |

{property.description}

23 |
24 | ); 25 | })} 26 |
27 | )} 28 |
29 | ); 30 | }; 31 | 32 | export default PropertyInfo; 33 | -------------------------------------------------------------------------------- /src/components/PropertyInfo/index.ts: -------------------------------------------------------------------------------- 1 | export { default as PropertyInfo } from './PropertyInfo'; 2 | -------------------------------------------------------------------------------- /src/components/SwitchNetwork/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { useDynamicContext } from '@dynamic-labs/sdk-react-core'; 4 | import { SegmentedControl } from '@radix-ui/themes'; 5 | import { atom, useAtom } from 'jotai'; 6 | import { useEffect } from 'react'; 7 | import { getChainIdHexForNetwork, NetworkType } from '../../utils/chains'; 8 | 9 | type SwitchNetworkProps = {}; 10 | 11 | export const selectedNetworkAtom = atom('mainnet'); 12 | 13 | export const SwitchNetwork = ({}: SwitchNetworkProps) => { 14 | const { primaryWallet, network } = useDynamicContext(); 15 | 16 | const [selectedNetwork, setSelectedNetwork] = useAtom(selectedNetworkAtom); 17 | 18 | useEffect(() => { 19 | const autoSwitchNetwork = async () => { 20 | await primaryWallet?.switchNetwork(getChainIdHexForNetwork(selectedNetwork)); 21 | }; 22 | if (network && selectedNetwork !== network) { 23 | autoSwitchNetwork().then(); 24 | } 25 | }, [selectedNetwork, network]); 26 | 27 | const onClickSwitch = async (networkType: NetworkType) => { 28 | setSelectedNetwork(networkType); 29 | 30 | if (!primaryWallet) return; 31 | 32 | await primaryWallet?.switchNetwork(getChainIdHexForNetwork(networkType)); 33 | }; 34 | 35 | return ( 36 | 37 | onClickSwitch('mainnet')}> 38 | Mainnet 39 | 40 | onClickSwitch('testnet')}> 41 | Testnet 42 | 43 | onClickSwitch('devnet')}> 44 | Devnet 45 | 46 | 47 | ); 48 | }; 49 | -------------------------------------------------------------------------------- /src/components/SyntaxHighlighter/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import CodeBlock from 'shiki-code-block-react'; 4 | import { BundledLanguage } from './types'; 5 | import { useTheme } from 'next-themes'; 6 | 7 | type SyntaxHighlighterProps = { 8 | code: string; 9 | language: BundledLanguage; 10 | }; 11 | 12 | export const SyntaxHighlighter = ({ code, language }: SyntaxHighlighterProps) => { 13 | const { theme } = useTheme(); 14 | 15 | return ( 16 | 24 | ); 25 | }; 26 | -------------------------------------------------------------------------------- /src/components/ThemeToggle/index.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import React, { useEffect, useState } from 'react'; 4 | import { IconSun, IconMoon } from '@tabler/icons-react'; 5 | 6 | interface ThemeToggleProps {} 7 | 8 | export function ThemeToggle({}: ThemeToggleProps) { 9 | const [theme, setTheme] = useState<'light' | 'dark'>('dark'); 10 | 11 | useEffect(() => { 12 | const savedTheme = localStorage.getItem('theme'); 13 | const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; 14 | 15 | if (savedTheme) { 16 | setTheme(savedTheme as 'light' | 'dark'); 17 | document.documentElement.classList.toggle('dark', savedTheme === 'dark'); 18 | } else if (prefersDark) { 19 | setTheme('dark'); 20 | document.documentElement.classList.add('dark'); 21 | } else { 22 | setTheme('light'); 23 | document.documentElement.classList.remove('dark'); 24 | } 25 | }, []); 26 | 27 | const toggleTheme = () => { 28 | const newTheme = theme === 'dark' ? 'light' : 'dark'; 29 | setTheme(newTheme); 30 | document.documentElement.classList.toggle('dark', newTheme === 'dark'); 31 | localStorage.setItem('theme', newTheme); 32 | }; 33 | 34 | return ( 35 | 41 | ); 42 | } 43 | -------------------------------------------------------------------------------- /src/components/VersionFetcher/VersionFetcher.tsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react'; 2 | 3 | interface VersionFetcherProps { 4 | chainId: string; 5 | rpcEndpoint: string; 6 | setVersion: (version: string) => void; 7 | } 8 | 9 | const VersionFetcher: React.FC = ({ chainId, rpcEndpoint, setVersion }) => { 10 | useEffect(() => { 11 | const fetchVersion = async () => { 12 | try { 13 | const response = await fetch(`${rpcEndpoint}/abci_info`); 14 | const data = await response.json(); 15 | const version = data.response.version; 16 | setVersion(version); 17 | localStorage.setItem(`${chainId}-version`, version); 18 | localStorage.setItem(`${chainId}-version-timestamp`, Date.now().toString()); 19 | } catch (error) { 20 | console.error('Error fetching version:', error); 21 | } 22 | }; 23 | 24 | const storedVersion = localStorage.getItem(`${chainId}-version`); 25 | const storedTimestamp = localStorage.getItem(`${chainId}-version-timestamp`); 26 | const oneHour = 3600000; 27 | 28 | if (storedVersion && storedTimestamp && Date.now() - parseInt(storedTimestamp, 10) < oneHour) { 29 | setVersion(storedVersion); 30 | } else { 31 | fetchVersion(); 32 | } 33 | }, [chainId, rpcEndpoint, setVersion]); 34 | 35 | return null; 36 | }; 37 | 38 | export default VersionFetcher; 39 | -------------------------------------------------------------------------------- /src/components/VersionFetcher/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './VersionTable'; 2 | -------------------------------------------------------------------------------- /src/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './APIModule'; 2 | export * from './APIModulePaths'; 3 | export * from './AppCard'; 4 | export * from './ChainInformation'; 5 | export * from './CopyButton'; 6 | export { CopyText } from './CopyText'; 7 | export * from './EcosystemCard'; 8 | export * from './EvmWalletConnect'; 9 | export * from './FaucetRequest'; 10 | export * from './LinkCard'; 11 | export * from './BrandKitGallery'; 12 | export * from './ImageWithCaption'; 13 | export { Logo } from './Logo'; 14 | export * from './Nfts'; 15 | export * from './VersionFetcher'; 16 | export { PropertyInfo } from './PropertyInfo'; 17 | export * from './EcosystemMap'; 18 | export * from './InteractiveTerminal'; 19 | export * from './AskCookbook'; 20 | export * from './QuickStartCard'; 21 | export * from './CompactExplorerSearch'; 22 | export * from './Collapsible'; 23 | export { NetworkTabs } from './NetworkTabs'; 24 | export * from './OfficeHoursCard'; 25 | export { RpcSelector } from './RpcSelector'; 26 | export * from './SwitchNetwork'; 27 | export * from './Tabs'; 28 | export { ThemeToggle } from './ThemeToggle'; 29 | export { MCPDemo } from './MCPDemo/MCPDemo'; 30 | export { Footer } from './Footer/Footer'; 31 | -------------------------------------------------------------------------------- /src/constants/chain.ts: -------------------------------------------------------------------------------- 1 | import type { Chain } from 'viem'; 2 | import { sei, seiDevnet, seiTestnet } from 'viem/chains'; 3 | 4 | export type ChainConfigs = { 5 | [chainId: string]: ChainConfig; 6 | }; 7 | 8 | export type ChainConfig = { 9 | restUrl: string; 10 | rpcUrl: string; 11 | explorerUrl?: string; 12 | }; 13 | 14 | export type EvmChainConfigs = { 15 | [chainId: string]: Chain; 16 | }; 17 | 18 | // Cosmos configs 19 | export const CHAIN_CONFIGS: ChainConfigs = { 20 | 'pacific-1': { 21 | restUrl: 'https://rest.pacific-1.sei.io', 22 | rpcUrl: 'https://rpc.pacific-1.sei.io/', 23 | explorerUrl: 'https://seitrace.com' 24 | }, 25 | 'atlantic-2': { 26 | restUrl: 'https://rest-testnet.sei-apis.com', 27 | rpcUrl: 'https://rpc-testnet.sei-apis.com/', 28 | explorerUrl: 'https://seitrace.com' 29 | }, 30 | 'arctic-1': { 31 | restUrl: 'https://rest-arctic-1.sei-apis.com', 32 | rpcUrl: 'https://rpc-arctic-1.sei-apis.com/', 33 | explorerUrl: 'https://seitrace.com' 34 | } 35 | }; 36 | 37 | export const EVM_CHAIN_CONFIGS: EvmChainConfigs = { 38 | 'pacific-1': sei, 39 | 'atlantic-2': seiTestnet, 40 | 'arctic-1': seiDevnet 41 | }; 42 | -------------------------------------------------------------------------------- /src/hooks/useSeiAddress.ts: -------------------------------------------------------------------------------- 1 | import { skipToken, useQuery, type UseQueryResult } from '@tanstack/react-query'; 2 | import type { Address } from 'viem'; 3 | import { useAccount, usePublicClient } from 'wagmi'; 4 | import { EVM_CHAIN_CONFIGS } from '../constants/chain'; 5 | 6 | type GetSeiAddressSchema = { Parameters: [hash: Address]; ReturnType: string }; 7 | type UseSeiAddressProps = { chainId: string }; 8 | 9 | const useSeiAddress = ({ chainId }: UseSeiAddressProps): UseQueryResult => { 10 | if (!chainId) { 11 | return { 12 | data: undefined, 13 | isLoading: false, 14 | error: null 15 | } as unknown as UseQueryResult; 16 | } 17 | 18 | const chainConfig = EVM_CHAIN_CONFIGS[chainId]; 19 | const client = usePublicClient({ chainId: chainConfig.id }); 20 | const { address } = useAccount(); 21 | 22 | const fetchSeiAddress = async (evmAddress?: `0x${string}`): Promise => { 23 | if (!evmAddress) throw new Error('EVM address is not available'); 24 | if (!client) throw new Error('Client is not available'); 25 | 26 | try { 27 | return await client.request({ 28 | method: 'sei_getSeiAddress', 29 | params: [evmAddress] 30 | }); 31 | } catch (e) { 32 | console.error(e); 33 | throw e; 34 | } 35 | }; 36 | 37 | return useQuery({ 38 | queryKey: ['seiAddress', address, chainId], 39 | queryFn: address ? () => fetchSeiAddress(address as `0x${string}`) : skipToken, 40 | retry: false, 41 | refetchInterval: (query) => (query.state.data === undefined ? 5000 : false) 42 | }); 43 | }; 44 | 45 | export default useSeiAddress; 46 | -------------------------------------------------------------------------------- /src/styles/InteractiveTerminal.module.css: -------------------------------------------------------------------------------- 1 | .terminal { 2 | background-color: #1e1e1e; 3 | color: #00ff00; 4 | border-radius: 8px; 5 | padding: 16px; 6 | font-family: 'Courier New', monospace; 7 | width: 600px; 8 | margin: 0 auto; 9 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 10 | } 11 | 12 | .header { 13 | display: flex; 14 | justify-content: flex-start; 15 | padding-bottom: 8px; 16 | } 17 | 18 | .circle { 19 | width: 12px; 20 | height: 12px; 21 | border-radius: 50%; 22 | margin-right: 8px; 23 | } 24 | 25 | .body { 26 | background-color: #1b1b1b; 27 | border-radius: 4px; 28 | padding: 8px; 29 | overflow-y: auto; 30 | max-height: 400px; 31 | } 32 | 33 | .node { 34 | margin-left: 16px; 35 | } 36 | 37 | .nodeHeader { 38 | cursor: pointer; 39 | user-select: none; 40 | } 41 | 42 | .nodeChildren { 43 | margin-left: 16px; 44 | } 45 | 46 | .leafNode { 47 | margin-left: 32px; 48 | } 49 | 50 | .loading { 51 | text-align: center; 52 | color: #d1d5db; 53 | } 54 | -------------------------------------------------------------------------------- /src/styles/SeiIntro.module.css: -------------------------------------------------------------------------------- 1 | /* Light mode by default */ 2 | .hero { 3 | min-height: 25vh; 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: center; 8 | text-align: center; 9 | padding: 2rem 1rem 3rem; 10 | color: #000; /* black text in light mode */ 11 | border-bottom: 1px solid rgba(0, 0, 0, 0.1); 12 | margin-bottom: 2rem; 13 | } 14 | 15 | :global(.dark) .hero { 16 | color: #fff; 17 | border-bottom-color: rgba(255, 255, 255, 0.1); 18 | } 19 | 20 | .title { 21 | margin-bottom: 0.5rem; 22 | font-weight: 600; 23 | font-size: clamp(1.7rem, 3vw, 2.5rem); 24 | line-height: 1.2; 25 | color: #000; 26 | } 27 | 28 | :global(.dark) .title { 29 | color: #fff; 30 | } 31 | 32 | .subtitle { 33 | margin-bottom: 1.5rem; 34 | font-size: 1rem; 35 | color: rgba(0, 0, 0, 0.7); 36 | } 37 | 38 | :global(.dark) .subtitle { 39 | color: rgba(236, 237, 238, 0.9); 40 | } 41 | 42 | .ctaWrapper { 43 | display: flex; 44 | gap: 2rem; 45 | justify-content: center; 46 | align-items: center; 47 | margin-top: 1rem; 48 | } 49 | 50 | .outlineButton { 51 | font-family: Satoshi, sans-serif; 52 | font-weight: 500; 53 | display: flex; 54 | align-items: center; 55 | gap: 0.4rem; 56 | border-color: #000; 57 | color: #000; 58 | } 59 | 60 | .outlineButton:hover { 61 | background-color: rgba(0, 0, 0, 0.12); 62 | } 63 | 64 | :global(.dark) .outlineButton { 65 | border-color: #ecedee; 66 | color: #ecedee; 67 | } 68 | 69 | :global(.dark) .outlineButton:hover { 70 | background-color: rgba(236, 237, 238, 0.12); 71 | } 72 | -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /src/utils/chains.ts: -------------------------------------------------------------------------------- 1 | export type NetworkType = 'mainnet' | 'testnet' | 'devnet'; 2 | 3 | export const getCosmosChainId = (evmChainId: number) => { 4 | switch (evmChainId) { 5 | case 1329: 6 | return 'pacific-1'; 7 | case 1328: 8 | return 'atlantic-2'; 9 | case 713715: 10 | return 'arctic-1'; 11 | default: 12 | return 'pacific-1'; 13 | } 14 | }; 15 | 16 | export const getChainIdForNetwork = (networkType: NetworkType) => { 17 | switch (networkType) { 18 | case 'mainnet': 19 | return 1329; 20 | case 'testnet': 21 | return 1328; 22 | case 'devnet': 23 | return 713715; 24 | default: 25 | return 1329; 26 | } 27 | }; 28 | 29 | export const getChainIdHexForNetwork = (networkType: NetworkType) => { 30 | switch (networkType) { 31 | case 'mainnet': 32 | return 0x531; 33 | case 'testnet': 34 | return 0x530; 35 | case 'devnet': 36 | return 0xae3f3; 37 | default: 38 | return 0x531; 39 | } 40 | }; 41 | 42 | const getNetworkTypeForChainId = (evmChainId: number) => { 43 | switch (evmChainId) { 44 | case 1329: 45 | return 'mainnet'; 46 | case 1328: 47 | return 'testnet'; 48 | case 713715: 49 | return 'devnet'; 50 | default: 51 | return 'mainnet'; 52 | } 53 | }; 54 | -------------------------------------------------------------------------------- /src/utils/sei-utils.ts: -------------------------------------------------------------------------------- 1 | // Address validation utilities 2 | const BECH32_ADDRESS_REGEX = /^sei1[a-z0-9]{38}$/; 3 | 4 | /** 5 | * Validates if a string is a valid Sei Cosmos address 6 | * Replaces: isValidSeiCosmosAddress from @sei-js/cosmjs 7 | */ 8 | export const isValidSeiCosmosAddress = (address: string): boolean => { 9 | if (!address || typeof address !== 'string') { 10 | return false; 11 | } 12 | return BECH32_ADDRESS_REGEX.test(address); 13 | }; 14 | -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- 1 | import type { Config } from 'tailwindcss'; 2 | 3 | const config: Config = { 4 | darkMode: 'class', 5 | content: ['./components/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}'], 6 | theme: { 7 | extend: {} 8 | }, 9 | plugins: [] 10 | }; 11 | export default config; 12 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": false, 8 | "forceConsistentCasingInFileNames": true, 9 | "noEmit": true, 10 | "incremental": true, 11 | "esModuleInterop": true, 12 | "module": "esnext", 13 | "moduleResolution": "bundler", 14 | "resolveJsonModule": true, 15 | "isolatedModules": true, 16 | "jsx": "preserve", 17 | "plugins": [ 18 | { 19 | "name": "next" 20 | } 21 | ], 22 | "baseUrl": ".", 23 | "paths": { 24 | "@/*": ["./*"] 25 | }, 26 | "strictNullChecks": true 27 | }, 28 | "include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", ".next/types/**/*.ts"], 29 | "exclude": ["node_modules"] 30 | } 31 | --------------------------------------------------------------------------------