Wallet Management
1.1 Create wallet
"Create a wallet"
str: A formatted string containing the wallet's address and private key.A new wallet has been created successfully. Here are the details: - Wallet Address: <example-address> - Private Key: <example-private-key> Please ensure to store the private key securely, as it is essential for accessing your wallet.
from crypto_com_agent_client import Agent
agent = Agent.init(
llm_config={
"provider": "OpenAI",
"model": "gpt-4o-mini",
"temperature": 1,
"provider-api-key": "sk-proj-example-key",
"temperature": "float-controlling-output-randomness",
"transfer-limit": -1, # -1 means no limit (unlimited), 0 disables transfers completely, any positive number (e.g. 5) allows exactly that transfer amount
},
blockchain_config={
"api-key": "your-crypto.com-developer-platform-api-key",
"private-key": "your-private-key",
"sso-wallet-url": "your-sso-wallet-url",
"timeout": "timeout-in-seconds-for-API-calls-default-20s")
},
)
response = agent.interact("Create a wallet")
print(response)1.2 Get Wallet Balance
1.3 Send via SSO Wallet
Last updated
Was this helpful?