showCallsStatus
Shows call status in wallet UI (EIP-5792)
Loading...
Shows call status in wallet UI (EIP-5792)
Import the wallet actions package so you can call this action.
import "github.com/ChefBingbong/viem-go/actions/wallet"See how to construct a wallet client and call this action.
import ( "context" "log"
"github.com/ChefBingbong/viem-go/actions/wallet" "github.com/ChefBingbong/viem-go/client" "github.com/ChefBingbong/viem-go/client/transport" "github.com/ChefBingbong/viem-go/chain/definitions")
ctx := context.Background()
walletClient, err := client.CreateWalletClient(client.WalletClientConfig{ Chain: definitions.Mainnet, Transport: transport.HTTP("https://eth.llamarpc.com"),})if err != nil { log.Fatal(err)}defer func() { _ = walletClient.Close() }()
err := wallet.ShowCallsStatus(ctx, walletClient, wallet.ShowCallsStatusParameters{ ID: "0xdeadbeef",})if err != nil { log.Fatal(err)}error
Returns an error if the request fails.
Specify which call batch to display in the wallet UI.
Type: string
Required
The identifier of the call batch (returned from sendCalls).
err := wallet.ShowCallsStatus(ctx, walletClient, wallet.ShowCallsStatusParameters{ ID: "0xdeadbeef",})wallet_showCallsStatus (EIP-5792)