Skip to content

abi_json_to_bin deprecation #1

@Bes0n

Description

@Bes0n

abi_json_to_bin has been deprecated - https://eosnetwork.com/blog/leap-v3-1-release-features/#29-abi-conversion-apis-are-deprecated

Hence it's not possible to use following function

    def abi_json_to_bin(self, code: str, action: str, args: Dict) -> bytes:
        url = self.rpc_host + "/v1/chain/abi_json_to_bin"
        post_data = {
            "code": code,
            "action": action,
            "args": args,
        }
        resp = self.post(url, post_data)
        binargs = resp.json().get("binargs")
        if binargs is None:
            raise NodeException("eos node error, not find binargs", resp)
        return bytes.fromhex(binargs)

If you curl the path you're getting following error:

$ curl https://waxapi.ledgerwise.io/v1/chain/abi_json_to_bin
{"code":404,"message":"Not Found","error":{"code":0,"name":"exception","what":"unspecified","details":[{"message":"Unknown Endpoint","file":"beast_http_session.hpp","line_number":204,"method":"handle_request"}]}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions