Skip to content

Calling contract with arguments documentation  #472

Closed

Description

@guudc

The docs does not shows how to pass arguements to contracts method via the soroban js client.

It has only one scenario of a contract method call without arguments.

Could anyone assist me with how to pass arguements to a contract method via the soroban js client.

Activity

  1. Shaptic commented on Dec 22, 2023

    @Shaptic
    Contributor

    The parameters to stellar-sdk's Contract.call (as well as Operation.invokeContractFunction are individual ScVals. You can create these by hand (see the static methods in the XDR definition) or via helpers like nativeToScVal or ScInt.

  2. added
    help wanted
    on Apr 25, 2024
  3. janewang commented on Apr 25, 2024

    @janewang
    Contributor

    @guudc Any interest in provide an update to the example to pass an arg to increment?

  4. removed
    help wanted
    on Jan 7, 2025
  5. briwylde08 commented on Jan 7, 2025

    @briwylde08
    Contributor

    Note to link to JS docs from our docs

  6. moved this from Backlog to Done in Dev Docson Jan 7, 2025
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

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions