
This wraps the Bankr x402 SDK's async job handling into something Claude can work with directly. You get the usual job queue operations: submit work with prompt(), wait synchronously with promptAndWait(), poll status, cancel jobs mid-flight, and batch operations. The promptAndWait() method is what you'll reach for most of the time unless you're building something that needs manual control over polling intervals. Good for when you're dealing with long-running tasks that would timeout in a single request. The repo has 78 stars, so it's not battle-tested at scale, but the API surface is straightforward enough that you can tell what you're getting.
$ npx -y skills add bankrbot/claude-plugins --skill "Bankr x402 SDK - Job Management" --agent claude-codeInstalls into .claude/skills of the current project.
Manage asynchronous jobs: submit, poll, check status, cancel, and batch operations.
| Method | Description | Use Case |
|---|---|---|
promptAndWait() | Submit and wait for result | Recommended for most cases |
prompt() | Submit, return immediately | Background processing |
pollJob() | Poll until job completes | Manual job tracking |
getJobStatus() | Check status once | Custom polling logic |
cancelJob() | Cancel pending/processing job | Stop unwanted jobs |
pending → processing → completed
↘ failed
↘ cancelled
| State | Cancellable | Description |
|---|---|---|
| pending | Yes | Awaiting processing |
| processing | Yes | Actively processing |
| completed | No | Finished successfully |
| failed | No | Encountered error |
| cancelled | No | Cancelled by user |
const result = await client.promptAndWait({
prompt: "Swap 0.1 ETH to USDC",
timeout: 60000,
});
if (result.status === "completed") {
console.log(result.response);
}
Sponsors