GetAccountFunds - syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • schmoopies
    Junior Member
    • Sep 2013
    • 4

    #1

    GetAccountFunds - syntax

    Hey everyone,

    Sorry, simple question - I have built some very complex code BUT it's all through luck and trial and error ... not a programmer ... Can someone please tell me what's wrong with this request string below:

    "{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/getAccountFunds", "params": {"wallet":["UK"]}, "id": 1}"

    How do I format the syntax to correctly include the "wallet" in the call?

    Thanks in advance
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Your "method" points to the wrong endpoint for accounts operations.

    The correct syntax is:

    {"jsonrpc": "2.0", "method": "AccountAPING/v1.0/getAccountFunds", "params": {"wallet":"UK"}, "id": 1}

    If you are requesting the Australian funds, then the call is:

    {"jsonrpc": "2.0", "method": "AccountAPING/v1.0/getAccountFunds", "params": {"wallet":"AUSTRALIAN"}, "id": 1}

    Comment

    • schmoopies
      Junior Member
      • Sep 2013
      • 4

      #3
      Awesome - thanks so much ....

      Comment

      Working...
      X