You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local signed_hex = Transaction.create_signed(call_hex, bob, 0, props)
print("Extrinsic Hex: " .. signed_hex)
-- Hash calculation: Blake2-256 of the extrinsic bytes (excluding the length prefix if it's the 0x... format usually, but Substrate hash is for the bytes)
-- Actually, Substrate transaction hash is Blake2-256 of the encoding.
local bytes = (signed_hex:gsub("^0x", ""):gsub("..", function(cc) return string.char(tonumber(cc, 16)) end))