Hierarchy (view full)

Constructors

Properties

amount: bigint
amountAsBigInteger: BigNumber

Legacy field. Use "amount" instead.

nonce: number

Legacy field. Use "token.nonce" instead.

numDecimals: number

Legacy field. The number of decimals is not a concern of "sdk-core". For formatting and parsing amounts, use "sdk-dapp" or "bignumber.js" directly.

token: Token
tokenIdentifier: string

Legacy field. Use "token.identifier" instead.

Methods

  • Legacy function. Within your code, don't mix native values (EGLD) and custom (ESDT) tokens. See "TransferTransactionsFactory.createTransactionForNativeTokenTransfer()" vs. "TransferTransactionsFactory.createTransactionForESDTTokenTransfer()".

    Returns boolean

  • Legacy function. Use "TokenComputer.isFungible(token)" instead.

    Returns boolean

  • Parameters

    • options: any

    Returns options is ILegacyTokenTransferOptions

  • Legacy function. For formatting and parsing amounts, use "sdk-dapp" or "bignumber.js" directly.

    Returns string

  • Legacy function. Use the "amount" field instead.

    Returns BigNumber

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • amountAsBigInteger: Value

    Returns TokenTransfer

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • tokenIdentifier: string
    • amount: Value
    • numDecimals: number

    Returns TokenTransfer

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • tokenIdentifier: string
    • amountAsBigInteger: Value
    • numDecimals: number = 0

    Returns TokenTransfer

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • tokenIdentifier: string
    • nonce: number
    • amount: Value
    • numDecimals: number

    Returns TokenTransfer

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • tokenIdentifier: string
    • nonce: number
    • amountAsBigInteger: Value
    • numDecimals: number = 0

    Returns TokenTransfer

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • tokenIdentifier: string
    • nonce: number

    Returns TokenTransfer

  • Legacy function. Use the constructor instead: new TokenTransfer({ token, amount });

    Parameters

    • tokenIdentifier: string
    • nonce: number
    • quantity: number

    Returns TokenTransfer