Resources · n8n integration

1Shot API n8n integrationAutomate 1Shot API with n8n.

Can a workflow send an onchain transaction without ever touching a private key? That is what the 1Shot API n8n integration is for. The node exposes 27 operations across 7 resources, from wallets to contract methods, and a webhook trigger that starts the workflow as soon as 1Shot posts an event.

Community node This node is not shipped with n8n: it is a community package (n8n-nodes-1shot) you install from Settings › Community nodes on a self-hosted instance. npm

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

Why build a 1Shot API n8n integration?

Once installed, the node turns EVM blockchain calls into ordinary workflow steps. You pick a wallet held by 1Shot, you pick a contract method, and n8n handles the rest like any other API call.

A webhook trigger completes the picture: it listens for events 1Shot posts, such as a contract event being created or updated, and hands them straight to a workflow without any polling.

Start with the most common shape: a form or a database row asks for an onchain action. A Webhook node receives the request, contractMethods.simulate checks the call would succeed against the current state of the chain, and contractMethods.execute sends it for real. If the simulation fails, the workflow stops before spending any gas.

Second shape: onchain monitoring. Define what you care about once with contractEvents.create, then run contractEvents.search on a range of blocks to pull the matching logs. Push the result into Postgres for history, or into a Slack channel when a transfer crosses a threshold you compute in a Code node.

Third shape: treasury reporting. wallets.list gives you the wallets on a chain, transactions.list gives you what they did between two unix timestamps, and the rows land in a spreadsheet at the end of the week. Nothing exotic, just a scheduled workflow that stops people asking for the numbers by hand.

When an endpoint of the 1Shot API is not covered by the node, reach for the HTTP Request node. It calls any endpoint and reuses the same credential through predefined authentication, so you do not duplicate secrets across the workflow.

Know the limits before you commit. The listing operations take Page Number and Page Size as required fields, so a full export means looping over pages yourself rather than flipping a Return All switch. The node also stays on the 1Shot API surface: it does not read arbitrary chain data outside the contract methods and contract events you have defined. If you want a second opinion on the platform itself before you build, the n8n review covers where it fits and where it does not.

Connect

How do you connect 1Shot API to n8n?

  1. 01

    Install the community package

    On a self-hosted n8n, open Settings, then Community nodes, and install n8n-nodes-1shot (version 1.0.35). n8n restarts and the 1Shot API node appears in the node panel like any built-in node. On n8n Cloud, only verified community nodes can be installed, so confirm the package status before you plan anything there. Installing costs nothing on the n8n side.

  2. 02

    Create the credential once

    Go to the Credentials menu, create the 1Shot credential and fill it with the values from your 1Shot account. A credential in n8n is a stored set of secrets: you create it once and every workflow reuses it, the node offers it in its dropdown. The reference for what each value is and where to generate it lives in the 1Shot documentation at docs.1shotapi.com.

  3. 03

    Run one read before anything else

    Drop the node on the canvas, pick the Chain resource and the List chains operation, set Page Number to 1 and Page Size to a small value, then execute the step. A list of supported chains coming back means the credential works. Doing this before any write operation saves you from debugging authentication and contract parameters at the same time.

Triggers

What starts a workflow from 1Shot API ?

1Shot API Webhook is the node that starts a workflow when 1Shot API calls n8n. Activate the workflow: n8n gives you the webhook URL to register in 1Shot API, and every call becomes an execution.

What you see in n8n

Configuration notes

01Set up the 1Shot API Webhook triggerThe 1Shot API Webhook trigger starts the workflow when 1Shot posts a request to your n8n URL and that request passes verification. A webhook is simply a URL that the tool calls when something happens, so events land within seconds and nothing polls the API on a timer.

The 1Shot API Webhook trigger starts the workflow when 1Shot posts a request to your n8n URL and that request passes verification. A webhook is simply a URL that the tool calls when something happens, so events land within seconds and nothing polls the API on a timer.

Key parameters

  • Public Key: the ED-25519 public key provided by 1Shot for webhook verification. It is required, and the workflow will not start without it.
  • Webhook Type: chooses which type of webhook verification is applied to incoming calls.
  • Tokens: required, and it holds the tokens that will be accepted for payment.
Use cases
a paid callback endpoint that only runs your workflow when the caller presents an accepted token and a valid signature.
02Shape the URL the trigger listens onTwo parameters decide what the incoming request must look like. They matter when 1Shot is not the only caller, or when you want one workflow per contract rather than one workflow for everything.

