From 781ba0796e8cfc753e2bf4c149cf237a68539fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Silkj=C3=A6r?= Date: Tue, 18 Nov 2025 08:06:15 +0100 Subject: [PATCH] Removed HookParameter as "Invoke" exclusive. --- .../originating-transaction/otxn_param.mdx | 2 +- .../transactions/transaction-types/invoke.mdx | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/content/docs/docs/hooks/functions/originating-transaction/otxn_param.mdx b/src/content/docs/docs/hooks/functions/originating-transaction/otxn_param.mdx index d0c6332..2f6d03e 100644 --- a/src/content/docs/docs/hooks/functions/originating-transaction/otxn_param.mdx +++ b/src/content/docs/docs/hooks/functions/originating-transaction/otxn_param.mdx @@ -8,7 +8,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components'; -* Look up the value for a named parameter specified in `read_ptr` on the originating transaction (ttINVOKE only). +* Look up the value for a named parameter specified in `read_ptr` on the originating transaction. * Write the parameter's value to `write_ptr` diff --git a/src/content/docs/docs/protocol-reference/transactions/transaction-types/invoke.mdx b/src/content/docs/docs/protocol-reference/transactions/transaction-types/invoke.mdx index ca7bdde..e5caf10 100644 --- a/src/content/docs/docs/protocol-reference/transactions/transaction-types/invoke.mdx +++ b/src/content/docs/docs/protocol-reference/transactions/transaction-types/invoke.mdx @@ -15,15 +15,7 @@ _(Added by the [Hooks amendment][].)_ "TransactionType": "Invoke", "Account": "rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm", "Blob": "697066733A2F2F4445414442454546", - "Destination": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe", - "HookParameters": [ - { - "HookParameter": { - "HookParameterName": "4C", - "HookParameterValue": "01" - } - } - ] + "Destination": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe" } ``` @@ -32,11 +24,10 @@ _(Added by the [Hooks amendment][].)_ | `Account` | String | AccountID | Yes | The address of the account that is invoking the hook. | | `Blob` | String | Blob | No | A blob of data that is passed to the hook. (512 byte max) | | `Destination` | String | AccountID | No | The address of the account that is the target of the hook. | -| `HookParameters` | Array | Array | No | An array of hook parameter objects. See [Hook Parameters](/docs/protocol-reference/transactions/transaction-common-fields#hook-parameters) for details. | ### Special Transaction Cost -The Invoke transaction has a standard transaction cost, plus an additional cost based on the size of the Blob and HookParameters fields. +The Invoke transaction has a standard transaction cost, plus an additional cost based on the size of the Blob field. ### Error Cases