Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Encoding

Icon LinkEncoding

Encoding is the process of serializing data into a format that is suitable for transmission or storage. This is important for blockchains as it enables state minimization and efficiency, as well as for generating proofs.

Fortunately, if you are working with program types Icon Link on the Fuel network such as calling contracts Icon Link, the SDK will handle encoding for you automatically. It will adhere to the argument encoding specification Icon Link, so you can work with data in its expected format rather than as bytecode.

However, there may be scenarios where you want to manipulate call or return data yourself or even implement your own serialization specification. This guide will cover how to encode and decode data using the SDK.