Two parameters decide what the incoming request must look like. They matter when 1Shot is not the only caller, or when you want one workflow per contract rather than one workflow for everything.

Key parameters

  • Path: the path to listen to. Dynamic values use a colon, as in your-path/:dynamic-value, and when dynamic values are set the webhook ID is prepended to the path.
  • HTTP Method: the single HTTP method the trigger listens to.
  • Allow Multiple HTTP Methods: switch it on when the webhook has to accept more than one HTTP method.
When to use it
give each contract its own path segment so the routing happens in the URL instead of in an IF node further down. Keep the path stable once workflows point at it, because changing it means updating the caller side as well.
03Control what the trigger answersThe caller gets an HTTP response back, and you decide what it contains. This is what you tune when 1Shot expects a specific status code, or when the workflow takes longer than the caller is willing to wait.

The caller gets an HTTP response back, and you decide what it contains. This is what you tune when 1Shot expects a specific status code, or when the workflow takes longer than the caller is willing to wait.

Key parameters

  • Respond: sets when and how the webhook responds.
  • Response Code: the HTTP response code returned to the caller.
  • Response Data: return all items as an array, or only the first item as an object.
  • Options: the extra collection on the trigger, for the settings that do not fit the fields above.
When to use it
answer immediately, then do the slow work, when the calling side times out on long executions. The same three fields also let you mirror whatever status code the sender expects on its end, instead of leaving it to guess.
Actions

What can the 1Shot API node do?

The 1Shot API node exposes 27 operations across 7 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceCreateGetUpdateDeleteAssure Contract Methods From PromptEncodeEstimateExecuteExecute as DelegatorExecute Batch as DelegatorExecute BatchList ChainsReadSearchSimulateX402 HTTP Request
X402 Request✓
Chain✓
Contract Event✓✓✓✓✓✓
Contract Method✓✓✓✓✓✓✓✓✓✓✓
Prompt✓
Transaction✓✓
Wallet✓✓✓✓✓

X402 Request

1 operation
01

X402 HTTP Request

x402Request.x402

What you see in n8n

Notes & use cases

This operation makes an HTTP request to an x402-enabled API endpoint and pays any fee from a 1Shot Wallet. The request itself behaves like a normal HTTP call, the payment happens underneath.

Key parameters

  • Wallet Name or ID: the wallet that pays the fee, picked from the list or set with an expression.
  • URL: the URL to make the request to, in the form http://example.com/index.html.
  • Credential Type and Generic Auth Type: how the call authenticates against the target endpoint.
  • Method: GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS.
Use cases
calling a paid data API from a workflow without wiring a separate billing step.

Chain

1 operation
02

List chains

chains.list

What you see in n8n

Notes & use cases

Returns the chains supported by 1Shot API, one page at a time. It is the cheapest call to run when you want to confirm the credential works before touching anything that costs gas.

Key parameters

  • Page Number: the page to get, starting at 1.
  • Page Size: how many chains come back in that page.
Use cases
building the dropdown of a form so users only pick chains 1Shot actually supports, instead of maintaining that list by hand in a Code node.

Contract Event

6 operations
03

Create a contract event

contractEvents.create

What you see in n8n

Notes & use cases

Registers a new contract event definition in 1Shot. The definition is what later operations point at, so nothing is monitored until this exists.

Key parameters

  • Chain Name or ID: the chain the contract lives on.
  • Contract Address: the address of the contract to monitor for events.
  • Event Name: the exact name of the event as defined in the contract ABI, spelling included.
  • Name and Description: a human-readable name and a description of what this event represents, both required.
Use cases
declaring a Transfer definition once so a reporting workflow can search its logs every morning.
04

Delete a contract event

contractEvents.delete

What you see in n8n

Notes & use cases

Removes a contract event definition. The definition disappears from 1Shot, and any workflow still pointing at that identifier will fail on its next run.

Key parameters

  • Contract Event Name or ID: the definition to delete, chosen from the list or set with an expression such as {{ $json.contractEventId }}.
Use cases
cleaning up the definitions left behind by a contract you have redeployed, so the list people pick from stays short and honest.
05

Get a contract event

contractEvents.get

What you see in n8n

Notes & use cases

