Get desktop application:
View/edit binary Protocol Buffers messages
* Pay specified amount of internal tokens to given account. Creates a transaction and returns it's details.
Id of account to pay to
How much tokens should the account receive. Must be a positive number.
Initial status of transaction. Acceptable statuses are HOLD, PAID. The transaction will not be created and invalid argument error will be returned if any other status is provided. If not provided, transaction will be created as PAID.
Metadata to attach to the transaction.
* Get detailed information about single transaction.
* Get multiple transactions matching specified conditions.
Number of matching transactions from beginning of list to skip.
Max. number of transactions to return. If 0 or missing, all matching transactions will be returned.
Return only transactions for given account
Return only transactions in one of these statuses. If no statuses are given here - transactions in any status will be returned.
Return only transactions that are (or are not) withdrawal transactions. If omitted, both withdrawal and non-withdrawal transactions will be returned.
* Approve a transaction currently in HOLD status. This will change transaction's status to either PAID or APPROVED, depending on if the transaction requires any blockchain operations.
Id of transaction to approve
* Deny a transaction currently in HOLD status. This will change transaction's status to DENIED.
Id of transaction to deny
* Request withdrawal of tokens. In case of success, it creates a transaction in HOLD status and returns it's details. The transaction can then be either approved or denied using ApproveTransaction or DenyTransaction procedures. When approved, the transaction will have APPROVED status and will wait for blockchain operations to be performed.
Id of an account requesting withdrawal.
Id of blockchain currency/token to use.
Cost of one unit of target currency in internal tokens.
Amount of internal tokens to withdraw. If omitted, all available tokens will be withdrawn.
Metadata to add to withdrawal transaction.
* Update status of a withdrawal transaction in SENDING or SEND_UNKNOWN_ERROR statuses. This procedure can be used to: - restore transaction after an unknown error which cannot be handled automatically happened while sending it to blockchain (status SEND_UNKNOWN_ERROR) - notify system about change of blockchain transaction status change before it is detected automatically or when it could not be detected automatically (status SENDING)
Id of the transaction.
New transaction status. Should be either: - SEND_FAILED if transaction has failed and should be re-sent - DENIED if the transaction has failed an should not be re-sent - MINED if the transaction has succeed
Key-value pair for transaction metadata. TODO: This is necessary 'cause grpc-node + @grpc/reflection + grpcurl don't work well together when there are maps in protocol definition.
Used in:
, ,Used as response type in: Transactions.ApproveTransaction, Transactions.DenyTransaction, Transactions.GetTransactionDetails, Transactions.GetTransactionsList, Transactions.PayToAccount, Transactions.RequestWithdrawal, Transactions.RestoreWithdrawalStatus
Id of transaction.
Id of account.
Amount of account's balance change.
Current status of the transaction.
Metadata of the transaction. Metadata can be used to store additional information about transaction. E.g.: - a flag that indicates that a transaction is a reward for certain action - identifier of what action is this reward given for
Transaction creation timestamp. Represented as ISO-8601 string.
If this transaction is a withdrawal transaction - contains withdrawal-related data
Used in:
, , ,* Transaction does not have associated blockchain operations and was performed successfully.
* Transaction was created but requires confirmation. Transaction from this status can also be safely cancelled (by changing status to DENIED).
* Transaction was cancelled.
* Transaction was approved but requires associated blockchain operations to be performed.
* Associated blockchain operations are being performed with no known result yet.
* The transaction was approved but attempt to send associated operation to blockchain failed and should be retried again.
* The transaction was approved but attempt to send associated operation to blockchain ended with unknown result. This status requires manual update of transaction status after check of blockchain content.
* Transaction did require associated blockchain operations but now they're completed.
Used in:
True iff this is a withdrawal transaction
Name of target currency the user receives in exchange for internal tokens
Address to withdraw tokens to This is user's withdrawal wallet for blockchain network corresponding to the target currency. It is stored at the moment of withdrawal transaction creation and cannot be changed later.
How much of target currency the user receives
Id/hash of the transaction
URL of the transaction in blockchain explorer such as tronscan or etherscan
Text of the last error. Note that this field may exist for a successfully completed transaction. Use transaction status to determine if transaction was successful or not.