Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 684 Bytes

cast-format-bytes32-string.md

File metadata and controls

30 lines (17 loc) · 684 Bytes

cast format-bytes32-string

NAME

cast-format-bytes32-string - Formats a string into bytes32 encoding.

SYNOPSIS

cast format-bytes32-string [options] string

DESCRIPTION

Formats a string into bytes32 encoding.

Note that this command is for formatting a Solidity string literal into bytes32 only. If you're looking to pad a byte string, use to-bytes32 instead.

OPTIONS

{{#include common-options.md}}

EXAMPLES

  1. Turn string "hello" into bytes32 hex:
    cast format-bytes32-string "hello"

SEE ALSO

cast