Skip to main content

abi_decode

Function abi_decode 

Source
pub fn abi_decode(signature: &str, data: &[u8]) -> Option<DecodedParam>
Expand description

Decode ABI-encoded bytes using a Solidity type signature string. Mirrors graph-ts ethereum.decode(signature, data).

The signature uses Solidity ABI types: “(uint8,uint32)”, “address”, etc. Returns None if decoding fails (matches graph-ts nullable return).