forAccountId static method

XdrSCAddress forAccountId(
  1. String accountId
)

Implementation

static XdrSCAddress forAccountId(String accountId) {
  XdrSCAddress result =
      XdrSCAddress(XdrSCAddressType.SC_ADDRESS_TYPE_ACCOUNT);
  result.accountId =
      XdrAccountID(KeyPair.fromAccountId(accountId).xdrPublicKey);
  return result;
}