Fetches a single contract event definition and returns its stored details. Useful as a check step rather than as an end in itself.

Key parameters

  • Contract Event Name or ID: the identifier of the definition you want back.
Use cases
before a destructive step, read the definition and post its name into a Slack approval message, so a human confirms the right one is about to go.
06

List all contract events

contractEvents.list

What you see in n8n

Notes & use cases

Returns your contract event definitions page by page, with filters to narrow the set. This is the inventory view, not the onchain logs.

Key parameters

  • Page Number and Page Size: required, and there is no Return All switch here, so loop if you want everything.
  • Name, Contract Address, Event Name, Chain Name or ID: optional filters on the definitions returned.
Use cases
a weekly audit that lists every definition on one chain and flags the ones nobody searches anymore.
08

Update a contract event

contractEvents.update

What you see in n8n

Notes & use cases

Edits an existing definition in place. Only its labels change, which means the identifier your other workflows use keeps working.

Key parameters

  • Contract Event Name or ID: the definition to update, required.
  • Name and Description: the updated name and description for the event definition, both optional.
Use cases
renaming a definition after a team reorganises its naming convention, without breaking the workflows that reference it by ID.

Contract Method

11 operations
09

Assure contract methods from prompt

contractMethods.assureContractMethodsFromPrompt

What you see in n8n

Notes & use cases

Makes sure a set of contract methods is ready to use based on a chosen Prompt. Instead of creating each method by hand, you point at a prompt and let 1Shot prepare what goes with it.

Key parameters

  • Prompt ID: the ID of the Prompt to assure contract methods from.
  • Contract Address: required, and it can be pulled from the prompt if needed.
  • Chain Name or ID: the chain the contract sits on.
  • Wallet Name or ID: the wallet to use for the contract methods.
Use cases
onboarding a new token contract in one step instead of declaring its methods one by one.
10

Encode a smart contract method call

contractMethods.encode

What you see in n8n

Notes & use cases

Produces the calldata for a contract method without sending anything. Some other contract methods expect that calldata as an input, which is the main reason this operation exists.

Key parameters

  • Contract Method Name or ID: the method to encode.
  • Parameters: a JSON object of the values passed to the method, as in {"amount": "10000"}.
  • Authorization List: an optional list of ERC-7702 authorizations for the contract method.
Use cases
preparing the inner call of a multicall, then feeding the result into the method that actually submits it.
11

Estimate the gas cost of a smart contract method

contractMethods.estimate

What you see in n8n

Notes & use cases

Returns an estimate of what a contract method would cost in gas. Read only, so it changes nothing onchain and can run as often as you like.

Key parameters

  • Contract Method Name or ID: the method being priced.
  • Parameters: the JSON object of values, because the cost depends on what you pass.
Use cases
gating an automated payout behind an IF node, so the workflow only executes when the estimate stays under the ceiling your finance team agreed on.
12

Execute a smart contract method

contractMethods.execute

What you see in n8n

Notes & use cases

Sends the transaction. This is the write operation of the node, and the one worth testing on a test chain before it ever runs on a schedule.

Key parameters

  • Contract Method Name or ID and Parameters: what to call and with which values.
  • Wallet ID: the wallet used for this execution, when you do not want the default one.
  • Value: the amount of native token sent along with the method.
  • Memo: optional text attached to the transaction, handy for reconciliation later.
  • Gas Limit: the higher of this value and the estimate is what gets used.
Use cases
paying a contributor onchain when an approval arrives in Gmail.
13

Execute a smart contract method as delegator

contractMethods.executeAsDelegator

What you see in n8n

Notes & use cases

Runs a contract method on the blockchain using a stored ERC-7710 delegation, so the transaction happens on behalf of another wallet. The delegation is what grants the right, and you name it in exactly one way.

Key parameters

  • Delegation ID: the surest way to point at the right delegation.
  • Delegator Wallet Address: the address of the delegator wallet instead of an ID.
  • Delegation Data: a JSON delegation object treated as one time use and not stored for reuse. Only one of these three can be set.
  • Contract Method Name or ID and Parameters: the call itself.
Use cases
letting an automation spend from a treasury wallet under a delegation that someone signed in advance.
14

Execute multiple smart contract methods

contractMethods.executeBatch

What you see in n8n

Notes & use cases

Bundles several contract methods into a single transaction. One submission, one set of gas, and a choice about what happens when one of the calls fails.

