com.coinbase.cdp.types
Method Details
getAccount
String - Smart account this spend permission is valid for.
getSpender
String - Entity that can spend account’s tokens.
getToken
String - Token address (ERC-7528 native token address or ERC-20 contract).
getAllowance
String - Maximum allowed value to spend, in atomic units for the specified token, within each period.
getPeriod
String - Time duration for resetting used allowance on a recurring basis (seconds).
getStart
String - The start time for this spend permission, in Unix seconds.
getEnd
String - The expiration time for this spend permission, in Unix seconds.
getSalt
String - An arbitrary salt to differentiate unique spend permissions with otherwise identical data.
getExtraData
String - Arbitrary data to include in the permission.
equals
[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")
Parameters:
other - Object
Returns:
boolean
getAdditionalProperties
Map<String,Object>
hashCode
[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")
Returns:
int
toString
[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")
Returns:
String
builder
AccountStage