Table of Contents

Method ExchangeGemsToGold

Namespace
GuildWars2.Commerce
Assembly
GW2SDK.dll

ExchangeGemsToGold(int, MissingMemberBehavior, CancellationToken)

Retrieves the current exchange rate of gems to gold.

public Task<(GemsToGold Value, MessageContext Context)> ExchangeGemsToGold(int gems, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

gems int

The amount of gems to exchange for gold.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(GemsToGold Value, MessageContext Context)>

A task that represents the API request.