cbak / Callback
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”cbak
is a user defined function called byxahaud
in order to inform your hook about the status of a previously emitted transaction- State changes and further emit calls can be made from cbak but it cannot
rollback
a transaction. - When cbak is executed the emitted transaction to which the callback relates is now the originating transaction.
Definition
Section titled “Definition”int64_t cbak ( uint32_t what)
type Callback = (reserved: number) => number
Example
Section titled “Example”int64_t cbak(uint32_t reserved){ return 0;}
const Callback = (reserved: number) => { return 0}
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
reserved | uint32_t | if |
Name | Type | Description |
---|---|---|
reserved | number | if |
Return Code
Section titled “Return Code”Type | Description |
---|---|
int64_t | An arbitrary return code you wish to return from your hook. This will be present in the metadata of the originating transaction. |
Type | Description |
---|---|
number | An arbitrary return code you wish to return from your hook. This will be present in the metadata of the originating transaction. |