Skip to content

V2runGetMethod Fails While v3 Works #163

@xyyanxin

Description

@xyyanxin

When using runGetMethod in TONCenter API v2, results in an error.

v3 Success Case:

curl -X POST https://toncenter.com/api/v3/runGetMethod -H "Content-Type: application/json" -d '{
  "address": "EQBo3W19O92qLjdoYbERATFtQUh1Qp_NZJ6JU_lXyLnGUJT_",
  "method": "get_wallet_address",
  "stack": [{"type": "slice", "value": "te6ccgEBAQEAJAAAQ4AOz6JO+b3YxUTj9GR1PjlHnXqU9GX413t2Sxa4MRf7pVA="}]
}'

Response: Successful with exit_code: 0.

v2 Failure Case:

curl -X POST https://toncenter.com/api/v2/runGetMethod -H "Content-Type: application/json" -d '{
  "address": "EQBo3W19O92qLjdoYbERATFtQUh1Qp_NZJ6JU_lXyLnGUJT_",
  "method": "get_wallet_address",
  "stack": [["slice", "te6ccgEBAQEAJAAAQ4AOz6JO+b3YxUTj9GR1PjlHnXqU9GX413t2Sxa4MRf7pVA="]]
}'

Response:

{
  "ok": false,
  "error": "Expecting value: line 1 column 1 (char 0)",
  "code": 503
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions