FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests
Method: POST /wallet/deploycontract
Method not allowed
Deploys a contract. Returns TransactionExtention, which contains an unsigned transaction.
abi
- json
Smart Contract's Application Binary Interface
bytecode
- string
The compiled contract's identifier, used to interact with the Virtual Machine.
fee_limit
- int32
Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).
parameter
- string
Parameter passed to the constructor of the contract. Call the virtual machine format of the parameter [1, 2], use the js tool provided by remix, convert the parameter array [1, 2] called by the contract caller into the parameter format required by the virtual machine.
origin_energy_limit
- int32
The max energy which will be consumed by the owner in the process of execution or creation of the contract, is an integer which should be greater than 0.
owner_address
- string
Contract owner address, converted to a hex string
name
- string
Contract name
call_value
- int32
Amount of TRX transferred with this transaction, measured in SUN (1TRX = 1,000,000 SUN)
consume_user_resource_percent
- int32
The same as User Pay Ratio. The percentage of resources specified for users who use this contract. This field accepts integers between [0, 100]. If it is 0, it means the user does not consume resources until the developer resources are exhausted. However, it is strongly recommended to set the value between 1 and 99 (inclusive). This is prevent the contract developer from potential malicious infinite loop time out attacks.
permission_id
- int32
Optional. Whehter the address is in base58 format.
visible
- boolean
Optional. Whehter the address is in base58 format.
curl --location --request POST 'https://trx.getblock.io/wallet/deploycontract' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }
POST /wallet/validateaddress
GET /wallet/listexchanges
POST /wallet/getblock
POST /wallet/getblockbynum
POST /wallet/getblockbyid
POST /wallet/getblockbylatestnum
POST /wallet/getblockbylimitnext
POST /wallet/getnowblock
POST /wallet/gettransactionbyid
POST /wallet/gettransactioninfobyid
POST /wallet/gettransactioninfobyblocknum
GET /wallet/listnodes
GET /wallet/getchainparameters
GET /wallet/getenergyprices
GET /wallet/getbandwidthprices
GET /wallet/gettransactionlistfrompending
POST /wallet/gettransactionfrompending
GET /wallet/getpendingsize
GET /wallet/listproposals
POST /wallet/getproposalbyid
POST /wallet/getnextmaintenancetime
POST /wallet/createaccount
POST /wallet/getaccount
POST /wallet/updateaccount
POST /wallet/accountpermissionupdate
POST /wallet/getaccountresource
POST /wallet/getaccountnet
POST /wallet/freezebalance
POST /wallet/unfreezebalance
POST /wallet/getdelegatedresource
POST /wallet/getdelegatedresourceaccountindex
POST /wallet/getaccountbalance
GET /wallet/generateaddress
POST /wallet/createaddress
POST /wallet/getexchangebyid
POST /wallet/exchangecreate
POST /wallet/exchangeinject
POST /wallet/exchangewithdraw
POST /wallet/exchangetransaction
GET /wallet/getnodeinfo
POST /wallet/getblockbalance
POST /wallet/proposalcreate
POST /wallet/proposalapprove
POST /wallet/proposaldelete
POST /wallet/getcontract
POST /wallet/getcontractinfo
POST /wallet/triggersmartcontract
POST /wallet/triggerconstantcontract
POST /wallet/deploycontract
POST /wallet/updatesetting
POST /wallet/updateenergylimit
POST /wallet/clearabi
GET /wallet/getspendingkey
POST /wallet/getexpandedspendingkey
POST /wallet/getakfromask
POST /wallet/getnkfromnsk
POST /wallet/getincomingviewingkey
GET /wallet/getdiversifier
POST /wallet/getzenpaymentaddress
GET /wallet/getnewshieldedaddress
POST /wallet/createshieldedcontractparameters
POST /wallet/createspendauthsig
POST /wallet/gettriggerinputforshieldedtrc20contract
POST /wallet/scanshieldedtrc20notesby
POST /wallet/scanshieldedtrc20notesbyovk
POST /wallet/isshieldedtrc20contractnotespent
POST /walletsolidity/getaccount
GET /walletsolidity/getnowblock
POST /walletsolidity/getblockbylatestnum
POST /walletsolidity/getblockbynum
POST /walletsolidity/gettransactionbyid
POST /wallet/gettransactionsign
POST /wallet/broadcasttransaction
POST /wallet/broadcasthex
POST /wallet/easytransfer
POST /wallet/easytransferbyprivate
POST /wallet/createtransaction
POST /wallet/getassetissuebyaccount
POST /wallet/getassetissuebyid
GET /wallet/getassetissuelist
POST /wallet/getpaginatedassetissuelist
POST /wallet/transferasset
POST /wallet/createassetissue
POST /wallet/participateassetissue
POST /wallet/unfreezeasset
POST /wallet/updateasset
POST /wallet/easytransferasset
POST /wallet/easytransferassetbyprivate
GET /wallet/listwitnesses
POST /wallet/createwitness
POST /wallet/updatewitness
POST /wallet/getBrokerage
POST /wallet/updateBrokerage
POST /wallet/votewitnessaccount
POST /wallet/getReward
POST /wallet/withdrawbalance
Nodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitNodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitNodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitPartnerships
Media KitFeel Free to Reach Out Anytime! 👋
FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
KakaoTalk