# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: "" version: 0.0.1 paths: /gas/suggest: get: tags: - Wallet operationId: Wallet_SuggestGasPrice responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/wallet.v1.GasPrice' /helloworld/{name}: get: tags: - Greeter description: Sends a greeting operationId: Greeter_SayHello parameters: - name: name in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/helloworld.v1.HelloReply' /tx/cost/{txHash}: get: tags: - Wallet operationId: Wallet_TxCost parameters: - name: txHash in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/wallet.v1.TxCostReply' /wallet/deposit: post: tags: - Wallet operationId: Wallet_DepositWallet requestBody: content: application/json: schema: $ref: '#/components/schemas/wallet.v1.Deposit' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/wallet.v1.DepositResult' /wallet/transaction: post: tags: - Wallet operationId: Wallet_SendTransaction requestBody: content: application/json: schema: $ref: '#/components/schemas/wallet.v1.TxRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/wallet.v1.TxReply' /wallet/withdraw: post: tags: - Wallet operationId: Wallet_WithdrawWallet requestBody: content: application/json: schema: $ref: '#/components/schemas/wallet.v1.Withdrawal' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/wallet.v1.WithdrawalResult' /wallet/{account}: get: tags: - Wallet operationId: Wallet_GetBalance parameters: - name: account in: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/wallet.v1.BalanceReply' components: schemas: helloworld.v1.HelloReply: type: object properties: message: type: string description: The response message containing the greetings wallet.v1.BalanceReply: type: object properties: account: type: string balance: type: string pendingBalance: type: string wallet.v1.Deposit: type: object properties: senderAccount: type: string password: type: string walletAddress: type: string wallet.v1.DepositResult: type: object properties: success: type: boolean message: type: string transactionHash: type: string wallet.v1.GasPrice: type: object properties: gas: type: string wallet.v1.TxCostReply: type: object properties: isPending: type: boolean txCost: type: string wallet.v1.TxReply: type: object properties: success: type: boolean message: type: string transactionHash: type: string wallet.v1.TxRequest: type: object properties: senderAccount: type: string password: type: string recipientAccount: type: string amount: type: string wallet.v1.Withdrawal: type: object properties: walletAddress: type: string password: type: string recipientAccount: type: string wallet.v1.WithdrawalResult: type: object properties: success: type: boolean message: type: string transactionHash: type: string tags: - name: Greeter description: The greeting service definition. - name: Wallet