In order to retrieve data from Arweave, you can use the following example query to retrieve the entire transaction output.
query {
transactions {
cursor
{... | |
"scripts": { | |
"postinstall": "node patch.js", | |
... | |
} | |
} |
export function handle (state, action) { | |
const owner = state.owner | |
const input = action.input | |
const caller = action.caller | |
const contact = action.contact | |
if (input.function === 'transfer') { | |
const target = input.target | |
if (!target || (caller === target)) { |