Skip to navigation

Create a generic cosmos request

This endpoint creates a generic request for Cosmos. Use ‘manual’ broadcast for chains not supported natively in protect, and ‘automatic’ for the others. Required role: RequestCreator. This API can be made idempotent by generating an ID for the Request beforehand and passing it as the externalRequestId attribute

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
chainIdstringRequired
signerslist of stringsRequired
messageslist of objectsRequired
feeDenomstringOptional
feestringOptional
feePayerstringOptional
gasLimitstringOptionalformat: "uint64"
commentstringOptional

string; A reconciliation note can be given when initiating a request and this will be included in transaction history.

useUnconfirmedFundsbooleanOptional
Allow use of unconfirmed funds for this transaction
transactionReferencestringOptional

Deprecated: use externalRequestId instead

broadcastKindstringOptional
accountsInfolist of objectsOptional
memostringOptional
externalRequestIdstringOptional
Identifier for the request in the user's system. This must be unique. Attempting to create a request with an existing externalRequestId will do nothing and return the originally created request

Response

A successful response.
resultobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error