Introduction to APIs
MPC Self-Custody
- Integration Guide
- API Interface
- Overview
- Workspace
- Wallet
- Transfer (Withdrawal)
- Receiving (Deposit)
- Auto Sweep
- Web3 Transaction
- NFT
- Babylon
- Tron Resource
- Transaction Callback Notification
- Co-Signer
- Error Code
Full Custody
Custody WAPI
Web3 Transaction
Sync Web3 Transaction Records
Get all Web3 transaction records under a wallet
GET
/
api
/
mpc
/
web3
/
sync_trans_list
Copy
curl -X GET \
--url 'https://openapi.Keysecure.io/
api/mpc/web3/sync_trans_list?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqhxh1vV_AJ4bXn2uYx8TaYcBht-n_ZcBdxIDt975dbOFUiH-oCzIuDi1oLDtb4EylfCvhU5E4ozel_lQ-6cyIG0Dqiiyx0RFFOCJzPSXIoV031pvoa8pTCpkWklh8mRw1rylBgeZtqSxpnJO2_u2RIlXq6Hs8Yly9CmhIXaSrUgPir0h6xVxlf4VC6PFVCkiiTlp0kZ_H_UbKm0nUis3v3U2sflWJ2C449waSrikhuxVrFAQ6PQmrFVCAE6MYXNrFXJQuam2HAIQNSGbFQjspw8b_bXyfyZMGZ3K2oBC4I_v3eETTdPe0pfSNJb-5g37K0tOAr_UFbWK8pkC8yl56fSjn8tcR3yCRWwoi8jxTcUBiswTtvXZtzgG4dyzkaHXjsZjSGiywXSqP76VZWlyOmAx6IDSViLcPLPISdU3ruCI'
Copy
[
{
"id":435,
"request_id":"0000000003",
"sub_wallet_id":1000895,
"txid":"0xbc87e486d28df91fe715436415bab38cc1cf5e4b23fbb8497ff688b823c08ba7",
"symbol":"",
"main_chain_symbol":"HECO",
"amount":"0",
"fee_symbol":"HECO",
"fee":"0.00018",
"real_fee":"0.000107277",
"created_at":1684220373000,
"updated_at":1684222558000,
"address_from":"0xd5c2d98BF2d205039F62ee40c9A7ab1B36125d6d",
"address_to":"",
"confirmations":4,
"input_data":"0xca718c65",
"interactive_contract":"0xe012F3957226894B1a2a44b3ef5070417a069dC2",
"status":2400,
"trans_source":2,
"tx_height":3120013,
"trans_type": 21
},
{
"id":436,
"request_id":"0000000003",
"sub_wallet_id":1000895,
"txid":"0xeab40bf0072c25514bc61fe58e5e36cc082ea7f50ae33f33013dd365beba9438",
"symbol":"",
"main_chain_symbol":"HECO",
"amount":"0",
"fee_symbol":"HECO",
"fee":"0.00018",
"real_fee":"0.000107277",
"created_at":1684220373000,
"updated_at":1684222558000,
"address_from":"0xBDeBecf1fEDc622Cc50dE2F2aD6925D1EE15fCf9",
"address_to":"",
"confirmations":4,
"input_data":"0xca718c65",
"interactive_contract":"0x0AabA82E4ba9c2Fdf80B9F8E1AcE885f092B64F0",
"status":2400,
"trans_source":2,
"tx_height":3120113,
"trans_type": 21
}
]
Request Parameters
Starting ID of Web3 transactions, for example 100, the system will return all transaction information after 100, with a maximum of 100 records.
Response Data Parameters
Web3 transaction ID
Unique identifier for the transaction
Wallet id
Transaction hash
Transaction coin
Native token symbol (unique identifier), e.g.:
ETH
Transaction amount. -1 indicates infinite
Fee coin, e.g.:ETH
Fee, e.g.:0.00123
Actual fee consumed, e.g.:0.00111
Creation timestamp
Modified timestamp
Transaction source address
Transaction destination address
Interactive contract
Confirmations, e.g.:10
Hexadecimal data for contract transaction
Transaction status: 1100 Pending Signature, 1200 Payment Processing, 2000 Payment Complete, 2100 Approval Rejected, 2200 Rejected, 2300 Transaction Discarded, 2400 Payment Failed
Transaction type:
1
app, 2
openapiBlock height at which the transaction is completed
Transaction type:
21
trx operate, 22
trx authorize, 23
trx authorize transfer, 24
trx active accountCopy
curl -X GET \
--url 'https://openapi.Keysecure.io/
api/mpc/web3/sync_trans_list?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqhxh1vV_AJ4bXn2uYx8TaYcBht-n_ZcBdxIDt975dbOFUiH-oCzIuDi1oLDtb4EylfCvhU5E4ozel_lQ-6cyIG0Dqiiyx0RFFOCJzPSXIoV031pvoa8pTCpkWklh8mRw1rylBgeZtqSxpnJO2_u2RIlXq6Hs8Yly9CmhIXaSrUgPir0h6xVxlf4VC6PFVCkiiTlp0kZ_H_UbKm0nUis3v3U2sflWJ2C449waSrikhuxVrFAQ6PQmrFVCAE6MYXNrFXJQuam2HAIQNSGbFQjspw8b_bXyfyZMGZ3K2oBC4I_v3eETTdPe0pfSNJb-5g37K0tOAr_UFbWK8pkC8yl56fSjn8tcR3yCRWwoi8jxTcUBiswTtvXZtzgG4dyzkaHXjsZjSGiywXSqP76VZWlyOmAx6IDSViLcPLPISdU3ruCI'
Copy
[
{
"id":435,
"request_id":"0000000003",
"sub_wallet_id":1000895,
"txid":"0xbc87e486d28df91fe715436415bab38cc1cf5e4b23fbb8497ff688b823c08ba7",
"symbol":"",
"main_chain_symbol":"HECO",
"amount":"0",
"fee_symbol":"HECO",
"fee":"0.00018",
"real_fee":"0.000107277",
"created_at":1684220373000,
"updated_at":1684222558000,
"address_from":"0xd5c2d98BF2d205039F62ee40c9A7ab1B36125d6d",
"address_to":"",
"confirmations":4,
"input_data":"0xca718c65",
"interactive_contract":"0xe012F3957226894B1a2a44b3ef5070417a069dC2",
"status":2400,
"trans_source":2,
"tx_height":3120013,
"trans_type": 21
},
{
"id":436,
"request_id":"0000000003",
"sub_wallet_id":1000895,
"txid":"0xeab40bf0072c25514bc61fe58e5e36cc082ea7f50ae33f33013dd365beba9438",
"symbol":"",
"main_chain_symbol":"HECO",
"amount":"0",
"fee_symbol":"HECO",
"fee":"0.00018",
"real_fee":"0.000107277",
"created_at":1684220373000,
"updated_at":1684222558000,
"address_from":"0xBDeBecf1fEDc622Cc50dE2F2aD6925D1EE15fCf9",
"address_to":"",
"confirmations":4,
"input_data":"0xca718c65",
"interactive_contract":"0x0AabA82E4ba9c2Fdf80B9F8E1AcE885f092B64F0",
"status":2400,
"trans_source":2,
"tx_height":3120113,
"trans_type": 21
}
]
Copy
curl -X GET \
--url 'https://openapi.Keysecure.io/
api/mpc/web3/sync_trans_list?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqhxh1vV_AJ4bXn2uYx8TaYcBht-n_ZcBdxIDt975dbOFUiH-oCzIuDi1oLDtb4EylfCvhU5E4ozel_lQ-6cyIG0Dqiiyx0RFFOCJzPSXIoV031pvoa8pTCpkWklh8mRw1rylBgeZtqSxpnJO2_u2RIlXq6Hs8Yly9CmhIXaSrUgPir0h6xVxlf4VC6PFVCkiiTlp0kZ_H_UbKm0nUis3v3U2sflWJ2C449waSrikhuxVrFAQ6PQmrFVCAE6MYXNrFXJQuam2HAIQNSGbFQjspw8b_bXyfyZMGZ3K2oBC4I_v3eETTdPe0pfSNJb-5g37K0tOAr_UFbWK8pkC8yl56fSjn8tcR3yCRWwoi8jxTcUBiswTtvXZtzgG4dyzkaHXjsZjSGiywXSqP76VZWlyOmAx6IDSViLcPLPISdU3ruCI'
Copy
[
{
"id":435,
"request_id":"0000000003",
"sub_wallet_id":1000895,
"txid":"0xbc87e486d28df91fe715436415bab38cc1cf5e4b23fbb8497ff688b823c08ba7",
"symbol":"",
"main_chain_symbol":"HECO",
"amount":"0",
"fee_symbol":"HECO",
"fee":"0.00018",
"real_fee":"0.000107277",
"created_at":1684220373000,
"updated_at":1684222558000,
"address_from":"0xd5c2d98BF2d205039F62ee40c9A7ab1B36125d6d",
"address_to":"",
"confirmations":4,
"input_data":"0xca718c65",
"interactive_contract":"0xe012F3957226894B1a2a44b3ef5070417a069dC2",
"status":2400,
"trans_source":2,
"tx_height":3120013,
"trans_type": 21
},
{
"id":436,
"request_id":"0000000003",
"sub_wallet_id":1000895,
"txid":"0xeab40bf0072c25514bc61fe58e5e36cc082ea7f50ae33f33013dd365beba9438",
"symbol":"",
"main_chain_symbol":"HECO",
"amount":"0",
"fee_symbol":"HECO",
"fee":"0.00018",
"real_fee":"0.000107277",
"created_at":1684220373000,
"updated_at":1684222558000,
"address_from":"0xBDeBecf1fEDc622Cc50dE2F2aD6925D1EE15fCf9",
"address_to":"",
"confirmations":4,
"input_data":"0xca718c65",
"interactive_contract":"0x0AabA82E4ba9c2Fdf80B9F8E1AcE885f092B64F0",
"status":2400,
"trans_source":2,
"tx_height":3120113,
"trans_type": 21
}
]
Assistant
Responses are generated using AI and may contain mistakes.