Expand description
Functions for interacting with the system contracts.
Functions§
- create_
purse - Creates a new empty purse and returns its
URef. - get_
auction - Returns a read-only pointer to the Auction contract.
- get_
balance - Returns the balance in motes of the account’s main purse.
- get_
handle_ payment - Returns a read-only pointer to the Handle Payment contract.
- get_
mint - Returns a read-only pointer to the Mint contract.
- get_
purse_ balance - Returns the balance in motes of the given purse.
- get_
standard_ payment - Returns a read-only pointer to the Standard Payment contract.
- transfer_
from_ purse_ to_ account - Transfers
amountof motes fromsourcepurse totargetaccount. Iftargetdoes not exist it will be created. - transfer_
from_ purse_ to_ public_ key - Transfers
amountof motes fromsourceto the main purse oftarget. If the account referenced bytargetdoes not exist, it will be created. - transfer_
from_ purse_ to_ purse - Transfers
amountof motes fromsourcepurse totargetpurse. Iftargetdoes not exist the transfer fails. - transfer_
to_ account - Transfers
amountof motes from the default purse of the account totargetaccount. Iftargetdoes not exist it will be created. - transfer_
to_ public_ key - Transfers
amountof motes from the main purse of the caller’s account to the main purse oftarget. If the account referenced bytargetdoes not exist, it will be created.