> ## Documentation Index
> Fetch the complete documentation index at: https://docs-en.keysecure.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Web3 Transaction

>  Create a Web3 transaction through the API

Currently, the Web3 networks supported by Keysecure are as follows:

* Ethereum

* BNB Smart Chain

* HECO

* Avalanche (C-Chain)

* Polygon

* Filecoin

* TRON

* Wizarre Scroll

#### Request Parameters

**sub\_wallet\_id** `integer` *required*

Wallet id

**request\_id** `string` *required*

The unique identifier for transferring coins.cannot be reused for repeated submissions. Maximum 32 characters, letters, numbers, underscores (`_`), and hyphens (`-`) only.

**main\_chain\_symbol** `string` *required*

Native token symbol, Unique identifier for the coin, e.g.：`ETH`

**from** `string`

Transaction initiation address. In the case of multiple addresses in the wallet, you can specify the transaction address. If not specified, the wallet's "commonly used address" will be used by default.

**interactive\_contract** `string` *required*

Interactive contract

**amount** `string` *required*

Transaction amount (-1 for infinite)

**gas\_price** `string` *required*

Gas fee，unit：Gwei

**gas\_limit** `string` *required*

Gas limit fee

**input\_data** `string` *required*

Hexadecimal data for contract transaction

**trans\_type** `string` *required*

0: Authorization transaction, 1: Other transaction. If 0, the amount field is invalid.

**dapp\_name** `string`

Dapp name

**dapp\_url** `string`

Dapp URL

**dapp\_img** `string`

Dapp image

**sign** `string`

RSA private key signature. Parameters involved in the signature: "request\_id", "sub\_wallet\_id", "main\_chain\_symbol", "interactive\_contract", "amount", "input\_data". Refer to [`Co-Signer Transaction Signature Verification`](https://docs-en.keysecure.io/api-references/mpc-apis/co-signer/sign-verify) for detailed signing rules.

#### Response Data Parameters

**object**

**trans\_id** `integer`

Web3 transaction ID

```curl cURL theme={null}
curl -X POST \
--url 'https://openapi.keysecure.io/
api/mpc/web3/trans/create?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqhxh1vV_AJ4bXn2uYx8TaYcBht-n_ZcBdxIDt975dbOFUiH-oCzIuDi1oLDtb4EylfCvhU5E4ozel_lQ-6cyIG0Dqiiyx0RFFOCJzPSXIoV031pvoa8pTCpkWklh8mRw1rylBgeZtqSxpnJO2_u2RIlXq6Hs8Yly9CmhIXaSrUgPir0h6xVxlf4VC6PFVCkiiTlp0kZ_H_UbKm0nUis3v3U2sflWJ2C449waSrikhuxVrFAQ6PQmrFVCAE6MYXNrFXJQuam2HAIQNSGbFQjspw8b_bXyfyZMGZ3K2oBC4I_v3eETTdPe0pfSNJb-5g37K0tOAr_UFbWK8pkC8yl56fSjn8tcR3yCRWwoi8jxTcUBiswTtvXZtzgG4dyzkaHXjsZjSGiywXSqP76VZWlyOmAx6IDSViLcPLPISdU3ruCI'
```

```json theme={null}
{
     "trans_id": 198012
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.