klay_sendTransaction
method. They can involve a simple sending of KLAY, may result in sending tokens, creating a new smart contract, or changing state on the blockchain in any number of ways. They are always initiated by a signature from an external account, or a simple key pair.klaytn.sendAsync
method to directly invoke klay_sendTransaction
. This method wraps RPC API and sends it to browser's Caver instance.window.klaytn
, or just klaytn
, when creating Caver instance. After that, you can use that instance when interacting with Klaytn network. Below is an example of sending 1 KLAY. Install Caver via npm install caver-js
. You can choose whatever version of Caver you want to use.