visit
yarn start --port=<custom-port> --httpProvider=<custom-provider> --chain=<chain-name>
yarn dev
{
"api": "DefiStuff API",
"version": "1.0.0-alpha",
"modules": [
{
"module": "ethereum",
"methods": {
"GET": [
{
"method": "createAccount",
"description": "Returns ethereum keypairs (pub/priv keys)",
"endpoint": "api/v1/ethereum/create-account"
},
{
"method": "getBalance",
"description": "Returns the given address balance",
"endpoint": "api/v1/ethereum/get-balance?address=0x00000000000000000000000000000000000"
},
{
"method": "getTransaction",
"description": "Returns transaction info",
"endpoint": "api/v1/ethereum/get-transaction?tx=0x000000000000000000000000000000000000000"
},
{
"method": "getLatestBlock",
"description": "Returns the latest block",
"endpoint": "api/v1/ethereum/get-latest-block"
}
],
"POST": [
{
"method": "sendRawTransaction",
"description": "Transfer ether from one account to another",
"endpoint": "api/v1/ethereum/send-raw-transaction",
"requestBody": {
"addressFrom": "0x37EbeD3178e9C3b9087184F44A937C562e9770d2",
"privKey": "0xee0f1ce4e615a834cfb9d531b89171ecdb1f7687e503f0402a271f4d3fdd715e",
"addressTo": "0x1d9f33CDFE6dF18de9dBb57DB879a88faF3C1aD9",
"amount": "0.5"
}
}
]
}
}
]
}