getAccounts

Returns the accounts currently connected to the dapp.

Parameters

None.

Returns

Promise<Account[]>

type Account = {
  hash: UInt160;
  address: Address;
  label?: string;
  contract?: {
    script?: Base64Encoded;
    parameters: Parameter[];
    deployed: boolean;
  };
  extra?: any;
};

Errors

This method follows the standard NEP-21 error object shape.

Example

Request

Response

最后更新于