Skip to content

🎨 Base fee code syntax #4

Closed
Closed

Description

@JFWooten4
fee: sdk.BASE_FEE
Transaction.MIN_BASE_FEE

Compare synchronous round-trip:

base_fee = server.fetch_base_fee()

Activity

  1. JFWooten4 commented on Jul 20, 2026

    @JFWooten4
    MemberAuthor

    if we went with JSON:

    The cleanest JSON version would separate links from the UTC schedule.

    meetings/schedule.json:

    {
      "links": {
        "discord": "https://discord.com/invite/stellardev?event=1496911886321713163",
        "x": "https://x.com/BuildOnStellar",
        "youtube": "https://www.youtube.com/@StellarDevelopmentFoundation"
      },
      "schedule": {
        "weekdayUtc": 4,
        "hourUtc": 20,
        "minuteUtc": 0
      }
    }

    Enable JSON imports in tsconfig.json:

    {
      "compilerOptions": {
        "resolveJsonModule": true
      }
    }

    Then import it in MeetingIndexCard.tsx:

    import meetingsInfo from "../../meetings/schedule.json";

    References would become:

    meetingsInfo.links.discord
    meetingsInfo.links.x
    meetingsInfo.links.youtube
    
    meetingsInfo.schedule.weekdayUtc
    meetingsInfo.schedule.hourUtc
    meetingsInfo.schedule.minuteUtc

    Using weekday 4 avoids putting "Thursday" into a JSON field that is actually used for date calculations—JavaScript represents Thursday as UTC weekday 4.

    The downside is that JSON cannot contain comments or as const, and it has no runtime validation. Since only one TypeScript component consumes this configuration, .ts provides stronger typing; JSON is more useful if non-TypeScript tools or contributors will also edit/read the schedule. No files changed.

  2. JFWooten4 commented on Aug 8, 2026

    @JFWooten4
    MemberAuthor

    There are 3 different declarations of BaseFee in the Channel Accounts from 723.

    For our example, we'll assume the goal is high throughput rather than operational delegation. In the delegation examples only a single hot signer may be necessary. Accordingly, let us use an abnormally-high base fee of 640 for inclusion in an example ledger.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions