The Transaction API endpoint (try it out here) receives a raw Transaction object containing the following fields:
|string||(Required) The address of the transaction sender|
|string||(Optional) The address of the transaction recipient. This can be empty only for contract creation transactions.|
|string||(Optional) Transaction calldata in hex.|
|string||(Optional) Transaction value in wei (hex). Leaving this empty is the same as setting to zero (0x0).|
|string||(Optional) Maximum gas to be used by the transaction (hex). Computed automatically if left empty.|
|string||(Optional) Same as |
|string||(Optional) Gas price in wei (hex). Computed automatically if left empty.|
|string||(Optional) URL of the website or dapp that originated the transaction. Used for risk assessment.|
The Transaction API endpoint returns an object containing the following fields.
Base response Fields: these fields are present on both Transaction and Signature API responses.
|string||Required. A one-sentence summary of this transaction.|
|RiskResult||Required. Results of risk evaluation|
|AssetChange||Required. List of assets leaving or entering the signer's wallet|
|string||Optional. List of error messages. Present if any errors were encountered.|
Transaction-specific response fields: these fields are present only on Transaction API responses.
|TransactionType||Required. Transaction type string enum|
|FunctionType||Optional. Function type string enum, present if transaction is a contract interaction.|
|Contract||Optional. Details of contract, present if transaction is contract interaction.|
|Function||Optional. Function arguments, present if transaction is contract interaction.|