Skip to main content
GET
/
transactions
/
approval
/
details
import cobo_waas2
from cobo_waas2.models.approval_detail import ApprovalDetail
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.TransactionsApi(api_client)
    transaction_ids = (
        "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3"
    )
    cobo_ids = "20231213122855000000000000000000,20231213122955000000000000000000"
    request_ids = (
        "web_send_by_user_327_1610444045047,web_send_by_user_327_1610444045048"
    )

    try:
        # List approval details
        api_response = api_instance.list_approval_details(
            transaction_ids=transaction_ids, cobo_ids=cobo_ids, request_ids=request_ids
        )
        print("The response of TransactionsApi->list_approval_details:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TransactionsApi->list_approval_details: %s\n" % e)

[
  {
    "transaction_id": "aff0e1cb-15b2-4e1f-9b9d-a9133715986f",
    "cobo_id": "20231213122855000000000000000000",
    "request_id": "web_send_by_user_327_1610444045047",
    "address_owner": {
      "result": "Rejected",
      "review_threshold": 2,
      "initiator": "test@gmail.com",
      "is_upgraded": false,
      "complete_time": "2023-12-13T04:28:55.000Z",
      "user_details": [
        {
          "name": "John Doe",
          "email": "example@gmail.com",
          "pubkey": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
          "signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
          "statement_uuid": "aff0e1cb-15b2-4e1f-9b9d-a9133715986f",
          "result": "Approved",
          "approval_result_code": 1,
          "created_time": 1610444045,
          "template_version": "1.0.0",
          "header_title": "Transaction Approval",
          "is_for_sign": true,
          "show_info": "{'org_name': 'Cobo', 'wallet_name': 'Cobo Wallet', 'environment': 'Prod'}",
          "language": "en",
          "message_version": "1.0.0",
          "message": "Please approve the transaction.",
          "extra_message": "Please review the transaction details carefully."
        }
      ]
    },
    "spender": {
      "result": "Rejected",
      "review_threshold": 2,
      "initiator": "test@gmail.com",
      "is_upgraded": false,
      "complete_time": "2023-12-13T04:28:55.000Z",
      "user_details": [
        {
          "name": "John Doe",
          "email": "example@gmail.com",
          "pubkey": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
          "signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
          "statement_uuid": "aff0e1cb-15b2-4e1f-9b9d-a9133715986f",
          "result": "Approved",
          "approval_result_code": 1,
          "created_time": 1610444045,
          "template_version": "1.0.0",
          "header_title": "Transaction Approval",
          "is_for_sign": true,
          "show_info": "{'org_name': 'Cobo', 'wallet_name': 'Cobo Wallet', 'environment': 'Prod'}",
          "language": "en",
          "message_version": "1.0.0",
          "message": "Please approve the transaction.",
          "extra_message": "Please review the transaction details carefully."
        }
      ]
    },
    "approver": {
      "result": "Rejected",
      "review_threshold": 2,
      "initiator": "test@gmail.com",
      "is_upgraded": false,
      "complete_time": "2023-12-13T04:28:55.000Z",
      "user_details": [
        {
          "name": "John Doe",
          "email": "example@gmail.com",
          "pubkey": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
          "signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
          "statement_uuid": "aff0e1cb-15b2-4e1f-9b9d-a9133715986f",
          "result": "Approved",
          "approval_result_code": 1,
          "created_time": 1610444045,
          "template_version": "1.0.0",
          "header_title": "Transaction Approval",
          "is_for_sign": true,
          "show_info": "{'org_name': 'Cobo', 'wallet_name': 'Cobo Wallet', 'environment': 'Prod'}",
          "language": "en",
          "message_version": "1.0.0",
          "message": "Please approve the transaction.",
          "extra_message": "Please review the transaction details carefully."
        }
      ]
    }
  }
]
import cobo_waas2
from cobo_waas2.models.approval_detail import ApprovalDetail
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.TransactionsApi(api_client)
    transaction_ids = (
        "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3"
    )
    cobo_ids = "20231213122855000000000000000000,20231213122955000000000000000000"
    request_ids = (
        "web_send_by_user_327_1610444045047,web_send_by_user_327_1610444045048"
    )

    try:
        # List approval details
        api_response = api_instance.list_approval_details(
            transaction_ids=transaction_ids, cobo_ids=cobo_ids, request_ids=request_ids
        )
        print("The response of TransactionsApi->list_approval_details:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TransactionsApi->list_approval_details: %s\n" % e)

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Query Parameters

transaction_ids
string

A list of transaction IDs, separated by comma.

cobo_ids
string

A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.

request_ids
string

A list of request IDs, separated by comma.

Response

Details of the transaction approvals.

transaction_id
string<uuid>

Transaction ID.

Example:

"aff0e1cb-15b2-4e1f-9b9d-a9133715986f"

cobo_id
string

Cobo ID used to track a transaction.

Example:

"20231213122855000000000000000000"

request_id
string

Request ID used to track a transaction request.

Example:

"web_send_by_user_327_1610444045047"

address_owner
object

Details of the role in a transaction approval.

spender
object

Details of the role in a transaction approval.

approver
object

Details of the role in a transaction approval.