Table of Contents

Class Token

Namespace
LoopNet.Models.Requests
Assembly
LoopNet.dll

Contains token information

public class Token
Inheritance
Token
Inherited Members

Constructors

Token()

Default constructor

public Token()

Token(int, decimal, int)

Creates a token

public Token(int tokenId, decimal amount, int decimals)

Parameters

tokenId int

The tokenId on Loopring

amount decimal

The amount of the token

decimals int

The amount of decimals

Properties

TokenId

The token id

[JsonProperty("tokenId")]
public int TokenId { get; set; }

Property Value

int

Volume

The token id

[JsonProperty("volume")]
public string? Volume { get; set; }

Property Value

string

Methods

CalculateTokenVolume(decimal, int)

Calculates the token volume string

public static string CalculateTokenVolume(decimal value, int decimals)

Parameters

value decimal

The decimal amount of the token

decimals int

The amount of decimals

Returns

string

Exceptions

ArgumentOutOfRangeException

Thrown when the decimals is negative integer