- Home
- Resources
- Integrations
- 1Shot API
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 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.
How do you connect 1Shot API to n8n?
- 01
Install the community package
On a self-hosted n8n, open Settings, then Community nodes, and install
n8n-nodes-1shot(version1.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. - 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.
- 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.
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 trigger
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.
02Shape the URL the trigger listens on
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.
03Control what the trigger answers
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.
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.
| Resource | Create | Get | Update | Delete | Assure Contract Methods From Prompt | Encode | Estimate | Execute | Execute as Delegator | Execute Batch as Delegator | Execute Batch | List Chains | Read | Search | Simulate | X402 HTTP Request |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| X402 Request | ✓ | |||||||||||||||
| Chain | ✓ | |||||||||||||||
| Contract Event | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||||||
| Contract Method | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
| Prompt | ✓ | |||||||||||||||
| Transaction | ✓ | ✓ | ||||||||||||||
| Wallet | ✓ | ✓ | ✓ | ✓ | ✓ |
Operations index
- Assure contract methods from prompt
- Encode a smart contract method call
- Estimate the gas cost of a smart contract method
- Execute a smart contract method
- Execute a smart contract method as delegator
- Execute multiple smart contract methods
- Execute multiple smart contract methods as delegator
- Get a smart contract method
- List all smart contract methods
- Read data from a smart contract function
- Simulate a smart contract method call
X402 Request
1 operationX402 HTTP Request
x402Request.x402What 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.
Chain
1 operationList chains
chains.listWhat 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.
Contract Event
6 operationsCreate a contract event
contractEvents.createWhat 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.
Delete a contract event
contractEvents.deleteWhat 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 }}.
Get a contract event
contractEvents.getWhat 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.
List all contract events
contractEvents.listWhat 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.
Search contract event logs
contractEvents.searchWhat you see in n8n
Notes & use cases
Goes to the blockchain and returns the actual event logs matching a definition. This is the operation that gives you data, where the list operation only gives you definitions.
Key parameters
- Contract Event Name or ID: which definition to search with.
- Start Block and End Block: the block range to search from and to.
- Topics: name and value pairs that filter on indexed event parameters.
Update a contract event
contractEvents.updateWhat 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.
Contract Method
11 operationsAssure contract methods from prompt
contractMethods.assureContractMethodsFromPromptWhat 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.
Encode a smart contract method call
contractMethods.encodeWhat 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.
Estimate the gas cost of a smart contract method
contractMethods.estimateWhat 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.
Execute a smart contract method
contractMethods.executeWhat 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.
Execute a smart contract method as delegator
contractMethods.executeAsDelegatorWhat 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.
Execute multiple smart contract methods
contractMethods.executeBatchWhat 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.
Execute multiple smart contract methods as delegator
contractMethods.executeAsDelegatorBatchWhat 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.
Get a smart contract method
contractMethods.getWhat 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.
List all smart contract methods
contractMethods.listWhat 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.
Read data from a smart contract function
contractMethods.readWhat 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.
Simulate a smart contract method call
contractMethods.simulateWhat 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.
Prompt
1 operationSearch prompts
prompts.searchWhat you see in n8n
Notes & use cases
Runs a semantic search over 1Shot Prompts and returns the tools you can use in a dynamic workflow. Semantic means you describe what you want in words, not by exact name.
Key parameters
- Query: the search text, required.
- Chain Name or ID: an optional filter when you only care about one chain.
Transaction
2 operationsList transactions
transactions.listWhat 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.
Get transaction
transactions.getWhat 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.
Wallet
5 operationsCreate wallet
wallets.createWhat 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.
Delete wallet
wallets.deleteWhat 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 }}.
Get wallet
wallets.getWhat 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.
List wallets
wallets.listWhat 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.
Update wallet
wallets.updateWhat 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.
Need help automating 1Shot API with n8n?
A person reads every message.