• Sets a trustline for a token on the Stellar network.

    Parameters

    • options: {
          sorobanContext: SorobanContextType;
          tokenAdmin: string;
          tokenSymbol: string;
      }

      The options object.

      • sorobanContext: SorobanContextType

        The Soroban context.

      • tokenAdmin: string

        The public key of the token's administrator.

      • tokenSymbol: string

        The symbol of the token.

    Returns Promise<undefined | SubmitTransactionResponse>

    A promise that resolves with the transaction response.

    Throws

    Throws an error if there is no active chain, no server connected, or if network passphrase is missing.

Generated using TypeDoc