Execute Action
Executes a specified action.
It is similar to /chat but it only handles transaction requests. It is designed to be used without history context.
The message to be processed.
Type
string;
Whether to stream the response or not
Type
boolean;
The session ID to associate with the message. If not provided, a new session will be created.
Type
string;
The configuration for transaction execution
Type
{ mode: "engine"; engine_url: string; engine_authorization_token: string; engine_backend_wallet_address: string;} | { mode: "session_key"; smart_account_address: string; smart_account_factory_address: string; smart_account_session_key: string;} | { mode: "client"; signer_wallet_address: string;}
Provide additional context information along with the message
Type
{ chainIds: string[] | null; contractAddresses: string[] | null; walletAddresses: string[] | null;}
POST
/executefetch("https://nebula-api.thirdweb.com/execute", { method: "POST", headers: { "x-secret-key": "YOUR_THIRDWEB_SECRET_KEY", }, body: { message: "Hello", stream: false, session_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", execute_config: { mode: "client", signer_wallet_address: "0xc3F2b2a12Eba0f5989cD75B2964E31D56603a2cE", }, },});