Creating a Global Parameter

Sumit Rawal answered on May 11, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers


Creating a Global Parameter

0
Tip Sumit Rawal 1 GREPCC

This POST request will create a GlobalParameter resource and the first GlobalParameterValue

resource. Global Parameters can be referenced in any Smart Contracts deployed to your

instance of Vault.

Classification | Confidential 17 ©2023 Thought Machine

You’ll set the id within the global parameter so that Smart Contracts can retrieve the values

for this global parameter. The parameter will include a display_name and description (ie.

what the parameter is) along with a definition of a shape. A global parameter can have a

definition of number, str, denomination or date. See the documentation hub for the structure.

The initial_value should be what you want the initial value of the GlobalParameterValue

to be. Should you want to change this, you will make a POST request to

global-parameter-values to append a new GlobalParameterValue to the Vault Core database.

Request body: 

Popularity 3/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 11 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Sign in with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.