Skip to content

Commit

Permalink
complete mutation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SepehrGanji committed Jan 23, 2024
1 parent ace1e26 commit 969f330
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ This query does not have any arguments/filters.
To check info of the running graphql instance. This contains `version` for now.

### CheckTransaction (Mutation)
To check whether a transaction is valid. It will return transaction id if it's valid, and empty string otherwise.
The input of ths mutation is signedTransaction of type `SignedTransaction` which is:
```
type SignedTransaction {
id: String!
inpts: [TransactionInput!]!
dataInputs: [TransactionDataInput!]!
outputs: [TransactionOutput!]!
size: Int
}
```

### SubmitTransaction (Mutation)
To submit a transaction into the ergo blockchain. This will send the tx to the instance's node; if the operation suceeds it'll return the id of transaction. Input is the same `SignedTransaction` as defined above.

0 comments on commit 969f330

Please sign in to comment.