public abstract static class SubmittableExtrinsic.SubmittableExtrinsicImpl extends Extrinsic implements SubmittableExtrinsic
Extrinsic.ExtrinsicValue
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
SubmittableExtrinsic.StatusCb, SubmittableExtrinsic.SubmittableExtrinsicImpl, SubmittableExtrinsic.SubmittableResult
Constructor and Description |
---|
SubmittableExtrinsicImpl(Types.IExtrinsic _extrinsic) |
Modifier and Type | Method and Description |
---|---|
Extrinsic |
addSignature(java.lang.Object signer,
byte[] signature,
java.lang.Object nonce,
byte[] era)
Add an ExtrinsicSignature to the extrinsic (already generated)
|
boolean |
eq(java.lang.Object other)
Compares the value of the input to see if there is a match
|
java.util.List<Codec> |
getArgs()
The arguments passed to for the call, exposes args so it is compatible with
Method |
Types.ConstructorDef |
getArgsDef()
Thge argument defintions, compatible with
Method |
byte[] |
getCallIndex()
The actual
[sectionIndex, methodIndex] as used in the Method |
byte[] |
getData()
The actual data for the Method
|
int |
getEncodedLength()
The length of the value when encoded as a Uint8Array
|
U8a |
getHash()
Convernience function, encodes the extrinsic and returns the actual hash
|
Modules.FunctionMetadata |
getMeta()
The FunctionMetadata that describes the extrinsic
|
Method |
getMethod()
The
Method this extrinsic wraps |
ExtrinsicSignature |
getSignature()
The ExtrinsicSignature
|
boolean |
hasOrigin()
|
boolean |
isEmpty()
Checks if the value is an empty value
|
boolean |
isSigned()
true id the extrinsic is signed |
java.lang.String |
toHex()
Returns a hex string representation of the value
|
java.lang.Object |
toJson()
Converts the Object to JSON, typically used for RPC transfers
|
byte[] |
toU8a() |
byte[] |
toU8a(boolean isBare)
Encodes the value as a Uint8Array as per the parity-codec specifications
|
builder, getField, toArray, toString, with
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
finalize, getClass, notify, notifyAll, wait, wait, wait
createSubmittableExtrinsic, send, send, sendObservable, sign, signAndSend, signAndSendCb, statusObservable, subscribeObservable, updateSigner
getConstructorCodec
public SubmittableExtrinsicImpl(Types.IExtrinsic _extrinsic)
public java.util.List<Codec> getArgs()
Extrinsic
The arguments passed to for the call, exposes args so it is compatible with Method
getArgs
in interface Types.IMethod
getArgs
in class Extrinsic
public Types.ConstructorDef getArgsDef()
Extrinsic
Thge argument defintions, compatible with Method
getArgsDef
in interface Types.IMethod
getArgsDef
in class Extrinsic
public byte[] getCallIndex()
Extrinsic
The actual [sectionIndex, methodIndex]
as used in the Method
getCallIndex
in interface Types.IMethod
getCallIndex
in class Extrinsic
public byte[] getData()
Extrinsic
The actual data for the Method
getData
in interface Types.IMethod
getData
in class Extrinsic
public boolean hasOrigin()
Extrinsic
true
is method has Origin
argument (compatibility with Method
)
hasOrigin
in interface Types.IMethod
hasOrigin
in class Extrinsic
public Modules.FunctionMetadata getMeta()
Extrinsic
The FunctionMetadata that describes the extrinsic
getMeta
in interface Types.IMethod
getMeta
in class Extrinsic
public U8a getHash()
Extrinsic
Convernience function, encodes the extrinsic and returns the actual hash
getHash
in interface Types.IExtrinsic
getHash
in class Extrinsic
public boolean isSigned()
Extrinsic
true
id the extrinsic is signed
isSigned
in interface Types.IExtrinsic
isSigned
in class Extrinsic
public Method getMethod()
Extrinsic
The Method
this extrinsic wraps
getMethod
in interface Types.IExtrinsic
getMethod
in class Extrinsic
public ExtrinsicSignature getSignature()
Extrinsic
The ExtrinsicSignature
getSignature
in interface Types.IExtrinsic
getSignature
in class Extrinsic
public Extrinsic addSignature(java.lang.Object signer, byte[] signature, java.lang.Object nonce, byte[] era)
Extrinsic
Add an ExtrinsicSignature to the extrinsic (already generated)
addSignature
in interface Types.IExtrinsic
addSignature
in class Extrinsic
public int getEncodedLength()
Extrinsic
The length of the value when encoded as a Uint8Array
getEncodedLength
in interface Codec
getEncodedLength
in class Extrinsic
public boolean isEmpty()
Struct
Checks if the value is an empty value
public boolean eq(java.lang.Object other)
Struct
Compares the value of the input to see if there is a match
public java.lang.String toHex()
Extrinsic
Returns a hex string representation of the value
public java.lang.Object toJson()
Extrinsic
Converts the Object to JSON, typically used for RPC transfers
public byte[] toU8a(boolean isBare)
Struct
Encodes the value as a Uint8Array as per the parity-codec specifications