Closed twilson63 closed 10 months ago
As a developer, I would like to send a message or spawn a process with some data
import { createDataItemSigner, message } from "@permaweb/ao-sdk"; const messageId = await message({ process, signer: createDataItemSigner(wallet), anchor, tags, data });
or
import { createDataItemSigner, spawn } from "@permaweb/ao-sdk"; const processId = await spawn({ module, scheduler, signer: createDataItemSigner(wallet), tags, data });
It may be worth considering changing the ao-sdk API to be similar to the aos API
import { createDataItemSigner, connect } from "@permaweb/ao-sdk"; const signer = createDataItemSigner(globalThis.arweave.wallet) const { send, spawn } = connect(signer)
send({ Target = "", Tags = { Action: "Eval" }, Data = "1 + 1" })
spawn(module, { Tags = { Scheduler: "ao-sched" }, Data = "" })
Looks like data is already supported, just need to update readme.
As a developer, I would like to send a message or spawn a process with some data
or
NOTE: 🤔
It may be worth considering changing the ao-sdk API to be similar to the aos API