Felt

@Serializable(with = FeltSerializer::class)
data class Felt(val value: BigInteger) : NumAsHexBase, ConvertibleToCalldata

Constructors

Link copied to clipboard
constructor(value: Long)
constructor(value: Int)
constructor(value: BigInteger)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val value: BigInteger

Functions

Link copied to clipboard
open operator override fun compareTo(other: NumAsHexBase): Int
Link copied to clipboard
open override fun decString(): String

Encode as decimal string.

Link copied to clipboard
open override fun hexString(): String

Encode as hexadecimal string, including "0x" prefix.

Link copied to clipboard
open override fun toCalldata(): List<Felt>
Link copied to clipboard

Encode as ASCII string, with up to 31 characters. Example: 0x68656c6c6f -> "hello".

Link copied to clipboard
open override fun toString(): String