Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 24 additions & 35 deletions ecosystem/rpc/toncenter/v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1477,40 +1477,7 @@ paths:
$ref: '#/components/schemas/RequestError'
/api/v3/runGetMethod:
post:
description: 'Run get method of smart contract. Stack supports only `num`, `cell`
and `slice` types:

```

[

{

"type": "num",

"value": "0x12a"

},

{

"type": "cell",

"value": "te6..." // base64 encoded boc with cell

},

{

"type": "slice",

"value": "te6..." // base64 encoded boc with slice

}

]

```'
description: 'Executes a read only get-method of a smart contract. Use this endpoint to call TVM methods without creating a transaction onchain. The request must include the method name and "stack" array with input arguments.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no such thing as "read only get-method"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ read only//

tags:
- Legacy (v2-compatible)
summary: Run smart contract get-method
Expand Down Expand Up @@ -3038,6 +3005,7 @@ components:
type: array
items:
$ref: '#/components/schemas/V2StackEntity'
default: []
V2SendMessageRequest:
type: object
properties:
Expand All @@ -3052,10 +3020,31 @@ components:
type: string
V2StackEntity:
type: object
required: ["type", "value"]
description: "Represents one argument passed to a TVM get-method call. Each argument has a type and a value."
properties:
type:
type: string
value: {}
description: 'Specifies the data type of this stack argument. Use "int", "uint", or "num" for numbers; "cell", "slice", or "builder" for base64-encoded BOC strings; "address" for TON addresses; "tuple" or "list" for arrays of nested arguments; or "null" when the value is empty.'
enum:
- "int"
- "uint"
- "num"
- "cell"
- "slice"
- "builder"
- "address"
- "tuple"
- "list"
- "null"
value:
description: 'Holds the actual value for this argument. For numeric types, use a decimal or hex string (for example "1435" or "0x7B"). For cell, slice, or builder, use a base64-encoded BOC string. For address, use a TON address string. For tuple or list, provide an array of nested stack items. The value can be null if no data is expected.'
nullable: true
anyOf:
- type: string
- type: array
items:
$ref: "#/components/schemas/V2StackEntity"
V2WalletInformation:
type: object
properties:
Expand Down