Miner Actor
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.
GetPeerID
function getPeerId(CommonTypes.FilActorId FilActorId) internal returns (CommonTypes.FilAddress memory) {}
Return the Peer ID for the caller/miner address.
uint GetPeerIDMethodNum = 2812875329.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
FilAddressPeerID - the peer ID for the specified storage provider/miner.
ChangePeerID
function changePeerId(CommonTypes.FilActorId target, CommonTypes.FilAddress memory newId) internal {}
Change the peer ID for the caller/miner address.
uint ChangePeerIDMethodNum = 1236548004.
Params:
FilActorIdFilActorId - miner actor id to interact withFilAddressNewID - the new peer ID.
Results:
structEmptyValue
GetMultiaddrs
function getMultiaddresses(CommonTypes.FilActorId target) internal returns (MinerTypes.GetMultiaddrsReturn memory) {}
Returns the multi-signature address for this caller/miner address.
uint GetMultiaddrsMethodNum = 1332909407.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
structGetMultiaddrsReturnFilAddress[]MultiAddrs - the multi-signature address.
ChangeMultiaddrs
function changeMultiaddresses(CommonTypes.FilActorId target, MinerTypes.ChangeMultiaddrsParams memory params) internal {}
Change the multi-signature address for this caller/miner address.
uint ChangeMultiaddrsMethodNum = 1063480576.
Params:
FilActorIdFilActorId - miner actor id to interact withstructChangeMultiaddrsParamsFilAddress[]NewMultiaddrs - the new multi-signature address.
Results:
structEmptyValue
ChangeWorkerAddress
function changeWorkerAddress(CommonTypes.FilActorId target, MinerTypes.ChangeWorkerAddressParams memory params) internal {}
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:
FilActorIdFilActorId - miner actor id to interact withstructChangeWorkerAddressParamsFilAddressNewWorker - the new worker address.FilAddress[]NewControlAddrs - the new controller addresses.
Results:
structEmptyValue
ConfirmChangeWorkerAddress
function confirmChangeWorkerAddress(CommonTypes.FilActorId target) internal {}
Confirm the worker address has been changed for the caller/miner address.
uint ConfirmChangeWorkerAddressMethodNum = 2354970453.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
structEmptyValue
RepayDebt
function repayDebt(CommonTypes.FilActorId target) internal {}
Repay as much fee debt as possible for the caller/miner address.
uint RepayDebtMethodNum = 3665352697.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
structEmptyValue
GetOwner
function getOwner(CommonTypes.FilActorId target) internal returns (MinerTypes.GetOwnerReturn memory){}
Return the owner address of the caller/miner address.
uint GetOwnerMethodNum = 3275365574.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
GetOwnerReturnGetOwnerReturnFilAddressOwner - owner address.FilAddressProposed - proposed owner address.
ChangeOwnerAddress
function changeOwnerAddress(CommonTypes.FilActorId target, CommonTypes.FilAddress memory addr) internal {}
Proposes or confirms a change of owner address.
uint ChangeOwnerAddressMethodNum = 1010589339.
Params:
FilActorIdFilActorId - miner actor id to interact withFilAddressAddress - the new owner address.
Results:
structEmptyValue
GetBeneficiary
function getBeneficiary(CommonTypes.FilActorId target) internal returns (MinerTypes.GetBeneficiaryReturn memory) {}
Return the currently active and proposed beneficiary information.
uint GetBeneficiaryMethodNum = 4158972569.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
structGetBeneficiaryReturn-
structActiveBeneficiary - current active beneficiary.FilAddressBeneficiary - the address of the beneficiary.structBeneficiaryTermBigIntQuota - the quota token amount.BigIntUsedQuota - the used quota token amount.ChainEpochExpiration - the epoch that the quota will be expired.
-
structPendingBeneficiaryChange - the proposed and pending beneficiary.FilAddressnewBeneficiary - the new beneficiary address.BigIntNewQuota - the new quota token amount.ChainEpochNewExpiration - the epoch that the new quota will be expired.boolApprovedByBeneficiary - if this proposal is approved by beneficiary or not.boolApprovedByNominee - if this proposal is approved by nominee or not.
-
ChangeBeneficiary
function changeBeneficiary(CommonTypes.FilActorId target, MinerTypes.ChangeBeneficiaryParams memory params) internal {}
Propose or confirm a change of beneficiary information.
uint ChangeBeneficiaryMethodNum = 1570634796.
Params:
FilActorIdFilActorId - miner actor id to interact withstructChangeBeneficiaryParamsFilActorIdnewBeneficiary - the new beneficiary address.BigIntNewQuota - the new quota token amount.ChainEpochNewExpiration - the epoch that the new quota will be expired.
Results:
structEmptyValue
IsControllingAddress
function isControllingAddress(CommonTypes.FilActorId target, CommonTypes.FilAddress memory addr) internal returns (bool) {}
Returns whether the provided address is the Owner, the Worker, or any of the control addresses.
uint IsControllingAddressMethodNum = 348244887.
Params:
FilActorIdFilActorId - miner actor id to interact withFilAddressAddress - the address to be verified.
Results:
boolIsControllingAddressReturn - if the specified address is the control address.
GetSectorSize
function getSectorSize(CommonTypes.FilActorId target) internal returns (uint64) {}
Returns the miner's sector size.
uint GetSectorSizeMethodNum = 3858292296;
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
unit64SectorSize - the sector size of this miner.
GetAvailableBalance
function getAvailableBalance(CommonTypes.FilActorId target) internal returns (CommonTypes.BigInt memory) {}
Returns the available balance of this miner.
uint GetAvailableBalanceMethodNum = 4026106874.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
BigIntGetAvailableBalanceReturn - the available token balance amount.
WithdrawBalance
function withdrawBalance(CommonTypes.FilActorId target, CommonTypes.BigInt memory amount) internal returns (CommonTypes.BigInt memory) {}
Withdraw the token balance for this miner.
uint WithdrawBalanceMethodNum = 2280458852.
Params:
FilActorIdFilActorId - miner actor id to interact withBigIntAmountRequested - withdraw token amount.
Results:
BigIntWithdrawBalanceReturn - the token amount withdraw.
GetVestingFunds
function getVestingFunds(CommonTypes.FilActorId target) internal returns (MinerTypes.GetVestingFundsReturn memory) {}
Return the funds vesting in this miner as a list of (vesting_epoch, vesting_amount) tuples.
uint GetVestingFundsMethodNum = 1726876304.
Params:
FilActorIdFilActorId - miner actor id to interact with
Results:
structGetVestingFundsReturnstruct VestingFunds[]FundsChainEpochEpoch - the epoch of funds vested.BigIntAmount - the amount of funds vested.