Http proxy to create transaction to the ETH contracts.
config.yml - common saiService config file.
http_server- http server sectionenabled- enable or disable http handlersport- http server port
eth_server- ETH server url
make build: rebuild and start service
make up: start service
make down: stop service
make logs: display service logs
{
"method": "api",
"data": {
"contract":"$name",
"method":"$contract_method_name",
"value": "$value",
"params":[
{
"type":"$(int|string|float...)",
"value":"$some_value"
}
]
}
}$name <- contract name
$contract_method_name <- contract method name
$value <- string, value
$some_value <- string, value
{
"contracts": [
{
"name":"$name",
"server": "$server",
"address":"$address",
"abi":"$abi",
"private": "$private",
"gas_limit":$gas_limit
}
]
}$name <- contract name
$server <- ETH server url
$address <- contract address
$abi <- abi encoded
$private <- private key to sign transactions
$gas_limit <- gas limit value
{
"names": [
"$name"
]
}$name <- contract name