Key parameters

  • Contract Methods: the collection of calls, each with its Contract Method Name or ID and its Parameters.
  • Wallet Name or ID: the wallet used for the whole batch.
  • Atomic: on, every call must succeed or the entire batch is rolled back.
  • Memo and Gas Limit: optional text on the transaction, and the floor for the gas used.
Use cases
settling a list of payouts collected in Google Sheets as one transaction.
15

Execute multiple smart contract methods as delegator

contractMethods.executeAsDelegatorBatch

What you see in n8n

Notes & use cases

Same batching, performed as a delegator. Several calls go out in one transaction on behalf of an address that delegated the right to act.

Key parameters

  • Contract Methods and Wallet Name or ID: the calls and the wallet that submits them.
  • Delegator Address, Delegation ID or Delegation Data: pick exactly one of the three to identify the delegation.
  • Atomic: decides whether a single failure rolls the batch back.
  • Authorization List: the ERC-7702 authorizations for the batch execution.
Use cases
a scheduled workflow that clears a queue of delegated operations once a day instead of one transaction per item.
16

Get a smart contract method

contractMethods.get

What you see in n8n

Notes & use cases

Returns a single smart contract method with its stored details. Nothing here is required, which is unusual for this node.

Key parameters

  • Contract Method ID: the ID of the Contract Method you want to get. It is optional, so an empty value simply returns nothing useful rather than raising an error.
Use cases
resolving an ID that arrived from a Webhook payload into readable details before the workflow decides what to do with it.
17

List all smart contract methods

contractMethods.list

What you see in n8n

Notes & use cases

Pages through the contract methods you have defined, with filters that make the result usable. The Method Type filter is the one that saves the most time.

Key parameters

  • Page Number and Page Size: required on every call.
  • Method Type: Read, Write, or None to skip the filter.
  • Name, Contract Address, Prompt ID, Chain Name or ID: the other optional filters.
Use cases
listing only the Write methods on one contract before an access review, so nobody has to read the whole catalogue.
18

Read data from a smart contract function

contractMethods.read

What you see in n8n

Notes & use cases

Reads from a view or pure function on the contract. No transaction, no gas, just a value coming back into the workflow.

Key parameters

  • Contract Method Name or ID: the read method to call.
  • Parameters: the JSON object of arguments the function expects.
Use cases
checking a balance or an allowance at the top of a workflow, then branching so the expensive write only runs when the value justifies it.
19

Simulate a smart contract method call

contractMethods.simulate

What you see in n8n

Notes & use cases

Plays the call against the current state of the chain and tells you whether it would succeed. Think of it as the dry run you put in front of every execute step.

Key parameters

  • Contract Method Name or ID and Parameters: exactly what the execute step will receive.
  • Gas Limit: optional, and the default gas limit applies when you leave it empty.
Use cases
catching a revert caused by a missing approval before the workflow spends gas discovering it the hard way.

Prompt

1 operation

Transaction

2 operations
21

List transactions

transactions.list

What you see in n8n

Notes & use cases

Returns 1Shot API transactions inside a time window, with a long list of optional filters. Every call is bounded in time, which is what makes it safe to schedule.

Key parameters

  • After Time and Before Time: unix timestamps that frame the window, both required.
  • Page Number and Page Size: also required.
  • Status: Pending, Submitted, Completed, Retrying, Failed, or None.
  • Wallet ID, Contract Method ID, API Credential ID, User ID, Memo, Chain Name or ID: the optional filters.
Use cases
a daily sweep for Failed transactions that opens a ticket instead of waiting for someone to notice.
22

Get transaction

transactions.get

What you see in n8n

Notes & use cases

Pulls one specific Transaction back. Pair it with a wait or a loop when you want to follow a submission until its status settles.

Key parameters

  • Transaction Name or ID: the Transaction ID you want to get, typically {{ $json.id }} carried over from the execute step.
Use cases
confirming that a payout reached Completed before the workflow marks the invoice as settled in MySQL.

Wallet

5 operations
23

Create wallet

wallets.create

What you see in n8n

Notes & use cases

A new Wallet is created and stays empty until you add funds to it. The name matters, because that is what shows up in the dropdowns of every other operation.

Key parameters

  • Chain Name or ID: the chain the wallet belongs to, chosen from the list or set with an expression.
  • Name: the name of the wallet, required.
  • Description: an optional description of the wallet.
