Decode smart contract parameters signed by the MPC. This endpoint is used to decode the parameters of a smart contract function call that has been signed by the MPC.
Return: JSON object containing function name and its parameters.
-------------------- Request --------------------
decodeSmartContractParamsSignedByMpc(
"hex_data"="0x095ea7b3000000000000000000000000111111125421ca6dc452d289314280a0f8842a65ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
) # slower, can return false positives, or may not find the right function
decodeSmartContractParamsSignedByMpc(
hex_data="0x095ea7b30000000000000000000000001a0c3ffcbd101c6f2f6650ded9964c4a568c4d72000000000000000000000000000000000000000000000041f6774113ce3d4000",
params = ["address","uint256"],
function_name = "approve"
) # faster, more exact
-------------------- Response --------------------
{
"FunctionData": [
{
"FunctionName": "approve",
"Params": [
[
"address",
"0x111111125421ca6dc452d289314280a0f8842a65"
],
[
"uint256",
"115792089237316195423570985008687907853269984665640564039457584007913129639935"
]
]
}
],
"Meta": {
"AccessToken": "41f66546cbdfdcf6ac5584b13389ff1ac93ea01395a5e3b38913a32c17e7707f",
"Destination": "04651f2761d323e5d576f9bb593a14ea3448d7a2681d334bb0388c78c4b87ab930d9bc4315613b7de8365b9a7d21d89c5d6d8670e9d173757120baf681ab9e9c8d",
"Source": "e728354953a3f98eedd276df10f9a3d706940fa3e8a0be7551e6fa855589880d0e8e79ab204b1b57a45b0286ba9e91c5914e5584c3e5b450eb8106bfceb8cc1229",
"Time": "2025-06-30 04:29:39.558"
}
}
hex-datastringThe hexadecimal data representing the smart contract function call. This should be a valid hexadecimal string.
function_namestring<p>Name of the smart contract function to decode. If not provided, the function will attempt to decode the parameters without a specific function context.</p>
paramsarray<p>list of parameters to include in the decoding. If not provided, the function will decode the parameters from the hex_data.</p>