public class Caver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ABIWrapper |
abi
The ABIWrapper instance
|
AccountWrapper |
account
The AccountWrapper instance
|
ContractWrapper |
contract
The ContractWrapper instance.
|
org.web3j.protocol.Web3jService |
currentProvider
The network provider to execute JSON-RPC API.
|
static java.lang.String |
DEFAULT_URL |
IPFSWrapper |
ipfs
The IPFSWrapper instance.
|
KCTWrapper |
kct
The KCTWrapper instance
|
RPC |
rpc
The JSON-RPC API instance
|
TransactionWrapper |
transaction
The Transaction instance.
|
UtilsWrapper |
utils
The UtilsWrapper instance
|
Validator |
validator
The Validator instance
|
KeyringContainer |
wallet
The KeyringContainer instance.
|
Constructor and Description |
---|
Caver()
Creates a Caver instance
|
Caver(java.lang.String url)
Creates a Caver instance
|
Caver(org.web3j.protocol.Web3jService service)
Creates a Caver instance
|
Modifier and Type | Method and Description |
---|---|
static Caver |
build()
Deprecated.
Please use
Caver() instead. |
static Caver |
build(java.lang.String url)
Deprecated.
Please use
Caver(String) instead. |
static Caver |
build(org.web3j.protocol.Web3jService service)
Deprecated.
Please use
Caver(Web3jService) instead. |
IPFSWrapper |
getIpfs()
Getter for IPFSWrapper
|
RPC |
getRpc()
Getter for RPC
|
IWallet |
getWallet()
Getter for Wallet
|
Klay |
klay()
Deprecated.
Please use
caver.rpc.klay instead. |
Net |
net()
Deprecated.
Please use
caver.rpc.net instead. |
void |
setCurrentProvider(org.web3j.protocol.Web3jService currentProvider)
Setter for provider.
|
void |
setRpc(RPC rpc)
Setter for Rpc.
|
public static java.lang.String DEFAULT_URL
public org.web3j.protocol.Web3jService currentProvider
public RPC rpc
public KeyringContainer wallet
public TransactionWrapper transaction
public IPFSWrapper ipfs
public AccountWrapper account
public ContractWrapper contract
public ABIWrapper abi
public KCTWrapper kct
public UtilsWrapper utils
public Validator validator
public Caver()
It sets a HttpProvider that using DEFAULT_URL("http://localhost:8551").
public Caver(java.lang.String url)
url
- JSON-RPC request URLpublic Caver(org.web3j.protocol.Web3jService service)
service
- Web3jService@Deprecated public static Caver build(org.web3j.protocol.Web3jService service)
Caver(Web3jService)
instead.@Deprecated public static Caver build(java.lang.String url)
Caver(String)
instead.public RPC getRpc()
public IWallet getWallet()
public IPFSWrapper getIpfs()
public void setRpc(RPC rpc)
rpc
- The JSON-RPC API instancepublic void setCurrentProvider(org.web3j.protocol.Web3jService currentProvider)
currentProvider
- The network provider to execute JSON-RPC API.@Deprecated public Klay klay()
caver.rpc.klay
instead.RPC.klay