Data types in the Arkade Script language
bool
type represents a boolean value (true or false):
int
type represents a signed integer:
pubkey
type represents a Bitcoin public key:
signature
type represents a Bitcoin signature:
checkSig
or checkMultisig
functions.
bytes
type represents an arbitrary byte array:
bytes20
: Typically used for RIPEMD-160 hashes or Hash160 resultsbytes32
: Typically used for SHA-256 hashesbytes33
: Typically used for compressed public keysasset
type represents an Asset:
int
bytes
bytes
or fixed-size byte arraystx
object provides access to transaction data:
input
type represents a transaction input:
output
type represents a transaction output:
size
property:
bool
: 1 byte (0 for false, 1 for true)int
: 8 bytes (little-endian)pubkey
: 33 bytes (compressed) or 65 bytes (uncompressed)signature
: 64 bytes (Schnorr) or 71-73 bytes (ECDSA)bytes
: Variable length with size prefix