Send generic transactions on Aptos
Send generic transactions
POST
/unity/txn2
This endpoint allows the user to send generic transactions on the Aptos blockchain, including transferring tokens, interacting with smart contracts, or any other custom transaction type. Users must provide the necessary transaction details, such as the contract address, contract name, function name, arguments, and parameters for smart contract interactions.
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-key |
|
Body
Name | Type | Description |
---|---|---|
| string | Contract address |
| string | Name of contract |
| string | Function you want to do mint transaction on |
| string | User's private key |
| Array of objects | Object of |
| number | 1 or 2 (1 for Mainnet & 2 for Testnet) |
| boolean |
|
Response
Example Request Body
Last updated