Method SetBalance
SetBalance(Currency, long)
Sets the balance of the specified Currency.
Declaration
public static bool SetBalance(Currency currency, long balance)
Parameters
| Type | Name | Description |
|---|---|---|
| Currency | currency | The currency you want to set the balance. |
| long | balance | The amount to add to the balance. |
Returns
| Type | Description |
|---|---|
| bool | true if the balance has been updated, false otherwise. |
SetBalance(string, long)
Sets the balance of the specified Currency.
Declaration
public static bool SetBalance(string currencyKey, long balance)
Parameters
| Type | Name | Description |
|---|---|---|
| string | currencyKey | Identifier of the currency you want to set the balance. |
| long | balance | The amount to add to the balance. |
Returns
| Type | Description |
|---|---|
| bool | true if the balance has been updated, false otherwise. |