Skip to content

Add sponsored transactions docs#1485

Open
TinaKT wants to merge 5 commits intomainfrom
Add-sponsored-transactions-docs
Open

Add sponsored transactions docs#1485
TinaKT wants to merge 5 commits intomainfrom
Add-sponsored-transactions-docs

Conversation

@TinaKT
Copy link
Contributor

@TinaKT TinaKT commented Feb 12, 2026

Purpose

To add high-level description plus developer tutorial for sponsored transactions.

Changes

The following files were added:

On the Docs site:

  • sponsored-transactions.rst

On the Tutorials site:

  • index.rst
  • set-up-a-sponsored-transaction.rst
  • create-a-sponsored-transaction.rst

The general index page for tutorials was updated
The former Sponsored transactions tutorial was renamed to Smart contract sponsored tutorials

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

@TinaKT TinaKT added the preview Trigger a documentation preview for a PR. label Feb 12, 2026
@github-actions
Copy link

github-actions bot commented Feb 12, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://developer.concordium.software/pr-preview/pr-1485/

Built to branch gh-pages at 2026-02-12 13:24 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@TinaKT TinaKT requested a review from dc-netizen February 12, 2026 13:35

.. note::

For production use, keeping the sponsor private key on a secure backend is essential. The examples use ``@concordium/web-sdk`` version 12.0.0. Follow `this link <https://docs.concordium.com/concordium-node-sdk-js/12.0.0-devnet-p10.0/functions/transactions.Transaction.sponsor.html>`_ to see the function documentation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change the link to the one for the complete version, not devnet:
https://docs.concordium.com/concordium-node-sdk-js/12.0.0/functions/transactions.Transaction.sponsor.html

- Node.js and npm installed
- A Concordium wallet with CCD funds for the sponsor account
- Access to a Concordium node (gRPC endpoint)
- ``@concordium/web-sdk`` version 12.0.0-devnet-p10.0 or later
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove devnet mentions, just version 12.0.0 is fine now.


const BACKEND_URL = '<YOUR_BACKEND_URL>'
const TOKEN_ID = '<YOUR_TOKEN_ID>'
const TOKEN_DECIMALS = <YOUR_TOKEN_DECIMALS>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small change here, '<YOUR_TOKEN_DECIMALS>' .
(add ' ')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Trigger a documentation preview for a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants