v2

latestOpenAPI 3.1.0Apache 2.02026-07-31441011.7 MB
Actions

Get Web3 Action details

Retrieve the configuration details of a specific Web3 Action. You need to provide the Web3 Action ID.

get/v1/account/{accountSlug}/project/{projectSlug}/actions/action/{actionId}

Path parameters

accountSlugstring required

Account slug of the user

projectSlugstring required

Project slug of the account

actionIdstring required

Web3 Action Id to get info for

Response

A successful response.

idstring required

ID of the Web3 Action.

projectIdstring required

ID of the project where Web3 Action is created.

namestring required

Web3 Action name.

descriptionstring required

Web3 Action description.

status'DEPLOYED' | 'PUBLISHED' required

Status of the Web3 Action.

stoppedboolean required

Flag showing if Web3 Action is stopped or not.

editableboolean required

Flag showing if Web3 Action is editable or not.

createdAtstring required

When Web3 Action is created.

Example response

{
  "id": "be048c73-41c3-4fcd-b0c6-d286af7155fe",
  "projectId": "cbb49e29-24ad-4cf9-8b2d-1f34a3019582",
  "name": "instadapp-implementation",
  "description": "Track these 3 proposal events: add, remove & setDefault.",
  "status": "DEPLOYED",
  "stopped": false,
  "version": {
    "id": "34655755-771f-4da7-989e-ec2b27e8f13b",
    "index": 3,
    "actionId": "be048c73-41c3-4fcd-b0c6-d286af7155fe",
    "parentActionId": "",
    "runtime": "V1",
    "function": "instadappImplementation:implementationFn",
    "triggerType": "TRANSACTION",
    "trigger": {
      "type": "transaction",
      "transaction": {
        "status": [
          "MINED"
        ],
        "filter": {
          "any": [
            {
              "network": [
                "1"
              ],
              "status": [],
              "value": [],
              "gasLimit": [],
              "gasUsed": [],
              "fee": [],
              "from": [],
              "to": [],
              "function": [],
              "eventEmitted": [
                {
                  "contract": {
                    "address": "0xcba828153d3a85b30b5b912e1f2dacac5816ae9d",
                    "invocationType": "ANY"
                  },
                  "id": null,
                  "name": "LogSetDefaultImplementation"
                },
                {
                  "contract": {
                    "address": "0xcba828153d3a85b30b5b912e1f2dacac5816ae9d",
                    "invocationType": "ANY"
                  },
                  "id": null,
                  "name": "LogAddImplementation"
                },
                {
                  "contract": {
                    "address": "0xcba828153d3a85b30b5b912e1f2dacac5816ae9d",
                    "invocationType": "ANY"
                  },
                  "id": null,
                  "name": "LogRemoveImplementation"
                }
              ],
              "logEmmitted": []
            }
          ],
          "and": null
        }
      }
    },
    "commitish": null,
    "source": "import {\n  ActionFn,\n  Context,\n  Event,\n  TransactionEvent,\n} from '@tenderly/actions';\n\n// TEST: Try manual trigger with this tx hash on Mainnet: 0x3bdf5a48174f7f8f7bfb2f43dbe399c47405bba1cea3480aa0c199270f262f7e\nexport const implementationFn: ActionFn = async (context: Context, event: Event) => {\n  let txEvent = event as TransactionEvent;\n  console.log('InstaDapp Implementation Event is detected');\n  // Shorten logs because it's too large to print\n  console.log({ ...txEvent, logs: txEvent.logs.splice(0, 5) });\n};\n",
    "createdAt": "2022-10-18T12:37:10.392964Z",
    "deployRequested": false,
    "deployError": null,
    "invocationType": "SYNC"
  },
  "editable": false,
  "createdAt": "2022-10-18T12:24:51.187849Z",
  "deliveryChannels": null
}