Agent API

These functions are intended to be invoked from within the agent.

Creating a Keypair for your Agent

Generate a new keypair for a specified blockchain

def gen_keypair(self, blockchain: str) -> Tuple[str, str]:
    """
    Args:
        blockchain (str): The blockchain for which to generate the keypair.

    Returns:
        Tuple[str, str]: The public key and private key.
    """

Authorize a keypair for blockchain transactions.

def authorize_keypair(self, agent_id: str, blockchain: str, permissions: dict) -> Card:
    """
    Args:
        agent_id (str): The ID of the agent.
        blockchain (str): The blockchain to authorize.
        permissions (dict): The permissions and limits for the keypair.

    Returns:
        Card: The authorized keypair object.
    """

Purchases

Retrieve cards authorized for a specific use case.

Describe an expense for a card

Screen a vendor to assess the likelihood of fraud

Report an issue with a purchase.

Initiate a buyer dispute for a transaction

Last updated