Use cases
opening one wallet per client project so spending stays readable without a spreadsheet kept on the side.
24

Delete wallet

wallets.delete

What you see in n8n

Notes & use cases

Deletes a Wallet. Nothing else is asked for, so treat the step as final and put whatever check you need in front of it.

Key parameters

  • Wallet Name or ID: the wallet to delete, picked from the list or supplied with an expression such as {{ $json.walletId }}.
Use cases
closing the wallet of a finished project once its balance has moved somewhere else.
25

Get wallet

wallets.get

What you see in n8n

Notes & use cases

Looks up one Wallet from its identifier and hands back what 1Shot stores about it. The field is a plain string here, not a dropdown.

Key parameters

  • Wallet Name or ID: the ID of the Wallet you want to get, update or delete, typed in directly or built with an expression.
Use cases
checking the wallet an incoming request points at before the workflow lets it spend anything.
26

List wallets

wallets.list

What you see in n8n

Notes & use cases

Walks through the Wallets of a given chain, page by page. The chain filter is optional, so leaving it empty widens the result instead of breaking the call.

Key parameters

  • Page Number and Page Size: both required.
  • Chain Name or ID: an optional filter on the chain.
  • Name: filters wallets by name.
Use cases
a monthly wallet inventory that lands in Google Sheets for the finance team.
27

Update wallet

wallets.update

What you see in n8n

Notes & use cases

Changes what 1Shot stores about an existing Wallet. The identifier does not move, so the workflows already pointing at it keep running.

Key parameters

  • Wallet Name or ID: the wallet being modified, required.
  • Name: the name of the wallet, required even for a simple edit.
  • Chain Name or ID and Description: the two optional fields.
Use cases
applying a new naming convention across a series of wallets driven from a Code node.
Need help

Need help automating 1Shot API with n8n?

A person reads every message.

FAQ

1Shot API and n8n, common questions

01Is the 1Shot API n8n integration free?
Yes on the n8n side, with one condition. The 1Shot API node is a community node, so it does not ship with n8n: it is the npm package n8n-nodes-1shot, and you install it from Settings, then Community nodes, on a self-hosted instance. That installation costs nothing. n8n Cloud only accepts verified community nodes, so a Cloud instance is not guaranteed to be able to install it. What 1Shot API itself costs is a separate question and is not covered here. A workflow behaves the same way whether n8n runs on your own Docker host or on n8n Cloud.
02What credentials does the 1Shot API node need?
One credential, created once. In n8n a credential is a stored set of secrets you set up from the Credentials menu, and every workflow reuses it: the node offers it in a dropdown, so you never paste a key into a node. The X402 HTTP Request operation adds its own choice on top, with a Credential Type and a Generic Auth Type field, because that call authenticates against the target endpoint rather than against 1Shot. The exact values to enter for the 1Shot credential and where to generate them are documented at docs.1shotapi.com.
03What are the limits of the 1Shot API node?
Two worth knowing about. First, pagination: the listing operations require Page Number and Page Size, and there is no Return All switch, so a complete export means looping over pages in the workflow. Second, coverage: the node exposes 27 operations across 7 resources, and anything outside that surface is not reachable through it. When you need an endpoint the node does not cover, the HTTP Request node calls it directly and reuses the same credential through predefined authentication, so you keep one place to rotate secrets.
04Does the 1Shot API Webhook trigger react in real time?
Yes. The trigger works by webhook, which means 1Shot calls an n8n URL when something happens instead of n8n asking on a timer. n8n registers that URL with the tool when the workflow is activated, and each event arrives within seconds, with no polling and no interval to tune. Verification is part of the setup: the trigger requires an ED-25519 Public Key provided by 1Shot, plus the Tokens collection that lists what will be accepted for payment. A request that fails verification does not start the workflow.
05n8n or Make for 1Shot API?
It depends on four things. Hosting: n8n runs on your own server with Docker or npm, or on n8n Cloud, while Make is hosted only. Data control: self-hosting n8n keeps the payloads and the credentials on infrastructure you own, which matters when wallets and transactions are involved. Cost model: Make bills per operation, so a workflow that pages through transactions gets expensive as volume grows. Visual logic: both are visual builders, and Make is comfortable for straightforward branching. One point specific to this node: it is a community package, which a self-hosted n8n installs without restriction.