When I create an afterSave webhook for EthTransactions, I receive a context object field in the payload which is always empty.
I want to know if I can add data to that context when I make a transfer using Moralis, so I can receive it back in my server side code.
For example:
const options = {
type: "native",
amount: Moralis.Units.ETH(AMOUNT),
receiver: WALLET_ADDRESS,
context: {
"customer_id": 1234
}
}
let result = await Moralis.transfer(options);
Then receive something like this in the webhook payload:
{
"triggerName": "afterSave",
"object": {
"hash": "0x47...",
"from_address": "0x9c...",
"to_address": "0x51...",
...
},
"context": {
"customer_id": 1234
},
...
}
If this is not currently possible, I want to know if this is something doable, I am open to collaborate with a push request to GitHub for this but I need some initial help.
Thanks in advance.