Skip to content

Commit

Permalink
change invoke v0: no nonce, add contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
EvyatarO committed Jul 6, 2023
1 parent fbf8710 commit 28dc6aa
Showing 1 changed file with 64 additions and 15 deletions.
79 changes: 64 additions & 15 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1835,39 +1835,88 @@
"INVOKE_TXN_V0": {
"title": "Invoke transaction V0",
"description": "invokes a specific function in the desired contract (not necessarily an account)",
"$ref": "#/components/schemas/FUNCTION_CALL"
},
"INVOKE_TXN_V1": {
"title": "Invoke transaction V1",
"description": "initiates a transaction from a given account",
"type": "object",
"properties": {
"sender_address": {
"title": "sender address",
"max_fee": {
"title": "Max fee",
"$ref": "#/components/schemas/FELT",
"description": "The maximal fee that can be charged for including the transaction"
},
"version": {
"title": "Version",
"description": "Version of the transaction scheme",
"$ref": "#/components/schemas/NUM_AS_HEX"
},
"signature": {
"title": "Signature",
"$ref": "#/components/schemas/SIGNATURE"
},
"transaction_hash": {
"title": "Transaction hash",
"$ref": "#/components/schemas/TXN_HASH",
"description": "The hash identifying the transaction"
},
"contract_address": {
"title": "Contract address",
"$ref": "#/components/schemas/ADDRESS"
},
"entry_point_selector": {
"title": "Entry point selector",
"$ref": "#/components/schemas/FELT"
},
"calldata": {
"title": "Calldata",
"type": "array",
"title": "calldata",
"description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)",
"description": "The parameters passed to the function",
"items": {
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"sender_address",
"calldata"
"contract_address",
"entry_point_selector",
"calldata",
"max_fee",
"version",
"signature",
"transaction_hash"
]
},
"INVOKE_TXN": {
"title": "Invoke transaction",
"description": "Initiate a transaction from an account",
"INVOKE_TXN_V1": {
"title": "Invoke transaction V1",
"description": "initiates a transaction from a given account",
"allOf": [
{
"title": "Common transaction properties",
"$ref": "#/components/schemas/COMMON_TXN_PROPERTIES"
},
{
"type": "object",
"properties": {
"sender_address": {
"title": "sender address",
"$ref": "#/components/schemas/ADDRESS"
},
"calldata": {
"type": "array",
"title": "calldata",
"description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)",
"items": {
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"sender_address",
"calldata"
]
}
]
},
"INVOKE_TXN": {
"title": "Invoke transaction",
"description": "Initiate a transaction from an account",
"allOf": [
{
"type": "object",
"title": "Type",
Expand Down

0 comments on commit 28dc6aa

Please sign in to comment.