Explore Plans
Mobile menu Close menu
1Shot API

Successful Transactions

This trigger fires when a Transaction is confirmed.

Developer info

API endpoint slug
1shotapi.transactions_success

Trigger fields

Business Dropdown list

Label
Select the Business the Transactions are coming from.
Helper text
You can select any business you are a part of.
Slug
business_id
Required
true
Can have default value
false

Chain Dropdown list

Label
Do you want to trigger for Transactions only from a single chain?
Helper text
Optional: Select the chain you want to get Transactions for.
Slug
chain_id
Required
true
Can have default value
false

Wallet Dropdown list

Label
Do you only want to trigger when a Transaction was sent from a particular Wallet?
Helper text
Optional: Choose a Wallet from your 1Shot API account to filter transactions.
Slug
wallet_id
Required
true
Can have default value
false

Contract method Dropdown list

Label
Do you only want to trigger when a Transaction from a particular Contract Method completes?
Helper text
Optional: Select the name of the Contract Method you want the Transactions for; it must be for the selected business
Slug
contract_method_id
Required
true
Can have default value
false

Ingredients

Transaction The ID of the Transaction. This will be a UUID

Slug
transaction_id
Filter code
_1shotapi.transactionsSuccess.TransactionId
Type
String
Example
E.g. 15c8641d-f200-4c34-b5b9-05cf4da91cad

Contract method The ID of the Contract Method that created this Transaction. This will be a UUID.

Slug
contract_method_id
Filter code
_1shotapi.transactionsSuccess.ContractMethodId
Type
String
Example
E.g. 15c8641d-f200-4c34-b5b9-05cf4da91cad

Api credential The ID of the credential that executed this transaction

Slug
api_credential_id
Filter code
_1shotapi.transactionsSuccess.ApiCredentialId
Type
String
Example
E.g.

User The ID of the User that ran the Transaction. You will have either a User ID or an API Key/API Credential ID

Slug
user_id
Filter code
_1shotapi.transactionsSuccess.UserId
Type
String
Example
E.g. ec4c2c0d-7551-44c5-ac3a-2c1aa8f432b7

Transaction hash The hash of the Transaction. This can be checked on block scanners such as Etherscan.

Slug
transaction_hash
Filter code
_1shotapi.transactionsSuccess.TransactionHash
Type
String
Example
E.g. 0x263c12de700bbd4b8029bbd375b6b6146579bc79d11fe780a82813748b717093

Memo The content of the memo that was attached when the Transaction was executed.

Slug
memo
Filter code
_1shotapi.transactionsSuccess.Memo
Type
String
Example
This can be any string you want, although many people choose to use JSON, such as {"reason": "Paying off the Mob"}

Completed The time when 1Shot determined the Transaction to have been completed.

Slug
completed
Filter code
_1shotapi.transactionsSuccess.Completed
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00

Created The time when the Transaction was initiated

Slug
created
Filter code
_1shotapi.transactionsSuccess.Created
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00