create |
POST |
userId: str, |
|
|
chainType: str |
wallets: [ |
|
|
|
chainType: str, |
|
|
|
|
balance: float |
|
|
|
|
] |
Create new wallet. |
|
|
|
buy |
GET |
userId: str, chainType: str |
appId: str, |
|
address: str |
Returns the necessary parameters for using Coinbase Onramp from the frontend. |
|
|
|
list |
GET |
userId: str |
wallets: [ |
|
address: str, |
|
|
|
|
chainType: str, |
|
|
|
|
balance: float |
|
|
|
|
] |
Returns the list of user’s wallets. |
|
|
|
prompt |
POST |
userId: str, |
|
|
prompt: str |
amount: float, |
|
|
|
chainType: str, |
|
|
|
|
targets: list[ |
|
|
|
|
userId: str, |
|
|
|
|
username: str, |
|
|
|
|
wallets: list[ |
|
|
|
|
chainType: str, |
|
|
|
|
address: str |
|
|
|
|
], |
|
|
|
|
isRisky: bool, |
|
|
|
|
riskDetail: str |
null |
|
|
|
] |
Parses the user’s input to extract transaction details and returns the chain type, transaction amount, and potential recipients. Also includes a risk assessment for each recipient. |
|
|
|
send |
POST |
userId: str, |
|
|
swapFrom: str, |
|
|
|
|
amount: float, |
|
|
|
|
swapTo: str, |
|
|
|
|
address: str |
isAccepted: str, |
|
|
|
reason: str |
null |
Executes the transaction and returns whether it was accepted, along with the reason if not accepted. |
|
|
transaction |
GET |
userId: str |
transactions: list[ |
|
id: str, |
|
|
|
|
status: str |
|
|
|
|
] |
Retrieves the status of the user's transactions. |
|
|
|