Removed HookParameter as "Invoke" exclusive.

This commit is contained in:
Thomas Silkjær
2025-11-18 08:06:15 +01:00
parent 873468d8fa
commit 781ba0796e
2 changed files with 3 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="C">
* 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`
</TabItem>

View File

@@ -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