getRequiredKeys method

Future<RequiredKeys> getRequiredKeys(
  1. Transaction transaction,
  2. List<String> availableKeys
)

Get required key by transaction from AMAX blockchain

Implementation

Future<RequiredKeys> getRequiredKeys(
    Transaction transaction, List<String> availableKeys) async {
  transaction = await _serializeActions(transaction);

  // raw abi to json
//      AbiResp abiResp = await getRawAbi(account);
//    print(abiResp.abi);
  return this._post('/chain/get_required_keys', {
    'transaction': transaction,
    'available_keys': availableKeys
  }).then((requiredKeys) {
    return RequiredKeys.fromJson(requiredKeys);
  });
}