gateio / gateapi-java

69 stars 31 forks source link

Error: only used addresses or verified addresses are allowed for api withdrawal #14

Open maziarEs opened 1 year ago

maziarEs commented 1 year ago

Hi I'm withdrawal api with sample code

defaultClient.setBasePath("https://api.gateio.ws/api/v4");

    defaultClient.setApiKeySecret("******", "######.....");
  WithdrawalApi apiInstance = new WithdrawalApi(defaultClient);
    LedgerRecord ledgerRecord = new LedgerRecord(); // LedgerRecord |

    ledgerRecord.setAddress("0x######################");
    ledgerRecord.setCurrency("MATIC");
    ledgerRecord.setAmount("2.1");
    ledgerRecord.setChain("MATIC");
   ledgerRecord.setMemo("");

try { LedgerRecord result = apiInstance.withdraw(ledgerRecord); System.out.println(result); } .........

result is:label: INVALID_PARAM_VALUE, message: Error: only used addresses or verified addresses are allowed for api withdrawal

what can i do?

revilwang commented 1 year ago

If this is a new address, wait for 24h before using it in API

maziarEs commented 1 year ago

Thanx This deposit address is from valid exchange. After 24h i can use this address or it may not be verified ?

revilwang commented 1 year ago

You need to do at least one withdrawal using this address on web. Then use it with API after 24h

maziarEs commented 1 year ago

I'm not allowed withdraw through new address using API? I want to using new address with API and without web

GitHub-xlx commented 3 months ago

Has this problem been confirmed?Can I not use api to withdraw my new address?