Class: GasfreeSdk::Models::Token

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/gasfree_sdk/models/token.rb

Overview

Represents a token supported by GasFree

Instance Attribute Summary collapse

Instance Attribute Details

#activate_feeString (readonly)

Returns The activation fee in the smallest unit of the token.

Returns:

  • (String)

    The activation fee in the smallest unit of the token



23
# File 'lib/gasfree_sdk/models/token.rb', line 23

attribute :activate_fee, Types::String

#created_atTime (readonly)

Returns When the token was added to GasFree.

Returns:

  • (Time)

    When the token was added to GasFree



15
# File 'lib/gasfree_sdk/models/token.rb', line 15

attribute :created_at, Types::Time

#decimalInteger (readonly)

Returns The token’s decimal places.

Returns:

  • (Integer)

    The token’s decimal places



39
# File 'lib/gasfree_sdk/models/token.rb', line 39

attribute :decimal, Types::Integer.constrained(gteq: 0)

#supportedBoolean (readonly)

Returns Whether the token is currently supported.

Returns:

  • (Boolean)

    Whether the token is currently supported



31
# File 'lib/gasfree_sdk/models/token.rb', line 31

attribute :supported, Types::Bool

#symbolString (readonly)

Returns The token symbol (e.g., “USDT”).

Returns:

  • (String)

    The token symbol (e.g., “USDT”)



35
# File 'lib/gasfree_sdk/models/token.rb', line 35

attribute :symbol, Types::String

#token_addressString (readonly)

Returns The token contract address.

Returns:

  • (String)

    The token contract address



11
# File 'lib/gasfree_sdk/models/token.rb', line 11

attribute :token_address, Types::Address

#transfer_feeString (readonly)

Returns The transfer fee in the smallest unit of the token.

Returns:

  • (String)

    The transfer fee in the smallest unit of the token



27
# File 'lib/gasfree_sdk/models/token.rb', line 27

attribute :transfer_fee, Types::String

#updated_atTime (readonly)

Returns When the token was last updated.

Returns:

  • (Time)

    When the token was last updated



19
# File 'lib/gasfree_sdk/models/token.rb', line 19

attribute :updated_at, Types::Time