Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api] Broadcast signed tx #22

Closed
olemis opened this issue Feb 24, 2019 · 0 comments · Fixed by #30
Closed

[api] Broadcast signed tx #22

olemis opened this issue Feb 24, 2019 · 0 comments · Fixed by #30
Assignees

Comments

@olemis
Copy link
Contributor

olemis commented Feb 24, 2019

[POST] /api/transactions/broadcast

Should broadcast the signed transaction. Result code can be evaluated synchronously or returned asynchronously in the [GET] /api/transactions/broadcast/* response with error code.

Request

{
// Operation ID
“operationId”: “guid”,
// The signed transaction returned by the
// [POST] /api/sign
    “signedTransaction”: “string”
}

Response

{
    // Error code.
// Can be empty.
// Should be non empty if an error that match one of the
// listed code is occured. For other errors use HTTP
// status codes.
// enum values:
// -  amountIsTooSmall : amount is too small to execute
// transaction
// -  notEnoughBalance : transaction can’t be executed due
// to balance insufficiency on the source address.
    "errorCode": "enum",
}

Errors:

* `409 Conflict`  - transaction with specified  operationId  and  signedTransaction
  has already been broadcasted.
e1Ru1o added a commit to uhsimelo/skyxcommons that referenced this issue Feb 26, 2019
This was referenced Feb 26, 2019
e1Ru1o added a commit to uhsimelo/skyxcommons that referenced this issue Feb 28, 2019
@e1Ru1o e1Ru1o closed this as completed in #30 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants