Request
Transaction hash
only use in non-web3 wallet:
only use in web3 wallet:
Transaction Type | Code |
---|---|
TRANSACTION_FROM_WEB | 100 |
TRANSACTION_FROM_API | 102 |
TRANSACTION_RBF_API_SPEEDUP | 103 |
TRANSACTION_RBF_WEB_SPEEDUP | 104 |
TRANSACTION_RBF_API_DROP | 105 |
TRANSACTION_RBF_WEB_DROP | 106 |
TRANSACTION_FROM_EXTERNAL | 107 |
TRANSACTION_FROM_DEPOSIT | 1000 |
Transaction Type | Code |
---|---|
TYPE_MPC_WEB3_WEB | 300 |
TYPE_MPC_WEB3_MMI_TX | 301 |
TYPE_MPC_WEB3_API_TRANSACTION | 303 |
TYPE_MPC_WEB3_TRANSACTION_FROM_EXTERNAL | 307 |
TYPE_MPC_WEB3_RBF_API_SPEEDUP | 308 |
TYPE_MPC_WEB3_RBF_WEB_SPEEDUP | 309 |
TYPE_MPC_WEB3_RBF_API_DROP | 310 |
TYPE_MPC_WEB3_RBF_WEB_DROP | 311 |
TRANSACTION_FROM_DEPOSIT | 1000 |
Response
request successful or failed
Show object
Show object
Total number of transactions that meets the requirements
Show object
Show object
Unique transaction ID
Transaction request ID; it can be left empty if the transaction is a deposit
Status Type | Code |
---|---|
PENDING_APPROVAL | 101 |
QUEUED | 201 |
PENDING_SIGNATURE | 301 |
BROADCASTING | 401 |
BROADCAST_FAILED | 402 |
PENDING_CONFIRMATION | 403 |
CONFIRMATION | 501 |
REVERTING | 502 |
SUCCESS | 900 |
FAILED | 901 |
REORG | 902 |
The 402 status is not the final status of the transaction and will be rebroadcast, but there will still be broadcast failures.
The 403 status indicates that the transaction has been successfully broadcast but not yet confirmed, while the 501 status indicates that the transaction has been successfully confirmed on the blockchain and is awaiting further confirmations.
The 502 status indicates that during the confirmation process on the blockchain, the transaction execution has failed. Once the required number of confirmations is reached, the transaction status will change to 901.
The 902 status indicates that the blockchain has undergone a reorganization and the transaction is no longer part of the confirmed chain, the transaction may either get confirmed again in a later block or fail altogether. The 902 status currently only applies to deposit transactions. If you have credited the funds after the transaction status reached 501, please implement the appropriate logic to handle potential rollbacks after the 902 status.
Show object
Show object
Coin code
Chain code
Abbreviation (reference only, subject to change)
Full name (reference only, subject to change)
Decimal precision
Whether deposit is supported
Whether withdraw is supported
Number of confirmations required (may fluctuate)
Show object
Show object
Show object
Show object
The coin symbol
Chain code
Coin ticker symbol (not unique, changeable, for reference only )
Full name of coin (not unique, changeable, for reference only )
Coin balance decimal places
Deposit accessibility
Withdraw accessibility
Confirming threshold of the coin
Gas Price
Gas limit
Gas fees (e.g. one bitcoin is divisible to eight decimal places, and 100000000 represents 1 BTC)
transaction fees per byte, which is specified when constructing the transaction; applicable to UTXO model
limit of fee amount, which is specified when constructing the transaction; applicable to UTXO model
List of ‘from addresses’
From address
To address
Memo for specified coins(XRP)
Transaction hash
UTXO transaction index
nonce value of a transaction on Ethereum
Number of block confirmations
transaction ID of a transaction replaced via RBF
only use in non-web3 wallet:
only use in web3 wallet:
Transaction Type | Code |
---|---|
TYPE_MPC_WEB | 100 |
TYPE_MPC_API | 102 |
TYPE_RBF_API_SPEEDUP | 103 |
TYPE_RBF_WEB_SPEEDUP | 104 |
TYPE_RBF_API_DROP | 105 |
TYPE_RBF_WEB_DROP | 106 |
TYPE_MPC_TRANSACTION_FROM_EXTERNAL | 107 |
TYPE_MPC_RESEND_WEB | 108 |
TYPE_MPC_BABYLON_STAKE | 500 |
TYPE_MPC_BABYLON_STAKE_RBF | 501 |
TYPE_FROM_DEPOSIT | 1000 |
Transaction Type | Code |
---|---|
TYPE_MPC_WEB3_WEB | 300 |
TYPE_MPC_WEB3_MMI_TX | 301 |
TYPE_MPC_WEB3_API_TRANSACTION | 303 |
TYPE_MPC_WEB3_TRANSACTION_FROM_EXTERNAL | 307 |
TYPE_MPC_WEB3_RBF_API_SPEEDUP | 308 |
TYPE_MPC_WEB3_RBF_WEB_SPEEDUP | 309 |
TYPE_MPC_WEB3_RBF_API_DROP | 310 |
TYPE_MPC_WEB3_RBF_WEB_DROP | 311 |
TYPE_FROM_DEPOSIT | 1000 |
action type; it will be empty if the action is making a deposit (TRANSFER: 100, CONTRACT_CALL: 200)
Extra parameters specified when constructing the transaction
Creation time of the transaction
Last time the transaction is updated
Reasons for rejection
to_address details specified when constructing the transaction
Approval flow
Signature
The remark to withdraw
Request ID of the corresponding gas station refueling transaction
Whether is gas station refueling transaction, applicable to transactions with transaction_type 1000
Copy
request(
"GET",
"/v1/custody/mpc/transactions_by_tx_hash/",
{
"tx_hash": "0x224cd23f20a8dfbbe5418871f6a32ddee4463b31e77b5090e7efff1bd8bb6b74",
"transaction_type": 303
},
api_key, api_secret, host
)
Copy
{
"success": true,
"result": {
"total": 28,
"transactions": [
{
"cobo_id": "20221222170157000336673000008161",
"request_id": "web_send_by_user_915_1671699717647",
"status": 101,
"coin_detail": {
"coin": "GETH",
"display_code": "GETH",
"description": "Ethereum Goerli Testnet",
"decimal": 18,
"can_deposit": True,
"can_withdraw": True,
"confirming_threshold": 32
},
"amount_detail": {
"amount": "9000000000000000",
"abs_amount": "0.009"
},
"fee_detail": {
"fee_coin_detail": {
"coin": "GETH",
"display_code": "GETH",
"description": "Ethereum Goerli Testnet",
"decimal": 18,
"can_deposit": True,
"can_withdraw": True,
"confirming_threshold": 32
},
"gas_price": 300000000,
"gas_limit": 21000,
"fee_used": 0
},
"source_addresses": "",
"from_address": "0x3ede1e59a3f3a66de4260df7ba3029b515337e5c",
"to_address": "0x9414933Ff7777bb28cA22D15c178596A6e58d957",
"tx_hash": "",
"vout_n": 0,
"nonce": null,
"confirmed_number": 0,
"replace_cobo_id": "",
"transaction_type": 303,
"operation": 100,
"block_detail": {
"block_hash": "",
"block_height": 0,
"block_time": 0
},
"tx_detail": {
"tx_hash": ""
},
"extra_parameters": "",
"created_time": 1671699717956,
"updated_time": 1671699717956,
"failed_reason": null,
"max_priority_fee": null,
"max_fee": null,
"approval_process": {"spender_result": 1, "spender_review_threshold": 1, "spender_status": [{"spender_person": "Cobo_Test_spender", "status": "approve"}], "spender_complete_time": 1681906749496, "approver_result": 1, "approver_review_threshold": 1, "approver_status": [{"approve_person": "Cobo_Test_approver", "status": "approve"}], "approver_complete_time": 1681906758619},
"remark": "",
"memo": "",
"gas_station_child_id": ""
}
]
}
}
Feel free to share your feedback to improve our documentation!