You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
270 lines
8.9 KiB
270 lines
8.9 KiB
# Generated with protoc-gen-openapi
|
|
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
|
|
|
|
openapi: 3.0.3
|
|
info:
|
|
title: Wallet API
|
|
description: The greeting service definition.
|
|
version: 0.0.1
|
|
paths:
|
|
/wallet/allAddress:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: GetAllAddress Check all wallet addresses
|
|
operationId: Wallet_GetAllAddress
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletRequest'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletReply'
|
|
/wallet/allAddressAndPrivateKey:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: GetAllAddressAndPrivateKey Query all private keys
|
|
operationId: Wallet_GetAllAddressAndPrivateKey
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletRequest'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletKeyReply'
|
|
/wallet/allDeleteAddress:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: DeleteAddress Clean all wallets
|
|
operationId: Wallet_DeleteAddress
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletRequest'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletReply'
|
|
/wallet/generateAddress:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: GenerateAddress Generate wallet address
|
|
operationId: Wallet_GenerateAddress
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.GenerateAddressRequest'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletReply'
|
|
/wallet/privateKeyByAddress:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: GetPrivateKeyByAddress Query private key through wallet address
|
|
operationId: Wallet_GetPrivateKeyByAddress
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.GetPrivateKeyByAddressRequest'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletPKeysReply'
|
|
/wallet/signatureTrc20Grpc:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: SignatureTrc20Grpc GrpcTrc20 Wallet Signature
|
|
operationId: Wallet_SignatureTrc20Grpc
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.SignatureTrc20Request'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.SignatureTrc20Reply'
|
|
/wallet/walletApprove:
|
|
post:
|
|
tags:
|
|
- Wallet
|
|
description: WalletApprove Wallet authorization
|
|
operationId: Wallet_WalletApprove
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletApproveRequest'
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/walletSystem.v1.WalletApproveReply'
|
|
components:
|
|
schemas:
|
|
walletSystem.v1.Data:
|
|
type: object
|
|
properties:
|
|
Result:
|
|
type: boolean
|
|
TxId:
|
|
type: string
|
|
walletSystem.v1.GenerateAddressRequest:
|
|
type: object
|
|
properties:
|
|
wallet:
|
|
type: string
|
|
number:
|
|
type: integer
|
|
format: uint32
|
|
walletSystem.v1.GetPrivateKeyByAddressRequest:
|
|
type: object
|
|
properties:
|
|
address:
|
|
type: string
|
|
walletSystem.v1.Keys:
|
|
type: object
|
|
properties:
|
|
key:
|
|
type: string
|
|
value:
|
|
type: string
|
|
format: bytes
|
|
walletSystem.v1.SignatureTrc20Reply:
|
|
type: object
|
|
properties:
|
|
code:
|
|
type: integer
|
|
format: uint32
|
|
data:
|
|
$ref: '#/components/schemas/walletSystem.v1.Data'
|
|
message:
|
|
type: string
|
|
walletSystem.v1.SignatureTrc20Request:
|
|
type: object
|
|
properties:
|
|
from:
|
|
type: string
|
|
to:
|
|
type: string
|
|
contract:
|
|
type: string
|
|
amount:
|
|
type: integer
|
|
format: uint32
|
|
trcCheck:
|
|
type: string
|
|
tokenId:
|
|
type: string
|
|
feeLimit:
|
|
type: integer
|
|
format: uint32
|
|
walletSystem.v1.WalletApproveReply:
|
|
type: object
|
|
properties:
|
|
code:
|
|
type: integer
|
|
format: uint32
|
|
data:
|
|
type: string
|
|
format: bytes
|
|
message:
|
|
type: string
|
|
walletSystem.v1.WalletApproveRequest:
|
|
type: object
|
|
properties:
|
|
from:
|
|
type: string
|
|
to:
|
|
type: string
|
|
contract:
|
|
type: string
|
|
amount:
|
|
type: integer
|
|
format: uint32
|
|
trcCheck:
|
|
type: string
|
|
tokenId:
|
|
type: string
|
|
feeLimit:
|
|
type: integer
|
|
format: uint32
|
|
walletSystem.v1.WalletKeyReply:
|
|
type: object
|
|
properties:
|
|
code:
|
|
type: integer
|
|
format: uint32
|
|
data:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/walletSystem.v1.Keys'
|
|
message:
|
|
type: string
|
|
walletSystem.v1.WalletPKeysReply:
|
|
type: object
|
|
properties:
|
|
code:
|
|
type: integer
|
|
format: uint32
|
|
data:
|
|
type: string
|
|
message:
|
|
type: string
|
|
walletSystem.v1.WalletReply:
|
|
type: object
|
|
properties:
|
|
code:
|
|
type: integer
|
|
format: uint32
|
|
data:
|
|
type: array
|
|
items:
|
|
type: string
|
|
message:
|
|
type: string
|
|
walletSystem.v1.WalletRequest:
|
|
type: object
|
|
properties: {}
|
|
tags:
|
|
- name: Wallet
|
|
|