Skip to content

@abi.encodePacked

ABI non-standard packed encoding, matching Solidity’s abi.encodePacked.

Returns: bytes

@abi.encodePacked(types ...values)
Name Type Description
types string Comma-separated Solidity types (e.g. “address,uint256”)
[...values] any Values to encode, one per type
# Pack an address and amount
set $packed @abi.encodePacked("address,uint256" @me 1e18)
print $packed