Refund

Provide information on the refund's agent

get
Path parameters
accountstringRequired

Wallet address of the account's owner

Example: 0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766
Responses
200Success
application/json
get
GET /v1/agent/refund/{account} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "code": 0,
  "data": {
    "account": "0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766",
    "agent": "0x3FE8D00143bd0eAd2397D48ba0E31E5E1268dBfb"
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}

Register information on the refund's agent

post
Body
accountstringRequired

Wallet address of the account's owner

Example: 0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766
agentstringRequired

Wallet address of the agent

Example: 0x3FE8D00143bd0eAd2397D48ba0E31E5E1268dBfb
signaturestringRequired

Signature of account's owner or agent

Example: 0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b
Responses
200Success
application/json
post
POST /v1/agent/refund HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 256

{
  "account": "0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766",
  "agent": "0x3FE8D00143bd0eAd2397D48ba0E31E5E1268dBfb",
  "signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
200Success
{
  "code": 0,
  "data": {
    "account": "0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766",
    "agent": "0x3FE8D00143bd0eAd2397D48ba0E31E5E1268dBfb",
    "txHash": "0xe5502185d39057bd82e6dde675821b87313570df77d3e23d8e5712bd5f3fa6b6"
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}