Created
February 22, 2019 15:39
-
-
Save mikeifomin/3a2e20d2020a90ae6a5539f4d7eb25b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schema { | |
query: Query | |
mutation: Mutation | |
subscription: Subscription | |
} | |
type Query { | |
coins: [Coin!]! | |
wallets(Ids:[ID!]) Wallet | |
} | |
type Mutation { | |
addAddress(address: Address!): Wallet! | |
rmAddress(address: Address!): Wallet! | |
sendTransaction(coinId: ID!): | |
} | |
type Coin { | |
id: ID! | |
symbol: String! | |
decimalDigits: Int! | |
name: String! | |
homepage: String! | |
sourcecode: String! | |
collaterals: [Int!] | |
blockHeight: Int! | |
blockTime: Time! | |
} | |
type Subscription { | |
walletTx(walletId): [TxItem!] | |
} | |
type TxOut { | |
hash: String! | |
vout: Int! | |
amount: String! | |
address: String! | |
spentBlock: Block | |
block: Block | |
gen: Boolean! | |
genMN: Boolean! | |
genPos: Boolean! | |
} | |
type TxIn { | |
hash: String! | |
vout: Int! | |
#script: | |
#fromAddress: Adderss | |
} | |
type Block { | |
id: String! | |
coin: Coin! | |
txList: [Tx!]! | |
} | |
type Tx { | |
hash: String! | |
in: []! | |
out: [TxOut]! | |
} | |
type Wallet { | |
id: ID! | |
coinId: ID! | |
coin: Coin! | |
addresses: [Address!]! | |
addressesHash: String! | |
balance: String! | |
txList(limit: Int!, offset: Int!, spend): [TxOut!]! | |
txUnspend( | |
} | |
type Address { | |
coin: Coin! | |
address: String! | |
} | |
# hash/AddressGroup/Group | |
# KeyGroup | |
# Wallet | |
type Token | |
scalar Token | |
scalar Hash | |
scalar Address | |
scalar Timestamp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment