Class Call
-
- All Implemented Interfaces:
@Serializable() public final class Call
-
-
Field Summary
Fields Modifier and Type Field Description private final Felt
contractAddress
private final Felt
entrypoint
private final List<Felt>
calldata
-
Method Summary
Modifier and Type Method Description final Felt
getContractAddress()
final Felt
getEntrypoint()
final List<Felt>
getCalldata()
final static Call
fromCallArguments(Felt contractAddress, Felt entrypoint, List<ConvertibleToCalldata> arguments)
Construct a Call object using any objects conforming to ConvertibleToCalldata as calldata instead of plain Felts. final static Call
fromCallArguments(Felt contractAddress, String entrypoint, List<ConvertibleToCalldata> arguments)
Construct a Call object using any objects conforming to ConvertibleToCalldata as calldata instead of plain Felts, using selector name. -
-
Method Detail
-
getContractAddress
final Felt getContractAddress()
-
getEntrypoint
final Felt getEntrypoint()
-
getCalldata
final List<Felt> getCalldata()
-
fromCallArguments
final static Call fromCallArguments(Felt contractAddress, Felt entrypoint, List<ConvertibleToCalldata> arguments)
Construct a Call object using any objects conforming to ConvertibleToCalldata as calldata instead of plain Felts.
For example:
Call.fromCallArguments( Felt.fromHex("0x1234"), Felt.fromHex("0x111"), Collections.listOf(Uint256.fromHex("0x1394924"), Felt.ZERO) );
- Parameters:
contractAddress
- an address to be calledentrypoint
- a selector of the entrypoint to be calledarguments
- CallArguments to be used in a call
-
fromCallArguments
final static Call fromCallArguments(Felt contractAddress, String entrypoint, List<ConvertibleToCalldata> arguments)
Construct a Call object using any objects conforming to ConvertibleToCalldata as calldata instead of plain Felts, using selector name.
For example:
Call.fromCallArguments( Felt.fromHex("0x1234"), "mySelector", Collections.listOf(Uint256.fromHex("0x1394924"), Felt.ZERO) ); @param contractAddress an address to be called @param entrypoint a name of the entrypoint to be called @param arguments CallArguments to be used in a call @return a Call object
-
-
-
-