with Coinbase Developer Platform and Formatting?
Emit new event for each new wallet event. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
import { Coinbase, Wallet } from "@coinbase/coinbase-sdk";
export default defineComponent({
props: {
coinbase_developer_platform: {
type: "app",
app: "coinbase_developer_platform",
}
},
async run({ steps, $ }) {
const apiKeyName = this.coinbase_developer_platform.$auth.api_key_id;
const privateKey = this.coinbase_developer_platform.$auth.secret_key
Coinbase.configure({ apiKeyName: apiKeyName, privateKey: privateKey });
return Wallet.listWallets();
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})