Get gas tracker of one chain
Parameters
chainstringRequired
chain
$ curl https://api.mochi.pod.town/api/v1/defi/gas-tracker/{chain} \
-XGET \
-H "Content-Type: application/json"{
"data": {
"chain": "string",
"est_fast_time": "string",
"est_propose_time": "string",
"est_safe_time": "string",
"fast_gas_price": "string",
"propose_gas_price": "string",
"safe_gas_price": "string"
}
}Deposit token from external wallet to mochi wallet
Parameters
authorizationstringRequired
Basic or Bearer {token}
bodyobjectRequired
Request body of deposit
$ curl https://api.mochi-pay.console.so/api/v1/mochi-wallet/deposit \
-XPOST \
-H "Content-Type: application/json"{
"chain_id": "string",
"contract": {
"address": "string",
"chain": {
"chain_id": "string",
"explorer": "string",
"icon": "string",
"id": "string",
"is_evm": "boolean",
"name": "string",
"rpc": "string",
"symbol": "string"
},
"chain_id": "string",
"created_at": "string",
"id": "string",
"last_sweep_at": "string"
},
"contract_id": "string",
"created_at": "string",
"expired_at": "string",
"platform": "string",
"platform_user_id": "string",
"profile_id": "string",
"token": {
"address": "string",
"chain": {
"chain_id": "string",
"explorer": "string",
"icon": "string",
"id": "string",
"is_evm": "boolean",
"name": "string",
"rpc": "string",
"symbol": "string"
},
"chain_id": "string",
"coin_gecko_id": "string",
"decimal": "integer",
"icon": "string",
"id": "string",
"name": "string",
"native": "boolean",
"price": "number",
"symbol": "string"
},
"token_id": "string"
}Get recent withdraw transactions by profile
Parameters
authorizationstringRequired
Basic or Bearer {token}
bodyobjectRequired
Request body of withdraw
$ curl https://api.mochi-pay.console.so/api/v1/mochi-wallet/withdraw \
-XGET \
-H "Content-Type: application/json"{}Withdraw token from mochi wallet to external wallet
Parameters
authorizationstringRequired
Basic or Bearer {token}
bodyobjectRequired
Request body of withdraw
$ curl https://api.mochi-pay.console.so/api/v1/mochi-wallet/withdraw \
-XPOST \
-H "Content-Type: application/json"{
"message": "string"
}Transfer token from one wallet to another
Parameters
authorizationstringRequired
Basic or Bearer {token}
bodyobjectRequired
Request body of transfer
$ curl https://api.mochi-pay.console.so/api/v1/transfer \
-XPOST \
-H "Content-Type: application/json"{
"message": "string"
}Get a profile by its tw username
Parameters
usernamestringRequired
tw username
$ curl https://api.mochi-profile.console.so/api/v1/profiles/get-by-twitter/{username} \
-XGET \
-H "Content-Type: application/json"{
"associated_accounts": {
"created_at": "string",
"id": "string",
"platform": "string",
"platform_identifier": "string",
"pnl": "string",
"profile_id": "string",
"total_amount": "string",
"updated_at": "string"
},
"avatar": "string",
"created_at": "string",
"id": "string",
"pnl": "string",
"profile_name": "string",
"updated_at": "string"
}Get a profile by its ID, support /me
Parameters
authorizationstring
access_token
idstringRequired
ID
$ curl https://api.mochi-profile.console.so/api/v1/profiles/{id} \
-XGET \
-H "Content-Type: application/json"{
"associated_accounts": {
"created_at": "string",
"id": "string",
"platform": "string",
"platform_identifier": "string",
"pnl": "string",
"profile_id": "string",
"total_amount": "string",
"updated_at": "string"
},
"avatar": "string",
"created_at": "string",
"id": "string",
"pnl": "string",
"profile_name": "string",
"updated_at": "string"
}