example) Contract Execution
Request
curl -X "POST" "https://api.kaikas.io/api/v1/k/prepare" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"type": "execute_contract",
"bapp": {
"name": "test app",
"callback": {
"success": "https://www.google.com/search?q=success",
"fail": "https://www.google.com/search?q=fail"
}
},
"transaction": {
"abi": "{\\n \\"constant\\": false,\\n \\"inputs\\": [\\n {\\n \\"name\\": \\"_to\\",\\n \\"type\\": \\"address\\"\\n },\\n {\\n \\"name\\": \\"_value\\",\\n \\"type\\": \\"uint256\\"\\n }\\n ],\\n \\"name\\": \\"transfer\\",\\n \\"outputs\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"bool\\"\\n }\\n ],\\n \\"payable\\": false,\\n \\"stateMutability\\": \\"nonpayable\\",\\n \\"type\\": \\"function\\"\\n}",
"value": "0",
"to": "0x5c74070fdea071359b86082bd9f9b3deaafbe32b",
"params": "[\\"0x0000000000000000000000000000000000000000\\", \\"0\\"]"
}
}'
Response
{
"chain_id":"8217",
"request_key":"4a4f2d97-6ef7-44e0-8c06-2de9ef5cca6e",
"status":"prepared",
"expiration_time":1647663586
}
Last updated