Functions that map to the functions declared in the contract ABI
Application Binary Interface in JSON form
Connection to use
Callable functions mapped to the interface
Ethers.js interface parsed from the ABI
Payer for transactions and storage (optional)
Account the program is located at (aka Program ID)
Account the program's data is stored at
Add a listener for contract events
Callback for contract events
ID of the listener (pass to removeEventListener
to stop listening)
Add a listener for log messages
Callback for log messages
ID of the listener (pass to removeLogListener
to stop listening)
Set the payer for transactions and storage
Payer for transactions and storage
Contract itself (for method chaining)
Deploy the contract to a loaded Solana program.
Name of the contract to deploy
Arguments to pass to the contract's Solidity constructor function
Keypair for the account the program's data is stored at
Byte size to allocate for the storage account (this cannot be resized)
Accounts, signers, and other parameters for calling the contract constructor
Result of the contract constructor call
Unset the payer for transactions and storage
Contract itself (for method chaining)
Load the contract's BPF bytecode as a Solana program.
Keypair for the account the program is located at
ELF .so file produced by compiling the contract with Solang
Payer for transactions and storage (defaults to the payer provided in the constructor)
Remove a listener for contract events
ID of the listener (returned by addEventListener
)
Remove a listener for log messages
ID of the listener (returned by addLogListener
)
Generated using TypeDoc
A contract represents a Solidity contract that has been compiled with Solang to be deployed on Solana.