Initializes a new Address instance.
The network id.
The onchain address id.
Protected
Optional
_reputationProtected
idProtected
networkBroadcast an external transaction
The signed payload of the transaction to broadcast
The broadcasted transaction
Builds a claim stake operation for the supplied asset.
The amount of the asset to claim stake.
The asset to claim stake.
The staking mode. Defaults to DEFAULT.
Additional options for the claim stake operation.
A. Shared ETH Staking
integrator_contract_address
(optional): The contract address to which the claim stake operation is directed to. Defaults to the integrator contract address associated with CDP account (if available) or else defaults to a shared integrator contract address for that network.The claim stake operation.
Builds a stake operation for the supplied asset. The stake operation may take a few minutes to complete in the case when infrastructure is spun up.
The amount of the asset to stake.
The asset to stake.
The staking mode. Defaults to DEFAULT.
Additional options for the stake operation:
A. Shared ETH Staking
integrator_contract_address
(optional): The contract address to which the stake operation is directed to. Defaults to the integrator contract address associated with CDP account (if available) or else defaults to a shared integrator contract address for that network.B. Dedicated ETH Staking
funding_address
(optional): Ethereum address for funding the stake operation. Defaults to the address initiating the stake operation.withdrawal_address
(optional): Ethereum address for receiving rewards and withdrawal funds. Defaults to the address initiating the stake operation.fee_recipient_address
(optional): Ethereum address for receiving transaction fees. Defaults to the address initiating the stake operation.The stake operation.
Private
buildPrivate
Builds the staking operation based on the supplied input.
The amount for the staking operation.
The asset for the staking operation.
The specific action for the staking operation. e.g. stake, unstake, claim_stake
The staking mode. Defaults to DEFAULT.
Additional options to build a stake operation.
The staking operation.
If the supplied input cannot build a valid staking operation.
Builds an unstake operation for the supplied asset.
The amount of the asset to unstake.
The asset to unstake.
The staking mode. Defaults to DEFAULT.
Additional options for the unstake operation:
A. Shared ETH Staking
integrator_contract_address
(optional): The contract address to which the unstake operation is directed to. Defaults to the integrator contract address associated with CDP account (if available) or else defaults to a shared integrator contract address for that network.B. Dedicated ETH Staking
immediate
(optional): Set this to "true" to unstake immediately i.e. leverage "Coinbase managed unstake" process . Defaults to "false" i.e. "User managed unstake" process.validator_pub_keys
(optional): List of comma separated validator public keys to unstake. Defaults to validators being picked up on your behalf corresponding to the unstake amount.The unstake operation.
Get the claimable balance for the supplied asset.
The asset to check claimable balance for.
The staking mode. Defaults to DEFAULT.
Additional options for getting the claimable balance.
The claimable balance.
Private
copyRequests faucet funds for the address. Only supported on testnet networks.
Optional
assetId: stringThe ID of the asset to transfer from the faucet.
The faucet transaction object.
If the request does not return a transaction hash.
If the request fails.
Lists the historical staking balances for the address.
The asset ID.
The start time.
The end time.
The staking balances.
Returns the list of balances for the address.
The map from asset ID to balance.
Returns the historical balances of the provided asset.
The asset ID.
The pagination options.
The paginated list response of Historical Balances for the given Asset ID.
Returns the transactions of the address.
The pagination options.
The paginated list response of Transactions.
Get the pending claimable balance for the supplied asset.
The asset to check pending claimable balance for.
The staking mode. Defaults to DEFAULT.
Additional options for getting the pending claimable balance.
The pending claimable balance.
Returns the reputation of the Address.
The reputation of the Address.
if the API request to get the Address reputation fails.
if the Address reputation is not available.
Get the stakeable balance for the supplied asset.
The asset to check the stakeable balance for.
The staking mode. Defaults to DEFAULT.
Additional options for getting the stakeable balance.
The stakeable balance.
Lists the staking rewards for the address.
The asset ID.
The start time.
The end time.
The format to return the rewards in. (usd, native). Defaults to usd.
The staking rewards.
Get the unstakeable balance for the supplied asset.
The asset to check the unstakeable balance for.
The staking mode. Defaults to DEFAULT.
Additional options for getting the unstakeable balance. A. Dedicated ETH Staking
validator_pub_keys
(optional): List of comma separated validator public keys to retrieve unstakeable balance for. Defaults to all validators.The unstakeable balance.
Private
validatePrivate
Validate if the operation is able to claim stake with the supplied input.
The amount of the asset to claim stake.
The asset to claim stake.
The staking mode. Defaults to DEFAULT.
Additional options for the claim stake operation.
If the supplied input is not able to create a claim stake operation.
Private
validatePrivate
Validate if the operation is able to stake with the supplied input.
The amount of the asset to stake.
The asset to stake.
The staking mode. Defaults to DEFAULT.
Additional options for the stake operation.
If the supplied input is not able to create a stake operation.
Private
validatePrivate
Validate if the operation is able to unstake with the supplied input.
The amount of the asset to unstake.
The asset to unstake.
The staking mode. Defaults to DEFAULT.
Additional options for the unstake operation.
If the supplied input is not able to create an unstake operation.
A representation of a blockchain Address, which is a user-controlled account on a Network. Addresses are used to send and receive Assets. An ExternalAddress is an Address that is not controlled by the developer, but is instead controlled by the user.