Skip to main content
Corvus Connection

RPG: Get Wallet

Rpg
Query
Portent preview
Pro
rpg.getWalletReads a viewer's currency balance in copper. Defaults to the triggering viewer; set userId to target a specific viewer. Safely reports 0 when the viewer has not joined.Awaits the viewer's wallet balance; binds balanceCopper (base-unit copper).
Engagement

Inputs

Name
Kind
Type
Flags
in
Exec
exec
multiplexed
  • Name
    in
    Kind
    Exec
    Type
    exec
    Flags
    multiplexed

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
balanceCopper
Data
System.Int64
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    balanceCopper
    Kind
    Data
    Type
    System.Int64
    Flags
    multiplexed

Parameters

Name
Type
Required
Default
Choices
userId
System.String
no
""
None
  • Name
    userId
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None

Lowers to C#

var wallet = await ctx.Rpg.Economy.GetWalletAsync(userId);