sendTransactionWithPK()
Send a new transaction on the blockchain. This method automatically calculates the signature, nonce, and other parameters.
Method Signature
Type:
Types of transactions:
C_TYPE_COIN: Transaction involving native coins (CIRX) without the use of Hyper Code (Smart Contracts).
C_TYPE_TOKEN: Transaction involving specified tokens without the use of Hyper Code.
C_TYPE_ASSET: Transaction involving a generic digital asset that is not represented by a token.
C_TYPE_CERTIFICATE: Transaction where the payload doesn't require processing and is a generic string.
C_TYPE_REGISTERWALLET: Transaction used to register a new wallet on a specified blockchain.
C_TYPE_HC_DEPLOYMENT: Transaction to deploy a new Hyper Code Program.
C_TYPE_HC_REQUEST: Transaction to call a specified endpoint of a Hyper Program.
C_TYPE_USERDEF: Unspecified type, defined by the user (not available yet).
Parameters
from
String
Wallet address in hex
privateKey
String
Sender's private key in hex
to
String
Receiver's wallet address in hex
payload
Map<String, String>
Payload in map
blockchain
String
Blockchain address in hex
type
String
One of the types listed before
Example
Result
Last updated