Skip to content

Instantly share code, notes, and snippets.

@mikeifomin
Created February 22, 2019 15:39
Show Gist options
  • Save mikeifomin/3a2e20d2020a90ae6a5539f4d7eb25b5 to your computer and use it in GitHub Desktop.
Save mikeifomin/3a2e20d2020a90ae6a5539f4d7eb25b5 to your computer and use it in GitHub Desktop.
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