Package org.stellar.sdk.xdr
Class SCAddress
java.lang.Object
org.stellar.sdk.xdr.SCAddress
- All Implemented Interfaces:
XdrElement
SCAddress's original definition in the XDR file is:
union SCAddress switch (SCAddressType type)
{
case SC_ADDRESS_TYPE_ACCOUNT:
AccountID accountId;
case SC_ADDRESS_TYPE_CONTRACT:
ContractID contractId;
case SC_ADDRESS_TYPE_MUXED_ACCOUNT:
MuxedEd25519Account muxedAccount;
case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE:
ClaimableBalanceID claimableBalanceId;
case SC_ADDRESS_TYPE_LIQUIDITY_POOL:
PoolID liquidityPoolId;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSCAddress(SCAddressType discriminant, AccountID accountId, ContractID contractId, MuxedEd25519Account muxedAccount, ClaimableBalanceID claimableBalanceId, PoolID liquidityPoolId) -
Method Summary
Modifier and TypeMethodDescriptionstatic SCAddress.SCAddressBuilderbuilder()static SCAddressdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SCAddressfromXdrBase64(String xdr) static SCAddressfromXdrByteArray(byte[] xdr) inthashCode()voidsetAccountId(AccountID accountId) voidsetClaimableBalanceId(ClaimableBalanceID claimableBalanceId) voidsetContractId(ContractID contractId) voidsetDiscriminant(SCAddressType discriminant) voidsetLiquidityPoolId(PoolID liquidityPoolId) voidsetMuxedAccount(MuxedEd25519Account muxedAccount) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCAddress
public SCAddress() -
SCAddress
public SCAddress(SCAddressType discriminant, AccountID accountId, ContractID contractId, MuxedEd25519Account muxedAccount, ClaimableBalanceID claimableBalanceId, PoolID liquidityPoolId)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAccountId
-
getContractId
-
getMuxedAccount
-
getClaimableBalanceId
-
getLiquidityPoolId
-
setDiscriminant
-
setAccountId
-
setContractId
-
setMuxedAccount
-
setClaimableBalanceId
-
setLiquidityPoolId
-
equals
-
hashCode
public int hashCode() -
toString
-