NUMBERS/numbers/int64

Int64

Code

NUMBERS
/numbers/int64
const hookWallet = testContext.hook1
const otxn1Param1 = new iHookParamEntry(
  new iHookParamName('I64'),
  new iHookParamValue(uint64ToHex(BigInt(123)), true)
)
const builtTx: Invoke = {
  TransactionType: 'Invoke',
  Account: hookWallet.classicAddress,
  HookParameters: [otxn1Param1.toXrpl()],
}

NUMBERS/numbers/int32

Int32

Code

NUMBERS
/numbers/int32
const hookWallet = testContext.hook1
const otxn1Param1 = new iHookParamEntry(
  new iHookParamName('I32'),
  new iHookParamValue(uint32ToHex(BigInt(123)), true)
)
const builtTx: Invoke = {
  TransactionType: 'Invoke',
  Account: hookWallet.classicAddress,
  HookParameters: [otxn1Param1.toXrpl()],
}

NUMBERS/numbers/int8

Int8

Code

NUMBERS
/numbers/int8
const hookWallet = testContext.hook1
const otxn1Param1 = new iHookParamEntry(
  new iHookParamName('I8'),
  new iHookParamValue(uint8ToHex(11), true)
)
const builtTx: Invoke = {
  TransactionType: 'Invoke',
  Account: hookWallet.classicAddress,
  HookParameters: [otxn1Param1.toXrpl()],
}

Was this page helpful?