deploy
Will deploy a compiled smart contract to the blockchain with the provided input parameters. The GAS cost for deploying the contract will be calculated by the provider, and displayed to the user upon tx acceptance or rejection.
Input Arguments
Parameter | Description |
---|---|
| Network to submit this request to. If omitted, will default to network the wallet is currently set to |
| The name of the contract to be deployed |
| The version of the contract to be deployed |
| The author of the contract to be deployed |
| The email of the contract to be deployed |
| The description of the contract to be deployed |
| Whether or not the contract will use storage |
| Whether or not the contract will be performing dynamic invocations of other smart contracts |
| Whether or not the contract will be able to accept native assets |
| The list of input argument types for the Main function on the contract. https://docs.neo.org/en-us/sc/Parameter.html |
| The list of output returnType argument types. https://docs.neo.org/en-us/sc/Parameter.html |
| The hex of the compiled smart contract avm |
| The network fee to execute the transaction, in addition to the deploy fee which will be added automatically |
| In the case that the dApp would like to be responsible for broadcasting the signed transaction rather than the wallet provider |
Success Response
In the case where the "broadcastOverride" input argument is not set, or set to false.
Parameter | Description |
---|---|
| The transaction ID of the invocation |
| The node which the transaction was broadcast to. Returned if transaction is broadcast by wallet |
In the case where the "broadcastOverride" input argument is set to True.
Parameter | Description |
---|---|
| The transaction ID of the invocation |
| The serialized signed transaction. Only returned if the broadcastOverride input argument was set to True |
Error Response
Parameter | Description |
---|---|
| The type of error which has occured |
| A description of the error which has occured |
| Any raw data associated with the error |
Example
Request
Response
最后更新于