Published 15 February 2019

WalletDataGetResult WalletDataGet(1: Address address)

Description

Description

This command returns the data to the address of the wallet or smart contract in the form of structure: its identifier, balance, identifier of the last transaction.

Parameters

Parameters

// Wallet or smart contract address

typedef binary Address

Return

Return

struct WalletDataGetResult

{

   1: general.APIResponse status

   2: WalletData walletData

}

Description of the returned structures and typedefs

Description of the returned structures and typedefs

struct APIResponse

{

// 0 for success, 1 for failure, 2 for not being implemented (currently unused)

   1: i8 code

// Explanation

   2: string message

}

 

struct WalletData

{

   1: WalletId walletId

   2: Amount balance

   3: TransactionInnerId lastTransactionId

}

 

typedef i32 WalletId

 

struct Amount

{

 1: required i32 integral = 0;

 2: required i64 fraction = 0;

}

 

typedef i64 TransactionInnerId

Votes 0, average rating 0

Contents