Skip to content

[Feature Request] Add ABI parsing support for script bytecode #773

@WGB5445

Description

@WGB5445

🚀 Feature Request Description

Currently, when a script payload is passed in JSON format, its parameters are represented as classes, which cannot be directly serialized. Although it’s possible to work around this by using a special serialization format — for example, by sending the BCS-encoded data — this still isn’t an ideal solution.

const BytecodeTransaction = {
    "bytecode": "0x.....",
    "typeArguments": [],
    "functionArguments": [
        new U64(627),
        new Bool(true),
        new U64(100000),
        new Bool(false),
        new U64(100),
        new U64(100),
        new U64(0),
        new U64(0),
        new Bool(true)
    ]
}

So, would it be possible to introduce a simple way to parse the bytecode format and extract its ABI, allowing us to reuse the existing ABI parsing logic used for entry functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions