POST
/
triggers
/
{app_id}
{
  "id": "<string>",
  "name": "<string>",
  "custom_address_enabled": true,
  "custom_address": "<string>",
  "call_data": {
    "near": {
      "contract_id": "<string>",
      "method_name": "<string>",
      "method_type": "change",
      "attached_deposit_amount": "<string>",
      "gas_amount": "<string>",
      "data": {},
      "data_input": {},
      "template": "<string>"
    },
    "evm": {
      "contract_id": "<string>",
      "method_name": "<string>",
      "method_type": "change",
      "abi": "<string>",
      "gas_limit": "<string>",
      "data": [
        {}
      ],
      "data_input": {},
      "template": "<string>"
    },
    "wax": {
      "contract_id": "<string>",
      "method_name": "<string>",
      "gas_limit": "<string>",
      "data": [
        {}
      ],
      "data_input": {},
      "abi": "<string>",
      "template": "<string>"
    },
    "solana": {
      "contract_id": "<string>",
      "method_name": "<string>",
      "method_type": "change",
      "abi": "<string>",
      "compute_units": "<string>",
      "data": [
        {}
      ],
      "data_input": {},
      "template": "<string>"
    }
  },
  "params_data": {
    "number": {
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "string": {
      "is_ethereum_address": true,
      "is_near_address": true,
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "boolean": {
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "object": {
      "value": [
        {}
      ],
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "array": {
      "value": {},
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    }
  },
  "params_data_input": {
    "number": {
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "string": {
      "is_ethereum_address": true,
      "is_near_address": true,
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "boolean": {
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "object": {
      "value": [
        {}
      ],
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    },
    "array": {
      "value": {},
      "name": "<string>",
      "desc": "<string>",
      "optional": true,
      "nullable": true
    }
  },
  "params_data_example": "<string>",
  "app": {
    "id": "<string>",
    "name": "<string>",
    "type": "individual",
    "status": "draft",
    "kyc_return_url": "<string>",
    "use_explorer": true,
    "permissions": {
      "can_view": true,
      "can_edit": true,
      "can_delete": true,
      "can_edit_members": true
    },
    "app_fee": 123,
    "user": {
      "id": "<string>",
      "username": "<string>",
      "first_name": "<string>",
      "last_name": "<string>"
    },
    "is_member": true,
    "featured": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "theme": {
      "id": "<string>",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "styles": {
        "colors": {
          "primary": "<string>",
          "background": "<string>",
          "text": "<string>",
          "accent": "<string>",
          "alternativeBackground": "<string>",
          "info": "<string>"
        }
      },
      "visibility": "public"
    }
  },
  "wallet": {
    "id": "<string>",
    "name": "<string>",
    "type": "near",
    "managed": true,
    "wallet_data": {
      "near": {
        "network_id": "mainnet",
        "account_id": "<string>",
        "phrase_or_key": "<string>",
        "test_network": true
      },
      "evm": {
        "network_id": "ethereum",
        "account_id": "<string>",
        "private_key": "<string>",
        "test_network": true
      },
      "wax": {
        "network_id": "mainnet",
        "account_id": "<string>",
        "permission": "<string>",
        "public_key": "<string>",
        "private_key": "<string>",
        "test_network": true
      },
      "solana": {
        "network_id": "mainnet",
        "account_id": "<string>",
        "private_key": "<string>",
        "test_network": true
      }
    },
    "app": {
      "id": "<string>",
      "name": "<string>",
      "type": "individual",
      "status": "draft",
      "kyc_return_url": "<string>",
      "use_explorer": true,
      "permissions": {
        "can_view": true,
        "can_edit": true,
        "can_delete": true,
        "can_edit_members": true
      },
      "app_fee": 123,
      "user": {
        "id": "<string>",
        "username": "<string>",
        "first_name": "<string>",
        "last_name": "<string>"
      },
      "is_member": true,
      "featured": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "theme": {
        "id": "<string>",
        "name": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "styles": {
          "colors": {
            "primary": "<string>",
            "background": "<string>",
            "text": "<string>",
            "accent": "<string>",
            "alternativeBackground": "<string>",
            "info": "<string>"
          }
        },
        "visibility": "public"
      }
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "magic_network": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Path Parameters

app_id
string
required

Body

application/json
wallet_id
string
required
call_data
object
required
name
string
Maximum length: 128
custom_address
string
Maximum length: 128
params_data
object
params_data_input
object

Response

201 - application/json
id
string
required
name
string
required
custom_address_enabled
boolean
required
call_data
object
required
app
object
required
wallet
object
required
created_at
string
required
updated_at
string
required
custom_address
string
params_data
object
params_data_input
object
params_data_example
string