Skip to Content

Coinbase cbETH action reference

This page is generated from the plugin registry. Do not edit it by hand.

Coinbase Wrapped Staked ETH (cbETH), a non-rebasing liquid staking token. Read the on-chain exchange rate, a balance, and the total supply to value or monitor a cbETH position.

For guidance and examples see the Coinbase cbETH guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.

ActionAction type
Coinbase cbETH: Get cbETH Exchange Ratecoinbase-cbeth/exchange-rate
Coinbase cbETH: Get cbETH Balancecoinbase-cbeth/balance-of
Coinbase cbETH: Get cbETH Total Supplycoinbase-cbeth/total-supply

Coinbase cbETH: Get cbETH Exchange Rate

Action type: coinbase-cbeth/exchange-rate. Connection: not required.

Read the current ETH value of one cbETH. Only ratchets up as staking rewards accrue; useful to value a position or gate a workflow on the rate.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.

Outputs

OutputDescription
resultThe contract function return value
result.rateExchange Rate (wei of ETH per cbETH)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://help.coinbase.com/en/coinbase/trading-and-funding/staking-rewards/cbeth 

Coinbase cbETH: Get cbETH Balance

Action type: coinbase-cbeth/balance-of. Connection: not required.

Check the cbETH balance of an address.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.
accountaddressYesWallet Address (address). Address whose cbETH balance will be read.

Outputs

OutputDescription
resultThe contract function return value
result.balancecbETH Balance (wei)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://help.coinbase.com/en/coinbase/trading-and-funding/staking-rewards/cbeth 

Coinbase cbETH: Get cbETH Total Supply

Action type: coinbase-cbeth/total-supply. Connection: not required.

Get the total supply of cbETH in circulation.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1Network.

Outputs

OutputDescription
resultThe contract function return value
result.totalSupplyTotal cbETH Supply (wei)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://help.coinbase.com/en/coinbase/trading-and-funding/staking-rewards/cbeth 

Contracts

ContractChain ids
cbETH Token1