Request:
mutation {
deployContract (
input: {
_contractId: "48e2486f-a988-4f92-9794-4df831c03879"
}
) {
contract {
contractAddress
}
}
}
Response:
{
"data": {
"deployContract": {
"contract": {
"contractAddress": "0x6537d77941ef111b4c853d38a03fe9478bc36d41"
}
}
}
}
In this example, the mutation deploys a smart contract (associated to a token) to the blockchain and returns the on-chain contract address in the payload. Note that the contract ID returned from the previous example of the initialization of a token is used in the deployment of the contract.