int32ToByteString
bitcoinjs-lib / int32ToByteString
Function: int32ToByteString()
int32ToByteString(
n
):ByteString
Defined in: packages/scrypt-ts-btc/src/smart-contract/fns/byteString.ts:36
Int32 can be converted to a byte string with int2ByteString.
Parameters
n
a number being converts
Returns
returns a ByteString
Onchain
Throws
throws an error if the number is out of range