Package org.polkadot.api
Class SubmittableExtrinsic.SubmittableExtrinsicImpl
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,Codec>
-
- org.polkadot.types.codec.Struct
-
- org.polkadot.types.type.Extrinsic
-
- org.polkadot.api.SubmittableExtrinsic.SubmittableExtrinsicImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,SubmittableExtrinsic,Codec,Types.IExtrinsic,Types.IMethod
- Enclosing interface:
- SubmittableExtrinsic<ApplyResult>
public abstract static class SubmittableExtrinsic.SubmittableExtrinsicImpl extends Extrinsic implements SubmittableExtrinsic
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.polkadot.types.type.Extrinsic
Extrinsic.ExtrinsicValue
-
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.polkadot.api.SubmittableExtrinsic
SubmittableExtrinsic.StatusCb, SubmittableExtrinsic.SubmittableExtrinsicImpl, SubmittableExtrinsic.SubmittableResult
-
-
Constructor Summary
Constructors Constructor Description SubmittableExtrinsicImpl(Types.IExtrinsic _extrinsic)
-
Method Summary
Modifier and Type Method Description ExtrinsicaddSignature(java.lang.Object signer, byte[] signature, java.lang.Object nonce, byte[] era)Add an ExtrinsicSignature to the extrinsic (already generated)booleaneq(java.lang.Object other)Compares the value of the input to see if there is a matchjava.util.List<Codec>getArgs()The arguments passed to for the call, exposes args so it is compatible withMethodTypes.ConstructorDefgetArgsDef()Thge argument defintions, compatible withMethodbyte[]getCallIndex()The actual `[sectionIndex, methodIndex]` as used in the Methodbyte[]getData()The actual data for the MethodintgetEncodedLength()The length of the value when encoded as a Uint8ArrayU8agetHash()Convernience function, encodes the extrinsic and returns the actual hashModules.FunctionMetadatagetMeta()The FunctionMetadata that describes the extrinsicMethodgetMethod()TheMethodthis extrinsic wrapsExtrinsicSignaturegetSignature()The ExtrinsicSignaturebooleanhasOrigin()`true` is method has `Origin` argument (compatibility withMethod)booleanisEmpty()Checks if the value is an empty valuebooleanisSigned()`true` id the extrinsic is signedjava.lang.StringtoHex()Returns a hex string representation of the valuejava.lang.ObjecttoJson()Converts the Object to JSON, typically used for RPC transfersbyte[]toU8a()byte[]toU8a(boolean isBare)Encodes the value as a Uint8Array as per the parity-codec specifications-
Methods inherited from class org.polkadot.types.codec.Struct
builder, getField, toArray, toString, with
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from interface org.polkadot.api.SubmittableExtrinsic
send, send, sign, signAndSend, signAndSendCb
-
-
-
-
Constructor Detail
-
SubmittableExtrinsicImpl
public SubmittableExtrinsicImpl(Types.IExtrinsic _extrinsic)
-
-
Method Detail
-
getArgs
public java.util.List<Codec> getArgs()
Description copied from class:ExtrinsicThe arguments passed to for the call, exposes args so it is compatible withMethod- Specified by:
getArgsin interfaceTypes.IMethod- Overrides:
getArgsin classExtrinsic
-
getArgsDef
public Types.ConstructorDef getArgsDef()
Description copied from class:ExtrinsicThge argument defintions, compatible withMethod- Specified by:
getArgsDefin interfaceTypes.IMethod- Overrides:
getArgsDefin classExtrinsic
-
getCallIndex
public byte[] getCallIndex()
Description copied from class:ExtrinsicThe actual `[sectionIndex, methodIndex]` as used in the Method- Specified by:
getCallIndexin interfaceTypes.IMethod- Overrides:
getCallIndexin classExtrinsic
-
getData
public byte[] getData()
Description copied from class:ExtrinsicThe actual data for the Method- Specified by:
getDatain interfaceTypes.IMethod- Overrides:
getDatain classExtrinsic
-
hasOrigin
public boolean hasOrigin()
Description copied from class:Extrinsic`true` is method has `Origin` argument (compatibility withMethod)- Specified by:
hasOriginin interfaceTypes.IMethod- Overrides:
hasOriginin classExtrinsic
-
getMeta
public Modules.FunctionMetadata getMeta()
Description copied from class:ExtrinsicThe FunctionMetadata that describes the extrinsic- Specified by:
getMetain interfaceTypes.IMethod- Overrides:
getMetain classExtrinsic
-
getHash
public U8a getHash()
Description copied from class:ExtrinsicConvernience function, encodes the extrinsic and returns the actual hash- Specified by:
getHashin interfaceTypes.IExtrinsic- Overrides:
getHashin classExtrinsic
-
isSigned
public boolean isSigned()
Description copied from class:Extrinsic`true` id the extrinsic is signed- Specified by:
isSignedin interfaceTypes.IExtrinsic- Overrides:
isSignedin classExtrinsic
-
getMethod
public Method getMethod()
Description copied from class:ExtrinsicTheMethodthis extrinsic wraps- Specified by:
getMethodin interfaceTypes.IExtrinsic- Overrides:
getMethodin classExtrinsic
-
getSignature
public ExtrinsicSignature getSignature()
Description copied from class:ExtrinsicThe ExtrinsicSignature- Specified by:
getSignaturein interfaceTypes.IExtrinsic- Overrides:
getSignaturein classExtrinsic
-
addSignature
public Extrinsic addSignature(java.lang.Object signer, byte[] signature, java.lang.Object nonce, byte[] era)
Description copied from class:ExtrinsicAdd an ExtrinsicSignature to the extrinsic (already generated)- Specified by:
addSignaturein interfaceTypes.IExtrinsic- Overrides:
addSignaturein classExtrinsic
-
getEncodedLength
public int getEncodedLength()
Description copied from class:ExtrinsicThe length of the value when encoded as a Uint8Array- Specified by:
getEncodedLengthin interfaceCodec- Overrides:
getEncodedLengthin classExtrinsic
-
isEmpty
public boolean isEmpty()
Description copied from class:StructChecks if the value is an empty value
-
eq
public boolean eq(java.lang.Object other)
Description copied from class:StructCompares the value of the input to see if there is a match
-
toHex
public java.lang.String toHex()
Description copied from class:ExtrinsicReturns a hex string representation of the value
-
toJson
public java.lang.Object toJson()
Description copied from class:ExtrinsicConverts the Object to JSON, typically used for RPC transfers
-
toU8a
public byte[] toU8a(boolean isBare)
Description copied from class:StructEncodes the value as a Uint8Array as per the parity-codec specifications
-
-