Get gas tracker of one chain

Get gas tracker of one chain

Parameters

chain
string
Required

chain

gethttps://api.mochi.pod.town/api/v1/defi/gas-tracker/{chain}
$ curl https://api.mochi.pod.town/api/v1/defi/gas-tracker/{chain} \
  -XGET \
  -H "Content-Type: application/json"
RESPONSE
{
  "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

Deposit token from external wallet to mochi wallet

Parameters

authorization
string
Required

Basic or Bearer {token}

body
object
Required

Request body of deposit

posthttps://api.mochi-pay.console.so/api/v1/mochi-wallet/deposit
$ curl https://api.mochi-pay.console.so/api/v1/mochi-wallet/deposit \
  -XPOST \
  -H "Content-Type: application/json"
RESPONSE
{
  "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

Get recent withdraw transactions by profile

Parameters

authorization
string
Required

Basic or Bearer {token}

body
object
Required

Request body of withdraw

gethttps://api.mochi-pay.console.so/api/v1/mochi-wallet/withdraw
$ curl https://api.mochi-pay.console.so/api/v1/mochi-wallet/withdraw \
  -XGET \
  -H "Content-Type: application/json"
RESPONSE
{}

Withdraw token from mochi wallet to external wallet

Withdraw token from mochi wallet to external wallet

Parameters

authorization
string
Required

Basic or Bearer {token}

body
object
Required

Request body of withdraw

posthttps://api.mochi-pay.console.so/api/v1/mochi-wallet/withdraw
$ curl https://api.mochi-pay.console.so/api/v1/mochi-wallet/withdraw \
  -XPOST \
  -H "Content-Type: application/json"
RESPONSE
{
  "message": "string"
}

Transfer token from one wallet to another

Transfer token from one wallet to another

Parameters

authorization
string
Required

Basic or Bearer {token}

body
object
Required

Request body of transfer

posthttps://api.mochi-pay.console.so/api/v1/transfer
$ curl https://api.mochi-pay.console.so/api/v1/transfer \
  -XPOST \
  -H "Content-Type: application/json"
RESPONSE
{
  "message": "string"
}

Get a profile by tw username

Get a profile by its tw username

Parameters

username
string
Required

tw username

gethttps://api.mochi-profile.console.so/api/v1/profiles/get-by-twitter/{username}
$ curl https://api.mochi-profile.console.so/api/v1/profiles/get-by-twitter/{username} \
  -XGET \
  -H "Content-Type: application/json"
RESPONSE
{
  "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 ID, using /@me if have access_token

Get a profile by its ID, support /me

Parameters

authorization
string

access_token

id
string
Required

ID

gethttps://api.mochi-profile.console.so/api/v1/profiles/{id}
$ curl https://api.mochi-profile.console.so/api/v1/profiles/{id} \
  -XGET \
  -H "Content-Type: application/json"
RESPONSE
{
  "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"
}