The miner built-in actor responsible to deal with storage mining operations and collect proof.
To interact with specific miner, you need to use this miner address to invoke the methods in miner built-in actor. You also need to specify method number of which method you want to invoke. Please refer the each method for its method number.
func GetPeerID() GetPeerIDReturn {}
Return the Peer ID for the caller/miner address.
uint
GetPeerIDMethodNum = 2812875329.
Params:
- null
Results:
struct
GetPeerIDReturnbytes
PeerID - the peer ID for the specified storage provider/miner.
func ChangePeerID(params ChangePeerIDParams) EmptyValue {}
Change the peer ID for the caller/miner address.
uint
ChangePeerIDMethodNum = 1236548004.
Params:
struct
ChangePeerIDParamsbytes
NewID - the new peer ID.
Results:
struct
EmptyValue
func GetMultiaddrs() GetMultiAddrsReturn {}
Returns the multi-signature address for this caller/miner address.
uint
GetMultiaddrsMethodNum = 1332909407.
Params:
- null
Results:
struct
GetMultiAddrsReturnbyte[]
MultiAddrs - the multi-signature address.
func ChangeMultiaddrs(params ChangeMultiaddrsParams) EmptyValue {}
Change the multi-signature address for this caller/miner address.
uint
ChangeMultiaddrsMethodNum = 1063480576.
Params:
struct
ChangeMultiaddrsParamsbyte[]
NewMultiaddrs - the new multi-signature address.
Results:
struct
EmptyValue
func ChangeWorkerAddress(params ChangeWorkerAddressParams) EmptyValue {}
Change the worker address for the caller/miner address, and overwrite the existing addresses with the new control addresses passed in the params.
uint
ChangeOwnerAddressMethodNum = 1010589339.
Params:
struct
ChangeWorkerAddressParamsbyte
NewWorker - the new worker address.byte[]
NewControlAddrs - the new controller addresses.
Results:
struct
EmptyValue
func ConfirmChangeWorkerAddress() EmptyValue {}
Confirm the worker address has been changed for the caller/miner address.
uint
ConfirmChangeWorkerAddressMethodNum = 2354970453.
Params:
- null
Results:
struct
EmptyValue
func RepayDebt() EmptyValue {}
Repay as much fee debt as possible for the caller/miner address.
uint
RepayDebtMethodNum = 3665352697.
Params:
- null
Results:
struct
EmptyValue
func GetOwner() GetOwnerReturn {}
Return the the owner address of the caller/miner address.
uint
GetOwnerMethodNum = 3275365574.
Params:
- null
Results:
struct
GetOwnerReturnbyte
Owner - owner address.
func ChangeOwnerAddress(bytes address) {}
Proposes or confirms a change of owner address.
uint
ChangeOwnerAddressMethodNum = 1010589339.
Params:
bytes
Address - the new owner address.
Results:
struct
EmptyValue
func GetBeneficiary() GetBeneficiaryReturn {}
Return the currently active and proposed beneficiary information.
uint
GetBeneficiaryMethodNum = 4158972569.
Params:
- null
Results:
struct
GetBeneficiaryReturn-
struct
ActiveBeneficiary - current active beneficiary.byte
Beneficiary - the address of the beneficiary.struct
BeneficiaryTermint256
Quota - the quota token amount.int256
UsedQuota - the used quota token amount.uint64
Expiration - the epoch that the quota will be expired.
-
struct
PendingBeneficiaryChange - the proposed and pending beneficiary.bytes
newBeneficiary - the new beneficiary address.int256
NewQuota - the new quota token amount.uint64
NewExpiration - the epoch that the new quota will be expired.bool
ApprovedByBeneficiary - if this proposal is approved by beneficiary or not.bool
ApprovedByNominee - if this proposal is approved by nominee or not.
-
func ChangeBeneficiary(params ChangeBeneficiaryParams) EmptyValue {}
Propose or confirm a change of beneficiary information.
uint
ChangeBeneficiaryMethodNum = 1570634796.
Params:
struct
ChangeBeneficiaryParamsbytes
newBeneficiary - the new beneficiary address.int256
NewQuota - the new quota token amount.uint64
NewExpiration - the epoch that the new quota will be expired.
Results:
struct
EmptyValue
func IsControllingAddress(params IsControllingAddressParams) IsControllingAddressReturn {}
Returns whether the provided address is the Owner, the Worker, or any of the control addresses.
uint
IsControllingAddressMethodNum = 348244887.
Params:
byte
IsControllingAddressParams - the address to be verified.
Results:
bool
IsControllingAddressReturn - if the specified address is the control address.
func GetSectorSize() GetSectorSizeReturn {}
Returns the miner's sector size.
uint
GetSectorSizeMethodNum = 3858292296;
Params:
- null
Results:
struct
GetSectorSizeReturnunit64
SectorSize - the sector size of this miner.
func GetAvailableBalance() GetAvailableBalanceReturn {}
Returns the available balance of this miner.
uint
GetAvailableBalanceMethodNum = 4026106874.
Params:
- null
Results:
int256
GetAvailableBalanceReturn - the available token balance amount.
func WithdrawBalance(params WithdrawBalanceParams) WithdrawBalanceReturn {}
Withdraw the token balance for this miner.
Params:
struct
WithdrawBalanceParamsint256
AmountRequested - withdraw token amount.
Results:
int256
WithdrawBalanceReturn - the token amount withdraw.
func GetVestingFunds() GetVestingFundsReturn {}
Return the funds vesting in this miner as a list of (vesting_epoch, vesting_amount) tuples.
uint
GetVestingFundsMethodNum = 1726876304.
Params:
- null
Results:
struct
GetVestingFundsReturnstruct VestingFunds[]
Fundsint64
Epoch - the epoch of funds vested.int256
Amount - the amount of funds vested.