github.com/cosmos/cosmos-sdk@v0.50.10/client/docs/swagger-ui/swagger.yaml (about) 1 swagger: '2.0' 2 info: 3 title: Cosmos SDK - gRPC Gateway docs 4 description: A REST interface for state queries. 5 version: 1.0.0 6 paths: 7 /cosmos/auth/v1beta1/account_info/{address}: 8 get: 9 summary: AccountInfo queries account info which is common to all account types. 10 description: 'Since: cosmos-sdk 0.47' 11 operationId: AccountInfo 12 responses: 13 '200': 14 description: A successful response. 15 schema: 16 type: object 17 properties: 18 info: 19 description: info is the account info which is represented by BaseAccount. 20 type: object 21 properties: 22 address: 23 type: string 24 pub_key: 25 type: object 26 properties: 27 type_url: 28 type: string 29 description: >- 30 A URL/resource name that uniquely identifies the type 31 of the serialized 32 33 protocol buffer message. This string must contain at 34 least 35 36 one "/" character. The last segment of the URL's path 37 must represent 38 39 the fully qualified name of the type (as in 40 41 `path/google.protobuf.Duration`). The name should be 42 in a canonical form 43 44 (e.g., leading "." is not accepted). 45 46 47 In practice, teams usually precompile into the binary 48 all types that they 49 50 expect it to use in the context of Any. However, for 51 URLs which use the 52 53 scheme `http`, `https`, or no scheme, one can 54 optionally set up a type 55 56 server that maps type URLs to message definitions as 57 follows: 58 59 60 * If no scheme is provided, `https` is assumed. 61 62 * An HTTP GET on the URL must yield a 63 [google.protobuf.Type][] 64 value in binary format, or produce an error. 65 * Applications are allowed to cache lookup results 66 based on the 67 URL, or have them precompiled into a binary to avoid any 68 lookup. Therefore, binary compatibility needs to be preserved 69 on changes to types. (Use versioned type names to manage 70 breaking changes.) 71 72 Note: this functionality is not currently available in 73 the official 74 75 protobuf release, and it is not used for type URLs 76 beginning with 77 78 type.googleapis.com. 79 80 81 Schemes other than `http`, `https` (or the empty 82 scheme) might be 83 84 used with implementation specific semantics. 85 value: 86 type: string 87 format: byte 88 description: >- 89 Must be a valid serialized protocol buffer of the 90 above specified type. 91 description: >- 92 `Any` contains an arbitrary serialized protocol buffer 93 message along with a 94 95 URL that describes the type of the serialized message. 96 97 98 Protobuf library provides support to pack/unpack Any 99 values in the form 100 101 of utility functions or additional generated methods of 102 the Any type. 103 104 105 Example 1: Pack and unpack a message in C++. 106 107 Foo foo = ...; 108 Any any; 109 any.PackFrom(foo); 110 ... 111 if (any.UnpackTo(&foo)) { 112 ... 113 } 114 115 Example 2: Pack and unpack a message in Java. 116 117 Foo foo = ...; 118 Any any = Any.pack(foo); 119 ... 120 if (any.is(Foo.class)) { 121 foo = any.unpack(Foo.class); 122 } 123 // or ... 124 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 125 foo = any.unpack(Foo.getDefaultInstance()); 126 } 127 128 Example 3: Pack and unpack a message in Python. 129 130 foo = Foo(...) 131 any = Any() 132 any.Pack(foo) 133 ... 134 if any.Is(Foo.DESCRIPTOR): 135 any.Unpack(foo) 136 ... 137 138 Example 4: Pack and unpack a message in Go 139 140 foo := &pb.Foo{...} 141 any, err := anypb.New(foo) 142 if err != nil { 143 ... 144 } 145 ... 146 foo := &pb.Foo{} 147 if err := any.UnmarshalTo(foo); err != nil { 148 ... 149 } 150 151 The pack methods provided by protobuf library will by 152 default use 153 154 'type.googleapis.com/full.type.name' as the type URL and 155 the unpack 156 157 methods only use the fully qualified type name after the 158 last '/' 159 160 in the type URL, for example "foo.bar.com/x/y.z" will 161 yield type 162 163 name "y.z". 164 165 166 JSON 167 168 169 The JSON representation of an `Any` value uses the regular 170 171 representation of the deserialized, embedded message, with 172 an 173 174 additional field `@type` which contains the type URL. 175 Example: 176 177 package google.profile; 178 message Person { 179 string first_name = 1; 180 string last_name = 2; 181 } 182 183 { 184 "@type": "type.googleapis.com/google.profile.Person", 185 "firstName": <string>, 186 "lastName": <string> 187 } 188 189 If the embedded message type is well-known and has a 190 custom JSON 191 192 representation, that representation will be embedded 193 adding a field 194 195 `value` which holds the custom JSON in addition to the 196 `@type` 197 198 field. Example (for message [google.protobuf.Duration][]): 199 200 { 201 "@type": "type.googleapis.com/google.protobuf.Duration", 202 "value": "1.212s" 203 } 204 account_number: 205 type: string 206 format: uint64 207 sequence: 208 type: string 209 format: uint64 210 description: |- 211 QueryAccountInfoResponse is the Query/AccountInfo response type. 212 213 Since: cosmos-sdk 0.47 214 default: 215 description: An unexpected error response. 216 schema: 217 type: object 218 properties: 219 error: 220 type: string 221 code: 222 type: integer 223 format: int32 224 message: 225 type: string 226 details: 227 type: array 228 items: 229 type: object 230 properties: 231 type_url: 232 type: string 233 description: >- 234 A URL/resource name that uniquely identifies the type of 235 the serialized 236 237 protocol buffer message. This string must contain at 238 least 239 240 one "/" character. The last segment of the URL's path 241 must represent 242 243 the fully qualified name of the type (as in 244 245 `path/google.protobuf.Duration`). The name should be in 246 a canonical form 247 248 (e.g., leading "." is not accepted). 249 250 251 In practice, teams usually precompile into the binary 252 all types that they 253 254 expect it to use in the context of Any. However, for 255 URLs which use the 256 257 scheme `http`, `https`, or no scheme, one can optionally 258 set up a type 259 260 server that maps type URLs to message definitions as 261 follows: 262 263 264 * If no scheme is provided, `https` is assumed. 265 266 * An HTTP GET on the URL must yield a 267 [google.protobuf.Type][] 268 value in binary format, or produce an error. 269 * Applications are allowed to cache lookup results based 270 on the 271 URL, or have them precompiled into a binary to avoid any 272 lookup. Therefore, binary compatibility needs to be preserved 273 on changes to types. (Use versioned type names to manage 274 breaking changes.) 275 276 Note: this functionality is not currently available in 277 the official 278 279 protobuf release, and it is not used for type URLs 280 beginning with 281 282 type.googleapis.com. 283 284 285 Schemes other than `http`, `https` (or the empty scheme) 286 might be 287 288 used with implementation specific semantics. 289 value: 290 type: string 291 format: byte 292 description: >- 293 Must be a valid serialized protocol buffer of the above 294 specified type. 295 description: >- 296 `Any` contains an arbitrary serialized protocol buffer 297 message along with a 298 299 URL that describes the type of the serialized message. 300 301 302 Protobuf library provides support to pack/unpack Any values 303 in the form 304 305 of utility functions or additional generated methods of the 306 Any type. 307 308 309 Example 1: Pack and unpack a message in C++. 310 311 Foo foo = ...; 312 Any any; 313 any.PackFrom(foo); 314 ... 315 if (any.UnpackTo(&foo)) { 316 ... 317 } 318 319 Example 2: Pack and unpack a message in Java. 320 321 Foo foo = ...; 322 Any any = Any.pack(foo); 323 ... 324 if (any.is(Foo.class)) { 325 foo = any.unpack(Foo.class); 326 } 327 // or ... 328 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 329 foo = any.unpack(Foo.getDefaultInstance()); 330 } 331 332 Example 3: Pack and unpack a message in Python. 333 334 foo = Foo(...) 335 any = Any() 336 any.Pack(foo) 337 ... 338 if any.Is(Foo.DESCRIPTOR): 339 any.Unpack(foo) 340 ... 341 342 Example 4: Pack and unpack a message in Go 343 344 foo := &pb.Foo{...} 345 any, err := anypb.New(foo) 346 if err != nil { 347 ... 348 } 349 ... 350 foo := &pb.Foo{} 351 if err := any.UnmarshalTo(foo); err != nil { 352 ... 353 } 354 355 The pack methods provided by protobuf library will by 356 default use 357 358 'type.googleapis.com/full.type.name' as the type URL and the 359 unpack 360 361 methods only use the fully qualified type name after the 362 last '/' 363 364 in the type URL, for example "foo.bar.com/x/y.z" will yield 365 type 366 367 name "y.z". 368 369 370 JSON 371 372 373 The JSON representation of an `Any` value uses the regular 374 375 representation of the deserialized, embedded message, with 376 an 377 378 additional field `@type` which contains the type URL. 379 Example: 380 381 package google.profile; 382 message Person { 383 string first_name = 1; 384 string last_name = 2; 385 } 386 387 { 388 "@type": "type.googleapis.com/google.profile.Person", 389 "firstName": <string>, 390 "lastName": <string> 391 } 392 393 If the embedded message type is well-known and has a custom 394 JSON 395 396 representation, that representation will be embedded adding 397 a field 398 399 `value` which holds the custom JSON in addition to the 400 `@type` 401 402 field. Example (for message [google.protobuf.Duration][]): 403 404 { 405 "@type": "type.googleapis.com/google.protobuf.Duration", 406 "value": "1.212s" 407 } 408 parameters: 409 - name: address 410 description: address is the account address string. 411 in: path 412 required: true 413 type: string 414 tags: 415 - Query 416 /cosmos/auth/v1beta1/accounts: 417 get: 418 summary: Accounts returns all the existing accounts. 419 description: >- 420 When called from another module, this query might consume a high amount 421 of 422 423 gas if the pagination field is incorrectly set. 424 425 426 Since: cosmos-sdk 0.43 427 operationId: Accounts 428 responses: 429 '200': 430 description: A successful response. 431 schema: 432 type: object 433 properties: 434 accounts: 435 type: array 436 items: 437 type: object 438 properties: 439 type_url: 440 type: string 441 description: >- 442 A URL/resource name that uniquely identifies the type of 443 the serialized 444 445 protocol buffer message. This string must contain at 446 least 447 448 one "/" character. The last segment of the URL's path 449 must represent 450 451 the fully qualified name of the type (as in 452 453 `path/google.protobuf.Duration`). The name should be in 454 a canonical form 455 456 (e.g., leading "." is not accepted). 457 458 459 In practice, teams usually precompile into the binary 460 all types that they 461 462 expect it to use in the context of Any. However, for 463 URLs which use the 464 465 scheme `http`, `https`, or no scheme, one can optionally 466 set up a type 467 468 server that maps type URLs to message definitions as 469 follows: 470 471 472 * If no scheme is provided, `https` is assumed. 473 474 * An HTTP GET on the URL must yield a 475 [google.protobuf.Type][] 476 value in binary format, or produce an error. 477 * Applications are allowed to cache lookup results based 478 on the 479 URL, or have them precompiled into a binary to avoid any 480 lookup. Therefore, binary compatibility needs to be preserved 481 on changes to types. (Use versioned type names to manage 482 breaking changes.) 483 484 Note: this functionality is not currently available in 485 the official 486 487 protobuf release, and it is not used for type URLs 488 beginning with 489 490 type.googleapis.com. 491 492 493 Schemes other than `http`, `https` (or the empty scheme) 494 might be 495 496 used with implementation specific semantics. 497 value: 498 type: string 499 format: byte 500 description: >- 501 Must be a valid serialized protocol buffer of the above 502 specified type. 503 description: >- 504 `Any` contains an arbitrary serialized protocol buffer 505 message along with a 506 507 URL that describes the type of the serialized message. 508 509 510 Protobuf library provides support to pack/unpack Any values 511 in the form 512 513 of utility functions or additional generated methods of the 514 Any type. 515 516 517 Example 1: Pack and unpack a message in C++. 518 519 Foo foo = ...; 520 Any any; 521 any.PackFrom(foo); 522 ... 523 if (any.UnpackTo(&foo)) { 524 ... 525 } 526 527 Example 2: Pack and unpack a message in Java. 528 529 Foo foo = ...; 530 Any any = Any.pack(foo); 531 ... 532 if (any.is(Foo.class)) { 533 foo = any.unpack(Foo.class); 534 } 535 // or ... 536 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 537 foo = any.unpack(Foo.getDefaultInstance()); 538 } 539 540 Example 3: Pack and unpack a message in Python. 541 542 foo = Foo(...) 543 any = Any() 544 any.Pack(foo) 545 ... 546 if any.Is(Foo.DESCRIPTOR): 547 any.Unpack(foo) 548 ... 549 550 Example 4: Pack and unpack a message in Go 551 552 foo := &pb.Foo{...} 553 any, err := anypb.New(foo) 554 if err != nil { 555 ... 556 } 557 ... 558 foo := &pb.Foo{} 559 if err := any.UnmarshalTo(foo); err != nil { 560 ... 561 } 562 563 The pack methods provided by protobuf library will by 564 default use 565 566 'type.googleapis.com/full.type.name' as the type URL and the 567 unpack 568 569 methods only use the fully qualified type name after the 570 last '/' 571 572 in the type URL, for example "foo.bar.com/x/y.z" will yield 573 type 574 575 name "y.z". 576 577 578 JSON 579 580 581 The JSON representation of an `Any` value uses the regular 582 583 representation of the deserialized, embedded message, with 584 an 585 586 additional field `@type` which contains the type URL. 587 Example: 588 589 package google.profile; 590 message Person { 591 string first_name = 1; 592 string last_name = 2; 593 } 594 595 { 596 "@type": "type.googleapis.com/google.profile.Person", 597 "firstName": <string>, 598 "lastName": <string> 599 } 600 601 If the embedded message type is well-known and has a custom 602 JSON 603 604 representation, that representation will be embedded adding 605 a field 606 607 `value` which holds the custom JSON in addition to the 608 `@type` 609 610 field. Example (for message [google.protobuf.Duration][]): 611 612 { 613 "@type": "type.googleapis.com/google.protobuf.Duration", 614 "value": "1.212s" 615 } 616 title: accounts are the existing accounts 617 pagination: 618 description: pagination defines the pagination in the response. 619 type: object 620 properties: 621 next_key: 622 type: string 623 format: byte 624 description: |- 625 next_key is the key to be passed to PageRequest.key to 626 query the next page most efficiently. It will be empty if 627 there are no more results. 628 total: 629 type: string 630 format: uint64 631 title: >- 632 total is total number of results available if 633 PageRequest.count_total 634 635 was set, its value is undefined otherwise 636 description: >- 637 QueryAccountsResponse is the response type for the Query/Accounts 638 RPC method. 639 640 641 Since: cosmos-sdk 0.43 642 default: 643 description: An unexpected error response. 644 schema: 645 type: object 646 properties: 647 error: 648 type: string 649 code: 650 type: integer 651 format: int32 652 message: 653 type: string 654 details: 655 type: array 656 items: 657 type: object 658 properties: 659 type_url: 660 type: string 661 description: >- 662 A URL/resource name that uniquely identifies the type of 663 the serialized 664 665 protocol buffer message. This string must contain at 666 least 667 668 one "/" character. The last segment of the URL's path 669 must represent 670 671 the fully qualified name of the type (as in 672 673 `path/google.protobuf.Duration`). The name should be in 674 a canonical form 675 676 (e.g., leading "." is not accepted). 677 678 679 In practice, teams usually precompile into the binary 680 all types that they 681 682 expect it to use in the context of Any. However, for 683 URLs which use the 684 685 scheme `http`, `https`, or no scheme, one can optionally 686 set up a type 687 688 server that maps type URLs to message definitions as 689 follows: 690 691 692 * If no scheme is provided, `https` is assumed. 693 694 * An HTTP GET on the URL must yield a 695 [google.protobuf.Type][] 696 value in binary format, or produce an error. 697 * Applications are allowed to cache lookup results based 698 on the 699 URL, or have them precompiled into a binary to avoid any 700 lookup. Therefore, binary compatibility needs to be preserved 701 on changes to types. (Use versioned type names to manage 702 breaking changes.) 703 704 Note: this functionality is not currently available in 705 the official 706 707 protobuf release, and it is not used for type URLs 708 beginning with 709 710 type.googleapis.com. 711 712 713 Schemes other than `http`, `https` (or the empty scheme) 714 might be 715 716 used with implementation specific semantics. 717 value: 718 type: string 719 format: byte 720 description: >- 721 Must be a valid serialized protocol buffer of the above 722 specified type. 723 description: >- 724 `Any` contains an arbitrary serialized protocol buffer 725 message along with a 726 727 URL that describes the type of the serialized message. 728 729 730 Protobuf library provides support to pack/unpack Any values 731 in the form 732 733 of utility functions or additional generated methods of the 734 Any type. 735 736 737 Example 1: Pack and unpack a message in C++. 738 739 Foo foo = ...; 740 Any any; 741 any.PackFrom(foo); 742 ... 743 if (any.UnpackTo(&foo)) { 744 ... 745 } 746 747 Example 2: Pack and unpack a message in Java. 748 749 Foo foo = ...; 750 Any any = Any.pack(foo); 751 ... 752 if (any.is(Foo.class)) { 753 foo = any.unpack(Foo.class); 754 } 755 // or ... 756 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 757 foo = any.unpack(Foo.getDefaultInstance()); 758 } 759 760 Example 3: Pack and unpack a message in Python. 761 762 foo = Foo(...) 763 any = Any() 764 any.Pack(foo) 765 ... 766 if any.Is(Foo.DESCRIPTOR): 767 any.Unpack(foo) 768 ... 769 770 Example 4: Pack and unpack a message in Go 771 772 foo := &pb.Foo{...} 773 any, err := anypb.New(foo) 774 if err != nil { 775 ... 776 } 777 ... 778 foo := &pb.Foo{} 779 if err := any.UnmarshalTo(foo); err != nil { 780 ... 781 } 782 783 The pack methods provided by protobuf library will by 784 default use 785 786 'type.googleapis.com/full.type.name' as the type URL and the 787 unpack 788 789 methods only use the fully qualified type name after the 790 last '/' 791 792 in the type URL, for example "foo.bar.com/x/y.z" will yield 793 type 794 795 name "y.z". 796 797 798 JSON 799 800 801 The JSON representation of an `Any` value uses the regular 802 803 representation of the deserialized, embedded message, with 804 an 805 806 additional field `@type` which contains the type URL. 807 Example: 808 809 package google.profile; 810 message Person { 811 string first_name = 1; 812 string last_name = 2; 813 } 814 815 { 816 "@type": "type.googleapis.com/google.profile.Person", 817 "firstName": <string>, 818 "lastName": <string> 819 } 820 821 If the embedded message type is well-known and has a custom 822 JSON 823 824 representation, that representation will be embedded adding 825 a field 826 827 `value` which holds the custom JSON in addition to the 828 `@type` 829 830 field. Example (for message [google.protobuf.Duration][]): 831 832 { 833 "@type": "type.googleapis.com/google.protobuf.Duration", 834 "value": "1.212s" 835 } 836 parameters: 837 - name: pagination.key 838 description: |- 839 key is a value returned in PageResponse.next_key to begin 840 querying the next page most efficiently. Only one of offset or key 841 should be set. 842 in: query 843 required: false 844 type: string 845 format: byte 846 - name: pagination.offset 847 description: >- 848 offset is a numeric offset that can be used when key is unavailable. 849 850 It is less efficient than using key. Only one of offset or key 851 should 852 853 be set. 854 in: query 855 required: false 856 type: string 857 format: uint64 858 - name: pagination.limit 859 description: >- 860 limit is the total number of results to be returned in the result 861 page. 862 863 If left empty it will default to a value to be set by each app. 864 in: query 865 required: false 866 type: string 867 format: uint64 868 - name: pagination.count_total 869 description: >- 870 count_total is set to true to indicate that the result set should 871 include 872 873 a count of the total number of items available for pagination in 874 UIs. 875 876 count_total is only respected when offset is used. It is ignored 877 when key 878 879 is set. 880 in: query 881 required: false 882 type: boolean 883 - name: pagination.reverse 884 description: >- 885 reverse is set to true if results are to be returned in the 886 descending order. 887 888 889 Since: cosmos-sdk 0.43 890 in: query 891 required: false 892 type: boolean 893 tags: 894 - Query 895 /cosmos/auth/v1beta1/accounts/{address}: 896 get: 897 summary: Account returns account details based on address. 898 operationId: Account 899 responses: 900 '200': 901 description: A successful response. 902 schema: 903 type: object 904 properties: 905 account: 906 type: object 907 properties: 908 type_url: 909 type: string 910 description: >- 911 A URL/resource name that uniquely identifies the type of 912 the serialized 913 914 protocol buffer message. This string must contain at least 915 916 one "/" character. The last segment of the URL's path must 917 represent 918 919 the fully qualified name of the type (as in 920 921 `path/google.protobuf.Duration`). The name should be in a 922 canonical form 923 924 (e.g., leading "." is not accepted). 925 926 927 In practice, teams usually precompile into the binary all 928 types that they 929 930 expect it to use in the context of Any. However, for URLs 931 which use the 932 933 scheme `http`, `https`, or no scheme, one can optionally 934 set up a type 935 936 server that maps type URLs to message definitions as 937 follows: 938 939 940 * If no scheme is provided, `https` is assumed. 941 942 * An HTTP GET on the URL must yield a 943 [google.protobuf.Type][] 944 value in binary format, or produce an error. 945 * Applications are allowed to cache lookup results based 946 on the 947 URL, or have them precompiled into a binary to avoid any 948 lookup. Therefore, binary compatibility needs to be preserved 949 on changes to types. (Use versioned type names to manage 950 breaking changes.) 951 952 Note: this functionality is not currently available in the 953 official 954 955 protobuf release, and it is not used for type URLs 956 beginning with 957 958 type.googleapis.com. 959 960 961 Schemes other than `http`, `https` (or the empty scheme) 962 might be 963 964 used with implementation specific semantics. 965 value: 966 type: string 967 format: byte 968 description: >- 969 Must be a valid serialized protocol buffer of the above 970 specified type. 971 description: >- 972 `Any` contains an arbitrary serialized protocol buffer message 973 along with a 974 975 URL that describes the type of the serialized message. 976 977 978 Protobuf library provides support to pack/unpack Any values in 979 the form 980 981 of utility functions or additional generated methods of the 982 Any type. 983 984 985 Example 1: Pack and unpack a message in C++. 986 987 Foo foo = ...; 988 Any any; 989 any.PackFrom(foo); 990 ... 991 if (any.UnpackTo(&foo)) { 992 ... 993 } 994 995 Example 2: Pack and unpack a message in Java. 996 997 Foo foo = ...; 998 Any any = Any.pack(foo); 999 ... 1000 if (any.is(Foo.class)) { 1001 foo = any.unpack(Foo.class); 1002 } 1003 // or ... 1004 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 1005 foo = any.unpack(Foo.getDefaultInstance()); 1006 } 1007 1008 Example 3: Pack and unpack a message in Python. 1009 1010 foo = Foo(...) 1011 any = Any() 1012 any.Pack(foo) 1013 ... 1014 if any.Is(Foo.DESCRIPTOR): 1015 any.Unpack(foo) 1016 ... 1017 1018 Example 4: Pack and unpack a message in Go 1019 1020 foo := &pb.Foo{...} 1021 any, err := anypb.New(foo) 1022 if err != nil { 1023 ... 1024 } 1025 ... 1026 foo := &pb.Foo{} 1027 if err := any.UnmarshalTo(foo); err != nil { 1028 ... 1029 } 1030 1031 The pack methods provided by protobuf library will by default 1032 use 1033 1034 'type.googleapis.com/full.type.name' as the type URL and the 1035 unpack 1036 1037 methods only use the fully qualified type name after the last 1038 '/' 1039 1040 in the type URL, for example "foo.bar.com/x/y.z" will yield 1041 type 1042 1043 name "y.z". 1044 1045 1046 JSON 1047 1048 1049 The JSON representation of an `Any` value uses the regular 1050 1051 representation of the deserialized, embedded message, with an 1052 1053 additional field `@type` which contains the type URL. Example: 1054 1055 package google.profile; 1056 message Person { 1057 string first_name = 1; 1058 string last_name = 2; 1059 } 1060 1061 { 1062 "@type": "type.googleapis.com/google.profile.Person", 1063 "firstName": <string>, 1064 "lastName": <string> 1065 } 1066 1067 If the embedded message type is well-known and has a custom 1068 JSON 1069 1070 representation, that representation will be embedded adding a 1071 field 1072 1073 `value` which holds the custom JSON in addition to the `@type` 1074 1075 field. Example (for message [google.protobuf.Duration][]): 1076 1077 { 1078 "@type": "type.googleapis.com/google.protobuf.Duration", 1079 "value": "1.212s" 1080 } 1081 description: >- 1082 QueryAccountResponse is the response type for the Query/Account 1083 RPC method. 1084 default: 1085 description: An unexpected error response. 1086 schema: 1087 type: object 1088 properties: 1089 error: 1090 type: string 1091 code: 1092 type: integer 1093 format: int32 1094 message: 1095 type: string 1096 details: 1097 type: array 1098 items: 1099 type: object 1100 properties: 1101 type_url: 1102 type: string 1103 description: >- 1104 A URL/resource name that uniquely identifies the type of 1105 the serialized 1106 1107 protocol buffer message. This string must contain at 1108 least 1109 1110 one "/" character. The last segment of the URL's path 1111 must represent 1112 1113 the fully qualified name of the type (as in 1114 1115 `path/google.protobuf.Duration`). The name should be in 1116 a canonical form 1117 1118 (e.g., leading "." is not accepted). 1119 1120 1121 In practice, teams usually precompile into the binary 1122 all types that they 1123 1124 expect it to use in the context of Any. However, for 1125 URLs which use the 1126 1127 scheme `http`, `https`, or no scheme, one can optionally 1128 set up a type 1129 1130 server that maps type URLs to message definitions as 1131 follows: 1132 1133 1134 * If no scheme is provided, `https` is assumed. 1135 1136 * An HTTP GET on the URL must yield a 1137 [google.protobuf.Type][] 1138 value in binary format, or produce an error. 1139 * Applications are allowed to cache lookup results based 1140 on the 1141 URL, or have them precompiled into a binary to avoid any 1142 lookup. Therefore, binary compatibility needs to be preserved 1143 on changes to types. (Use versioned type names to manage 1144 breaking changes.) 1145 1146 Note: this functionality is not currently available in 1147 the official 1148 1149 protobuf release, and it is not used for type URLs 1150 beginning with 1151 1152 type.googleapis.com. 1153 1154 1155 Schemes other than `http`, `https` (or the empty scheme) 1156 might be 1157 1158 used with implementation specific semantics. 1159 value: 1160 type: string 1161 format: byte 1162 description: >- 1163 Must be a valid serialized protocol buffer of the above 1164 specified type. 1165 description: >- 1166 `Any` contains an arbitrary serialized protocol buffer 1167 message along with a 1168 1169 URL that describes the type of the serialized message. 1170 1171 1172 Protobuf library provides support to pack/unpack Any values 1173 in the form 1174 1175 of utility functions or additional generated methods of the 1176 Any type. 1177 1178 1179 Example 1: Pack and unpack a message in C++. 1180 1181 Foo foo = ...; 1182 Any any; 1183 any.PackFrom(foo); 1184 ... 1185 if (any.UnpackTo(&foo)) { 1186 ... 1187 } 1188 1189 Example 2: Pack and unpack a message in Java. 1190 1191 Foo foo = ...; 1192 Any any = Any.pack(foo); 1193 ... 1194 if (any.is(Foo.class)) { 1195 foo = any.unpack(Foo.class); 1196 } 1197 // or ... 1198 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 1199 foo = any.unpack(Foo.getDefaultInstance()); 1200 } 1201 1202 Example 3: Pack and unpack a message in Python. 1203 1204 foo = Foo(...) 1205 any = Any() 1206 any.Pack(foo) 1207 ... 1208 if any.Is(Foo.DESCRIPTOR): 1209 any.Unpack(foo) 1210 ... 1211 1212 Example 4: Pack and unpack a message in Go 1213 1214 foo := &pb.Foo{...} 1215 any, err := anypb.New(foo) 1216 if err != nil { 1217 ... 1218 } 1219 ... 1220 foo := &pb.Foo{} 1221 if err := any.UnmarshalTo(foo); err != nil { 1222 ... 1223 } 1224 1225 The pack methods provided by protobuf library will by 1226 default use 1227 1228 'type.googleapis.com/full.type.name' as the type URL and the 1229 unpack 1230 1231 methods only use the fully qualified type name after the 1232 last '/' 1233 1234 in the type URL, for example "foo.bar.com/x/y.z" will yield 1235 type 1236 1237 name "y.z". 1238 1239 1240 JSON 1241 1242 1243 The JSON representation of an `Any` value uses the regular 1244 1245 representation of the deserialized, embedded message, with 1246 an 1247 1248 additional field `@type` which contains the type URL. 1249 Example: 1250 1251 package google.profile; 1252 message Person { 1253 string first_name = 1; 1254 string last_name = 2; 1255 } 1256 1257 { 1258 "@type": "type.googleapis.com/google.profile.Person", 1259 "firstName": <string>, 1260 "lastName": <string> 1261 } 1262 1263 If the embedded message type is well-known and has a custom 1264 JSON 1265 1266 representation, that representation will be embedded adding 1267 a field 1268 1269 `value` which holds the custom JSON in addition to the 1270 `@type` 1271 1272 field. Example (for message [google.protobuf.Duration][]): 1273 1274 { 1275 "@type": "type.googleapis.com/google.protobuf.Duration", 1276 "value": "1.212s" 1277 } 1278 parameters: 1279 - name: address 1280 description: address defines the address to query for. 1281 in: path 1282 required: true 1283 type: string 1284 tags: 1285 - Query 1286 /cosmos/auth/v1beta1/address_by_id/{id}: 1287 get: 1288 summary: AccountAddressByID returns account address based on account number. 1289 description: 'Since: cosmos-sdk 0.46.2' 1290 operationId: AccountAddressByID 1291 responses: 1292 '200': 1293 description: A successful response. 1294 schema: 1295 type: object 1296 properties: 1297 account_address: 1298 type: string 1299 description: 'Since: cosmos-sdk 0.46.2' 1300 title: >- 1301 QueryAccountAddressByIDResponse is the response type for 1302 AccountAddressByID rpc method 1303 default: 1304 description: An unexpected error response. 1305 schema: 1306 type: object 1307 properties: 1308 error: 1309 type: string 1310 code: 1311 type: integer 1312 format: int32 1313 message: 1314 type: string 1315 details: 1316 type: array 1317 items: 1318 type: object 1319 properties: 1320 type_url: 1321 type: string 1322 description: >- 1323 A URL/resource name that uniquely identifies the type of 1324 the serialized 1325 1326 protocol buffer message. This string must contain at 1327 least 1328 1329 one "/" character. The last segment of the URL's path 1330 must represent 1331 1332 the fully qualified name of the type (as in 1333 1334 `path/google.protobuf.Duration`). The name should be in 1335 a canonical form 1336 1337 (e.g., leading "." is not accepted). 1338 1339 1340 In practice, teams usually precompile into the binary 1341 all types that they 1342 1343 expect it to use in the context of Any. However, for 1344 URLs which use the 1345 1346 scheme `http`, `https`, or no scheme, one can optionally 1347 set up a type 1348 1349 server that maps type URLs to message definitions as 1350 follows: 1351 1352 1353 * If no scheme is provided, `https` is assumed. 1354 1355 * An HTTP GET on the URL must yield a 1356 [google.protobuf.Type][] 1357 value in binary format, or produce an error. 1358 * Applications are allowed to cache lookup results based 1359 on the 1360 URL, or have them precompiled into a binary to avoid any 1361 lookup. Therefore, binary compatibility needs to be preserved 1362 on changes to types. (Use versioned type names to manage 1363 breaking changes.) 1364 1365 Note: this functionality is not currently available in 1366 the official 1367 1368 protobuf release, and it is not used for type URLs 1369 beginning with 1370 1371 type.googleapis.com. 1372 1373 1374 Schemes other than `http`, `https` (or the empty scheme) 1375 might be 1376 1377 used with implementation specific semantics. 1378 value: 1379 type: string 1380 format: byte 1381 description: >- 1382 Must be a valid serialized protocol buffer of the above 1383 specified type. 1384 description: >- 1385 `Any` contains an arbitrary serialized protocol buffer 1386 message along with a 1387 1388 URL that describes the type of the serialized message. 1389 1390 1391 Protobuf library provides support to pack/unpack Any values 1392 in the form 1393 1394 of utility functions or additional generated methods of the 1395 Any type. 1396 1397 1398 Example 1: Pack and unpack a message in C++. 1399 1400 Foo foo = ...; 1401 Any any; 1402 any.PackFrom(foo); 1403 ... 1404 if (any.UnpackTo(&foo)) { 1405 ... 1406 } 1407 1408 Example 2: Pack and unpack a message in Java. 1409 1410 Foo foo = ...; 1411 Any any = Any.pack(foo); 1412 ... 1413 if (any.is(Foo.class)) { 1414 foo = any.unpack(Foo.class); 1415 } 1416 // or ... 1417 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 1418 foo = any.unpack(Foo.getDefaultInstance()); 1419 } 1420 1421 Example 3: Pack and unpack a message in Python. 1422 1423 foo = Foo(...) 1424 any = Any() 1425 any.Pack(foo) 1426 ... 1427 if any.Is(Foo.DESCRIPTOR): 1428 any.Unpack(foo) 1429 ... 1430 1431 Example 4: Pack and unpack a message in Go 1432 1433 foo := &pb.Foo{...} 1434 any, err := anypb.New(foo) 1435 if err != nil { 1436 ... 1437 } 1438 ... 1439 foo := &pb.Foo{} 1440 if err := any.UnmarshalTo(foo); err != nil { 1441 ... 1442 } 1443 1444 The pack methods provided by protobuf library will by 1445 default use 1446 1447 'type.googleapis.com/full.type.name' as the type URL and the 1448 unpack 1449 1450 methods only use the fully qualified type name after the 1451 last '/' 1452 1453 in the type URL, for example "foo.bar.com/x/y.z" will yield 1454 type 1455 1456 name "y.z". 1457 1458 1459 JSON 1460 1461 1462 The JSON representation of an `Any` value uses the regular 1463 1464 representation of the deserialized, embedded message, with 1465 an 1466 1467 additional field `@type` which contains the type URL. 1468 Example: 1469 1470 package google.profile; 1471 message Person { 1472 string first_name = 1; 1473 string last_name = 2; 1474 } 1475 1476 { 1477 "@type": "type.googleapis.com/google.profile.Person", 1478 "firstName": <string>, 1479 "lastName": <string> 1480 } 1481 1482 If the embedded message type is well-known and has a custom 1483 JSON 1484 1485 representation, that representation will be embedded adding 1486 a field 1487 1488 `value` which holds the custom JSON in addition to the 1489 `@type` 1490 1491 field. Example (for message [google.protobuf.Duration][]): 1492 1493 { 1494 "@type": "type.googleapis.com/google.protobuf.Duration", 1495 "value": "1.212s" 1496 } 1497 parameters: 1498 - name: id 1499 description: |- 1500 Deprecated, use account_id instead 1501 1502 id is the account number of the address to be queried. This field 1503 should have been an uint64 (like all account numbers), and will be 1504 updated to uint64 in a future version of the auth query. 1505 in: path 1506 required: true 1507 type: string 1508 format: int64 1509 - name: account_id 1510 description: |- 1511 account_id is the account number of the address to be queried. 1512 1513 Since: cosmos-sdk 0.47 1514 in: query 1515 required: false 1516 type: string 1517 format: uint64 1518 tags: 1519 - Query 1520 /cosmos/auth/v1beta1/bech32: 1521 get: 1522 summary: Bech32Prefix queries bech32Prefix 1523 description: 'Since: cosmos-sdk 0.46' 1524 operationId: Bech32Prefix 1525 responses: 1526 '200': 1527 description: A successful response. 1528 schema: 1529 type: object 1530 properties: 1531 bech32_prefix: 1532 type: string 1533 description: >- 1534 Bech32PrefixResponse is the response type for Bech32Prefix rpc 1535 method. 1536 1537 1538 Since: cosmos-sdk 0.46 1539 default: 1540 description: An unexpected error response. 1541 schema: 1542 type: object 1543 properties: 1544 error: 1545 type: string 1546 code: 1547 type: integer 1548 format: int32 1549 message: 1550 type: string 1551 details: 1552 type: array 1553 items: 1554 type: object 1555 properties: 1556 type_url: 1557 type: string 1558 description: >- 1559 A URL/resource name that uniquely identifies the type of 1560 the serialized 1561 1562 protocol buffer message. This string must contain at 1563 least 1564 1565 one "/" character. The last segment of the URL's path 1566 must represent 1567 1568 the fully qualified name of the type (as in 1569 1570 `path/google.protobuf.Duration`). The name should be in 1571 a canonical form 1572 1573 (e.g., leading "." is not accepted). 1574 1575 1576 In practice, teams usually precompile into the binary 1577 all types that they 1578 1579 expect it to use in the context of Any. However, for 1580 URLs which use the 1581 1582 scheme `http`, `https`, or no scheme, one can optionally 1583 set up a type 1584 1585 server that maps type URLs to message definitions as 1586 follows: 1587 1588 1589 * If no scheme is provided, `https` is assumed. 1590 1591 * An HTTP GET on the URL must yield a 1592 [google.protobuf.Type][] 1593 value in binary format, or produce an error. 1594 * Applications are allowed to cache lookup results based 1595 on the 1596 URL, or have them precompiled into a binary to avoid any 1597 lookup. Therefore, binary compatibility needs to be preserved 1598 on changes to types. (Use versioned type names to manage 1599 breaking changes.) 1600 1601 Note: this functionality is not currently available in 1602 the official 1603 1604 protobuf release, and it is not used for type URLs 1605 beginning with 1606 1607 type.googleapis.com. 1608 1609 1610 Schemes other than `http`, `https` (or the empty scheme) 1611 might be 1612 1613 used with implementation specific semantics. 1614 value: 1615 type: string 1616 format: byte 1617 description: >- 1618 Must be a valid serialized protocol buffer of the above 1619 specified type. 1620 description: >- 1621 `Any` contains an arbitrary serialized protocol buffer 1622 message along with a 1623 1624 URL that describes the type of the serialized message. 1625 1626 1627 Protobuf library provides support to pack/unpack Any values 1628 in the form 1629 1630 of utility functions or additional generated methods of the 1631 Any type. 1632 1633 1634 Example 1: Pack and unpack a message in C++. 1635 1636 Foo foo = ...; 1637 Any any; 1638 any.PackFrom(foo); 1639 ... 1640 if (any.UnpackTo(&foo)) { 1641 ... 1642 } 1643 1644 Example 2: Pack and unpack a message in Java. 1645 1646 Foo foo = ...; 1647 Any any = Any.pack(foo); 1648 ... 1649 if (any.is(Foo.class)) { 1650 foo = any.unpack(Foo.class); 1651 } 1652 // or ... 1653 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 1654 foo = any.unpack(Foo.getDefaultInstance()); 1655 } 1656 1657 Example 3: Pack and unpack a message in Python. 1658 1659 foo = Foo(...) 1660 any = Any() 1661 any.Pack(foo) 1662 ... 1663 if any.Is(Foo.DESCRIPTOR): 1664 any.Unpack(foo) 1665 ... 1666 1667 Example 4: Pack and unpack a message in Go 1668 1669 foo := &pb.Foo{...} 1670 any, err := anypb.New(foo) 1671 if err != nil { 1672 ... 1673 } 1674 ... 1675 foo := &pb.Foo{} 1676 if err := any.UnmarshalTo(foo); err != nil { 1677 ... 1678 } 1679 1680 The pack methods provided by protobuf library will by 1681 default use 1682 1683 'type.googleapis.com/full.type.name' as the type URL and the 1684 unpack 1685 1686 methods only use the fully qualified type name after the 1687 last '/' 1688 1689 in the type URL, for example "foo.bar.com/x/y.z" will yield 1690 type 1691 1692 name "y.z". 1693 1694 1695 JSON 1696 1697 1698 The JSON representation of an `Any` value uses the regular 1699 1700 representation of the deserialized, embedded message, with 1701 an 1702 1703 additional field `@type` which contains the type URL. 1704 Example: 1705 1706 package google.profile; 1707 message Person { 1708 string first_name = 1; 1709 string last_name = 2; 1710 } 1711 1712 { 1713 "@type": "type.googleapis.com/google.profile.Person", 1714 "firstName": <string>, 1715 "lastName": <string> 1716 } 1717 1718 If the embedded message type is well-known and has a custom 1719 JSON 1720 1721 representation, that representation will be embedded adding 1722 a field 1723 1724 `value` which holds the custom JSON in addition to the 1725 `@type` 1726 1727 field. Example (for message [google.protobuf.Duration][]): 1728 1729 { 1730 "@type": "type.googleapis.com/google.protobuf.Duration", 1731 "value": "1.212s" 1732 } 1733 tags: 1734 - Query 1735 /cosmos/auth/v1beta1/bech32/{address_bytes}: 1736 get: 1737 summary: AddressBytesToString converts Account Address bytes to string 1738 description: 'Since: cosmos-sdk 0.46' 1739 operationId: AddressBytesToString 1740 responses: 1741 '200': 1742 description: A successful response. 1743 schema: 1744 type: object 1745 properties: 1746 address_string: 1747 type: string 1748 description: >- 1749 AddressBytesToStringResponse is the response type for 1750 AddressString rpc method. 1751 1752 1753 Since: cosmos-sdk 0.46 1754 default: 1755 description: An unexpected error response. 1756 schema: 1757 type: object 1758 properties: 1759 error: 1760 type: string 1761 code: 1762 type: integer 1763 format: int32 1764 message: 1765 type: string 1766 details: 1767 type: array 1768 items: 1769 type: object 1770 properties: 1771 type_url: 1772 type: string 1773 description: >- 1774 A URL/resource name that uniquely identifies the type of 1775 the serialized 1776 1777 protocol buffer message. This string must contain at 1778 least 1779 1780 one "/" character. The last segment of the URL's path 1781 must represent 1782 1783 the fully qualified name of the type (as in 1784 1785 `path/google.protobuf.Duration`). The name should be in 1786 a canonical form 1787 1788 (e.g., leading "." is not accepted). 1789 1790 1791 In practice, teams usually precompile into the binary 1792 all types that they 1793 1794 expect it to use in the context of Any. However, for 1795 URLs which use the 1796 1797 scheme `http`, `https`, or no scheme, one can optionally 1798 set up a type 1799 1800 server that maps type URLs to message definitions as 1801 follows: 1802 1803 1804 * If no scheme is provided, `https` is assumed. 1805 1806 * An HTTP GET on the URL must yield a 1807 [google.protobuf.Type][] 1808 value in binary format, or produce an error. 1809 * Applications are allowed to cache lookup results based 1810 on the 1811 URL, or have them precompiled into a binary to avoid any 1812 lookup. Therefore, binary compatibility needs to be preserved 1813 on changes to types. (Use versioned type names to manage 1814 breaking changes.) 1815 1816 Note: this functionality is not currently available in 1817 the official 1818 1819 protobuf release, and it is not used for type URLs 1820 beginning with 1821 1822 type.googleapis.com. 1823 1824 1825 Schemes other than `http`, `https` (or the empty scheme) 1826 might be 1827 1828 used with implementation specific semantics. 1829 value: 1830 type: string 1831 format: byte 1832 description: >- 1833 Must be a valid serialized protocol buffer of the above 1834 specified type. 1835 description: >- 1836 `Any` contains an arbitrary serialized protocol buffer 1837 message along with a 1838 1839 URL that describes the type of the serialized message. 1840 1841 1842 Protobuf library provides support to pack/unpack Any values 1843 in the form 1844 1845 of utility functions or additional generated methods of the 1846 Any type. 1847 1848 1849 Example 1: Pack and unpack a message in C++. 1850 1851 Foo foo = ...; 1852 Any any; 1853 any.PackFrom(foo); 1854 ... 1855 if (any.UnpackTo(&foo)) { 1856 ... 1857 } 1858 1859 Example 2: Pack and unpack a message in Java. 1860 1861 Foo foo = ...; 1862 Any any = Any.pack(foo); 1863 ... 1864 if (any.is(Foo.class)) { 1865 foo = any.unpack(Foo.class); 1866 } 1867 // or ... 1868 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 1869 foo = any.unpack(Foo.getDefaultInstance()); 1870 } 1871 1872 Example 3: Pack and unpack a message in Python. 1873 1874 foo = Foo(...) 1875 any = Any() 1876 any.Pack(foo) 1877 ... 1878 if any.Is(Foo.DESCRIPTOR): 1879 any.Unpack(foo) 1880 ... 1881 1882 Example 4: Pack and unpack a message in Go 1883 1884 foo := &pb.Foo{...} 1885 any, err := anypb.New(foo) 1886 if err != nil { 1887 ... 1888 } 1889 ... 1890 foo := &pb.Foo{} 1891 if err := any.UnmarshalTo(foo); err != nil { 1892 ... 1893 } 1894 1895 The pack methods provided by protobuf library will by 1896 default use 1897 1898 'type.googleapis.com/full.type.name' as the type URL and the 1899 unpack 1900 1901 methods only use the fully qualified type name after the 1902 last '/' 1903 1904 in the type URL, for example "foo.bar.com/x/y.z" will yield 1905 type 1906 1907 name "y.z". 1908 1909 1910 JSON 1911 1912 1913 The JSON representation of an `Any` value uses the regular 1914 1915 representation of the deserialized, embedded message, with 1916 an 1917 1918 additional field `@type` which contains the type URL. 1919 Example: 1920 1921 package google.profile; 1922 message Person { 1923 string first_name = 1; 1924 string last_name = 2; 1925 } 1926 1927 { 1928 "@type": "type.googleapis.com/google.profile.Person", 1929 "firstName": <string>, 1930 "lastName": <string> 1931 } 1932 1933 If the embedded message type is well-known and has a custom 1934 JSON 1935 1936 representation, that representation will be embedded adding 1937 a field 1938 1939 `value` which holds the custom JSON in addition to the 1940 `@type` 1941 1942 field. Example (for message [google.protobuf.Duration][]): 1943 1944 { 1945 "@type": "type.googleapis.com/google.protobuf.Duration", 1946 "value": "1.212s" 1947 } 1948 parameters: 1949 - name: address_bytes 1950 in: path 1951 required: true 1952 type: string 1953 format: byte 1954 tags: 1955 - Query 1956 /cosmos/auth/v1beta1/bech32/{address_string}: 1957 get: 1958 summary: AddressStringToBytes converts Address string to bytes 1959 description: 'Since: cosmos-sdk 0.46' 1960 operationId: AddressStringToBytes 1961 responses: 1962 '200': 1963 description: A successful response. 1964 schema: 1965 type: object 1966 properties: 1967 address_bytes: 1968 type: string 1969 format: byte 1970 description: >- 1971 AddressStringToBytesResponse is the response type for AddressBytes 1972 rpc method. 1973 1974 1975 Since: cosmos-sdk 0.46 1976 default: 1977 description: An unexpected error response. 1978 schema: 1979 type: object 1980 properties: 1981 error: 1982 type: string 1983 code: 1984 type: integer 1985 format: int32 1986 message: 1987 type: string 1988 details: 1989 type: array 1990 items: 1991 type: object 1992 properties: 1993 type_url: 1994 type: string 1995 description: >- 1996 A URL/resource name that uniquely identifies the type of 1997 the serialized 1998 1999 protocol buffer message. This string must contain at 2000 least 2001 2002 one "/" character. The last segment of the URL's path 2003 must represent 2004 2005 the fully qualified name of the type (as in 2006 2007 `path/google.protobuf.Duration`). The name should be in 2008 a canonical form 2009 2010 (e.g., leading "." is not accepted). 2011 2012 2013 In practice, teams usually precompile into the binary 2014 all types that they 2015 2016 expect it to use in the context of Any. However, for 2017 URLs which use the 2018 2019 scheme `http`, `https`, or no scheme, one can optionally 2020 set up a type 2021 2022 server that maps type URLs to message definitions as 2023 follows: 2024 2025 2026 * If no scheme is provided, `https` is assumed. 2027 2028 * An HTTP GET on the URL must yield a 2029 [google.protobuf.Type][] 2030 value in binary format, or produce an error. 2031 * Applications are allowed to cache lookup results based 2032 on the 2033 URL, or have them precompiled into a binary to avoid any 2034 lookup. Therefore, binary compatibility needs to be preserved 2035 on changes to types. (Use versioned type names to manage 2036 breaking changes.) 2037 2038 Note: this functionality is not currently available in 2039 the official 2040 2041 protobuf release, and it is not used for type URLs 2042 beginning with 2043 2044 type.googleapis.com. 2045 2046 2047 Schemes other than `http`, `https` (or the empty scheme) 2048 might be 2049 2050 used with implementation specific semantics. 2051 value: 2052 type: string 2053 format: byte 2054 description: >- 2055 Must be a valid serialized protocol buffer of the above 2056 specified type. 2057 description: >- 2058 `Any` contains an arbitrary serialized protocol buffer 2059 message along with a 2060 2061 URL that describes the type of the serialized message. 2062 2063 2064 Protobuf library provides support to pack/unpack Any values 2065 in the form 2066 2067 of utility functions or additional generated methods of the 2068 Any type. 2069 2070 2071 Example 1: Pack and unpack a message in C++. 2072 2073 Foo foo = ...; 2074 Any any; 2075 any.PackFrom(foo); 2076 ... 2077 if (any.UnpackTo(&foo)) { 2078 ... 2079 } 2080 2081 Example 2: Pack and unpack a message in Java. 2082 2083 Foo foo = ...; 2084 Any any = Any.pack(foo); 2085 ... 2086 if (any.is(Foo.class)) { 2087 foo = any.unpack(Foo.class); 2088 } 2089 // or ... 2090 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 2091 foo = any.unpack(Foo.getDefaultInstance()); 2092 } 2093 2094 Example 3: Pack and unpack a message in Python. 2095 2096 foo = Foo(...) 2097 any = Any() 2098 any.Pack(foo) 2099 ... 2100 if any.Is(Foo.DESCRIPTOR): 2101 any.Unpack(foo) 2102 ... 2103 2104 Example 4: Pack and unpack a message in Go 2105 2106 foo := &pb.Foo{...} 2107 any, err := anypb.New(foo) 2108 if err != nil { 2109 ... 2110 } 2111 ... 2112 foo := &pb.Foo{} 2113 if err := any.UnmarshalTo(foo); err != nil { 2114 ... 2115 } 2116 2117 The pack methods provided by protobuf library will by 2118 default use 2119 2120 'type.googleapis.com/full.type.name' as the type URL and the 2121 unpack 2122 2123 methods only use the fully qualified type name after the 2124 last '/' 2125 2126 in the type URL, for example "foo.bar.com/x/y.z" will yield 2127 type 2128 2129 name "y.z". 2130 2131 2132 JSON 2133 2134 2135 The JSON representation of an `Any` value uses the regular 2136 2137 representation of the deserialized, embedded message, with 2138 an 2139 2140 additional field `@type` which contains the type URL. 2141 Example: 2142 2143 package google.profile; 2144 message Person { 2145 string first_name = 1; 2146 string last_name = 2; 2147 } 2148 2149 { 2150 "@type": "type.googleapis.com/google.profile.Person", 2151 "firstName": <string>, 2152 "lastName": <string> 2153 } 2154 2155 If the embedded message type is well-known and has a custom 2156 JSON 2157 2158 representation, that representation will be embedded adding 2159 a field 2160 2161 `value` which holds the custom JSON in addition to the 2162 `@type` 2163 2164 field. Example (for message [google.protobuf.Duration][]): 2165 2166 { 2167 "@type": "type.googleapis.com/google.protobuf.Duration", 2168 "value": "1.212s" 2169 } 2170 parameters: 2171 - name: address_string 2172 in: path 2173 required: true 2174 type: string 2175 tags: 2176 - Query 2177 /cosmos/auth/v1beta1/module_accounts: 2178 get: 2179 summary: ModuleAccounts returns all the existing module accounts. 2180 description: 'Since: cosmos-sdk 0.46' 2181 operationId: ModuleAccounts 2182 responses: 2183 '200': 2184 description: A successful response. 2185 schema: 2186 type: object 2187 properties: 2188 accounts: 2189 type: array 2190 items: 2191 type: object 2192 properties: 2193 type_url: 2194 type: string 2195 description: >- 2196 A URL/resource name that uniquely identifies the type of 2197 the serialized 2198 2199 protocol buffer message. This string must contain at 2200 least 2201 2202 one "/" character. The last segment of the URL's path 2203 must represent 2204 2205 the fully qualified name of the type (as in 2206 2207 `path/google.protobuf.Duration`). The name should be in 2208 a canonical form 2209 2210 (e.g., leading "." is not accepted). 2211 2212 2213 In practice, teams usually precompile into the binary 2214 all types that they 2215 2216 expect it to use in the context of Any. However, for 2217 URLs which use the 2218 2219 scheme `http`, `https`, or no scheme, one can optionally 2220 set up a type 2221 2222 server that maps type URLs to message definitions as 2223 follows: 2224 2225 2226 * If no scheme is provided, `https` is assumed. 2227 2228 * An HTTP GET on the URL must yield a 2229 [google.protobuf.Type][] 2230 value in binary format, or produce an error. 2231 * Applications are allowed to cache lookup results based 2232 on the 2233 URL, or have them precompiled into a binary to avoid any 2234 lookup. Therefore, binary compatibility needs to be preserved 2235 on changes to types. (Use versioned type names to manage 2236 breaking changes.) 2237 2238 Note: this functionality is not currently available in 2239 the official 2240 2241 protobuf release, and it is not used for type URLs 2242 beginning with 2243 2244 type.googleapis.com. 2245 2246 2247 Schemes other than `http`, `https` (or the empty scheme) 2248 might be 2249 2250 used with implementation specific semantics. 2251 value: 2252 type: string 2253 format: byte 2254 description: >- 2255 Must be a valid serialized protocol buffer of the above 2256 specified type. 2257 description: >- 2258 `Any` contains an arbitrary serialized protocol buffer 2259 message along with a 2260 2261 URL that describes the type of the serialized message. 2262 2263 2264 Protobuf library provides support to pack/unpack Any values 2265 in the form 2266 2267 of utility functions or additional generated methods of the 2268 Any type. 2269 2270 2271 Example 1: Pack and unpack a message in C++. 2272 2273 Foo foo = ...; 2274 Any any; 2275 any.PackFrom(foo); 2276 ... 2277 if (any.UnpackTo(&foo)) { 2278 ... 2279 } 2280 2281 Example 2: Pack and unpack a message in Java. 2282 2283 Foo foo = ...; 2284 Any any = Any.pack(foo); 2285 ... 2286 if (any.is(Foo.class)) { 2287 foo = any.unpack(Foo.class); 2288 } 2289 // or ... 2290 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 2291 foo = any.unpack(Foo.getDefaultInstance()); 2292 } 2293 2294 Example 3: Pack and unpack a message in Python. 2295 2296 foo = Foo(...) 2297 any = Any() 2298 any.Pack(foo) 2299 ... 2300 if any.Is(Foo.DESCRIPTOR): 2301 any.Unpack(foo) 2302 ... 2303 2304 Example 4: Pack and unpack a message in Go 2305 2306 foo := &pb.Foo{...} 2307 any, err := anypb.New(foo) 2308 if err != nil { 2309 ... 2310 } 2311 ... 2312 foo := &pb.Foo{} 2313 if err := any.UnmarshalTo(foo); err != nil { 2314 ... 2315 } 2316 2317 The pack methods provided by protobuf library will by 2318 default use 2319 2320 'type.googleapis.com/full.type.name' as the type URL and the 2321 unpack 2322 2323 methods only use the fully qualified type name after the 2324 last '/' 2325 2326 in the type URL, for example "foo.bar.com/x/y.z" will yield 2327 type 2328 2329 name "y.z". 2330 2331 2332 JSON 2333 2334 2335 The JSON representation of an `Any` value uses the regular 2336 2337 representation of the deserialized, embedded message, with 2338 an 2339 2340 additional field `@type` which contains the type URL. 2341 Example: 2342 2343 package google.profile; 2344 message Person { 2345 string first_name = 1; 2346 string last_name = 2; 2347 } 2348 2349 { 2350 "@type": "type.googleapis.com/google.profile.Person", 2351 "firstName": <string>, 2352 "lastName": <string> 2353 } 2354 2355 If the embedded message type is well-known and has a custom 2356 JSON 2357 2358 representation, that representation will be embedded adding 2359 a field 2360 2361 `value` which holds the custom JSON in addition to the 2362 `@type` 2363 2364 field. Example (for message [google.protobuf.Duration][]): 2365 2366 { 2367 "@type": "type.googleapis.com/google.protobuf.Duration", 2368 "value": "1.212s" 2369 } 2370 description: >- 2371 QueryModuleAccountsResponse is the response type for the 2372 Query/ModuleAccounts RPC method. 2373 2374 2375 Since: cosmos-sdk 0.46 2376 default: 2377 description: An unexpected error response. 2378 schema: 2379 type: object 2380 properties: 2381 error: 2382 type: string 2383 code: 2384 type: integer 2385 format: int32 2386 message: 2387 type: string 2388 details: 2389 type: array 2390 items: 2391 type: object 2392 properties: 2393 type_url: 2394 type: string 2395 description: >- 2396 A URL/resource name that uniquely identifies the type of 2397 the serialized 2398 2399 protocol buffer message. This string must contain at 2400 least 2401 2402 one "/" character. The last segment of the URL's path 2403 must represent 2404 2405 the fully qualified name of the type (as in 2406 2407 `path/google.protobuf.Duration`). The name should be in 2408 a canonical form 2409 2410 (e.g., leading "." is not accepted). 2411 2412 2413 In practice, teams usually precompile into the binary 2414 all types that they 2415 2416 expect it to use in the context of Any. However, for 2417 URLs which use the 2418 2419 scheme `http`, `https`, or no scheme, one can optionally 2420 set up a type 2421 2422 server that maps type URLs to message definitions as 2423 follows: 2424 2425 2426 * If no scheme is provided, `https` is assumed. 2427 2428 * An HTTP GET on the URL must yield a 2429 [google.protobuf.Type][] 2430 value in binary format, or produce an error. 2431 * Applications are allowed to cache lookup results based 2432 on the 2433 URL, or have them precompiled into a binary to avoid any 2434 lookup. Therefore, binary compatibility needs to be preserved 2435 on changes to types. (Use versioned type names to manage 2436 breaking changes.) 2437 2438 Note: this functionality is not currently available in 2439 the official 2440 2441 protobuf release, and it is not used for type URLs 2442 beginning with 2443 2444 type.googleapis.com. 2445 2446 2447 Schemes other than `http`, `https` (or the empty scheme) 2448 might be 2449 2450 used with implementation specific semantics. 2451 value: 2452 type: string 2453 format: byte 2454 description: >- 2455 Must be a valid serialized protocol buffer of the above 2456 specified type. 2457 description: >- 2458 `Any` contains an arbitrary serialized protocol buffer 2459 message along with a 2460 2461 URL that describes the type of the serialized message. 2462 2463 2464 Protobuf library provides support to pack/unpack Any values 2465 in the form 2466 2467 of utility functions or additional generated methods of the 2468 Any type. 2469 2470 2471 Example 1: Pack and unpack a message in C++. 2472 2473 Foo foo = ...; 2474 Any any; 2475 any.PackFrom(foo); 2476 ... 2477 if (any.UnpackTo(&foo)) { 2478 ... 2479 } 2480 2481 Example 2: Pack and unpack a message in Java. 2482 2483 Foo foo = ...; 2484 Any any = Any.pack(foo); 2485 ... 2486 if (any.is(Foo.class)) { 2487 foo = any.unpack(Foo.class); 2488 } 2489 // or ... 2490 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 2491 foo = any.unpack(Foo.getDefaultInstance()); 2492 } 2493 2494 Example 3: Pack and unpack a message in Python. 2495 2496 foo = Foo(...) 2497 any = Any() 2498 any.Pack(foo) 2499 ... 2500 if any.Is(Foo.DESCRIPTOR): 2501 any.Unpack(foo) 2502 ... 2503 2504 Example 4: Pack and unpack a message in Go 2505 2506 foo := &pb.Foo{...} 2507 any, err := anypb.New(foo) 2508 if err != nil { 2509 ... 2510 } 2511 ... 2512 foo := &pb.Foo{} 2513 if err := any.UnmarshalTo(foo); err != nil { 2514 ... 2515 } 2516 2517 The pack methods provided by protobuf library will by 2518 default use 2519 2520 'type.googleapis.com/full.type.name' as the type URL and the 2521 unpack 2522 2523 methods only use the fully qualified type name after the 2524 last '/' 2525 2526 in the type URL, for example "foo.bar.com/x/y.z" will yield 2527 type 2528 2529 name "y.z". 2530 2531 2532 JSON 2533 2534 2535 The JSON representation of an `Any` value uses the regular 2536 2537 representation of the deserialized, embedded message, with 2538 an 2539 2540 additional field `@type` which contains the type URL. 2541 Example: 2542 2543 package google.profile; 2544 message Person { 2545 string first_name = 1; 2546 string last_name = 2; 2547 } 2548 2549 { 2550 "@type": "type.googleapis.com/google.profile.Person", 2551 "firstName": <string>, 2552 "lastName": <string> 2553 } 2554 2555 If the embedded message type is well-known and has a custom 2556 JSON 2557 2558 representation, that representation will be embedded adding 2559 a field 2560 2561 `value` which holds the custom JSON in addition to the 2562 `@type` 2563 2564 field. Example (for message [google.protobuf.Duration][]): 2565 2566 { 2567 "@type": "type.googleapis.com/google.protobuf.Duration", 2568 "value": "1.212s" 2569 } 2570 tags: 2571 - Query 2572 /cosmos/auth/v1beta1/module_accounts/{name}: 2573 get: 2574 summary: ModuleAccountByName returns the module account info by module name 2575 operationId: ModuleAccountByName 2576 responses: 2577 '200': 2578 description: A successful response. 2579 schema: 2580 type: object 2581 properties: 2582 account: 2583 type: object 2584 properties: 2585 type_url: 2586 type: string 2587 description: >- 2588 A URL/resource name that uniquely identifies the type of 2589 the serialized 2590 2591 protocol buffer message. This string must contain at least 2592 2593 one "/" character. The last segment of the URL's path must 2594 represent 2595 2596 the fully qualified name of the type (as in 2597 2598 `path/google.protobuf.Duration`). The name should be in a 2599 canonical form 2600 2601 (e.g., leading "." is not accepted). 2602 2603 2604 In practice, teams usually precompile into the binary all 2605 types that they 2606 2607 expect it to use in the context of Any. However, for URLs 2608 which use the 2609 2610 scheme `http`, `https`, or no scheme, one can optionally 2611 set up a type 2612 2613 server that maps type URLs to message definitions as 2614 follows: 2615 2616 2617 * If no scheme is provided, `https` is assumed. 2618 2619 * An HTTP GET on the URL must yield a 2620 [google.protobuf.Type][] 2621 value in binary format, or produce an error. 2622 * Applications are allowed to cache lookup results based 2623 on the 2624 URL, or have them precompiled into a binary to avoid any 2625 lookup. Therefore, binary compatibility needs to be preserved 2626 on changes to types. (Use versioned type names to manage 2627 breaking changes.) 2628 2629 Note: this functionality is not currently available in the 2630 official 2631 2632 protobuf release, and it is not used for type URLs 2633 beginning with 2634 2635 type.googleapis.com. 2636 2637 2638 Schemes other than `http`, `https` (or the empty scheme) 2639 might be 2640 2641 used with implementation specific semantics. 2642 value: 2643 type: string 2644 format: byte 2645 description: >- 2646 Must be a valid serialized protocol buffer of the above 2647 specified type. 2648 description: >- 2649 `Any` contains an arbitrary serialized protocol buffer message 2650 along with a 2651 2652 URL that describes the type of the serialized message. 2653 2654 2655 Protobuf library provides support to pack/unpack Any values in 2656 the form 2657 2658 of utility functions or additional generated methods of the 2659 Any type. 2660 2661 2662 Example 1: Pack and unpack a message in C++. 2663 2664 Foo foo = ...; 2665 Any any; 2666 any.PackFrom(foo); 2667 ... 2668 if (any.UnpackTo(&foo)) { 2669 ... 2670 } 2671 2672 Example 2: Pack and unpack a message in Java. 2673 2674 Foo foo = ...; 2675 Any any = Any.pack(foo); 2676 ... 2677 if (any.is(Foo.class)) { 2678 foo = any.unpack(Foo.class); 2679 } 2680 // or ... 2681 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 2682 foo = any.unpack(Foo.getDefaultInstance()); 2683 } 2684 2685 Example 3: Pack and unpack a message in Python. 2686 2687 foo = Foo(...) 2688 any = Any() 2689 any.Pack(foo) 2690 ... 2691 if any.Is(Foo.DESCRIPTOR): 2692 any.Unpack(foo) 2693 ... 2694 2695 Example 4: Pack and unpack a message in Go 2696 2697 foo := &pb.Foo{...} 2698 any, err := anypb.New(foo) 2699 if err != nil { 2700 ... 2701 } 2702 ... 2703 foo := &pb.Foo{} 2704 if err := any.UnmarshalTo(foo); err != nil { 2705 ... 2706 } 2707 2708 The pack methods provided by protobuf library will by default 2709 use 2710 2711 'type.googleapis.com/full.type.name' as the type URL and the 2712 unpack 2713 2714 methods only use the fully qualified type name after the last 2715 '/' 2716 2717 in the type URL, for example "foo.bar.com/x/y.z" will yield 2718 type 2719 2720 name "y.z". 2721 2722 2723 JSON 2724 2725 2726 The JSON representation of an `Any` value uses the regular 2727 2728 representation of the deserialized, embedded message, with an 2729 2730 additional field `@type` which contains the type URL. Example: 2731 2732 package google.profile; 2733 message Person { 2734 string first_name = 1; 2735 string last_name = 2; 2736 } 2737 2738 { 2739 "@type": "type.googleapis.com/google.profile.Person", 2740 "firstName": <string>, 2741 "lastName": <string> 2742 } 2743 2744 If the embedded message type is well-known and has a custom 2745 JSON 2746 2747 representation, that representation will be embedded adding a 2748 field 2749 2750 `value` which holds the custom JSON in addition to the `@type` 2751 2752 field. Example (for message [google.protobuf.Duration][]): 2753 2754 { 2755 "@type": "type.googleapis.com/google.protobuf.Duration", 2756 "value": "1.212s" 2757 } 2758 description: >- 2759 QueryModuleAccountByNameResponse is the response type for the 2760 Query/ModuleAccountByName RPC method. 2761 default: 2762 description: An unexpected error response. 2763 schema: 2764 type: object 2765 properties: 2766 error: 2767 type: string 2768 code: 2769 type: integer 2770 format: int32 2771 message: 2772 type: string 2773 details: 2774 type: array 2775 items: 2776 type: object 2777 properties: 2778 type_url: 2779 type: string 2780 description: >- 2781 A URL/resource name that uniquely identifies the type of 2782 the serialized 2783 2784 protocol buffer message. This string must contain at 2785 least 2786 2787 one "/" character. The last segment of the URL's path 2788 must represent 2789 2790 the fully qualified name of the type (as in 2791 2792 `path/google.protobuf.Duration`). The name should be in 2793 a canonical form 2794 2795 (e.g., leading "." is not accepted). 2796 2797 2798 In practice, teams usually precompile into the binary 2799 all types that they 2800 2801 expect it to use in the context of Any. However, for 2802 URLs which use the 2803 2804 scheme `http`, `https`, or no scheme, one can optionally 2805 set up a type 2806 2807 server that maps type URLs to message definitions as 2808 follows: 2809 2810 2811 * If no scheme is provided, `https` is assumed. 2812 2813 * An HTTP GET on the URL must yield a 2814 [google.protobuf.Type][] 2815 value in binary format, or produce an error. 2816 * Applications are allowed to cache lookup results based 2817 on the 2818 URL, or have them precompiled into a binary to avoid any 2819 lookup. Therefore, binary compatibility needs to be preserved 2820 on changes to types. (Use versioned type names to manage 2821 breaking changes.) 2822 2823 Note: this functionality is not currently available in 2824 the official 2825 2826 protobuf release, and it is not used for type URLs 2827 beginning with 2828 2829 type.googleapis.com. 2830 2831 2832 Schemes other than `http`, `https` (or the empty scheme) 2833 might be 2834 2835 used with implementation specific semantics. 2836 value: 2837 type: string 2838 format: byte 2839 description: >- 2840 Must be a valid serialized protocol buffer of the above 2841 specified type. 2842 description: >- 2843 `Any` contains an arbitrary serialized protocol buffer 2844 message along with a 2845 2846 URL that describes the type of the serialized message. 2847 2848 2849 Protobuf library provides support to pack/unpack Any values 2850 in the form 2851 2852 of utility functions or additional generated methods of the 2853 Any type. 2854 2855 2856 Example 1: Pack and unpack a message in C++. 2857 2858 Foo foo = ...; 2859 Any any; 2860 any.PackFrom(foo); 2861 ... 2862 if (any.UnpackTo(&foo)) { 2863 ... 2864 } 2865 2866 Example 2: Pack and unpack a message in Java. 2867 2868 Foo foo = ...; 2869 Any any = Any.pack(foo); 2870 ... 2871 if (any.is(Foo.class)) { 2872 foo = any.unpack(Foo.class); 2873 } 2874 // or ... 2875 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 2876 foo = any.unpack(Foo.getDefaultInstance()); 2877 } 2878 2879 Example 3: Pack and unpack a message in Python. 2880 2881 foo = Foo(...) 2882 any = Any() 2883 any.Pack(foo) 2884 ... 2885 if any.Is(Foo.DESCRIPTOR): 2886 any.Unpack(foo) 2887 ... 2888 2889 Example 4: Pack and unpack a message in Go 2890 2891 foo := &pb.Foo{...} 2892 any, err := anypb.New(foo) 2893 if err != nil { 2894 ... 2895 } 2896 ... 2897 foo := &pb.Foo{} 2898 if err := any.UnmarshalTo(foo); err != nil { 2899 ... 2900 } 2901 2902 The pack methods provided by protobuf library will by 2903 default use 2904 2905 'type.googleapis.com/full.type.name' as the type URL and the 2906 unpack 2907 2908 methods only use the fully qualified type name after the 2909 last '/' 2910 2911 in the type URL, for example "foo.bar.com/x/y.z" will yield 2912 type 2913 2914 name "y.z". 2915 2916 2917 JSON 2918 2919 2920 The JSON representation of an `Any` value uses the regular 2921 2922 representation of the deserialized, embedded message, with 2923 an 2924 2925 additional field `@type` which contains the type URL. 2926 Example: 2927 2928 package google.profile; 2929 message Person { 2930 string first_name = 1; 2931 string last_name = 2; 2932 } 2933 2934 { 2935 "@type": "type.googleapis.com/google.profile.Person", 2936 "firstName": <string>, 2937 "lastName": <string> 2938 } 2939 2940 If the embedded message type is well-known and has a custom 2941 JSON 2942 2943 representation, that representation will be embedded adding 2944 a field 2945 2946 `value` which holds the custom JSON in addition to the 2947 `@type` 2948 2949 field. Example (for message [google.protobuf.Duration][]): 2950 2951 { 2952 "@type": "type.googleapis.com/google.protobuf.Duration", 2953 "value": "1.212s" 2954 } 2955 parameters: 2956 - name: name 2957 in: path 2958 required: true 2959 type: string 2960 tags: 2961 - Query 2962 /cosmos/auth/v1beta1/params: 2963 get: 2964 summary: Params queries all parameters. 2965 operationId: AuthParams 2966 responses: 2967 '200': 2968 description: A successful response. 2969 schema: 2970 type: object 2971 properties: 2972 params: 2973 description: params defines the parameters of the module. 2974 type: object 2975 properties: 2976 max_memo_characters: 2977 type: string 2978 format: uint64 2979 tx_sig_limit: 2980 type: string 2981 format: uint64 2982 tx_size_cost_per_byte: 2983 type: string 2984 format: uint64 2985 sig_verify_cost_ed25519: 2986 type: string 2987 format: uint64 2988 sig_verify_cost_secp256k1: 2989 type: string 2990 format: uint64 2991 description: >- 2992 QueryParamsResponse is the response type for the Query/Params RPC 2993 method. 2994 default: 2995 description: An unexpected error response. 2996 schema: 2997 type: object 2998 properties: 2999 error: 3000 type: string 3001 code: 3002 type: integer 3003 format: int32 3004 message: 3005 type: string 3006 details: 3007 type: array 3008 items: 3009 type: object 3010 properties: 3011 type_url: 3012 type: string 3013 description: >- 3014 A URL/resource name that uniquely identifies the type of 3015 the serialized 3016 3017 protocol buffer message. This string must contain at 3018 least 3019 3020 one "/" character. The last segment of the URL's path 3021 must represent 3022 3023 the fully qualified name of the type (as in 3024 3025 `path/google.protobuf.Duration`). The name should be in 3026 a canonical form 3027 3028 (e.g., leading "." is not accepted). 3029 3030 3031 In practice, teams usually precompile into the binary 3032 all types that they 3033 3034 expect it to use in the context of Any. However, for 3035 URLs which use the 3036 3037 scheme `http`, `https`, or no scheme, one can optionally 3038 set up a type 3039 3040 server that maps type URLs to message definitions as 3041 follows: 3042 3043 3044 * If no scheme is provided, `https` is assumed. 3045 3046 * An HTTP GET on the URL must yield a 3047 [google.protobuf.Type][] 3048 value in binary format, or produce an error. 3049 * Applications are allowed to cache lookup results based 3050 on the 3051 URL, or have them precompiled into a binary to avoid any 3052 lookup. Therefore, binary compatibility needs to be preserved 3053 on changes to types. (Use versioned type names to manage 3054 breaking changes.) 3055 3056 Note: this functionality is not currently available in 3057 the official 3058 3059 protobuf release, and it is not used for type URLs 3060 beginning with 3061 3062 type.googleapis.com. 3063 3064 3065 Schemes other than `http`, `https` (or the empty scheme) 3066 might be 3067 3068 used with implementation specific semantics. 3069 value: 3070 type: string 3071 format: byte 3072 description: >- 3073 Must be a valid serialized protocol buffer of the above 3074 specified type. 3075 description: >- 3076 `Any` contains an arbitrary serialized protocol buffer 3077 message along with a 3078 3079 URL that describes the type of the serialized message. 3080 3081 3082 Protobuf library provides support to pack/unpack Any values 3083 in the form 3084 3085 of utility functions or additional generated methods of the 3086 Any type. 3087 3088 3089 Example 1: Pack and unpack a message in C++. 3090 3091 Foo foo = ...; 3092 Any any; 3093 any.PackFrom(foo); 3094 ... 3095 if (any.UnpackTo(&foo)) { 3096 ... 3097 } 3098 3099 Example 2: Pack and unpack a message in Java. 3100 3101 Foo foo = ...; 3102 Any any = Any.pack(foo); 3103 ... 3104 if (any.is(Foo.class)) { 3105 foo = any.unpack(Foo.class); 3106 } 3107 // or ... 3108 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 3109 foo = any.unpack(Foo.getDefaultInstance()); 3110 } 3111 3112 Example 3: Pack and unpack a message in Python. 3113 3114 foo = Foo(...) 3115 any = Any() 3116 any.Pack(foo) 3117 ... 3118 if any.Is(Foo.DESCRIPTOR): 3119 any.Unpack(foo) 3120 ... 3121 3122 Example 4: Pack and unpack a message in Go 3123 3124 foo := &pb.Foo{...} 3125 any, err := anypb.New(foo) 3126 if err != nil { 3127 ... 3128 } 3129 ... 3130 foo := &pb.Foo{} 3131 if err := any.UnmarshalTo(foo); err != nil { 3132 ... 3133 } 3134 3135 The pack methods provided by protobuf library will by 3136 default use 3137 3138 'type.googleapis.com/full.type.name' as the type URL and the 3139 unpack 3140 3141 methods only use the fully qualified type name after the 3142 last '/' 3143 3144 in the type URL, for example "foo.bar.com/x/y.z" will yield 3145 type 3146 3147 name "y.z". 3148 3149 3150 JSON 3151 3152 3153 The JSON representation of an `Any` value uses the regular 3154 3155 representation of the deserialized, embedded message, with 3156 an 3157 3158 additional field `@type` which contains the type URL. 3159 Example: 3160 3161 package google.profile; 3162 message Person { 3163 string first_name = 1; 3164 string last_name = 2; 3165 } 3166 3167 { 3168 "@type": "type.googleapis.com/google.profile.Person", 3169 "firstName": <string>, 3170 "lastName": <string> 3171 } 3172 3173 If the embedded message type is well-known and has a custom 3174 JSON 3175 3176 representation, that representation will be embedded adding 3177 a field 3178 3179 `value` which holds the custom JSON in addition to the 3180 `@type` 3181 3182 field. Example (for message [google.protobuf.Duration][]): 3183 3184 { 3185 "@type": "type.googleapis.com/google.protobuf.Duration", 3186 "value": "1.212s" 3187 } 3188 tags: 3189 - Query 3190 /cosmos/bank/v1beta1/balances/{address}: 3191 get: 3192 summary: AllBalances queries the balance of all coins for a single account. 3193 description: >- 3194 When called from another module, this query might consume a high amount 3195 of 3196 3197 gas if the pagination field is incorrectly set. 3198 operationId: AllBalances 3199 responses: 3200 '200': 3201 description: A successful response. 3202 schema: 3203 type: object 3204 properties: 3205 balances: 3206 type: array 3207 items: 3208 type: object 3209 properties: 3210 denom: 3211 type: string 3212 amount: 3213 type: string 3214 description: >- 3215 Coin defines a token with a denomination and an amount. 3216 3217 3218 NOTE: The amount field is an Int which implements the custom 3219 method 3220 3221 signatures required by gogoproto. 3222 description: balances is the balances of all the coins. 3223 pagination: 3224 description: pagination defines the pagination in the response. 3225 type: object 3226 properties: 3227 next_key: 3228 type: string 3229 format: byte 3230 description: |- 3231 next_key is the key to be passed to PageRequest.key to 3232 query the next page most efficiently. It will be empty if 3233 there are no more results. 3234 total: 3235 type: string 3236 format: uint64 3237 title: >- 3238 total is total number of results available if 3239 PageRequest.count_total 3240 3241 was set, its value is undefined otherwise 3242 description: >- 3243 QueryAllBalancesResponse is the response type for the 3244 Query/AllBalances RPC 3245 3246 method. 3247 default: 3248 description: An unexpected error response. 3249 schema: 3250 type: object 3251 properties: 3252 error: 3253 type: string 3254 code: 3255 type: integer 3256 format: int32 3257 message: 3258 type: string 3259 details: 3260 type: array 3261 items: 3262 type: object 3263 properties: 3264 type_url: 3265 type: string 3266 value: 3267 type: string 3268 format: byte 3269 parameters: 3270 - name: address 3271 description: address is the address to query balances for. 3272 in: path 3273 required: true 3274 type: string 3275 - name: pagination.key 3276 description: |- 3277 key is a value returned in PageResponse.next_key to begin 3278 querying the next page most efficiently. Only one of offset or key 3279 should be set. 3280 in: query 3281 required: false 3282 type: string 3283 format: byte 3284 - name: pagination.offset 3285 description: >- 3286 offset is a numeric offset that can be used when key is unavailable. 3287 3288 It is less efficient than using key. Only one of offset or key 3289 should 3290 3291 be set. 3292 in: query 3293 required: false 3294 type: string 3295 format: uint64 3296 - name: pagination.limit 3297 description: >- 3298 limit is the total number of results to be returned in the result 3299 page. 3300 3301 If left empty it will default to a value to be set by each app. 3302 in: query 3303 required: false 3304 type: string 3305 format: uint64 3306 - name: pagination.count_total 3307 description: >- 3308 count_total is set to true to indicate that the result set should 3309 include 3310 3311 a count of the total number of items available for pagination in 3312 UIs. 3313 3314 count_total is only respected when offset is used. It is ignored 3315 when key 3316 3317 is set. 3318 in: query 3319 required: false 3320 type: boolean 3321 - name: pagination.reverse 3322 description: >- 3323 reverse is set to true if results are to be returned in the 3324 descending order. 3325 3326 3327 Since: cosmos-sdk 0.43 3328 in: query 3329 required: false 3330 type: boolean 3331 - name: resolve_denom 3332 description: >- 3333 resolve_denom is the flag to resolve the denom into a human-readable 3334 form from the metadata. 3335 3336 3337 Since: cosmos-sdk 0.50 3338 in: query 3339 required: false 3340 type: boolean 3341 tags: 3342 - Query 3343 /cosmos/bank/v1beta1/balances/{address}/by_denom: 3344 get: 3345 summary: Balance queries the balance of a single coin for a single account. 3346 operationId: Balance 3347 responses: 3348 '200': 3349 description: A successful response. 3350 schema: 3351 type: object 3352 properties: 3353 balance: 3354 type: object 3355 properties: 3356 denom: 3357 type: string 3358 amount: 3359 type: string 3360 description: >- 3361 Coin defines a token with a denomination and an amount. 3362 3363 3364 NOTE: The amount field is an Int which implements the custom 3365 method 3366 3367 signatures required by gogoproto. 3368 description: >- 3369 QueryBalanceResponse is the response type for the Query/Balance 3370 RPC method. 3371 default: 3372 description: An unexpected error response. 3373 schema: 3374 type: object 3375 properties: 3376 error: 3377 type: string 3378 code: 3379 type: integer 3380 format: int32 3381 message: 3382 type: string 3383 details: 3384 type: array 3385 items: 3386 type: object 3387 properties: 3388 type_url: 3389 type: string 3390 value: 3391 type: string 3392 format: byte 3393 parameters: 3394 - name: address 3395 description: address is the address to query balances for. 3396 in: path 3397 required: true 3398 type: string 3399 - name: denom 3400 description: denom is the coin denom to query balances for. 3401 in: query 3402 required: false 3403 type: string 3404 tags: 3405 - Query 3406 /cosmos/bank/v1beta1/denom_owners/{denom}: 3407 get: 3408 summary: >- 3409 DenomOwners queries for all account addresses that own a particular 3410 token 3411 3412 denomination. 3413 description: >- 3414 When called from another module, this query might consume a high amount 3415 of 3416 3417 gas if the pagination field is incorrectly set. 3418 3419 3420 Since: cosmos-sdk 0.46 3421 operationId: DenomOwners 3422 responses: 3423 '200': 3424 description: A successful response. 3425 schema: 3426 type: object 3427 properties: 3428 denom_owners: 3429 type: array 3430 items: 3431 type: object 3432 properties: 3433 address: 3434 type: string 3435 description: >- 3436 address defines the address that owns a particular 3437 denomination. 3438 balance: 3439 type: object 3440 properties: 3441 denom: 3442 type: string 3443 amount: 3444 type: string 3445 description: >- 3446 Coin defines a token with a denomination and an amount. 3447 3448 3449 NOTE: The amount field is an Int which implements the 3450 custom method 3451 3452 signatures required by gogoproto. 3453 description: >- 3454 DenomOwner defines structure representing an account that 3455 owns or holds a 3456 3457 particular denominated token. It contains the account 3458 address and account 3459 3460 balance of the denominated token. 3461 3462 3463 Since: cosmos-sdk 0.46 3464 pagination: 3465 description: pagination defines the pagination in the response. 3466 type: object 3467 properties: 3468 next_key: 3469 type: string 3470 format: byte 3471 description: |- 3472 next_key is the key to be passed to PageRequest.key to 3473 query the next page most efficiently. It will be empty if 3474 there are no more results. 3475 total: 3476 type: string 3477 format: uint64 3478 title: >- 3479 total is total number of results available if 3480 PageRequest.count_total 3481 3482 was set, its value is undefined otherwise 3483 description: >- 3484 QueryDenomOwnersResponse defines the RPC response of a DenomOwners 3485 RPC query. 3486 3487 3488 Since: cosmos-sdk 0.46 3489 default: 3490 description: An unexpected error response. 3491 schema: 3492 type: object 3493 properties: 3494 error: 3495 type: string 3496 code: 3497 type: integer 3498 format: int32 3499 message: 3500 type: string 3501 details: 3502 type: array 3503 items: 3504 type: object 3505 properties: 3506 type_url: 3507 type: string 3508 value: 3509 type: string 3510 format: byte 3511 parameters: 3512 - name: denom 3513 description: >- 3514 denom defines the coin denomination to query all account holders 3515 for. 3516 in: path 3517 required: true 3518 type: string 3519 - name: pagination.key 3520 description: |- 3521 key is a value returned in PageResponse.next_key to begin 3522 querying the next page most efficiently. Only one of offset or key 3523 should be set. 3524 in: query 3525 required: false 3526 type: string 3527 format: byte 3528 - name: pagination.offset 3529 description: >- 3530 offset is a numeric offset that can be used when key is unavailable. 3531 3532 It is less efficient than using key. Only one of offset or key 3533 should 3534 3535 be set. 3536 in: query 3537 required: false 3538 type: string 3539 format: uint64 3540 - name: pagination.limit 3541 description: >- 3542 limit is the total number of results to be returned in the result 3543 page. 3544 3545 If left empty it will default to a value to be set by each app. 3546 in: query 3547 required: false 3548 type: string 3549 format: uint64 3550 - name: pagination.count_total 3551 description: >- 3552 count_total is set to true to indicate that the result set should 3553 include 3554 3555 a count of the total number of items available for pagination in 3556 UIs. 3557 3558 count_total is only respected when offset is used. It is ignored 3559 when key 3560 3561 is set. 3562 in: query 3563 required: false 3564 type: boolean 3565 - name: pagination.reverse 3566 description: >- 3567 reverse is set to true if results are to be returned in the 3568 descending order. 3569 3570 3571 Since: cosmos-sdk 0.43 3572 in: query 3573 required: false 3574 type: boolean 3575 tags: 3576 - Query 3577 /cosmos/bank/v1beta1/denom_owners_by_query: 3578 get: 3579 summary: >- 3580 DenomOwnersByQuery queries for all account addresses that own a 3581 particular token 3582 3583 denomination. 3584 description: 'Since: cosmos-sdk 0.50.3' 3585 operationId: DenomOwnersByQuery 3586 responses: 3587 '200': 3588 description: A successful response. 3589 schema: 3590 type: object 3591 properties: 3592 denom_owners: 3593 type: array 3594 items: 3595 type: object 3596 properties: 3597 address: 3598 type: string 3599 description: >- 3600 address defines the address that owns a particular 3601 denomination. 3602 balance: 3603 type: object 3604 properties: 3605 denom: 3606 type: string 3607 amount: 3608 type: string 3609 description: >- 3610 Coin defines a token with a denomination and an amount. 3611 3612 3613 NOTE: The amount field is an Int which implements the 3614 custom method 3615 3616 signatures required by gogoproto. 3617 description: >- 3618 DenomOwner defines structure representing an account that 3619 owns or holds a 3620 3621 particular denominated token. It contains the account 3622 address and account 3623 3624 balance of the denominated token. 3625 3626 3627 Since: cosmos-sdk 0.46 3628 pagination: 3629 description: pagination defines the pagination in the response. 3630 type: object 3631 properties: 3632 next_key: 3633 type: string 3634 format: byte 3635 description: |- 3636 next_key is the key to be passed to PageRequest.key to 3637 query the next page most efficiently. It will be empty if 3638 there are no more results. 3639 total: 3640 type: string 3641 format: uint64 3642 title: >- 3643 total is total number of results available if 3644 PageRequest.count_total 3645 3646 was set, its value is undefined otherwise 3647 description: >- 3648 QueryDenomOwnersByQueryResponse defines the RPC response of a 3649 DenomOwnersByQuery RPC query. 3650 3651 3652 Since: cosmos-sdk 0.50.3 3653 default: 3654 description: An unexpected error response. 3655 schema: 3656 type: object 3657 properties: 3658 error: 3659 type: string 3660 code: 3661 type: integer 3662 format: int32 3663 message: 3664 type: string 3665 details: 3666 type: array 3667 items: 3668 type: object 3669 properties: 3670 type_url: 3671 type: string 3672 value: 3673 type: string 3674 format: byte 3675 parameters: 3676 - name: denom 3677 description: >- 3678 denom defines the coin denomination to query all account holders 3679 for. 3680 in: query 3681 required: false 3682 type: string 3683 - name: pagination.key 3684 description: |- 3685 key is a value returned in PageResponse.next_key to begin 3686 querying the next page most efficiently. Only one of offset or key 3687 should be set. 3688 in: query 3689 required: false 3690 type: string 3691 format: byte 3692 - name: pagination.offset 3693 description: >- 3694 offset is a numeric offset that can be used when key is unavailable. 3695 3696 It is less efficient than using key. Only one of offset or key 3697 should 3698 3699 be set. 3700 in: query 3701 required: false 3702 type: string 3703 format: uint64 3704 - name: pagination.limit 3705 description: >- 3706 limit is the total number of results to be returned in the result 3707 page. 3708 3709 If left empty it will default to a value to be set by each app. 3710 in: query 3711 required: false 3712 type: string 3713 format: uint64 3714 - name: pagination.count_total 3715 description: >- 3716 count_total is set to true to indicate that the result set should 3717 include 3718 3719 a count of the total number of items available for pagination in 3720 UIs. 3721 3722 count_total is only respected when offset is used. It is ignored 3723 when key 3724 3725 is set. 3726 in: query 3727 required: false 3728 type: boolean 3729 - name: pagination.reverse 3730 description: >- 3731 reverse is set to true if results are to be returned in the 3732 descending order. 3733 3734 3735 Since: cosmos-sdk 0.43 3736 in: query 3737 required: false 3738 type: boolean 3739 tags: 3740 - Query 3741 /cosmos/bank/v1beta1/denoms_metadata: 3742 get: 3743 summary: |- 3744 DenomsMetadata queries the client metadata for all registered coin 3745 denominations. 3746 operationId: DenomsMetadata 3747 responses: 3748 '200': 3749 description: A successful response. 3750 schema: 3751 type: object 3752 properties: 3753 metadatas: 3754 type: array 3755 items: 3756 type: object 3757 properties: 3758 description: 3759 type: string 3760 denom_units: 3761 type: array 3762 items: 3763 type: object 3764 properties: 3765 denom: 3766 type: string 3767 description: >- 3768 denom represents the string name of the given 3769 denom unit (e.g uatom). 3770 exponent: 3771 type: integer 3772 format: int64 3773 description: >- 3774 exponent represents power of 10 exponent that one 3775 must 3776 3777 raise the base_denom to in order to equal the 3778 given DenomUnit's denom 3779 3780 1 denom = 10^exponent base_denom 3781 3782 (e.g. with a base_denom of uatom, one can create a 3783 DenomUnit of 'atom' with 3784 3785 exponent = 6, thus: 1 atom = 10^6 uatom). 3786 aliases: 3787 type: array 3788 items: 3789 type: string 3790 title: >- 3791 aliases is a list of string aliases for the given 3792 denom 3793 description: |- 3794 DenomUnit represents a struct that describes a given 3795 denomination unit of the basic token. 3796 title: >- 3797 denom_units represents the list of DenomUnit's for a 3798 given coin 3799 base: 3800 type: string 3801 description: >- 3802 base represents the base denom (should be the DenomUnit 3803 with exponent = 0). 3804 display: 3805 type: string 3806 description: |- 3807 display indicates the suggested denom that should be 3808 displayed in clients. 3809 name: 3810 type: string 3811 description: 'Since: cosmos-sdk 0.43' 3812 title: 'name defines the name of the token (eg: Cosmos Atom)' 3813 symbol: 3814 type: string 3815 description: >- 3816 symbol is the token symbol usually shown on exchanges 3817 (eg: ATOM). This can 3818 3819 be the same as the display. 3820 3821 3822 Since: cosmos-sdk 0.43 3823 uri: 3824 type: string 3825 description: >- 3826 URI to a document (on or off-chain) that contains 3827 additional information. Optional. 3828 3829 3830 Since: cosmos-sdk 0.46 3831 uri_hash: 3832 type: string 3833 description: >- 3834 URIHash is a sha256 hash of a document pointed by URI. 3835 It's used to verify that 3836 3837 the document didn't change. Optional. 3838 3839 3840 Since: cosmos-sdk 0.46 3841 description: |- 3842 Metadata represents a struct that describes 3843 a basic token. 3844 description: >- 3845 metadata provides the client information for all the 3846 registered tokens. 3847 pagination: 3848 description: pagination defines the pagination in the response. 3849 type: object 3850 properties: 3851 next_key: 3852 type: string 3853 format: byte 3854 description: |- 3855 next_key is the key to be passed to PageRequest.key to 3856 query the next page most efficiently. It will be empty if 3857 there are no more results. 3858 total: 3859 type: string 3860 format: uint64 3861 title: >- 3862 total is total number of results available if 3863 PageRequest.count_total 3864 3865 was set, its value is undefined otherwise 3866 description: >- 3867 QueryDenomsMetadataResponse is the response type for the 3868 Query/DenomsMetadata RPC 3869 3870 method. 3871 default: 3872 description: An unexpected error response. 3873 schema: 3874 type: object 3875 properties: 3876 error: 3877 type: string 3878 code: 3879 type: integer 3880 format: int32 3881 message: 3882 type: string 3883 details: 3884 type: array 3885 items: 3886 type: object 3887 properties: 3888 type_url: 3889 type: string 3890 value: 3891 type: string 3892 format: byte 3893 parameters: 3894 - name: pagination.key 3895 description: |- 3896 key is a value returned in PageResponse.next_key to begin 3897 querying the next page most efficiently. Only one of offset or key 3898 should be set. 3899 in: query 3900 required: false 3901 type: string 3902 format: byte 3903 - name: pagination.offset 3904 description: >- 3905 offset is a numeric offset that can be used when key is unavailable. 3906 3907 It is less efficient than using key. Only one of offset or key 3908 should 3909 3910 be set. 3911 in: query 3912 required: false 3913 type: string 3914 format: uint64 3915 - name: pagination.limit 3916 description: >- 3917 limit is the total number of results to be returned in the result 3918 page. 3919 3920 If left empty it will default to a value to be set by each app. 3921 in: query 3922 required: false 3923 type: string 3924 format: uint64 3925 - name: pagination.count_total 3926 description: >- 3927 count_total is set to true to indicate that the result set should 3928 include 3929 3930 a count of the total number of items available for pagination in 3931 UIs. 3932 3933 count_total is only respected when offset is used. It is ignored 3934 when key 3935 3936 is set. 3937 in: query 3938 required: false 3939 type: boolean 3940 - name: pagination.reverse 3941 description: >- 3942 reverse is set to true if results are to be returned in the 3943 descending order. 3944 3945 3946 Since: cosmos-sdk 0.43 3947 in: query 3948 required: false 3949 type: boolean 3950 tags: 3951 - Query 3952 /cosmos/bank/v1beta1/denoms_metadata/{denom}: 3953 get: 3954 summary: DenomMetadata queries the client metadata of a given coin denomination. 3955 operationId: DenomMetadata 3956 responses: 3957 '200': 3958 description: A successful response. 3959 schema: 3960 type: object 3961 properties: 3962 metadata: 3963 type: object 3964 properties: 3965 description: 3966 type: string 3967 denom_units: 3968 type: array 3969 items: 3970 type: object 3971 properties: 3972 denom: 3973 type: string 3974 description: >- 3975 denom represents the string name of the given denom 3976 unit (e.g uatom). 3977 exponent: 3978 type: integer 3979 format: int64 3980 description: >- 3981 exponent represents power of 10 exponent that one 3982 must 3983 3984 raise the base_denom to in order to equal the given 3985 DenomUnit's denom 3986 3987 1 denom = 10^exponent base_denom 3988 3989 (e.g. with a base_denom of uatom, one can create a 3990 DenomUnit of 'atom' with 3991 3992 exponent = 6, thus: 1 atom = 10^6 uatom). 3993 aliases: 3994 type: array 3995 items: 3996 type: string 3997 title: >- 3998 aliases is a list of string aliases for the given 3999 denom 4000 description: |- 4001 DenomUnit represents a struct that describes a given 4002 denomination unit of the basic token. 4003 title: >- 4004 denom_units represents the list of DenomUnit's for a given 4005 coin 4006 base: 4007 type: string 4008 description: >- 4009 base represents the base denom (should be the DenomUnit 4010 with exponent = 0). 4011 display: 4012 type: string 4013 description: |- 4014 display indicates the suggested denom that should be 4015 displayed in clients. 4016 name: 4017 type: string 4018 description: 'Since: cosmos-sdk 0.43' 4019 title: 'name defines the name of the token (eg: Cosmos Atom)' 4020 symbol: 4021 type: string 4022 description: >- 4023 symbol is the token symbol usually shown on exchanges (eg: 4024 ATOM). This can 4025 4026 be the same as the display. 4027 4028 4029 Since: cosmos-sdk 0.43 4030 uri: 4031 type: string 4032 description: >- 4033 URI to a document (on or off-chain) that contains 4034 additional information. Optional. 4035 4036 4037 Since: cosmos-sdk 0.46 4038 uri_hash: 4039 type: string 4040 description: >- 4041 URIHash is a sha256 hash of a document pointed by URI. 4042 It's used to verify that 4043 4044 the document didn't change. Optional. 4045 4046 4047 Since: cosmos-sdk 0.46 4048 description: |- 4049 Metadata represents a struct that describes 4050 a basic token. 4051 description: >- 4052 QueryDenomMetadataResponse is the response type for the 4053 Query/DenomMetadata RPC 4054 4055 method. 4056 default: 4057 description: An unexpected error response. 4058 schema: 4059 type: object 4060 properties: 4061 error: 4062 type: string 4063 code: 4064 type: integer 4065 format: int32 4066 message: 4067 type: string 4068 details: 4069 type: array 4070 items: 4071 type: object 4072 properties: 4073 type_url: 4074 type: string 4075 value: 4076 type: string 4077 format: byte 4078 parameters: 4079 - name: denom 4080 description: denom is the coin denom to query the metadata for. 4081 in: path 4082 required: true 4083 type: string 4084 tags: 4085 - Query 4086 /cosmos/bank/v1beta1/denoms_metadata_by_query_string: 4087 get: 4088 summary: >- 4089 DenomMetadataByQueryString queries the client metadata of a given coin 4090 denomination. 4091 operationId: DenomMetadataByQueryString 4092 responses: 4093 '200': 4094 description: A successful response. 4095 schema: 4096 type: object 4097 properties: 4098 metadata: 4099 type: object 4100 properties: 4101 description: 4102 type: string 4103 denom_units: 4104 type: array 4105 items: 4106 type: object 4107 properties: 4108 denom: 4109 type: string 4110 description: >- 4111 denom represents the string name of the given denom 4112 unit (e.g uatom). 4113 exponent: 4114 type: integer 4115 format: int64 4116 description: >- 4117 exponent represents power of 10 exponent that one 4118 must 4119 4120 raise the base_denom to in order to equal the given 4121 DenomUnit's denom 4122 4123 1 denom = 10^exponent base_denom 4124 4125 (e.g. with a base_denom of uatom, one can create a 4126 DenomUnit of 'atom' with 4127 4128 exponent = 6, thus: 1 atom = 10^6 uatom). 4129 aliases: 4130 type: array 4131 items: 4132 type: string 4133 title: >- 4134 aliases is a list of string aliases for the given 4135 denom 4136 description: |- 4137 DenomUnit represents a struct that describes a given 4138 denomination unit of the basic token. 4139 title: >- 4140 denom_units represents the list of DenomUnit's for a given 4141 coin 4142 base: 4143 type: string 4144 description: >- 4145 base represents the base denom (should be the DenomUnit 4146 with exponent = 0). 4147 display: 4148 type: string 4149 description: |- 4150 display indicates the suggested denom that should be 4151 displayed in clients. 4152 name: 4153 type: string 4154 description: 'Since: cosmos-sdk 0.43' 4155 title: 'name defines the name of the token (eg: Cosmos Atom)' 4156 symbol: 4157 type: string 4158 description: >- 4159 symbol is the token symbol usually shown on exchanges (eg: 4160 ATOM). This can 4161 4162 be the same as the display. 4163 4164 4165 Since: cosmos-sdk 0.43 4166 uri: 4167 type: string 4168 description: >- 4169 URI to a document (on or off-chain) that contains 4170 additional information. Optional. 4171 4172 4173 Since: cosmos-sdk 0.46 4174 uri_hash: 4175 type: string 4176 description: >- 4177 URIHash is a sha256 hash of a document pointed by URI. 4178 It's used to verify that 4179 4180 the document didn't change. Optional. 4181 4182 4183 Since: cosmos-sdk 0.46 4184 description: |- 4185 Metadata represents a struct that describes 4186 a basic token. 4187 description: >- 4188 QueryDenomMetadataByQueryStringResponse is the response type for 4189 the Query/DenomMetadata RPC 4190 4191 method. Identical with QueryDenomMetadataResponse but receives 4192 denom as query string in request. 4193 default: 4194 description: An unexpected error response. 4195 schema: 4196 type: object 4197 properties: 4198 error: 4199 type: string 4200 code: 4201 type: integer 4202 format: int32 4203 message: 4204 type: string 4205 details: 4206 type: array 4207 items: 4208 type: object 4209 properties: 4210 type_url: 4211 type: string 4212 value: 4213 type: string 4214 format: byte 4215 parameters: 4216 - name: denom 4217 description: denom is the coin denom to query the metadata for. 4218 in: query 4219 required: false 4220 type: string 4221 tags: 4222 - Query 4223 /cosmos/bank/v1beta1/params: 4224 get: 4225 summary: Params queries the parameters of x/bank module. 4226 operationId: BankParams 4227 responses: 4228 '200': 4229 description: A successful response. 4230 schema: 4231 type: object 4232 properties: 4233 params: 4234 description: params provides the parameters of the bank module. 4235 type: object 4236 properties: 4237 send_enabled: 4238 type: array 4239 items: 4240 type: object 4241 properties: 4242 denom: 4243 type: string 4244 enabled: 4245 type: boolean 4246 description: >- 4247 SendEnabled maps coin denom to a send_enabled status 4248 (whether a denom is 4249 4250 sendable). 4251 description: >- 4252 Deprecated: Use of SendEnabled in params is deprecated. 4253 4254 For genesis, use the newly added send_enabled field in the 4255 genesis object. 4256 4257 Storage, lookup, and manipulation of this information is 4258 now in the keeper. 4259 4260 4261 As of cosmos-sdk 0.47, this only exists for backwards 4262 compatibility of genesis files. 4263 default_send_enabled: 4264 type: boolean 4265 description: >- 4266 QueryParamsResponse defines the response type for querying x/bank 4267 parameters. 4268 default: 4269 description: An unexpected error response. 4270 schema: 4271 type: object 4272 properties: 4273 error: 4274 type: string 4275 code: 4276 type: integer 4277 format: int32 4278 message: 4279 type: string 4280 details: 4281 type: array 4282 items: 4283 type: object 4284 properties: 4285 type_url: 4286 type: string 4287 value: 4288 type: string 4289 format: byte 4290 tags: 4291 - Query 4292 /cosmos/bank/v1beta1/send_enabled: 4293 get: 4294 summary: SendEnabled queries for SendEnabled entries. 4295 description: >- 4296 This query only returns denominations that have specific SendEnabled 4297 settings. 4298 4299 Any denomination that does not have a specific setting will use the 4300 default 4301 4302 params.default_send_enabled, and will not be returned by this query. 4303 4304 4305 Since: cosmos-sdk 0.47 4306 operationId: SendEnabled 4307 responses: 4308 '200': 4309 description: A successful response. 4310 schema: 4311 type: object 4312 properties: 4313 send_enabled: 4314 type: array 4315 items: 4316 type: object 4317 properties: 4318 denom: 4319 type: string 4320 enabled: 4321 type: boolean 4322 description: >- 4323 SendEnabled maps coin denom to a send_enabled status 4324 (whether a denom is 4325 4326 sendable). 4327 pagination: 4328 description: >- 4329 pagination defines the pagination in the response. This field 4330 is only 4331 4332 populated if the denoms field in the request is empty. 4333 type: object 4334 properties: 4335 next_key: 4336 type: string 4337 format: byte 4338 description: |- 4339 next_key is the key to be passed to PageRequest.key to 4340 query the next page most efficiently. It will be empty if 4341 there are no more results. 4342 total: 4343 type: string 4344 format: uint64 4345 title: >- 4346 total is total number of results available if 4347 PageRequest.count_total 4348 4349 was set, its value is undefined otherwise 4350 description: >- 4351 QuerySendEnabledResponse defines the RPC response of a SendEnable 4352 query. 4353 4354 4355 Since: cosmos-sdk 0.47 4356 default: 4357 description: An unexpected error response. 4358 schema: 4359 type: object 4360 properties: 4361 error: 4362 type: string 4363 code: 4364 type: integer 4365 format: int32 4366 message: 4367 type: string 4368 details: 4369 type: array 4370 items: 4371 type: object 4372 properties: 4373 type_url: 4374 type: string 4375 value: 4376 type: string 4377 format: byte 4378 parameters: 4379 - name: denoms 4380 description: >- 4381 denoms is the specific denoms you want look up. Leave empty to get 4382 all entries. 4383 in: query 4384 required: false 4385 type: array 4386 items: 4387 type: string 4388 collectionFormat: multi 4389 - name: pagination.key 4390 description: |- 4391 key is a value returned in PageResponse.next_key to begin 4392 querying the next page most efficiently. Only one of offset or key 4393 should be set. 4394 in: query 4395 required: false 4396 type: string 4397 format: byte 4398 - name: pagination.offset 4399 description: >- 4400 offset is a numeric offset that can be used when key is unavailable. 4401 4402 It is less efficient than using key. Only one of offset or key 4403 should 4404 4405 be set. 4406 in: query 4407 required: false 4408 type: string 4409 format: uint64 4410 - name: pagination.limit 4411 description: >- 4412 limit is the total number of results to be returned in the result 4413 page. 4414 4415 If left empty it will default to a value to be set by each app. 4416 in: query 4417 required: false 4418 type: string 4419 format: uint64 4420 - name: pagination.count_total 4421 description: >- 4422 count_total is set to true to indicate that the result set should 4423 include 4424 4425 a count of the total number of items available for pagination in 4426 UIs. 4427 4428 count_total is only respected when offset is used. It is ignored 4429 when key 4430 4431 is set. 4432 in: query 4433 required: false 4434 type: boolean 4435 - name: pagination.reverse 4436 description: >- 4437 reverse is set to true if results are to be returned in the 4438 descending order. 4439 4440 4441 Since: cosmos-sdk 0.43 4442 in: query 4443 required: false 4444 type: boolean 4445 tags: 4446 - Query 4447 /cosmos/bank/v1beta1/spendable_balances/{address}: 4448 get: 4449 summary: >- 4450 SpendableBalances queries the spendable balance of all coins for a 4451 single 4452 4453 account. 4454 description: >- 4455 When called from another module, this query might consume a high amount 4456 of 4457 4458 gas if the pagination field is incorrectly set. 4459 4460 4461 Since: cosmos-sdk 0.46 4462 operationId: SpendableBalances 4463 responses: 4464 '200': 4465 description: A successful response. 4466 schema: 4467 type: object 4468 properties: 4469 balances: 4470 type: array 4471 items: 4472 type: object 4473 properties: 4474 denom: 4475 type: string 4476 amount: 4477 type: string 4478 description: >- 4479 Coin defines a token with a denomination and an amount. 4480 4481 4482 NOTE: The amount field is an Int which implements the custom 4483 method 4484 4485 signatures required by gogoproto. 4486 description: balances is the spendable balances of all the coins. 4487 pagination: 4488 description: pagination defines the pagination in the response. 4489 type: object 4490 properties: 4491 next_key: 4492 type: string 4493 format: byte 4494 description: |- 4495 next_key is the key to be passed to PageRequest.key to 4496 query the next page most efficiently. It will be empty if 4497 there are no more results. 4498 total: 4499 type: string 4500 format: uint64 4501 title: >- 4502 total is total number of results available if 4503 PageRequest.count_total 4504 4505 was set, its value is undefined otherwise 4506 description: >- 4507 QuerySpendableBalancesResponse defines the gRPC response structure 4508 for querying 4509 4510 an account's spendable balances. 4511 4512 4513 Since: cosmos-sdk 0.46 4514 default: 4515 description: An unexpected error response. 4516 schema: 4517 type: object 4518 properties: 4519 error: 4520 type: string 4521 code: 4522 type: integer 4523 format: int32 4524 message: 4525 type: string 4526 details: 4527 type: array 4528 items: 4529 type: object 4530 properties: 4531 type_url: 4532 type: string 4533 value: 4534 type: string 4535 format: byte 4536 parameters: 4537 - name: address 4538 description: address is the address to query spendable balances for. 4539 in: path 4540 required: true 4541 type: string 4542 - name: pagination.key 4543 description: |- 4544 key is a value returned in PageResponse.next_key to begin 4545 querying the next page most efficiently. Only one of offset or key 4546 should be set. 4547 in: query 4548 required: false 4549 type: string 4550 format: byte 4551 - name: pagination.offset 4552 description: >- 4553 offset is a numeric offset that can be used when key is unavailable. 4554 4555 It is less efficient than using key. Only one of offset or key 4556 should 4557 4558 be set. 4559 in: query 4560 required: false 4561 type: string 4562 format: uint64 4563 - name: pagination.limit 4564 description: >- 4565 limit is the total number of results to be returned in the result 4566 page. 4567 4568 If left empty it will default to a value to be set by each app. 4569 in: query 4570 required: false 4571 type: string 4572 format: uint64 4573 - name: pagination.count_total 4574 description: >- 4575 count_total is set to true to indicate that the result set should 4576 include 4577 4578 a count of the total number of items available for pagination in 4579 UIs. 4580 4581 count_total is only respected when offset is used. It is ignored 4582 when key 4583 4584 is set. 4585 in: query 4586 required: false 4587 type: boolean 4588 - name: pagination.reverse 4589 description: >- 4590 reverse is set to true if results are to be returned in the 4591 descending order. 4592 4593 4594 Since: cosmos-sdk 0.43 4595 in: query 4596 required: false 4597 type: boolean 4598 tags: 4599 - Query 4600 /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom: 4601 get: 4602 summary: >- 4603 SpendableBalanceByDenom queries the spendable balance of a single denom 4604 for 4605 4606 a single account. 4607 description: >- 4608 When called from another module, this query might consume a high amount 4609 of 4610 4611 gas if the pagination field is incorrectly set. 4612 4613 4614 Since: cosmos-sdk 0.47 4615 operationId: SpendableBalanceByDenom 4616 responses: 4617 '200': 4618 description: A successful response. 4619 schema: 4620 type: object 4621 properties: 4622 balance: 4623 type: object 4624 properties: 4625 denom: 4626 type: string 4627 amount: 4628 type: string 4629 description: >- 4630 Coin defines a token with a denomination and an amount. 4631 4632 4633 NOTE: The amount field is an Int which implements the custom 4634 method 4635 4636 signatures required by gogoproto. 4637 description: >- 4638 QuerySpendableBalanceByDenomResponse defines the gRPC response 4639 structure for 4640 4641 querying an account's spendable balance for a specific denom. 4642 4643 4644 Since: cosmos-sdk 0.47 4645 default: 4646 description: An unexpected error response. 4647 schema: 4648 type: object 4649 properties: 4650 error: 4651 type: string 4652 code: 4653 type: integer 4654 format: int32 4655 message: 4656 type: string 4657 details: 4658 type: array 4659 items: 4660 type: object 4661 properties: 4662 type_url: 4663 type: string 4664 value: 4665 type: string 4666 format: byte 4667 parameters: 4668 - name: address 4669 description: address is the address to query balances for. 4670 in: path 4671 required: true 4672 type: string 4673 - name: denom 4674 description: denom is the coin denom to query balances for. 4675 in: query 4676 required: false 4677 type: string 4678 tags: 4679 - Query 4680 /cosmos/bank/v1beta1/supply: 4681 get: 4682 summary: TotalSupply queries the total supply of all coins. 4683 description: >- 4684 When called from another module, this query might consume a high amount 4685 of 4686 4687 gas if the pagination field is incorrectly set. 4688 operationId: TotalSupply 4689 responses: 4690 '200': 4691 description: A successful response. 4692 schema: 4693 type: object 4694 properties: 4695 supply: 4696 type: array 4697 items: 4698 type: object 4699 properties: 4700 denom: 4701 type: string 4702 amount: 4703 type: string 4704 description: >- 4705 Coin defines a token with a denomination and an amount. 4706 4707 4708 NOTE: The amount field is an Int which implements the custom 4709 method 4710 4711 signatures required by gogoproto. 4712 title: supply is the supply of the coins 4713 pagination: 4714 description: |- 4715 pagination defines the pagination in the response. 4716 4717 Since: cosmos-sdk 0.43 4718 type: object 4719 properties: 4720 next_key: 4721 type: string 4722 format: byte 4723 description: |- 4724 next_key is the key to be passed to PageRequest.key to 4725 query the next page most efficiently. It will be empty if 4726 there are no more results. 4727 total: 4728 type: string 4729 format: uint64 4730 title: >- 4731 total is total number of results available if 4732 PageRequest.count_total 4733 4734 was set, its value is undefined otherwise 4735 title: >- 4736 QueryTotalSupplyResponse is the response type for the 4737 Query/TotalSupply RPC 4738 4739 method 4740 default: 4741 description: An unexpected error response. 4742 schema: 4743 type: object 4744 properties: 4745 error: 4746 type: string 4747 code: 4748 type: integer 4749 format: int32 4750 message: 4751 type: string 4752 details: 4753 type: array 4754 items: 4755 type: object 4756 properties: 4757 type_url: 4758 type: string 4759 value: 4760 type: string 4761 format: byte 4762 parameters: 4763 - name: pagination.key 4764 description: |- 4765 key is a value returned in PageResponse.next_key to begin 4766 querying the next page most efficiently. Only one of offset or key 4767 should be set. 4768 in: query 4769 required: false 4770 type: string 4771 format: byte 4772 - name: pagination.offset 4773 description: >- 4774 offset is a numeric offset that can be used when key is unavailable. 4775 4776 It is less efficient than using key. Only one of offset or key 4777 should 4778 4779 be set. 4780 in: query 4781 required: false 4782 type: string 4783 format: uint64 4784 - name: pagination.limit 4785 description: >- 4786 limit is the total number of results to be returned in the result 4787 page. 4788 4789 If left empty it will default to a value to be set by each app. 4790 in: query 4791 required: false 4792 type: string 4793 format: uint64 4794 - name: pagination.count_total 4795 description: >- 4796 count_total is set to true to indicate that the result set should 4797 include 4798 4799 a count of the total number of items available for pagination in 4800 UIs. 4801 4802 count_total is only respected when offset is used. It is ignored 4803 when key 4804 4805 is set. 4806 in: query 4807 required: false 4808 type: boolean 4809 - name: pagination.reverse 4810 description: >- 4811 reverse is set to true if results are to be returned in the 4812 descending order. 4813 4814 4815 Since: cosmos-sdk 0.43 4816 in: query 4817 required: false 4818 type: boolean 4819 tags: 4820 - Query 4821 /cosmos/bank/v1beta1/supply/by_denom: 4822 get: 4823 summary: SupplyOf queries the supply of a single coin. 4824 description: >- 4825 When called from another module, this query might consume a high amount 4826 of 4827 4828 gas if the pagination field is incorrectly set. 4829 operationId: SupplyOf 4830 responses: 4831 '200': 4832 description: A successful response. 4833 schema: 4834 type: object 4835 properties: 4836 amount: 4837 type: object 4838 properties: 4839 denom: 4840 type: string 4841 amount: 4842 type: string 4843 description: >- 4844 Coin defines a token with a denomination and an amount. 4845 4846 4847 NOTE: The amount field is an Int which implements the custom 4848 method 4849 4850 signatures required by gogoproto. 4851 description: >- 4852 QuerySupplyOfResponse is the response type for the Query/SupplyOf 4853 RPC method. 4854 default: 4855 description: An unexpected error response. 4856 schema: 4857 type: object 4858 properties: 4859 error: 4860 type: string 4861 code: 4862 type: integer 4863 format: int32 4864 message: 4865 type: string 4866 details: 4867 type: array 4868 items: 4869 type: object 4870 properties: 4871 type_url: 4872 type: string 4873 value: 4874 type: string 4875 format: byte 4876 parameters: 4877 - name: denom 4878 description: denom is the coin denom to query balances for. 4879 in: query 4880 required: false 4881 type: string 4882 tags: 4883 - Query 4884 /cosmos/base/tendermint/v1beta1/abci_query: 4885 get: 4886 summary: >- 4887 ABCIQuery defines a query handler that supports ABCI queries directly to 4888 the 4889 4890 application, bypassing Tendermint completely. The ABCI query must 4891 contain 4892 4893 a valid and supported path, including app, custom, p2p, and store. 4894 description: 'Since: cosmos-sdk 0.46' 4895 operationId: ABCIQuery 4896 responses: 4897 '200': 4898 description: A successful response. 4899 schema: 4900 type: object 4901 properties: 4902 code: 4903 type: integer 4904 format: int64 4905 log: 4906 type: string 4907 info: 4908 type: string 4909 index: 4910 type: string 4911 format: int64 4912 key: 4913 type: string 4914 format: byte 4915 value: 4916 type: string 4917 format: byte 4918 proof_ops: 4919 type: object 4920 properties: 4921 ops: 4922 type: array 4923 items: 4924 type: object 4925 properties: 4926 type: 4927 type: string 4928 key: 4929 type: string 4930 format: byte 4931 data: 4932 type: string 4933 format: byte 4934 description: >- 4935 ProofOp defines an operation used for calculating Merkle 4936 root. The data could 4937 4938 be arbitrary format, providing necessary data for 4939 example neighbouring node 4940 4941 hash. 4942 4943 4944 Note: This type is a duplicate of the ProofOp proto type 4945 defined in Tendermint. 4946 description: >- 4947 ProofOps is Merkle proof defined by the list of ProofOps. 4948 4949 4950 Note: This type is a duplicate of the ProofOps proto type 4951 defined in Tendermint. 4952 height: 4953 type: string 4954 format: int64 4955 codespace: 4956 type: string 4957 description: >- 4958 ABCIQueryResponse defines the response structure for the ABCIQuery 4959 gRPC query. 4960 4961 4962 Note: This type is a duplicate of the ResponseQuery proto type 4963 defined in 4964 4965 Tendermint. 4966 default: 4967 description: An unexpected error response. 4968 schema: 4969 type: object 4970 properties: 4971 error: 4972 type: string 4973 code: 4974 type: integer 4975 format: int32 4976 message: 4977 type: string 4978 details: 4979 type: array 4980 items: 4981 type: object 4982 properties: 4983 type_url: 4984 type: string 4985 description: >- 4986 A URL/resource name that uniquely identifies the type of 4987 the serialized 4988 4989 protocol buffer message. This string must contain at 4990 least 4991 4992 one "/" character. The last segment of the URL's path 4993 must represent 4994 4995 the fully qualified name of the type (as in 4996 4997 `path/google.protobuf.Duration`). The name should be in 4998 a canonical form 4999 5000 (e.g., leading "." is not accepted). 5001 5002 5003 In practice, teams usually precompile into the binary 5004 all types that they 5005 5006 expect it to use in the context of Any. However, for 5007 URLs which use the 5008 5009 scheme `http`, `https`, or no scheme, one can optionally 5010 set up a type 5011 5012 server that maps type URLs to message definitions as 5013 follows: 5014 5015 5016 * If no scheme is provided, `https` is assumed. 5017 5018 * An HTTP GET on the URL must yield a 5019 [google.protobuf.Type][] 5020 value in binary format, or produce an error. 5021 * Applications are allowed to cache lookup results based 5022 on the 5023 URL, or have them precompiled into a binary to avoid any 5024 lookup. Therefore, binary compatibility needs to be preserved 5025 on changes to types. (Use versioned type names to manage 5026 breaking changes.) 5027 5028 Note: this functionality is not currently available in 5029 the official 5030 5031 protobuf release, and it is not used for type URLs 5032 beginning with 5033 5034 type.googleapis.com. 5035 5036 5037 Schemes other than `http`, `https` (or the empty scheme) 5038 might be 5039 5040 used with implementation specific semantics. 5041 value: 5042 type: string 5043 format: byte 5044 description: >- 5045 Must be a valid serialized protocol buffer of the above 5046 specified type. 5047 description: >- 5048 `Any` contains an arbitrary serialized protocol buffer 5049 message along with a 5050 5051 URL that describes the type of the serialized message. 5052 5053 5054 Protobuf library provides support to pack/unpack Any values 5055 in the form 5056 5057 of utility functions or additional generated methods of the 5058 Any type. 5059 5060 5061 Example 1: Pack and unpack a message in C++. 5062 5063 Foo foo = ...; 5064 Any any; 5065 any.PackFrom(foo); 5066 ... 5067 if (any.UnpackTo(&foo)) { 5068 ... 5069 } 5070 5071 Example 2: Pack and unpack a message in Java. 5072 5073 Foo foo = ...; 5074 Any any = Any.pack(foo); 5075 ... 5076 if (any.is(Foo.class)) { 5077 foo = any.unpack(Foo.class); 5078 } 5079 // or ... 5080 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 5081 foo = any.unpack(Foo.getDefaultInstance()); 5082 } 5083 5084 Example 3: Pack and unpack a message in Python. 5085 5086 foo = Foo(...) 5087 any = Any() 5088 any.Pack(foo) 5089 ... 5090 if any.Is(Foo.DESCRIPTOR): 5091 any.Unpack(foo) 5092 ... 5093 5094 Example 4: Pack and unpack a message in Go 5095 5096 foo := &pb.Foo{...} 5097 any, err := anypb.New(foo) 5098 if err != nil { 5099 ... 5100 } 5101 ... 5102 foo := &pb.Foo{} 5103 if err := any.UnmarshalTo(foo); err != nil { 5104 ... 5105 } 5106 5107 The pack methods provided by protobuf library will by 5108 default use 5109 5110 'type.googleapis.com/full.type.name' as the type URL and the 5111 unpack 5112 5113 methods only use the fully qualified type name after the 5114 last '/' 5115 5116 in the type URL, for example "foo.bar.com/x/y.z" will yield 5117 type 5118 5119 name "y.z". 5120 5121 5122 JSON 5123 5124 5125 The JSON representation of an `Any` value uses the regular 5126 5127 representation of the deserialized, embedded message, with 5128 an 5129 5130 additional field `@type` which contains the type URL. 5131 Example: 5132 5133 package google.profile; 5134 message Person { 5135 string first_name = 1; 5136 string last_name = 2; 5137 } 5138 5139 { 5140 "@type": "type.googleapis.com/google.profile.Person", 5141 "firstName": <string>, 5142 "lastName": <string> 5143 } 5144 5145 If the embedded message type is well-known and has a custom 5146 JSON 5147 5148 representation, that representation will be embedded adding 5149 a field 5150 5151 `value` which holds the custom JSON in addition to the 5152 `@type` 5153 5154 field. Example (for message [google.protobuf.Duration][]): 5155 5156 { 5157 "@type": "type.googleapis.com/google.protobuf.Duration", 5158 "value": "1.212s" 5159 } 5160 parameters: 5161 - name: data 5162 in: query 5163 required: false 5164 type: string 5165 format: byte 5166 - name: path 5167 in: query 5168 required: false 5169 type: string 5170 - name: height 5171 in: query 5172 required: false 5173 type: string 5174 format: int64 5175 - name: prove 5176 in: query 5177 required: false 5178 type: boolean 5179 tags: 5180 - Service 5181 /cosmos/base/tendermint/v1beta1/blocks/latest: 5182 get: 5183 summary: GetLatestBlock returns the latest block. 5184 operationId: GetLatestBlock 5185 responses: 5186 '200': 5187 description: A successful response. 5188 schema: 5189 type: object 5190 properties: 5191 block_id: 5192 type: object 5193 properties: 5194 hash: 5195 type: string 5196 format: byte 5197 part_set_header: 5198 type: object 5199 properties: 5200 total: 5201 type: integer 5202 format: int64 5203 hash: 5204 type: string 5205 format: byte 5206 title: PartsetHeader 5207 title: BlockID 5208 block: 5209 title: 'Deprecated: please use `sdk_block` instead' 5210 type: object 5211 properties: 5212 header: 5213 type: object 5214 properties: 5215 version: 5216 title: basic block info 5217 type: object 5218 properties: 5219 block: 5220 type: string 5221 format: uint64 5222 app: 5223 type: string 5224 format: uint64 5225 description: >- 5226 Consensus captures the consensus rules for processing 5227 a block in the blockchain, 5228 5229 including all blockchain data structures and the rules 5230 of the application's 5231 5232 state transition machine. 5233 chain_id: 5234 type: string 5235 height: 5236 type: string 5237 format: int64 5238 time: 5239 type: string 5240 format: date-time 5241 last_block_id: 5242 type: object 5243 properties: 5244 hash: 5245 type: string 5246 format: byte 5247 part_set_header: 5248 type: object 5249 properties: 5250 total: 5251 type: integer 5252 format: int64 5253 hash: 5254 type: string 5255 format: byte 5256 title: PartsetHeader 5257 title: BlockID 5258 last_commit_hash: 5259 type: string 5260 format: byte 5261 title: hashes of block data 5262 data_hash: 5263 type: string 5264 format: byte 5265 validators_hash: 5266 type: string 5267 format: byte 5268 title: hashes from the app output from the prev block 5269 next_validators_hash: 5270 type: string 5271 format: byte 5272 consensus_hash: 5273 type: string 5274 format: byte 5275 app_hash: 5276 type: string 5277 format: byte 5278 last_results_hash: 5279 type: string 5280 format: byte 5281 evidence_hash: 5282 type: string 5283 format: byte 5284 title: consensus info 5285 proposer_address: 5286 type: string 5287 format: byte 5288 description: Header defines the structure of a block header. 5289 data: 5290 type: object 5291 properties: 5292 txs: 5293 type: array 5294 items: 5295 type: string 5296 format: byte 5297 description: >- 5298 Txs that will be applied by state @ block.Height+1. 5299 5300 NOTE: not all txs here are valid. We're just agreeing 5301 on the order first. 5302 5303 This means that block.AppHash does not include these 5304 txs. 5305 title: >- 5306 Data contains the set of transactions included in the 5307 block 5308 evidence: 5309 type: object 5310 properties: 5311 evidence: 5312 type: array 5313 items: 5314 type: object 5315 properties: 5316 duplicate_vote_evidence: 5317 type: object 5318 properties: 5319 vote_a: 5320 type: object 5321 properties: 5322 type: 5323 type: string 5324 enum: 5325 - SIGNED_MSG_TYPE_UNKNOWN 5326 - SIGNED_MSG_TYPE_PREVOTE 5327 - SIGNED_MSG_TYPE_PRECOMMIT 5328 - SIGNED_MSG_TYPE_PROPOSAL 5329 default: SIGNED_MSG_TYPE_UNKNOWN 5330 description: >- 5331 SignedMsgType is a type of signed 5332 message in the consensus. 5333 5334 - SIGNED_MSG_TYPE_PREVOTE: Votes 5335 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 5336 height: 5337 type: string 5338 format: int64 5339 round: 5340 type: integer 5341 format: int32 5342 block_id: 5343 type: object 5344 properties: 5345 hash: 5346 type: string 5347 format: byte 5348 part_set_header: 5349 type: object 5350 properties: 5351 total: 5352 type: integer 5353 format: int64 5354 hash: 5355 type: string 5356 format: byte 5357 title: PartsetHeader 5358 title: BlockID 5359 timestamp: 5360 type: string 5361 format: date-time 5362 validator_address: 5363 type: string 5364 format: byte 5365 validator_index: 5366 type: integer 5367 format: int32 5368 signature: 5369 type: string 5370 format: byte 5371 description: >- 5372 Vote signature by the validator if they 5373 participated in consensus for the 5374 5375 associated block. 5376 extension: 5377 type: string 5378 format: byte 5379 description: >- 5380 Vote extension provided by the 5381 application. Only valid for precommit 5382 5383 messages. 5384 extension_signature: 5385 type: string 5386 format: byte 5387 description: >- 5388 Vote extension signature by the 5389 validator if they participated in 5390 5391 consensus for the associated block. 5392 5393 Only valid for precommit messages. 5394 description: >- 5395 Vote represents a prevote or precommit vote 5396 from validators for 5397 5398 consensus. 5399 vote_b: 5400 type: object 5401 properties: 5402 type: 5403 type: string 5404 enum: 5405 - SIGNED_MSG_TYPE_UNKNOWN 5406 - SIGNED_MSG_TYPE_PREVOTE 5407 - SIGNED_MSG_TYPE_PRECOMMIT 5408 - SIGNED_MSG_TYPE_PROPOSAL 5409 default: SIGNED_MSG_TYPE_UNKNOWN 5410 description: >- 5411 SignedMsgType is a type of signed 5412 message in the consensus. 5413 5414 - SIGNED_MSG_TYPE_PREVOTE: Votes 5415 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 5416 height: 5417 type: string 5418 format: int64 5419 round: 5420 type: integer 5421 format: int32 5422 block_id: 5423 type: object 5424 properties: 5425 hash: 5426 type: string 5427 format: byte 5428 part_set_header: 5429 type: object 5430 properties: 5431 total: 5432 type: integer 5433 format: int64 5434 hash: 5435 type: string 5436 format: byte 5437 title: PartsetHeader 5438 title: BlockID 5439 timestamp: 5440 type: string 5441 format: date-time 5442 validator_address: 5443 type: string 5444 format: byte 5445 validator_index: 5446 type: integer 5447 format: int32 5448 signature: 5449 type: string 5450 format: byte 5451 description: >- 5452 Vote signature by the validator if they 5453 participated in consensus for the 5454 5455 associated block. 5456 extension: 5457 type: string 5458 format: byte 5459 description: >- 5460 Vote extension provided by the 5461 application. Only valid for precommit 5462 5463 messages. 5464 extension_signature: 5465 type: string 5466 format: byte 5467 description: >- 5468 Vote extension signature by the 5469 validator if they participated in 5470 5471 consensus for the associated block. 5472 5473 Only valid for precommit messages. 5474 description: >- 5475 Vote represents a prevote or precommit vote 5476 from validators for 5477 5478 consensus. 5479 total_voting_power: 5480 type: string 5481 format: int64 5482 validator_power: 5483 type: string 5484 format: int64 5485 timestamp: 5486 type: string 5487 format: date-time 5488 description: >- 5489 DuplicateVoteEvidence contains evidence of a 5490 validator signed two conflicting votes. 5491 light_client_attack_evidence: 5492 type: object 5493 properties: 5494 conflicting_block: 5495 type: object 5496 properties: 5497 signed_header: 5498 type: object 5499 properties: 5500 header: 5501 type: object 5502 properties: 5503 version: 5504 title: basic block info 5505 type: object 5506 properties: 5507 block: 5508 type: string 5509 format: uint64 5510 app: 5511 type: string 5512 format: uint64 5513 description: >- 5514 Consensus captures the consensus rules 5515 for processing a block in the 5516 blockchain, 5517 5518 including all blockchain data structures 5519 and the rules of the application's 5520 5521 state transition machine. 5522 chain_id: 5523 type: string 5524 height: 5525 type: string 5526 format: int64 5527 time: 5528 type: string 5529 format: date-time 5530 last_block_id: 5531 type: object 5532 properties: 5533 hash: 5534 type: string 5535 format: byte 5536 part_set_header: 5537 type: object 5538 properties: 5539 total: 5540 type: integer 5541 format: int64 5542 hash: 5543 type: string 5544 format: byte 5545 title: PartsetHeader 5546 title: BlockID 5547 last_commit_hash: 5548 type: string 5549 format: byte 5550 title: hashes of block data 5551 data_hash: 5552 type: string 5553 format: byte 5554 validators_hash: 5555 type: string 5556 format: byte 5557 title: >- 5558 hashes from the app output from the prev 5559 block 5560 next_validators_hash: 5561 type: string 5562 format: byte 5563 consensus_hash: 5564 type: string 5565 format: byte 5566 app_hash: 5567 type: string 5568 format: byte 5569 last_results_hash: 5570 type: string 5571 format: byte 5572 evidence_hash: 5573 type: string 5574 format: byte 5575 title: consensus info 5576 proposer_address: 5577 type: string 5578 format: byte 5579 description: >- 5580 Header defines the structure of a block 5581 header. 5582 commit: 5583 type: object 5584 properties: 5585 height: 5586 type: string 5587 format: int64 5588 round: 5589 type: integer 5590 format: int32 5591 block_id: 5592 type: object 5593 properties: 5594 hash: 5595 type: string 5596 format: byte 5597 part_set_header: 5598 type: object 5599 properties: 5600 total: 5601 type: integer 5602 format: int64 5603 hash: 5604 type: string 5605 format: byte 5606 title: PartsetHeader 5607 title: BlockID 5608 signatures: 5609 type: array 5610 items: 5611 type: object 5612 properties: 5613 block_id_flag: 5614 type: string 5615 enum: 5616 - BLOCK_ID_FLAG_UNKNOWN 5617 - BLOCK_ID_FLAG_ABSENT 5618 - BLOCK_ID_FLAG_COMMIT 5619 - BLOCK_ID_FLAG_NIL 5620 default: BLOCK_ID_FLAG_UNKNOWN 5621 title: >- 5622 BlockIdFlag indicates which BlockID the 5623 signature is for 5624 validator_address: 5625 type: string 5626 format: byte 5627 timestamp: 5628 type: string 5629 format: date-time 5630 signature: 5631 type: string 5632 format: byte 5633 description: >- 5634 CommitSig is a part of the Vote included 5635 in a Commit. 5636 description: >- 5637 Commit contains the evidence that a 5638 block was committed by a set of 5639 validators. 5640 validator_set: 5641 type: object 5642 properties: 5643 validators: 5644 type: array 5645 items: 5646 type: object 5647 properties: 5648 address: 5649 type: string 5650 format: byte 5651 pub_key: 5652 type: object 5653 properties: 5654 ed25519: 5655 type: string 5656 format: byte 5657 secp256k1: 5658 type: string 5659 format: byte 5660 title: >- 5661 PublicKey defines the keys available for 5662 use with Validators 5663 voting_power: 5664 type: string 5665 format: int64 5666 proposer_priority: 5667 type: string 5668 format: int64 5669 proposer: 5670 type: object 5671 properties: 5672 address: 5673 type: string 5674 format: byte 5675 pub_key: 5676 type: object 5677 properties: 5678 ed25519: 5679 type: string 5680 format: byte 5681 secp256k1: 5682 type: string 5683 format: byte 5684 title: >- 5685 PublicKey defines the keys available for 5686 use with Validators 5687 voting_power: 5688 type: string 5689 format: int64 5690 proposer_priority: 5691 type: string 5692 format: int64 5693 total_voting_power: 5694 type: string 5695 format: int64 5696 common_height: 5697 type: string 5698 format: int64 5699 byzantine_validators: 5700 type: array 5701 items: 5702 type: object 5703 properties: 5704 address: 5705 type: string 5706 format: byte 5707 pub_key: 5708 type: object 5709 properties: 5710 ed25519: 5711 type: string 5712 format: byte 5713 secp256k1: 5714 type: string 5715 format: byte 5716 title: >- 5717 PublicKey defines the keys available for 5718 use with Validators 5719 voting_power: 5720 type: string 5721 format: int64 5722 proposer_priority: 5723 type: string 5724 format: int64 5725 total_voting_power: 5726 type: string 5727 format: int64 5728 timestamp: 5729 type: string 5730 format: date-time 5731 description: >- 5732 LightClientAttackEvidence contains evidence of a 5733 set of validators attempting to mislead a light 5734 client. 5735 last_commit: 5736 type: object 5737 properties: 5738 height: 5739 type: string 5740 format: int64 5741 round: 5742 type: integer 5743 format: int32 5744 block_id: 5745 type: object 5746 properties: 5747 hash: 5748 type: string 5749 format: byte 5750 part_set_header: 5751 type: object 5752 properties: 5753 total: 5754 type: integer 5755 format: int64 5756 hash: 5757 type: string 5758 format: byte 5759 title: PartsetHeader 5760 title: BlockID 5761 signatures: 5762 type: array 5763 items: 5764 type: object 5765 properties: 5766 block_id_flag: 5767 type: string 5768 enum: 5769 - BLOCK_ID_FLAG_UNKNOWN 5770 - BLOCK_ID_FLAG_ABSENT 5771 - BLOCK_ID_FLAG_COMMIT 5772 - BLOCK_ID_FLAG_NIL 5773 default: BLOCK_ID_FLAG_UNKNOWN 5774 title: >- 5775 BlockIdFlag indicates which BlockID the 5776 signature is for 5777 validator_address: 5778 type: string 5779 format: byte 5780 timestamp: 5781 type: string 5782 format: date-time 5783 signature: 5784 type: string 5785 format: byte 5786 description: >- 5787 CommitSig is a part of the Vote included in a 5788 Commit. 5789 description: >- 5790 Commit contains the evidence that a block was committed by 5791 a set of validators. 5792 sdk_block: 5793 title: 'Since: cosmos-sdk 0.47' 5794 type: object 5795 properties: 5796 header: 5797 type: object 5798 properties: 5799 version: 5800 title: basic block info 5801 type: object 5802 properties: 5803 block: 5804 type: string 5805 format: uint64 5806 app: 5807 type: string 5808 format: uint64 5809 description: >- 5810 Consensus captures the consensus rules for processing 5811 a block in the blockchain, 5812 5813 including all blockchain data structures and the rules 5814 of the application's 5815 5816 state transition machine. 5817 chain_id: 5818 type: string 5819 height: 5820 type: string 5821 format: int64 5822 time: 5823 type: string 5824 format: date-time 5825 last_block_id: 5826 type: object 5827 properties: 5828 hash: 5829 type: string 5830 format: byte 5831 part_set_header: 5832 type: object 5833 properties: 5834 total: 5835 type: integer 5836 format: int64 5837 hash: 5838 type: string 5839 format: byte 5840 title: PartsetHeader 5841 title: BlockID 5842 last_commit_hash: 5843 type: string 5844 format: byte 5845 title: hashes of block data 5846 data_hash: 5847 type: string 5848 format: byte 5849 validators_hash: 5850 type: string 5851 format: byte 5852 title: hashes from the app output from the prev block 5853 next_validators_hash: 5854 type: string 5855 format: byte 5856 consensus_hash: 5857 type: string 5858 format: byte 5859 app_hash: 5860 type: string 5861 format: byte 5862 last_results_hash: 5863 type: string 5864 format: byte 5865 evidence_hash: 5866 type: string 5867 format: byte 5868 title: consensus info 5869 proposer_address: 5870 type: string 5871 description: >- 5872 proposer_address is the original block proposer 5873 address, formatted as a Bech32 string. 5874 5875 In Tendermint, this type is `bytes`, but in the SDK, 5876 we convert it to a Bech32 string 5877 5878 for better UX. 5879 description: Header defines the structure of a Tendermint block header. 5880 data: 5881 type: object 5882 properties: 5883 txs: 5884 type: array 5885 items: 5886 type: string 5887 format: byte 5888 description: >- 5889 Txs that will be applied by state @ block.Height+1. 5890 5891 NOTE: not all txs here are valid. We're just agreeing 5892 on the order first. 5893 5894 This means that block.AppHash does not include these 5895 txs. 5896 title: >- 5897 Data contains the set of transactions included in the 5898 block 5899 evidence: 5900 type: object 5901 properties: 5902 evidence: 5903 type: array 5904 items: 5905 type: object 5906 properties: 5907 duplicate_vote_evidence: 5908 type: object 5909 properties: 5910 vote_a: 5911 type: object 5912 properties: 5913 type: 5914 type: string 5915 enum: 5916 - SIGNED_MSG_TYPE_UNKNOWN 5917 - SIGNED_MSG_TYPE_PREVOTE 5918 - SIGNED_MSG_TYPE_PRECOMMIT 5919 - SIGNED_MSG_TYPE_PROPOSAL 5920 default: SIGNED_MSG_TYPE_UNKNOWN 5921 description: >- 5922 SignedMsgType is a type of signed 5923 message in the consensus. 5924 5925 - SIGNED_MSG_TYPE_PREVOTE: Votes 5926 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 5927 height: 5928 type: string 5929 format: int64 5930 round: 5931 type: integer 5932 format: int32 5933 block_id: 5934 type: object 5935 properties: 5936 hash: 5937 type: string 5938 format: byte 5939 part_set_header: 5940 type: object 5941 properties: 5942 total: 5943 type: integer 5944 format: int64 5945 hash: 5946 type: string 5947 format: byte 5948 title: PartsetHeader 5949 title: BlockID 5950 timestamp: 5951 type: string 5952 format: date-time 5953 validator_address: 5954 type: string 5955 format: byte 5956 validator_index: 5957 type: integer 5958 format: int32 5959 signature: 5960 type: string 5961 format: byte 5962 description: >- 5963 Vote signature by the validator if they 5964 participated in consensus for the 5965 5966 associated block. 5967 extension: 5968 type: string 5969 format: byte 5970 description: >- 5971 Vote extension provided by the 5972 application. Only valid for precommit 5973 5974 messages. 5975 extension_signature: 5976 type: string 5977 format: byte 5978 description: >- 5979 Vote extension signature by the 5980 validator if they participated in 5981 5982 consensus for the associated block. 5983 5984 Only valid for precommit messages. 5985 description: >- 5986 Vote represents a prevote or precommit vote 5987 from validators for 5988 5989 consensus. 5990 vote_b: 5991 type: object 5992 properties: 5993 type: 5994 type: string 5995 enum: 5996 - SIGNED_MSG_TYPE_UNKNOWN 5997 - SIGNED_MSG_TYPE_PREVOTE 5998 - SIGNED_MSG_TYPE_PRECOMMIT 5999 - SIGNED_MSG_TYPE_PROPOSAL 6000 default: SIGNED_MSG_TYPE_UNKNOWN 6001 description: >- 6002 SignedMsgType is a type of signed 6003 message in the consensus. 6004 6005 - SIGNED_MSG_TYPE_PREVOTE: Votes 6006 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 6007 height: 6008 type: string 6009 format: int64 6010 round: 6011 type: integer 6012 format: int32 6013 block_id: 6014 type: object 6015 properties: 6016 hash: 6017 type: string 6018 format: byte 6019 part_set_header: 6020 type: object 6021 properties: 6022 total: 6023 type: integer 6024 format: int64 6025 hash: 6026 type: string 6027 format: byte 6028 title: PartsetHeader 6029 title: BlockID 6030 timestamp: 6031 type: string 6032 format: date-time 6033 validator_address: 6034 type: string 6035 format: byte 6036 validator_index: 6037 type: integer 6038 format: int32 6039 signature: 6040 type: string 6041 format: byte 6042 description: >- 6043 Vote signature by the validator if they 6044 participated in consensus for the 6045 6046 associated block. 6047 extension: 6048 type: string 6049 format: byte 6050 description: >- 6051 Vote extension provided by the 6052 application. Only valid for precommit 6053 6054 messages. 6055 extension_signature: 6056 type: string 6057 format: byte 6058 description: >- 6059 Vote extension signature by the 6060 validator if they participated in 6061 6062 consensus for the associated block. 6063 6064 Only valid for precommit messages. 6065 description: >- 6066 Vote represents a prevote or precommit vote 6067 from validators for 6068 6069 consensus. 6070 total_voting_power: 6071 type: string 6072 format: int64 6073 validator_power: 6074 type: string 6075 format: int64 6076 timestamp: 6077 type: string 6078 format: date-time 6079 description: >- 6080 DuplicateVoteEvidence contains evidence of a 6081 validator signed two conflicting votes. 6082 light_client_attack_evidence: 6083 type: object 6084 properties: 6085 conflicting_block: 6086 type: object 6087 properties: 6088 signed_header: 6089 type: object 6090 properties: 6091 header: 6092 type: object 6093 properties: 6094 version: 6095 title: basic block info 6096 type: object 6097 properties: 6098 block: 6099 type: string 6100 format: uint64 6101 app: 6102 type: string 6103 format: uint64 6104 description: >- 6105 Consensus captures the consensus rules 6106 for processing a block in the 6107 blockchain, 6108 6109 including all blockchain data structures 6110 and the rules of the application's 6111 6112 state transition machine. 6113 chain_id: 6114 type: string 6115 height: 6116 type: string 6117 format: int64 6118 time: 6119 type: string 6120 format: date-time 6121 last_block_id: 6122 type: object 6123 properties: 6124 hash: 6125 type: string 6126 format: byte 6127 part_set_header: 6128 type: object 6129 properties: 6130 total: 6131 type: integer 6132 format: int64 6133 hash: 6134 type: string 6135 format: byte 6136 title: PartsetHeader 6137 title: BlockID 6138 last_commit_hash: 6139 type: string 6140 format: byte 6141 title: hashes of block data 6142 data_hash: 6143 type: string 6144 format: byte 6145 validators_hash: 6146 type: string 6147 format: byte 6148 title: >- 6149 hashes from the app output from the prev 6150 block 6151 next_validators_hash: 6152 type: string 6153 format: byte 6154 consensus_hash: 6155 type: string 6156 format: byte 6157 app_hash: 6158 type: string 6159 format: byte 6160 last_results_hash: 6161 type: string 6162 format: byte 6163 evidence_hash: 6164 type: string 6165 format: byte 6166 title: consensus info 6167 proposer_address: 6168 type: string 6169 format: byte 6170 description: >- 6171 Header defines the structure of a block 6172 header. 6173 commit: 6174 type: object 6175 properties: 6176 height: 6177 type: string 6178 format: int64 6179 round: 6180 type: integer 6181 format: int32 6182 block_id: 6183 type: object 6184 properties: 6185 hash: 6186 type: string 6187 format: byte 6188 part_set_header: 6189 type: object 6190 properties: 6191 total: 6192 type: integer 6193 format: int64 6194 hash: 6195 type: string 6196 format: byte 6197 title: PartsetHeader 6198 title: BlockID 6199 signatures: 6200 type: array 6201 items: 6202 type: object 6203 properties: 6204 block_id_flag: 6205 type: string 6206 enum: 6207 - BLOCK_ID_FLAG_UNKNOWN 6208 - BLOCK_ID_FLAG_ABSENT 6209 - BLOCK_ID_FLAG_COMMIT 6210 - BLOCK_ID_FLAG_NIL 6211 default: BLOCK_ID_FLAG_UNKNOWN 6212 title: >- 6213 BlockIdFlag indicates which BlockID the 6214 signature is for 6215 validator_address: 6216 type: string 6217 format: byte 6218 timestamp: 6219 type: string 6220 format: date-time 6221 signature: 6222 type: string 6223 format: byte 6224 description: >- 6225 CommitSig is a part of the Vote included 6226 in a Commit. 6227 description: >- 6228 Commit contains the evidence that a 6229 block was committed by a set of 6230 validators. 6231 validator_set: 6232 type: object 6233 properties: 6234 validators: 6235 type: array 6236 items: 6237 type: object 6238 properties: 6239 address: 6240 type: string 6241 format: byte 6242 pub_key: 6243 type: object 6244 properties: 6245 ed25519: 6246 type: string 6247 format: byte 6248 secp256k1: 6249 type: string 6250 format: byte 6251 title: >- 6252 PublicKey defines the keys available for 6253 use with Validators 6254 voting_power: 6255 type: string 6256 format: int64 6257 proposer_priority: 6258 type: string 6259 format: int64 6260 proposer: 6261 type: object 6262 properties: 6263 address: 6264 type: string 6265 format: byte 6266 pub_key: 6267 type: object 6268 properties: 6269 ed25519: 6270 type: string 6271 format: byte 6272 secp256k1: 6273 type: string 6274 format: byte 6275 title: >- 6276 PublicKey defines the keys available for 6277 use with Validators 6278 voting_power: 6279 type: string 6280 format: int64 6281 proposer_priority: 6282 type: string 6283 format: int64 6284 total_voting_power: 6285 type: string 6286 format: int64 6287 common_height: 6288 type: string 6289 format: int64 6290 byzantine_validators: 6291 type: array 6292 items: 6293 type: object 6294 properties: 6295 address: 6296 type: string 6297 format: byte 6298 pub_key: 6299 type: object 6300 properties: 6301 ed25519: 6302 type: string 6303 format: byte 6304 secp256k1: 6305 type: string 6306 format: byte 6307 title: >- 6308 PublicKey defines the keys available for 6309 use with Validators 6310 voting_power: 6311 type: string 6312 format: int64 6313 proposer_priority: 6314 type: string 6315 format: int64 6316 total_voting_power: 6317 type: string 6318 format: int64 6319 timestamp: 6320 type: string 6321 format: date-time 6322 description: >- 6323 LightClientAttackEvidence contains evidence of a 6324 set of validators attempting to mislead a light 6325 client. 6326 last_commit: 6327 type: object 6328 properties: 6329 height: 6330 type: string 6331 format: int64 6332 round: 6333 type: integer 6334 format: int32 6335 block_id: 6336 type: object 6337 properties: 6338 hash: 6339 type: string 6340 format: byte 6341 part_set_header: 6342 type: object 6343 properties: 6344 total: 6345 type: integer 6346 format: int64 6347 hash: 6348 type: string 6349 format: byte 6350 title: PartsetHeader 6351 title: BlockID 6352 signatures: 6353 type: array 6354 items: 6355 type: object 6356 properties: 6357 block_id_flag: 6358 type: string 6359 enum: 6360 - BLOCK_ID_FLAG_UNKNOWN 6361 - BLOCK_ID_FLAG_ABSENT 6362 - BLOCK_ID_FLAG_COMMIT 6363 - BLOCK_ID_FLAG_NIL 6364 default: BLOCK_ID_FLAG_UNKNOWN 6365 title: >- 6366 BlockIdFlag indicates which BlockID the 6367 signature is for 6368 validator_address: 6369 type: string 6370 format: byte 6371 timestamp: 6372 type: string 6373 format: date-time 6374 signature: 6375 type: string 6376 format: byte 6377 description: >- 6378 CommitSig is a part of the Vote included in a 6379 Commit. 6380 description: >- 6381 Commit contains the evidence that a block was committed by 6382 a set of validators. 6383 description: >- 6384 Block is tendermint type Block, with the Header proposer 6385 address 6386 6387 field converted to bech32 string. 6388 description: >- 6389 GetLatestBlockResponse is the response type for the 6390 Query/GetLatestBlock RPC method. 6391 default: 6392 description: An unexpected error response. 6393 schema: 6394 type: object 6395 properties: 6396 error: 6397 type: string 6398 code: 6399 type: integer 6400 format: int32 6401 message: 6402 type: string 6403 details: 6404 type: array 6405 items: 6406 type: object 6407 properties: 6408 type_url: 6409 type: string 6410 description: >- 6411 A URL/resource name that uniquely identifies the type of 6412 the serialized 6413 6414 protocol buffer message. This string must contain at 6415 least 6416 6417 one "/" character. The last segment of the URL's path 6418 must represent 6419 6420 the fully qualified name of the type (as in 6421 6422 `path/google.protobuf.Duration`). The name should be in 6423 a canonical form 6424 6425 (e.g., leading "." is not accepted). 6426 6427 6428 In practice, teams usually precompile into the binary 6429 all types that they 6430 6431 expect it to use in the context of Any. However, for 6432 URLs which use the 6433 6434 scheme `http`, `https`, or no scheme, one can optionally 6435 set up a type 6436 6437 server that maps type URLs to message definitions as 6438 follows: 6439 6440 6441 * If no scheme is provided, `https` is assumed. 6442 6443 * An HTTP GET on the URL must yield a 6444 [google.protobuf.Type][] 6445 value in binary format, or produce an error. 6446 * Applications are allowed to cache lookup results based 6447 on the 6448 URL, or have them precompiled into a binary to avoid any 6449 lookup. Therefore, binary compatibility needs to be preserved 6450 on changes to types. (Use versioned type names to manage 6451 breaking changes.) 6452 6453 Note: this functionality is not currently available in 6454 the official 6455 6456 protobuf release, and it is not used for type URLs 6457 beginning with 6458 6459 type.googleapis.com. 6460 6461 6462 Schemes other than `http`, `https` (or the empty scheme) 6463 might be 6464 6465 used with implementation specific semantics. 6466 value: 6467 type: string 6468 format: byte 6469 description: >- 6470 Must be a valid serialized protocol buffer of the above 6471 specified type. 6472 description: >- 6473 `Any` contains an arbitrary serialized protocol buffer 6474 message along with a 6475 6476 URL that describes the type of the serialized message. 6477 6478 6479 Protobuf library provides support to pack/unpack Any values 6480 in the form 6481 6482 of utility functions or additional generated methods of the 6483 Any type. 6484 6485 6486 Example 1: Pack and unpack a message in C++. 6487 6488 Foo foo = ...; 6489 Any any; 6490 any.PackFrom(foo); 6491 ... 6492 if (any.UnpackTo(&foo)) { 6493 ... 6494 } 6495 6496 Example 2: Pack and unpack a message in Java. 6497 6498 Foo foo = ...; 6499 Any any = Any.pack(foo); 6500 ... 6501 if (any.is(Foo.class)) { 6502 foo = any.unpack(Foo.class); 6503 } 6504 // or ... 6505 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 6506 foo = any.unpack(Foo.getDefaultInstance()); 6507 } 6508 6509 Example 3: Pack and unpack a message in Python. 6510 6511 foo = Foo(...) 6512 any = Any() 6513 any.Pack(foo) 6514 ... 6515 if any.Is(Foo.DESCRIPTOR): 6516 any.Unpack(foo) 6517 ... 6518 6519 Example 4: Pack and unpack a message in Go 6520 6521 foo := &pb.Foo{...} 6522 any, err := anypb.New(foo) 6523 if err != nil { 6524 ... 6525 } 6526 ... 6527 foo := &pb.Foo{} 6528 if err := any.UnmarshalTo(foo); err != nil { 6529 ... 6530 } 6531 6532 The pack methods provided by protobuf library will by 6533 default use 6534 6535 'type.googleapis.com/full.type.name' as the type URL and the 6536 unpack 6537 6538 methods only use the fully qualified type name after the 6539 last '/' 6540 6541 in the type URL, for example "foo.bar.com/x/y.z" will yield 6542 type 6543 6544 name "y.z". 6545 6546 6547 JSON 6548 6549 6550 The JSON representation of an `Any` value uses the regular 6551 6552 representation of the deserialized, embedded message, with 6553 an 6554 6555 additional field `@type` which contains the type URL. 6556 Example: 6557 6558 package google.profile; 6559 message Person { 6560 string first_name = 1; 6561 string last_name = 2; 6562 } 6563 6564 { 6565 "@type": "type.googleapis.com/google.profile.Person", 6566 "firstName": <string>, 6567 "lastName": <string> 6568 } 6569 6570 If the embedded message type is well-known and has a custom 6571 JSON 6572 6573 representation, that representation will be embedded adding 6574 a field 6575 6576 `value` which holds the custom JSON in addition to the 6577 `@type` 6578 6579 field. Example (for message [google.protobuf.Duration][]): 6580 6581 { 6582 "@type": "type.googleapis.com/google.protobuf.Duration", 6583 "value": "1.212s" 6584 } 6585 tags: 6586 - Service 6587 /cosmos/base/tendermint/v1beta1/blocks/{height}: 6588 get: 6589 summary: GetBlockByHeight queries block for given height. 6590 operationId: GetBlockByHeight 6591 responses: 6592 '200': 6593 description: A successful response. 6594 schema: 6595 type: object 6596 properties: 6597 block_id: 6598 type: object 6599 properties: 6600 hash: 6601 type: string 6602 format: byte 6603 part_set_header: 6604 type: object 6605 properties: 6606 total: 6607 type: integer 6608 format: int64 6609 hash: 6610 type: string 6611 format: byte 6612 title: PartsetHeader 6613 title: BlockID 6614 block: 6615 title: 'Deprecated: please use `sdk_block` instead' 6616 type: object 6617 properties: 6618 header: 6619 type: object 6620 properties: 6621 version: 6622 title: basic block info 6623 type: object 6624 properties: 6625 block: 6626 type: string 6627 format: uint64 6628 app: 6629 type: string 6630 format: uint64 6631 description: >- 6632 Consensus captures the consensus rules for processing 6633 a block in the blockchain, 6634 6635 including all blockchain data structures and the rules 6636 of the application's 6637 6638 state transition machine. 6639 chain_id: 6640 type: string 6641 height: 6642 type: string 6643 format: int64 6644 time: 6645 type: string 6646 format: date-time 6647 last_block_id: 6648 type: object 6649 properties: 6650 hash: 6651 type: string 6652 format: byte 6653 part_set_header: 6654 type: object 6655 properties: 6656 total: 6657 type: integer 6658 format: int64 6659 hash: 6660 type: string 6661 format: byte 6662 title: PartsetHeader 6663 title: BlockID 6664 last_commit_hash: 6665 type: string 6666 format: byte 6667 title: hashes of block data 6668 data_hash: 6669 type: string 6670 format: byte 6671 validators_hash: 6672 type: string 6673 format: byte 6674 title: hashes from the app output from the prev block 6675 next_validators_hash: 6676 type: string 6677 format: byte 6678 consensus_hash: 6679 type: string 6680 format: byte 6681 app_hash: 6682 type: string 6683 format: byte 6684 last_results_hash: 6685 type: string 6686 format: byte 6687 evidence_hash: 6688 type: string 6689 format: byte 6690 title: consensus info 6691 proposer_address: 6692 type: string 6693 format: byte 6694 description: Header defines the structure of a block header. 6695 data: 6696 type: object 6697 properties: 6698 txs: 6699 type: array 6700 items: 6701 type: string 6702 format: byte 6703 description: >- 6704 Txs that will be applied by state @ block.Height+1. 6705 6706 NOTE: not all txs here are valid. We're just agreeing 6707 on the order first. 6708 6709 This means that block.AppHash does not include these 6710 txs. 6711 title: >- 6712 Data contains the set of transactions included in the 6713 block 6714 evidence: 6715 type: object 6716 properties: 6717 evidence: 6718 type: array 6719 items: 6720 type: object 6721 properties: 6722 duplicate_vote_evidence: 6723 type: object 6724 properties: 6725 vote_a: 6726 type: object 6727 properties: 6728 type: 6729 type: string 6730 enum: 6731 - SIGNED_MSG_TYPE_UNKNOWN 6732 - SIGNED_MSG_TYPE_PREVOTE 6733 - SIGNED_MSG_TYPE_PRECOMMIT 6734 - SIGNED_MSG_TYPE_PROPOSAL 6735 default: SIGNED_MSG_TYPE_UNKNOWN 6736 description: >- 6737 SignedMsgType is a type of signed 6738 message in the consensus. 6739 6740 - SIGNED_MSG_TYPE_PREVOTE: Votes 6741 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 6742 height: 6743 type: string 6744 format: int64 6745 round: 6746 type: integer 6747 format: int32 6748 block_id: 6749 type: object 6750 properties: 6751 hash: 6752 type: string 6753 format: byte 6754 part_set_header: 6755 type: object 6756 properties: 6757 total: 6758 type: integer 6759 format: int64 6760 hash: 6761 type: string 6762 format: byte 6763 title: PartsetHeader 6764 title: BlockID 6765 timestamp: 6766 type: string 6767 format: date-time 6768 validator_address: 6769 type: string 6770 format: byte 6771 validator_index: 6772 type: integer 6773 format: int32 6774 signature: 6775 type: string 6776 format: byte 6777 description: >- 6778 Vote signature by the validator if they 6779 participated in consensus for the 6780 6781 associated block. 6782 extension: 6783 type: string 6784 format: byte 6785 description: >- 6786 Vote extension provided by the 6787 application. Only valid for precommit 6788 6789 messages. 6790 extension_signature: 6791 type: string 6792 format: byte 6793 description: >- 6794 Vote extension signature by the 6795 validator if they participated in 6796 6797 consensus for the associated block. 6798 6799 Only valid for precommit messages. 6800 description: >- 6801 Vote represents a prevote or precommit vote 6802 from validators for 6803 6804 consensus. 6805 vote_b: 6806 type: object 6807 properties: 6808 type: 6809 type: string 6810 enum: 6811 - SIGNED_MSG_TYPE_UNKNOWN 6812 - SIGNED_MSG_TYPE_PREVOTE 6813 - SIGNED_MSG_TYPE_PRECOMMIT 6814 - SIGNED_MSG_TYPE_PROPOSAL 6815 default: SIGNED_MSG_TYPE_UNKNOWN 6816 description: >- 6817 SignedMsgType is a type of signed 6818 message in the consensus. 6819 6820 - SIGNED_MSG_TYPE_PREVOTE: Votes 6821 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 6822 height: 6823 type: string 6824 format: int64 6825 round: 6826 type: integer 6827 format: int32 6828 block_id: 6829 type: object 6830 properties: 6831 hash: 6832 type: string 6833 format: byte 6834 part_set_header: 6835 type: object 6836 properties: 6837 total: 6838 type: integer 6839 format: int64 6840 hash: 6841 type: string 6842 format: byte 6843 title: PartsetHeader 6844 title: BlockID 6845 timestamp: 6846 type: string 6847 format: date-time 6848 validator_address: 6849 type: string 6850 format: byte 6851 validator_index: 6852 type: integer 6853 format: int32 6854 signature: 6855 type: string 6856 format: byte 6857 description: >- 6858 Vote signature by the validator if they 6859 participated in consensus for the 6860 6861 associated block. 6862 extension: 6863 type: string 6864 format: byte 6865 description: >- 6866 Vote extension provided by the 6867 application. Only valid for precommit 6868 6869 messages. 6870 extension_signature: 6871 type: string 6872 format: byte 6873 description: >- 6874 Vote extension signature by the 6875 validator if they participated in 6876 6877 consensus for the associated block. 6878 6879 Only valid for precommit messages. 6880 description: >- 6881 Vote represents a prevote or precommit vote 6882 from validators for 6883 6884 consensus. 6885 total_voting_power: 6886 type: string 6887 format: int64 6888 validator_power: 6889 type: string 6890 format: int64 6891 timestamp: 6892 type: string 6893 format: date-time 6894 description: >- 6895 DuplicateVoteEvidence contains evidence of a 6896 validator signed two conflicting votes. 6897 light_client_attack_evidence: 6898 type: object 6899 properties: 6900 conflicting_block: 6901 type: object 6902 properties: 6903 signed_header: 6904 type: object 6905 properties: 6906 header: 6907 type: object 6908 properties: 6909 version: 6910 title: basic block info 6911 type: object 6912 properties: 6913 block: 6914 type: string 6915 format: uint64 6916 app: 6917 type: string 6918 format: uint64 6919 description: >- 6920 Consensus captures the consensus rules 6921 for processing a block in the 6922 blockchain, 6923 6924 including all blockchain data structures 6925 and the rules of the application's 6926 6927 state transition machine. 6928 chain_id: 6929 type: string 6930 height: 6931 type: string 6932 format: int64 6933 time: 6934 type: string 6935 format: date-time 6936 last_block_id: 6937 type: object 6938 properties: 6939 hash: 6940 type: string 6941 format: byte 6942 part_set_header: 6943 type: object 6944 properties: 6945 total: 6946 type: integer 6947 format: int64 6948 hash: 6949 type: string 6950 format: byte 6951 title: PartsetHeader 6952 title: BlockID 6953 last_commit_hash: 6954 type: string 6955 format: byte 6956 title: hashes of block data 6957 data_hash: 6958 type: string 6959 format: byte 6960 validators_hash: 6961 type: string 6962 format: byte 6963 title: >- 6964 hashes from the app output from the prev 6965 block 6966 next_validators_hash: 6967 type: string 6968 format: byte 6969 consensus_hash: 6970 type: string 6971 format: byte 6972 app_hash: 6973 type: string 6974 format: byte 6975 last_results_hash: 6976 type: string 6977 format: byte 6978 evidence_hash: 6979 type: string 6980 format: byte 6981 title: consensus info 6982 proposer_address: 6983 type: string 6984 format: byte 6985 description: >- 6986 Header defines the structure of a block 6987 header. 6988 commit: 6989 type: object 6990 properties: 6991 height: 6992 type: string 6993 format: int64 6994 round: 6995 type: integer 6996 format: int32 6997 block_id: 6998 type: object 6999 properties: 7000 hash: 7001 type: string 7002 format: byte 7003 part_set_header: 7004 type: object 7005 properties: 7006 total: 7007 type: integer 7008 format: int64 7009 hash: 7010 type: string 7011 format: byte 7012 title: PartsetHeader 7013 title: BlockID 7014 signatures: 7015 type: array 7016 items: 7017 type: object 7018 properties: 7019 block_id_flag: 7020 type: string 7021 enum: 7022 - BLOCK_ID_FLAG_UNKNOWN 7023 - BLOCK_ID_FLAG_ABSENT 7024 - BLOCK_ID_FLAG_COMMIT 7025 - BLOCK_ID_FLAG_NIL 7026 default: BLOCK_ID_FLAG_UNKNOWN 7027 title: >- 7028 BlockIdFlag indicates which BlockID the 7029 signature is for 7030 validator_address: 7031 type: string 7032 format: byte 7033 timestamp: 7034 type: string 7035 format: date-time 7036 signature: 7037 type: string 7038 format: byte 7039 description: >- 7040 CommitSig is a part of the Vote included 7041 in a Commit. 7042 description: >- 7043 Commit contains the evidence that a 7044 block was committed by a set of 7045 validators. 7046 validator_set: 7047 type: object 7048 properties: 7049 validators: 7050 type: array 7051 items: 7052 type: object 7053 properties: 7054 address: 7055 type: string 7056 format: byte 7057 pub_key: 7058 type: object 7059 properties: 7060 ed25519: 7061 type: string 7062 format: byte 7063 secp256k1: 7064 type: string 7065 format: byte 7066 title: >- 7067 PublicKey defines the keys available for 7068 use with Validators 7069 voting_power: 7070 type: string 7071 format: int64 7072 proposer_priority: 7073 type: string 7074 format: int64 7075 proposer: 7076 type: object 7077 properties: 7078 address: 7079 type: string 7080 format: byte 7081 pub_key: 7082 type: object 7083 properties: 7084 ed25519: 7085 type: string 7086 format: byte 7087 secp256k1: 7088 type: string 7089 format: byte 7090 title: >- 7091 PublicKey defines the keys available for 7092 use with Validators 7093 voting_power: 7094 type: string 7095 format: int64 7096 proposer_priority: 7097 type: string 7098 format: int64 7099 total_voting_power: 7100 type: string 7101 format: int64 7102 common_height: 7103 type: string 7104 format: int64 7105 byzantine_validators: 7106 type: array 7107 items: 7108 type: object 7109 properties: 7110 address: 7111 type: string 7112 format: byte 7113 pub_key: 7114 type: object 7115 properties: 7116 ed25519: 7117 type: string 7118 format: byte 7119 secp256k1: 7120 type: string 7121 format: byte 7122 title: >- 7123 PublicKey defines the keys available for 7124 use with Validators 7125 voting_power: 7126 type: string 7127 format: int64 7128 proposer_priority: 7129 type: string 7130 format: int64 7131 total_voting_power: 7132 type: string 7133 format: int64 7134 timestamp: 7135 type: string 7136 format: date-time 7137 description: >- 7138 LightClientAttackEvidence contains evidence of a 7139 set of validators attempting to mislead a light 7140 client. 7141 last_commit: 7142 type: object 7143 properties: 7144 height: 7145 type: string 7146 format: int64 7147 round: 7148 type: integer 7149 format: int32 7150 block_id: 7151 type: object 7152 properties: 7153 hash: 7154 type: string 7155 format: byte 7156 part_set_header: 7157 type: object 7158 properties: 7159 total: 7160 type: integer 7161 format: int64 7162 hash: 7163 type: string 7164 format: byte 7165 title: PartsetHeader 7166 title: BlockID 7167 signatures: 7168 type: array 7169 items: 7170 type: object 7171 properties: 7172 block_id_flag: 7173 type: string 7174 enum: 7175 - BLOCK_ID_FLAG_UNKNOWN 7176 - BLOCK_ID_FLAG_ABSENT 7177 - BLOCK_ID_FLAG_COMMIT 7178 - BLOCK_ID_FLAG_NIL 7179 default: BLOCK_ID_FLAG_UNKNOWN 7180 title: >- 7181 BlockIdFlag indicates which BlockID the 7182 signature is for 7183 validator_address: 7184 type: string 7185 format: byte 7186 timestamp: 7187 type: string 7188 format: date-time 7189 signature: 7190 type: string 7191 format: byte 7192 description: >- 7193 CommitSig is a part of the Vote included in a 7194 Commit. 7195 description: >- 7196 Commit contains the evidence that a block was committed by 7197 a set of validators. 7198 sdk_block: 7199 title: 'Since: cosmos-sdk 0.47' 7200 type: object 7201 properties: 7202 header: 7203 type: object 7204 properties: 7205 version: 7206 title: basic block info 7207 type: object 7208 properties: 7209 block: 7210 type: string 7211 format: uint64 7212 app: 7213 type: string 7214 format: uint64 7215 description: >- 7216 Consensus captures the consensus rules for processing 7217 a block in the blockchain, 7218 7219 including all blockchain data structures and the rules 7220 of the application's 7221 7222 state transition machine. 7223 chain_id: 7224 type: string 7225 height: 7226 type: string 7227 format: int64 7228 time: 7229 type: string 7230 format: date-time 7231 last_block_id: 7232 type: object 7233 properties: 7234 hash: 7235 type: string 7236 format: byte 7237 part_set_header: 7238 type: object 7239 properties: 7240 total: 7241 type: integer 7242 format: int64 7243 hash: 7244 type: string 7245 format: byte 7246 title: PartsetHeader 7247 title: BlockID 7248 last_commit_hash: 7249 type: string 7250 format: byte 7251 title: hashes of block data 7252 data_hash: 7253 type: string 7254 format: byte 7255 validators_hash: 7256 type: string 7257 format: byte 7258 title: hashes from the app output from the prev block 7259 next_validators_hash: 7260 type: string 7261 format: byte 7262 consensus_hash: 7263 type: string 7264 format: byte 7265 app_hash: 7266 type: string 7267 format: byte 7268 last_results_hash: 7269 type: string 7270 format: byte 7271 evidence_hash: 7272 type: string 7273 format: byte 7274 title: consensus info 7275 proposer_address: 7276 type: string 7277 description: >- 7278 proposer_address is the original block proposer 7279 address, formatted as a Bech32 string. 7280 7281 In Tendermint, this type is `bytes`, but in the SDK, 7282 we convert it to a Bech32 string 7283 7284 for better UX. 7285 description: Header defines the structure of a Tendermint block header. 7286 data: 7287 type: object 7288 properties: 7289 txs: 7290 type: array 7291 items: 7292 type: string 7293 format: byte 7294 description: >- 7295 Txs that will be applied by state @ block.Height+1. 7296 7297 NOTE: not all txs here are valid. We're just agreeing 7298 on the order first. 7299 7300 This means that block.AppHash does not include these 7301 txs. 7302 title: >- 7303 Data contains the set of transactions included in the 7304 block 7305 evidence: 7306 type: object 7307 properties: 7308 evidence: 7309 type: array 7310 items: 7311 type: object 7312 properties: 7313 duplicate_vote_evidence: 7314 type: object 7315 properties: 7316 vote_a: 7317 type: object 7318 properties: 7319 type: 7320 type: string 7321 enum: 7322 - SIGNED_MSG_TYPE_UNKNOWN 7323 - SIGNED_MSG_TYPE_PREVOTE 7324 - SIGNED_MSG_TYPE_PRECOMMIT 7325 - SIGNED_MSG_TYPE_PROPOSAL 7326 default: SIGNED_MSG_TYPE_UNKNOWN 7327 description: >- 7328 SignedMsgType is a type of signed 7329 message in the consensus. 7330 7331 - SIGNED_MSG_TYPE_PREVOTE: Votes 7332 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 7333 height: 7334 type: string 7335 format: int64 7336 round: 7337 type: integer 7338 format: int32 7339 block_id: 7340 type: object 7341 properties: 7342 hash: 7343 type: string 7344 format: byte 7345 part_set_header: 7346 type: object 7347 properties: 7348 total: 7349 type: integer 7350 format: int64 7351 hash: 7352 type: string 7353 format: byte 7354 title: PartsetHeader 7355 title: BlockID 7356 timestamp: 7357 type: string 7358 format: date-time 7359 validator_address: 7360 type: string 7361 format: byte 7362 validator_index: 7363 type: integer 7364 format: int32 7365 signature: 7366 type: string 7367 format: byte 7368 description: >- 7369 Vote signature by the validator if they 7370 participated in consensus for the 7371 7372 associated block. 7373 extension: 7374 type: string 7375 format: byte 7376 description: >- 7377 Vote extension provided by the 7378 application. Only valid for precommit 7379 7380 messages. 7381 extension_signature: 7382 type: string 7383 format: byte 7384 description: >- 7385 Vote extension signature by the 7386 validator if they participated in 7387 7388 consensus for the associated block. 7389 7390 Only valid for precommit messages. 7391 description: >- 7392 Vote represents a prevote or precommit vote 7393 from validators for 7394 7395 consensus. 7396 vote_b: 7397 type: object 7398 properties: 7399 type: 7400 type: string 7401 enum: 7402 - SIGNED_MSG_TYPE_UNKNOWN 7403 - SIGNED_MSG_TYPE_PREVOTE 7404 - SIGNED_MSG_TYPE_PRECOMMIT 7405 - SIGNED_MSG_TYPE_PROPOSAL 7406 default: SIGNED_MSG_TYPE_UNKNOWN 7407 description: >- 7408 SignedMsgType is a type of signed 7409 message in the consensus. 7410 7411 - SIGNED_MSG_TYPE_PREVOTE: Votes 7412 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 7413 height: 7414 type: string 7415 format: int64 7416 round: 7417 type: integer 7418 format: int32 7419 block_id: 7420 type: object 7421 properties: 7422 hash: 7423 type: string 7424 format: byte 7425 part_set_header: 7426 type: object 7427 properties: 7428 total: 7429 type: integer 7430 format: int64 7431 hash: 7432 type: string 7433 format: byte 7434 title: PartsetHeader 7435 title: BlockID 7436 timestamp: 7437 type: string 7438 format: date-time 7439 validator_address: 7440 type: string 7441 format: byte 7442 validator_index: 7443 type: integer 7444 format: int32 7445 signature: 7446 type: string 7447 format: byte 7448 description: >- 7449 Vote signature by the validator if they 7450 participated in consensus for the 7451 7452 associated block. 7453 extension: 7454 type: string 7455 format: byte 7456 description: >- 7457 Vote extension provided by the 7458 application. Only valid for precommit 7459 7460 messages. 7461 extension_signature: 7462 type: string 7463 format: byte 7464 description: >- 7465 Vote extension signature by the 7466 validator if they participated in 7467 7468 consensus for the associated block. 7469 7470 Only valid for precommit messages. 7471 description: >- 7472 Vote represents a prevote or precommit vote 7473 from validators for 7474 7475 consensus. 7476 total_voting_power: 7477 type: string 7478 format: int64 7479 validator_power: 7480 type: string 7481 format: int64 7482 timestamp: 7483 type: string 7484 format: date-time 7485 description: >- 7486 DuplicateVoteEvidence contains evidence of a 7487 validator signed two conflicting votes. 7488 light_client_attack_evidence: 7489 type: object 7490 properties: 7491 conflicting_block: 7492 type: object 7493 properties: 7494 signed_header: 7495 type: object 7496 properties: 7497 header: 7498 type: object 7499 properties: 7500 version: 7501 title: basic block info 7502 type: object 7503 properties: 7504 block: 7505 type: string 7506 format: uint64 7507 app: 7508 type: string 7509 format: uint64 7510 description: >- 7511 Consensus captures the consensus rules 7512 for processing a block in the 7513 blockchain, 7514 7515 including all blockchain data structures 7516 and the rules of the application's 7517 7518 state transition machine. 7519 chain_id: 7520 type: string 7521 height: 7522 type: string 7523 format: int64 7524 time: 7525 type: string 7526 format: date-time 7527 last_block_id: 7528 type: object 7529 properties: 7530 hash: 7531 type: string 7532 format: byte 7533 part_set_header: 7534 type: object 7535 properties: 7536 total: 7537 type: integer 7538 format: int64 7539 hash: 7540 type: string 7541 format: byte 7542 title: PartsetHeader 7543 title: BlockID 7544 last_commit_hash: 7545 type: string 7546 format: byte 7547 title: hashes of block data 7548 data_hash: 7549 type: string 7550 format: byte 7551 validators_hash: 7552 type: string 7553 format: byte 7554 title: >- 7555 hashes from the app output from the prev 7556 block 7557 next_validators_hash: 7558 type: string 7559 format: byte 7560 consensus_hash: 7561 type: string 7562 format: byte 7563 app_hash: 7564 type: string 7565 format: byte 7566 last_results_hash: 7567 type: string 7568 format: byte 7569 evidence_hash: 7570 type: string 7571 format: byte 7572 title: consensus info 7573 proposer_address: 7574 type: string 7575 format: byte 7576 description: >- 7577 Header defines the structure of a block 7578 header. 7579 commit: 7580 type: object 7581 properties: 7582 height: 7583 type: string 7584 format: int64 7585 round: 7586 type: integer 7587 format: int32 7588 block_id: 7589 type: object 7590 properties: 7591 hash: 7592 type: string 7593 format: byte 7594 part_set_header: 7595 type: object 7596 properties: 7597 total: 7598 type: integer 7599 format: int64 7600 hash: 7601 type: string 7602 format: byte 7603 title: PartsetHeader 7604 title: BlockID 7605 signatures: 7606 type: array 7607 items: 7608 type: object 7609 properties: 7610 block_id_flag: 7611 type: string 7612 enum: 7613 - BLOCK_ID_FLAG_UNKNOWN 7614 - BLOCK_ID_FLAG_ABSENT 7615 - BLOCK_ID_FLAG_COMMIT 7616 - BLOCK_ID_FLAG_NIL 7617 default: BLOCK_ID_FLAG_UNKNOWN 7618 title: >- 7619 BlockIdFlag indicates which BlockID the 7620 signature is for 7621 validator_address: 7622 type: string 7623 format: byte 7624 timestamp: 7625 type: string 7626 format: date-time 7627 signature: 7628 type: string 7629 format: byte 7630 description: >- 7631 CommitSig is a part of the Vote included 7632 in a Commit. 7633 description: >- 7634 Commit contains the evidence that a 7635 block was committed by a set of 7636 validators. 7637 validator_set: 7638 type: object 7639 properties: 7640 validators: 7641 type: array 7642 items: 7643 type: object 7644 properties: 7645 address: 7646 type: string 7647 format: byte 7648 pub_key: 7649 type: object 7650 properties: 7651 ed25519: 7652 type: string 7653 format: byte 7654 secp256k1: 7655 type: string 7656 format: byte 7657 title: >- 7658 PublicKey defines the keys available for 7659 use with Validators 7660 voting_power: 7661 type: string 7662 format: int64 7663 proposer_priority: 7664 type: string 7665 format: int64 7666 proposer: 7667 type: object 7668 properties: 7669 address: 7670 type: string 7671 format: byte 7672 pub_key: 7673 type: object 7674 properties: 7675 ed25519: 7676 type: string 7677 format: byte 7678 secp256k1: 7679 type: string 7680 format: byte 7681 title: >- 7682 PublicKey defines the keys available for 7683 use with Validators 7684 voting_power: 7685 type: string 7686 format: int64 7687 proposer_priority: 7688 type: string 7689 format: int64 7690 total_voting_power: 7691 type: string 7692 format: int64 7693 common_height: 7694 type: string 7695 format: int64 7696 byzantine_validators: 7697 type: array 7698 items: 7699 type: object 7700 properties: 7701 address: 7702 type: string 7703 format: byte 7704 pub_key: 7705 type: object 7706 properties: 7707 ed25519: 7708 type: string 7709 format: byte 7710 secp256k1: 7711 type: string 7712 format: byte 7713 title: >- 7714 PublicKey defines the keys available for 7715 use with Validators 7716 voting_power: 7717 type: string 7718 format: int64 7719 proposer_priority: 7720 type: string 7721 format: int64 7722 total_voting_power: 7723 type: string 7724 format: int64 7725 timestamp: 7726 type: string 7727 format: date-time 7728 description: >- 7729 LightClientAttackEvidence contains evidence of a 7730 set of validators attempting to mislead a light 7731 client. 7732 last_commit: 7733 type: object 7734 properties: 7735 height: 7736 type: string 7737 format: int64 7738 round: 7739 type: integer 7740 format: int32 7741 block_id: 7742 type: object 7743 properties: 7744 hash: 7745 type: string 7746 format: byte 7747 part_set_header: 7748 type: object 7749 properties: 7750 total: 7751 type: integer 7752 format: int64 7753 hash: 7754 type: string 7755 format: byte 7756 title: PartsetHeader 7757 title: BlockID 7758 signatures: 7759 type: array 7760 items: 7761 type: object 7762 properties: 7763 block_id_flag: 7764 type: string 7765 enum: 7766 - BLOCK_ID_FLAG_UNKNOWN 7767 - BLOCK_ID_FLAG_ABSENT 7768 - BLOCK_ID_FLAG_COMMIT 7769 - BLOCK_ID_FLAG_NIL 7770 default: BLOCK_ID_FLAG_UNKNOWN 7771 title: >- 7772 BlockIdFlag indicates which BlockID the 7773 signature is for 7774 validator_address: 7775 type: string 7776 format: byte 7777 timestamp: 7778 type: string 7779 format: date-time 7780 signature: 7781 type: string 7782 format: byte 7783 description: >- 7784 CommitSig is a part of the Vote included in a 7785 Commit. 7786 description: >- 7787 Commit contains the evidence that a block was committed by 7788 a set of validators. 7789 description: >- 7790 Block is tendermint type Block, with the Header proposer 7791 address 7792 7793 field converted to bech32 string. 7794 description: >- 7795 GetBlockByHeightResponse is the response type for the 7796 Query/GetBlockByHeight RPC method. 7797 default: 7798 description: An unexpected error response. 7799 schema: 7800 type: object 7801 properties: 7802 error: 7803 type: string 7804 code: 7805 type: integer 7806 format: int32 7807 message: 7808 type: string 7809 details: 7810 type: array 7811 items: 7812 type: object 7813 properties: 7814 type_url: 7815 type: string 7816 description: >- 7817 A URL/resource name that uniquely identifies the type of 7818 the serialized 7819 7820 protocol buffer message. This string must contain at 7821 least 7822 7823 one "/" character. The last segment of the URL's path 7824 must represent 7825 7826 the fully qualified name of the type (as in 7827 7828 `path/google.protobuf.Duration`). The name should be in 7829 a canonical form 7830 7831 (e.g., leading "." is not accepted). 7832 7833 7834 In practice, teams usually precompile into the binary 7835 all types that they 7836 7837 expect it to use in the context of Any. However, for 7838 URLs which use the 7839 7840 scheme `http`, `https`, or no scheme, one can optionally 7841 set up a type 7842 7843 server that maps type URLs to message definitions as 7844 follows: 7845 7846 7847 * If no scheme is provided, `https` is assumed. 7848 7849 * An HTTP GET on the URL must yield a 7850 [google.protobuf.Type][] 7851 value in binary format, or produce an error. 7852 * Applications are allowed to cache lookup results based 7853 on the 7854 URL, or have them precompiled into a binary to avoid any 7855 lookup. Therefore, binary compatibility needs to be preserved 7856 on changes to types. (Use versioned type names to manage 7857 breaking changes.) 7858 7859 Note: this functionality is not currently available in 7860 the official 7861 7862 protobuf release, and it is not used for type URLs 7863 beginning with 7864 7865 type.googleapis.com. 7866 7867 7868 Schemes other than `http`, `https` (or the empty scheme) 7869 might be 7870 7871 used with implementation specific semantics. 7872 value: 7873 type: string 7874 format: byte 7875 description: >- 7876 Must be a valid serialized protocol buffer of the above 7877 specified type. 7878 description: >- 7879 `Any` contains an arbitrary serialized protocol buffer 7880 message along with a 7881 7882 URL that describes the type of the serialized message. 7883 7884 7885 Protobuf library provides support to pack/unpack Any values 7886 in the form 7887 7888 of utility functions or additional generated methods of the 7889 Any type. 7890 7891 7892 Example 1: Pack and unpack a message in C++. 7893 7894 Foo foo = ...; 7895 Any any; 7896 any.PackFrom(foo); 7897 ... 7898 if (any.UnpackTo(&foo)) { 7899 ... 7900 } 7901 7902 Example 2: Pack and unpack a message in Java. 7903 7904 Foo foo = ...; 7905 Any any = Any.pack(foo); 7906 ... 7907 if (any.is(Foo.class)) { 7908 foo = any.unpack(Foo.class); 7909 } 7910 // or ... 7911 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 7912 foo = any.unpack(Foo.getDefaultInstance()); 7913 } 7914 7915 Example 3: Pack and unpack a message in Python. 7916 7917 foo = Foo(...) 7918 any = Any() 7919 any.Pack(foo) 7920 ... 7921 if any.Is(Foo.DESCRIPTOR): 7922 any.Unpack(foo) 7923 ... 7924 7925 Example 4: Pack and unpack a message in Go 7926 7927 foo := &pb.Foo{...} 7928 any, err := anypb.New(foo) 7929 if err != nil { 7930 ... 7931 } 7932 ... 7933 foo := &pb.Foo{} 7934 if err := any.UnmarshalTo(foo); err != nil { 7935 ... 7936 } 7937 7938 The pack methods provided by protobuf library will by 7939 default use 7940 7941 'type.googleapis.com/full.type.name' as the type URL and the 7942 unpack 7943 7944 methods only use the fully qualified type name after the 7945 last '/' 7946 7947 in the type URL, for example "foo.bar.com/x/y.z" will yield 7948 type 7949 7950 name "y.z". 7951 7952 7953 JSON 7954 7955 7956 The JSON representation of an `Any` value uses the regular 7957 7958 representation of the deserialized, embedded message, with 7959 an 7960 7961 additional field `@type` which contains the type URL. 7962 Example: 7963 7964 package google.profile; 7965 message Person { 7966 string first_name = 1; 7967 string last_name = 2; 7968 } 7969 7970 { 7971 "@type": "type.googleapis.com/google.profile.Person", 7972 "firstName": <string>, 7973 "lastName": <string> 7974 } 7975 7976 If the embedded message type is well-known and has a custom 7977 JSON 7978 7979 representation, that representation will be embedded adding 7980 a field 7981 7982 `value` which holds the custom JSON in addition to the 7983 `@type` 7984 7985 field. Example (for message [google.protobuf.Duration][]): 7986 7987 { 7988 "@type": "type.googleapis.com/google.protobuf.Duration", 7989 "value": "1.212s" 7990 } 7991 parameters: 7992 - name: height 7993 in: path 7994 required: true 7995 type: string 7996 format: int64 7997 tags: 7998 - Service 7999 /cosmos/base/tendermint/v1beta1/node_info: 8000 get: 8001 summary: GetNodeInfo queries the current node info. 8002 operationId: GetNodeInfo 8003 responses: 8004 '200': 8005 description: A successful response. 8006 schema: 8007 type: object 8008 properties: 8009 default_node_info: 8010 type: object 8011 properties: 8012 protocol_version: 8013 type: object 8014 properties: 8015 p2p: 8016 type: string 8017 format: uint64 8018 block: 8019 type: string 8020 format: uint64 8021 app: 8022 type: string 8023 format: uint64 8024 default_node_id: 8025 type: string 8026 listen_addr: 8027 type: string 8028 network: 8029 type: string 8030 version: 8031 type: string 8032 channels: 8033 type: string 8034 format: byte 8035 moniker: 8036 type: string 8037 other: 8038 type: object 8039 properties: 8040 tx_index: 8041 type: string 8042 rpc_address: 8043 type: string 8044 application_version: 8045 type: object 8046 properties: 8047 name: 8048 type: string 8049 app_name: 8050 type: string 8051 version: 8052 type: string 8053 git_commit: 8054 type: string 8055 build_tags: 8056 type: string 8057 go_version: 8058 type: string 8059 build_deps: 8060 type: array 8061 items: 8062 type: object 8063 properties: 8064 path: 8065 type: string 8066 title: module path 8067 version: 8068 type: string 8069 title: module version 8070 sum: 8071 type: string 8072 title: checksum 8073 title: Module is the type for VersionInfo 8074 cosmos_sdk_version: 8075 type: string 8076 title: 'Since: cosmos-sdk 0.43' 8077 description: VersionInfo is the type for the GetNodeInfoResponse message. 8078 description: >- 8079 GetNodeInfoResponse is the response type for the Query/GetNodeInfo 8080 RPC method. 8081 default: 8082 description: An unexpected error response. 8083 schema: 8084 type: object 8085 properties: 8086 error: 8087 type: string 8088 code: 8089 type: integer 8090 format: int32 8091 message: 8092 type: string 8093 details: 8094 type: array 8095 items: 8096 type: object 8097 properties: 8098 type_url: 8099 type: string 8100 description: >- 8101 A URL/resource name that uniquely identifies the type of 8102 the serialized 8103 8104 protocol buffer message. This string must contain at 8105 least 8106 8107 one "/" character. The last segment of the URL's path 8108 must represent 8109 8110 the fully qualified name of the type (as in 8111 8112 `path/google.protobuf.Duration`). The name should be in 8113 a canonical form 8114 8115 (e.g., leading "." is not accepted). 8116 8117 8118 In practice, teams usually precompile into the binary 8119 all types that they 8120 8121 expect it to use in the context of Any. However, for 8122 URLs which use the 8123 8124 scheme `http`, `https`, or no scheme, one can optionally 8125 set up a type 8126 8127 server that maps type URLs to message definitions as 8128 follows: 8129 8130 8131 * If no scheme is provided, `https` is assumed. 8132 8133 * An HTTP GET on the URL must yield a 8134 [google.protobuf.Type][] 8135 value in binary format, or produce an error. 8136 * Applications are allowed to cache lookup results based 8137 on the 8138 URL, or have them precompiled into a binary to avoid any 8139 lookup. Therefore, binary compatibility needs to be preserved 8140 on changes to types. (Use versioned type names to manage 8141 breaking changes.) 8142 8143 Note: this functionality is not currently available in 8144 the official 8145 8146 protobuf release, and it is not used for type URLs 8147 beginning with 8148 8149 type.googleapis.com. 8150 8151 8152 Schemes other than `http`, `https` (or the empty scheme) 8153 might be 8154 8155 used with implementation specific semantics. 8156 value: 8157 type: string 8158 format: byte 8159 description: >- 8160 Must be a valid serialized protocol buffer of the above 8161 specified type. 8162 description: >- 8163 `Any` contains an arbitrary serialized protocol buffer 8164 message along with a 8165 8166 URL that describes the type of the serialized message. 8167 8168 8169 Protobuf library provides support to pack/unpack Any values 8170 in the form 8171 8172 of utility functions or additional generated methods of the 8173 Any type. 8174 8175 8176 Example 1: Pack and unpack a message in C++. 8177 8178 Foo foo = ...; 8179 Any any; 8180 any.PackFrom(foo); 8181 ... 8182 if (any.UnpackTo(&foo)) { 8183 ... 8184 } 8185 8186 Example 2: Pack and unpack a message in Java. 8187 8188 Foo foo = ...; 8189 Any any = Any.pack(foo); 8190 ... 8191 if (any.is(Foo.class)) { 8192 foo = any.unpack(Foo.class); 8193 } 8194 // or ... 8195 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 8196 foo = any.unpack(Foo.getDefaultInstance()); 8197 } 8198 8199 Example 3: Pack and unpack a message in Python. 8200 8201 foo = Foo(...) 8202 any = Any() 8203 any.Pack(foo) 8204 ... 8205 if any.Is(Foo.DESCRIPTOR): 8206 any.Unpack(foo) 8207 ... 8208 8209 Example 4: Pack and unpack a message in Go 8210 8211 foo := &pb.Foo{...} 8212 any, err := anypb.New(foo) 8213 if err != nil { 8214 ... 8215 } 8216 ... 8217 foo := &pb.Foo{} 8218 if err := any.UnmarshalTo(foo); err != nil { 8219 ... 8220 } 8221 8222 The pack methods provided by protobuf library will by 8223 default use 8224 8225 'type.googleapis.com/full.type.name' as the type URL and the 8226 unpack 8227 8228 methods only use the fully qualified type name after the 8229 last '/' 8230 8231 in the type URL, for example "foo.bar.com/x/y.z" will yield 8232 type 8233 8234 name "y.z". 8235 8236 8237 JSON 8238 8239 8240 The JSON representation of an `Any` value uses the regular 8241 8242 representation of the deserialized, embedded message, with 8243 an 8244 8245 additional field `@type` which contains the type URL. 8246 Example: 8247 8248 package google.profile; 8249 message Person { 8250 string first_name = 1; 8251 string last_name = 2; 8252 } 8253 8254 { 8255 "@type": "type.googleapis.com/google.profile.Person", 8256 "firstName": <string>, 8257 "lastName": <string> 8258 } 8259 8260 If the embedded message type is well-known and has a custom 8261 JSON 8262 8263 representation, that representation will be embedded adding 8264 a field 8265 8266 `value` which holds the custom JSON in addition to the 8267 `@type` 8268 8269 field. Example (for message [google.protobuf.Duration][]): 8270 8271 { 8272 "@type": "type.googleapis.com/google.protobuf.Duration", 8273 "value": "1.212s" 8274 } 8275 tags: 8276 - Service 8277 /cosmos/base/tendermint/v1beta1/syncing: 8278 get: 8279 summary: GetSyncing queries node syncing. 8280 operationId: GetSyncing 8281 responses: 8282 '200': 8283 description: A successful response. 8284 schema: 8285 type: object 8286 properties: 8287 syncing: 8288 type: boolean 8289 description: >- 8290 GetSyncingResponse is the response type for the Query/GetSyncing 8291 RPC method. 8292 default: 8293 description: An unexpected error response. 8294 schema: 8295 type: object 8296 properties: 8297 error: 8298 type: string 8299 code: 8300 type: integer 8301 format: int32 8302 message: 8303 type: string 8304 details: 8305 type: array 8306 items: 8307 type: object 8308 properties: 8309 type_url: 8310 type: string 8311 description: >- 8312 A URL/resource name that uniquely identifies the type of 8313 the serialized 8314 8315 protocol buffer message. This string must contain at 8316 least 8317 8318 one "/" character. The last segment of the URL's path 8319 must represent 8320 8321 the fully qualified name of the type (as in 8322 8323 `path/google.protobuf.Duration`). The name should be in 8324 a canonical form 8325 8326 (e.g., leading "." is not accepted). 8327 8328 8329 In practice, teams usually precompile into the binary 8330 all types that they 8331 8332 expect it to use in the context of Any. However, for 8333 URLs which use the 8334 8335 scheme `http`, `https`, or no scheme, one can optionally 8336 set up a type 8337 8338 server that maps type URLs to message definitions as 8339 follows: 8340 8341 8342 * If no scheme is provided, `https` is assumed. 8343 8344 * An HTTP GET on the URL must yield a 8345 [google.protobuf.Type][] 8346 value in binary format, or produce an error. 8347 * Applications are allowed to cache lookup results based 8348 on the 8349 URL, or have them precompiled into a binary to avoid any 8350 lookup. Therefore, binary compatibility needs to be preserved 8351 on changes to types. (Use versioned type names to manage 8352 breaking changes.) 8353 8354 Note: this functionality is not currently available in 8355 the official 8356 8357 protobuf release, and it is not used for type URLs 8358 beginning with 8359 8360 type.googleapis.com. 8361 8362 8363 Schemes other than `http`, `https` (or the empty scheme) 8364 might be 8365 8366 used with implementation specific semantics. 8367 value: 8368 type: string 8369 format: byte 8370 description: >- 8371 Must be a valid serialized protocol buffer of the above 8372 specified type. 8373 description: >- 8374 `Any` contains an arbitrary serialized protocol buffer 8375 message along with a 8376 8377 URL that describes the type of the serialized message. 8378 8379 8380 Protobuf library provides support to pack/unpack Any values 8381 in the form 8382 8383 of utility functions or additional generated methods of the 8384 Any type. 8385 8386 8387 Example 1: Pack and unpack a message in C++. 8388 8389 Foo foo = ...; 8390 Any any; 8391 any.PackFrom(foo); 8392 ... 8393 if (any.UnpackTo(&foo)) { 8394 ... 8395 } 8396 8397 Example 2: Pack and unpack a message in Java. 8398 8399 Foo foo = ...; 8400 Any any = Any.pack(foo); 8401 ... 8402 if (any.is(Foo.class)) { 8403 foo = any.unpack(Foo.class); 8404 } 8405 // or ... 8406 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 8407 foo = any.unpack(Foo.getDefaultInstance()); 8408 } 8409 8410 Example 3: Pack and unpack a message in Python. 8411 8412 foo = Foo(...) 8413 any = Any() 8414 any.Pack(foo) 8415 ... 8416 if any.Is(Foo.DESCRIPTOR): 8417 any.Unpack(foo) 8418 ... 8419 8420 Example 4: Pack and unpack a message in Go 8421 8422 foo := &pb.Foo{...} 8423 any, err := anypb.New(foo) 8424 if err != nil { 8425 ... 8426 } 8427 ... 8428 foo := &pb.Foo{} 8429 if err := any.UnmarshalTo(foo); err != nil { 8430 ... 8431 } 8432 8433 The pack methods provided by protobuf library will by 8434 default use 8435 8436 'type.googleapis.com/full.type.name' as the type URL and the 8437 unpack 8438 8439 methods only use the fully qualified type name after the 8440 last '/' 8441 8442 in the type URL, for example "foo.bar.com/x/y.z" will yield 8443 type 8444 8445 name "y.z". 8446 8447 8448 JSON 8449 8450 8451 The JSON representation of an `Any` value uses the regular 8452 8453 representation of the deserialized, embedded message, with 8454 an 8455 8456 additional field `@type` which contains the type URL. 8457 Example: 8458 8459 package google.profile; 8460 message Person { 8461 string first_name = 1; 8462 string last_name = 2; 8463 } 8464 8465 { 8466 "@type": "type.googleapis.com/google.profile.Person", 8467 "firstName": <string>, 8468 "lastName": <string> 8469 } 8470 8471 If the embedded message type is well-known and has a custom 8472 JSON 8473 8474 representation, that representation will be embedded adding 8475 a field 8476 8477 `value` which holds the custom JSON in addition to the 8478 `@type` 8479 8480 field. Example (for message [google.protobuf.Duration][]): 8481 8482 { 8483 "@type": "type.googleapis.com/google.protobuf.Duration", 8484 "value": "1.212s" 8485 } 8486 tags: 8487 - Service 8488 /cosmos/base/tendermint/v1beta1/validatorsets/latest: 8489 get: 8490 summary: GetLatestValidatorSet queries latest validator-set. 8491 operationId: GetLatestValidatorSet 8492 responses: 8493 '200': 8494 description: A successful response. 8495 schema: 8496 type: object 8497 properties: 8498 block_height: 8499 type: string 8500 format: int64 8501 validators: 8502 type: array 8503 items: 8504 type: object 8505 properties: 8506 address: 8507 type: string 8508 pub_key: 8509 type: object 8510 properties: 8511 type_url: 8512 type: string 8513 description: >- 8514 A URL/resource name that uniquely identifies the 8515 type of the serialized 8516 8517 protocol buffer message. This string must contain at 8518 least 8519 8520 one "/" character. The last segment of the URL's 8521 path must represent 8522 8523 the fully qualified name of the type (as in 8524 8525 `path/google.protobuf.Duration`). The name should be 8526 in a canonical form 8527 8528 (e.g., leading "." is not accepted). 8529 8530 8531 In practice, teams usually precompile into the 8532 binary all types that they 8533 8534 expect it to use in the context of Any. However, for 8535 URLs which use the 8536 8537 scheme `http`, `https`, or no scheme, one can 8538 optionally set up a type 8539 8540 server that maps type URLs to message definitions as 8541 follows: 8542 8543 8544 * If no scheme is provided, `https` is assumed. 8545 8546 * An HTTP GET on the URL must yield a 8547 [google.protobuf.Type][] 8548 value in binary format, or produce an error. 8549 * Applications are allowed to cache lookup results 8550 based on the 8551 URL, or have them precompiled into a binary to avoid any 8552 lookup. Therefore, binary compatibility needs to be preserved 8553 on changes to types. (Use versioned type names to manage 8554 breaking changes.) 8555 8556 Note: this functionality is not currently available 8557 in the official 8558 8559 protobuf release, and it is not used for type URLs 8560 beginning with 8561 8562 type.googleapis.com. 8563 8564 8565 Schemes other than `http`, `https` (or the empty 8566 scheme) might be 8567 8568 used with implementation specific semantics. 8569 value: 8570 type: string 8571 format: byte 8572 description: >- 8573 Must be a valid serialized protocol buffer of the 8574 above specified type. 8575 description: >- 8576 `Any` contains an arbitrary serialized protocol buffer 8577 message along with a 8578 8579 URL that describes the type of the serialized message. 8580 8581 8582 Protobuf library provides support to pack/unpack Any 8583 values in the form 8584 8585 of utility functions or additional generated methods of 8586 the Any type. 8587 8588 8589 Example 1: Pack and unpack a message in C++. 8590 8591 Foo foo = ...; 8592 Any any; 8593 any.PackFrom(foo); 8594 ... 8595 if (any.UnpackTo(&foo)) { 8596 ... 8597 } 8598 8599 Example 2: Pack and unpack a message in Java. 8600 8601 Foo foo = ...; 8602 Any any = Any.pack(foo); 8603 ... 8604 if (any.is(Foo.class)) { 8605 foo = any.unpack(Foo.class); 8606 } 8607 // or ... 8608 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 8609 foo = any.unpack(Foo.getDefaultInstance()); 8610 } 8611 8612 Example 3: Pack and unpack a message in Python. 8613 8614 foo = Foo(...) 8615 any = Any() 8616 any.Pack(foo) 8617 ... 8618 if any.Is(Foo.DESCRIPTOR): 8619 any.Unpack(foo) 8620 ... 8621 8622 Example 4: Pack and unpack a message in Go 8623 8624 foo := &pb.Foo{...} 8625 any, err := anypb.New(foo) 8626 if err != nil { 8627 ... 8628 } 8629 ... 8630 foo := &pb.Foo{} 8631 if err := any.UnmarshalTo(foo); err != nil { 8632 ... 8633 } 8634 8635 The pack methods provided by protobuf library will by 8636 default use 8637 8638 'type.googleapis.com/full.type.name' as the type URL and 8639 the unpack 8640 8641 methods only use the fully qualified type name after the 8642 last '/' 8643 8644 in the type URL, for example "foo.bar.com/x/y.z" will 8645 yield type 8646 8647 name "y.z". 8648 8649 8650 JSON 8651 8652 8653 The JSON representation of an `Any` value uses the 8654 regular 8655 8656 representation of the deserialized, embedded message, 8657 with an 8658 8659 additional field `@type` which contains the type URL. 8660 Example: 8661 8662 package google.profile; 8663 message Person { 8664 string first_name = 1; 8665 string last_name = 2; 8666 } 8667 8668 { 8669 "@type": "type.googleapis.com/google.profile.Person", 8670 "firstName": <string>, 8671 "lastName": <string> 8672 } 8673 8674 If the embedded message type is well-known and has a 8675 custom JSON 8676 8677 representation, that representation will be embedded 8678 adding a field 8679 8680 `value` which holds the custom JSON in addition to the 8681 `@type` 8682 8683 field. Example (for message 8684 [google.protobuf.Duration][]): 8685 8686 { 8687 "@type": "type.googleapis.com/google.protobuf.Duration", 8688 "value": "1.212s" 8689 } 8690 voting_power: 8691 type: string 8692 format: int64 8693 proposer_priority: 8694 type: string 8695 format: int64 8696 description: Validator is the type for the validator-set. 8697 pagination: 8698 description: pagination defines an pagination for the response. 8699 type: object 8700 properties: 8701 next_key: 8702 type: string 8703 format: byte 8704 description: |- 8705 next_key is the key to be passed to PageRequest.key to 8706 query the next page most efficiently. It will be empty if 8707 there are no more results. 8708 total: 8709 type: string 8710 format: uint64 8711 title: >- 8712 total is total number of results available if 8713 PageRequest.count_total 8714 8715 was set, its value is undefined otherwise 8716 description: >- 8717 GetLatestValidatorSetResponse is the response type for the 8718 Query/GetValidatorSetByHeight RPC method. 8719 default: 8720 description: An unexpected error response. 8721 schema: 8722 type: object 8723 properties: 8724 error: 8725 type: string 8726 code: 8727 type: integer 8728 format: int32 8729 message: 8730 type: string 8731 details: 8732 type: array 8733 items: 8734 type: object 8735 properties: 8736 type_url: 8737 type: string 8738 description: >- 8739 A URL/resource name that uniquely identifies the type of 8740 the serialized 8741 8742 protocol buffer message. This string must contain at 8743 least 8744 8745 one "/" character. The last segment of the URL's path 8746 must represent 8747 8748 the fully qualified name of the type (as in 8749 8750 `path/google.protobuf.Duration`). The name should be in 8751 a canonical form 8752 8753 (e.g., leading "." is not accepted). 8754 8755 8756 In practice, teams usually precompile into the binary 8757 all types that they 8758 8759 expect it to use in the context of Any. However, for 8760 URLs which use the 8761 8762 scheme `http`, `https`, or no scheme, one can optionally 8763 set up a type 8764 8765 server that maps type URLs to message definitions as 8766 follows: 8767 8768 8769 * If no scheme is provided, `https` is assumed. 8770 8771 * An HTTP GET on the URL must yield a 8772 [google.protobuf.Type][] 8773 value in binary format, or produce an error. 8774 * Applications are allowed to cache lookup results based 8775 on the 8776 URL, or have them precompiled into a binary to avoid any 8777 lookup. Therefore, binary compatibility needs to be preserved 8778 on changes to types. (Use versioned type names to manage 8779 breaking changes.) 8780 8781 Note: this functionality is not currently available in 8782 the official 8783 8784 protobuf release, and it is not used for type URLs 8785 beginning with 8786 8787 type.googleapis.com. 8788 8789 8790 Schemes other than `http`, `https` (or the empty scheme) 8791 might be 8792 8793 used with implementation specific semantics. 8794 value: 8795 type: string 8796 format: byte 8797 description: >- 8798 Must be a valid serialized protocol buffer of the above 8799 specified type. 8800 description: >- 8801 `Any` contains an arbitrary serialized protocol buffer 8802 message along with a 8803 8804 URL that describes the type of the serialized message. 8805 8806 8807 Protobuf library provides support to pack/unpack Any values 8808 in the form 8809 8810 of utility functions or additional generated methods of the 8811 Any type. 8812 8813 8814 Example 1: Pack and unpack a message in C++. 8815 8816 Foo foo = ...; 8817 Any any; 8818 any.PackFrom(foo); 8819 ... 8820 if (any.UnpackTo(&foo)) { 8821 ... 8822 } 8823 8824 Example 2: Pack and unpack a message in Java. 8825 8826 Foo foo = ...; 8827 Any any = Any.pack(foo); 8828 ... 8829 if (any.is(Foo.class)) { 8830 foo = any.unpack(Foo.class); 8831 } 8832 // or ... 8833 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 8834 foo = any.unpack(Foo.getDefaultInstance()); 8835 } 8836 8837 Example 3: Pack and unpack a message in Python. 8838 8839 foo = Foo(...) 8840 any = Any() 8841 any.Pack(foo) 8842 ... 8843 if any.Is(Foo.DESCRIPTOR): 8844 any.Unpack(foo) 8845 ... 8846 8847 Example 4: Pack and unpack a message in Go 8848 8849 foo := &pb.Foo{...} 8850 any, err := anypb.New(foo) 8851 if err != nil { 8852 ... 8853 } 8854 ... 8855 foo := &pb.Foo{} 8856 if err := any.UnmarshalTo(foo); err != nil { 8857 ... 8858 } 8859 8860 The pack methods provided by protobuf library will by 8861 default use 8862 8863 'type.googleapis.com/full.type.name' as the type URL and the 8864 unpack 8865 8866 methods only use the fully qualified type name after the 8867 last '/' 8868 8869 in the type URL, for example "foo.bar.com/x/y.z" will yield 8870 type 8871 8872 name "y.z". 8873 8874 8875 JSON 8876 8877 8878 The JSON representation of an `Any` value uses the regular 8879 8880 representation of the deserialized, embedded message, with 8881 an 8882 8883 additional field `@type` which contains the type URL. 8884 Example: 8885 8886 package google.profile; 8887 message Person { 8888 string first_name = 1; 8889 string last_name = 2; 8890 } 8891 8892 { 8893 "@type": "type.googleapis.com/google.profile.Person", 8894 "firstName": <string>, 8895 "lastName": <string> 8896 } 8897 8898 If the embedded message type is well-known and has a custom 8899 JSON 8900 8901 representation, that representation will be embedded adding 8902 a field 8903 8904 `value` which holds the custom JSON in addition to the 8905 `@type` 8906 8907 field. Example (for message [google.protobuf.Duration][]): 8908 8909 { 8910 "@type": "type.googleapis.com/google.protobuf.Duration", 8911 "value": "1.212s" 8912 } 8913 parameters: 8914 - name: pagination.key 8915 description: |- 8916 key is a value returned in PageResponse.next_key to begin 8917 querying the next page most efficiently. Only one of offset or key 8918 should be set. 8919 in: query 8920 required: false 8921 type: string 8922 format: byte 8923 - name: pagination.offset 8924 description: >- 8925 offset is a numeric offset that can be used when key is unavailable. 8926 8927 It is less efficient than using key. Only one of offset or key 8928 should 8929 8930 be set. 8931 in: query 8932 required: false 8933 type: string 8934 format: uint64 8935 - name: pagination.limit 8936 description: >- 8937 limit is the total number of results to be returned in the result 8938 page. 8939 8940 If left empty it will default to a value to be set by each app. 8941 in: query 8942 required: false 8943 type: string 8944 format: uint64 8945 - name: pagination.count_total 8946 description: >- 8947 count_total is set to true to indicate that the result set should 8948 include 8949 8950 a count of the total number of items available for pagination in 8951 UIs. 8952 8953 count_total is only respected when offset is used. It is ignored 8954 when key 8955 8956 is set. 8957 in: query 8958 required: false 8959 type: boolean 8960 - name: pagination.reverse 8961 description: >- 8962 reverse is set to true if results are to be returned in the 8963 descending order. 8964 8965 8966 Since: cosmos-sdk 0.43 8967 in: query 8968 required: false 8969 type: boolean 8970 tags: 8971 - Service 8972 /cosmos/base/tendermint/v1beta1/validatorsets/{height}: 8973 get: 8974 summary: GetValidatorSetByHeight queries validator-set at a given height. 8975 operationId: GetValidatorSetByHeight 8976 responses: 8977 '200': 8978 description: A successful response. 8979 schema: 8980 type: object 8981 properties: 8982 block_height: 8983 type: string 8984 format: int64 8985 validators: 8986 type: array 8987 items: 8988 type: object 8989 properties: 8990 address: 8991 type: string 8992 pub_key: 8993 type: object 8994 properties: 8995 type_url: 8996 type: string 8997 description: >- 8998 A URL/resource name that uniquely identifies the 8999 type of the serialized 9000 9001 protocol buffer message. This string must contain at 9002 least 9003 9004 one "/" character. The last segment of the URL's 9005 path must represent 9006 9007 the fully qualified name of the type (as in 9008 9009 `path/google.protobuf.Duration`). The name should be 9010 in a canonical form 9011 9012 (e.g., leading "." is not accepted). 9013 9014 9015 In practice, teams usually precompile into the 9016 binary all types that they 9017 9018 expect it to use in the context of Any. However, for 9019 URLs which use the 9020 9021 scheme `http`, `https`, or no scheme, one can 9022 optionally set up a type 9023 9024 server that maps type URLs to message definitions as 9025 follows: 9026 9027 9028 * If no scheme is provided, `https` is assumed. 9029 9030 * An HTTP GET on the URL must yield a 9031 [google.protobuf.Type][] 9032 value in binary format, or produce an error. 9033 * Applications are allowed to cache lookup results 9034 based on the 9035 URL, or have them precompiled into a binary to avoid any 9036 lookup. Therefore, binary compatibility needs to be preserved 9037 on changes to types. (Use versioned type names to manage 9038 breaking changes.) 9039 9040 Note: this functionality is not currently available 9041 in the official 9042 9043 protobuf release, and it is not used for type URLs 9044 beginning with 9045 9046 type.googleapis.com. 9047 9048 9049 Schemes other than `http`, `https` (or the empty 9050 scheme) might be 9051 9052 used with implementation specific semantics. 9053 value: 9054 type: string 9055 format: byte 9056 description: >- 9057 Must be a valid serialized protocol buffer of the 9058 above specified type. 9059 description: >- 9060 `Any` contains an arbitrary serialized protocol buffer 9061 message along with a 9062 9063 URL that describes the type of the serialized message. 9064 9065 9066 Protobuf library provides support to pack/unpack Any 9067 values in the form 9068 9069 of utility functions or additional generated methods of 9070 the Any type. 9071 9072 9073 Example 1: Pack and unpack a message in C++. 9074 9075 Foo foo = ...; 9076 Any any; 9077 any.PackFrom(foo); 9078 ... 9079 if (any.UnpackTo(&foo)) { 9080 ... 9081 } 9082 9083 Example 2: Pack and unpack a message in Java. 9084 9085 Foo foo = ...; 9086 Any any = Any.pack(foo); 9087 ... 9088 if (any.is(Foo.class)) { 9089 foo = any.unpack(Foo.class); 9090 } 9091 // or ... 9092 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 9093 foo = any.unpack(Foo.getDefaultInstance()); 9094 } 9095 9096 Example 3: Pack and unpack a message in Python. 9097 9098 foo = Foo(...) 9099 any = Any() 9100 any.Pack(foo) 9101 ... 9102 if any.Is(Foo.DESCRIPTOR): 9103 any.Unpack(foo) 9104 ... 9105 9106 Example 4: Pack and unpack a message in Go 9107 9108 foo := &pb.Foo{...} 9109 any, err := anypb.New(foo) 9110 if err != nil { 9111 ... 9112 } 9113 ... 9114 foo := &pb.Foo{} 9115 if err := any.UnmarshalTo(foo); err != nil { 9116 ... 9117 } 9118 9119 The pack methods provided by protobuf library will by 9120 default use 9121 9122 'type.googleapis.com/full.type.name' as the type URL and 9123 the unpack 9124 9125 methods only use the fully qualified type name after the 9126 last '/' 9127 9128 in the type URL, for example "foo.bar.com/x/y.z" will 9129 yield type 9130 9131 name "y.z". 9132 9133 9134 JSON 9135 9136 9137 The JSON representation of an `Any` value uses the 9138 regular 9139 9140 representation of the deserialized, embedded message, 9141 with an 9142 9143 additional field `@type` which contains the type URL. 9144 Example: 9145 9146 package google.profile; 9147 message Person { 9148 string first_name = 1; 9149 string last_name = 2; 9150 } 9151 9152 { 9153 "@type": "type.googleapis.com/google.profile.Person", 9154 "firstName": <string>, 9155 "lastName": <string> 9156 } 9157 9158 If the embedded message type is well-known and has a 9159 custom JSON 9160 9161 representation, that representation will be embedded 9162 adding a field 9163 9164 `value` which holds the custom JSON in addition to the 9165 `@type` 9166 9167 field. Example (for message 9168 [google.protobuf.Duration][]): 9169 9170 { 9171 "@type": "type.googleapis.com/google.protobuf.Duration", 9172 "value": "1.212s" 9173 } 9174 voting_power: 9175 type: string 9176 format: int64 9177 proposer_priority: 9178 type: string 9179 format: int64 9180 description: Validator is the type for the validator-set. 9181 pagination: 9182 description: pagination defines an pagination for the response. 9183 type: object 9184 properties: 9185 next_key: 9186 type: string 9187 format: byte 9188 description: |- 9189 next_key is the key to be passed to PageRequest.key to 9190 query the next page most efficiently. It will be empty if 9191 there are no more results. 9192 total: 9193 type: string 9194 format: uint64 9195 title: >- 9196 total is total number of results available if 9197 PageRequest.count_total 9198 9199 was set, its value is undefined otherwise 9200 description: >- 9201 GetValidatorSetByHeightResponse is the response type for the 9202 Query/GetValidatorSetByHeight RPC method. 9203 default: 9204 description: An unexpected error response. 9205 schema: 9206 type: object 9207 properties: 9208 error: 9209 type: string 9210 code: 9211 type: integer 9212 format: int32 9213 message: 9214 type: string 9215 details: 9216 type: array 9217 items: 9218 type: object 9219 properties: 9220 type_url: 9221 type: string 9222 description: >- 9223 A URL/resource name that uniquely identifies the type of 9224 the serialized 9225 9226 protocol buffer message. This string must contain at 9227 least 9228 9229 one "/" character. The last segment of the URL's path 9230 must represent 9231 9232 the fully qualified name of the type (as in 9233 9234 `path/google.protobuf.Duration`). The name should be in 9235 a canonical form 9236 9237 (e.g., leading "." is not accepted). 9238 9239 9240 In practice, teams usually precompile into the binary 9241 all types that they 9242 9243 expect it to use in the context of Any. However, for 9244 URLs which use the 9245 9246 scheme `http`, `https`, or no scheme, one can optionally 9247 set up a type 9248 9249 server that maps type URLs to message definitions as 9250 follows: 9251 9252 9253 * If no scheme is provided, `https` is assumed. 9254 9255 * An HTTP GET on the URL must yield a 9256 [google.protobuf.Type][] 9257 value in binary format, or produce an error. 9258 * Applications are allowed to cache lookup results based 9259 on the 9260 URL, or have them precompiled into a binary to avoid any 9261 lookup. Therefore, binary compatibility needs to be preserved 9262 on changes to types. (Use versioned type names to manage 9263 breaking changes.) 9264 9265 Note: this functionality is not currently available in 9266 the official 9267 9268 protobuf release, and it is not used for type URLs 9269 beginning with 9270 9271 type.googleapis.com. 9272 9273 9274 Schemes other than `http`, `https` (or the empty scheme) 9275 might be 9276 9277 used with implementation specific semantics. 9278 value: 9279 type: string 9280 format: byte 9281 description: >- 9282 Must be a valid serialized protocol buffer of the above 9283 specified type. 9284 description: >- 9285 `Any` contains an arbitrary serialized protocol buffer 9286 message along with a 9287 9288 URL that describes the type of the serialized message. 9289 9290 9291 Protobuf library provides support to pack/unpack Any values 9292 in the form 9293 9294 of utility functions or additional generated methods of the 9295 Any type. 9296 9297 9298 Example 1: Pack and unpack a message in C++. 9299 9300 Foo foo = ...; 9301 Any any; 9302 any.PackFrom(foo); 9303 ... 9304 if (any.UnpackTo(&foo)) { 9305 ... 9306 } 9307 9308 Example 2: Pack and unpack a message in Java. 9309 9310 Foo foo = ...; 9311 Any any = Any.pack(foo); 9312 ... 9313 if (any.is(Foo.class)) { 9314 foo = any.unpack(Foo.class); 9315 } 9316 // or ... 9317 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 9318 foo = any.unpack(Foo.getDefaultInstance()); 9319 } 9320 9321 Example 3: Pack and unpack a message in Python. 9322 9323 foo = Foo(...) 9324 any = Any() 9325 any.Pack(foo) 9326 ... 9327 if any.Is(Foo.DESCRIPTOR): 9328 any.Unpack(foo) 9329 ... 9330 9331 Example 4: Pack and unpack a message in Go 9332 9333 foo := &pb.Foo{...} 9334 any, err := anypb.New(foo) 9335 if err != nil { 9336 ... 9337 } 9338 ... 9339 foo := &pb.Foo{} 9340 if err := any.UnmarshalTo(foo); err != nil { 9341 ... 9342 } 9343 9344 The pack methods provided by protobuf library will by 9345 default use 9346 9347 'type.googleapis.com/full.type.name' as the type URL and the 9348 unpack 9349 9350 methods only use the fully qualified type name after the 9351 last '/' 9352 9353 in the type URL, for example "foo.bar.com/x/y.z" will yield 9354 type 9355 9356 name "y.z". 9357 9358 9359 JSON 9360 9361 9362 The JSON representation of an `Any` value uses the regular 9363 9364 representation of the deserialized, embedded message, with 9365 an 9366 9367 additional field `@type` which contains the type URL. 9368 Example: 9369 9370 package google.profile; 9371 message Person { 9372 string first_name = 1; 9373 string last_name = 2; 9374 } 9375 9376 { 9377 "@type": "type.googleapis.com/google.profile.Person", 9378 "firstName": <string>, 9379 "lastName": <string> 9380 } 9381 9382 If the embedded message type is well-known and has a custom 9383 JSON 9384 9385 representation, that representation will be embedded adding 9386 a field 9387 9388 `value` which holds the custom JSON in addition to the 9389 `@type` 9390 9391 field. Example (for message [google.protobuf.Duration][]): 9392 9393 { 9394 "@type": "type.googleapis.com/google.protobuf.Duration", 9395 "value": "1.212s" 9396 } 9397 parameters: 9398 - name: height 9399 in: path 9400 required: true 9401 type: string 9402 format: int64 9403 - name: pagination.key 9404 description: |- 9405 key is a value returned in PageResponse.next_key to begin 9406 querying the next page most efficiently. Only one of offset or key 9407 should be set. 9408 in: query 9409 required: false 9410 type: string 9411 format: byte 9412 - name: pagination.offset 9413 description: >- 9414 offset is a numeric offset that can be used when key is unavailable. 9415 9416 It is less efficient than using key. Only one of offset or key 9417 should 9418 9419 be set. 9420 in: query 9421 required: false 9422 type: string 9423 format: uint64 9424 - name: pagination.limit 9425 description: >- 9426 limit is the total number of results to be returned in the result 9427 page. 9428 9429 If left empty it will default to a value to be set by each app. 9430 in: query 9431 required: false 9432 type: string 9433 format: uint64 9434 - name: pagination.count_total 9435 description: >- 9436 count_total is set to true to indicate that the result set should 9437 include 9438 9439 a count of the total number of items available for pagination in 9440 UIs. 9441 9442 count_total is only respected when offset is used. It is ignored 9443 when key 9444 9445 is set. 9446 in: query 9447 required: false 9448 type: boolean 9449 - name: pagination.reverse 9450 description: >- 9451 reverse is set to true if results are to be returned in the 9452 descending order. 9453 9454 9455 Since: cosmos-sdk 0.43 9456 in: query 9457 required: false 9458 type: boolean 9459 tags: 9460 - Service 9461 /cosmos/base/node/v1beta1/config: 9462 get: 9463 summary: Config queries for the operator configuration. 9464 operationId: Config 9465 responses: 9466 '200': 9467 description: A successful response. 9468 schema: 9469 type: object 9470 properties: 9471 minimum_gas_price: 9472 type: string 9473 pruning_keep_recent: 9474 type: string 9475 pruning_interval: 9476 type: string 9477 halt_height: 9478 type: string 9479 format: uint64 9480 description: >- 9481 ConfigResponse defines the response structure for the Config gRPC 9482 query. 9483 default: 9484 description: An unexpected error response. 9485 schema: 9486 type: object 9487 properties: 9488 error: 9489 type: string 9490 code: 9491 type: integer 9492 format: int32 9493 message: 9494 type: string 9495 details: 9496 type: array 9497 items: 9498 type: object 9499 properties: 9500 type_url: 9501 type: string 9502 value: 9503 type: string 9504 format: byte 9505 tags: 9506 - Service 9507 /cosmos/base/node/v1beta1/status: 9508 get: 9509 summary: Status queries for the node status. 9510 operationId: Status 9511 responses: 9512 '200': 9513 description: A successful response. 9514 schema: 9515 type: object 9516 properties: 9517 earliest_store_height: 9518 type: string 9519 format: uint64 9520 height: 9521 type: string 9522 format: uint64 9523 timestamp: 9524 type: string 9525 format: date-time 9526 app_hash: 9527 type: string 9528 format: byte 9529 validator_hash: 9530 type: string 9531 format: byte 9532 description: >- 9533 StateResponse defines the response structure for the status of a 9534 node. 9535 default: 9536 description: An unexpected error response. 9537 schema: 9538 type: object 9539 properties: 9540 error: 9541 type: string 9542 code: 9543 type: integer 9544 format: int32 9545 message: 9546 type: string 9547 details: 9548 type: array 9549 items: 9550 type: object 9551 properties: 9552 type_url: 9553 type: string 9554 value: 9555 type: string 9556 format: byte 9557 tags: 9558 - Service 9559 /cosmos/distribution/v1beta1/community_pool: 9560 get: 9561 summary: CommunityPool queries the community pool coins. 9562 operationId: CommunityPool 9563 responses: 9564 '200': 9565 description: A successful response. 9566 schema: 9567 type: object 9568 properties: 9569 pool: 9570 type: array 9571 items: 9572 type: object 9573 properties: 9574 denom: 9575 type: string 9576 amount: 9577 type: string 9578 description: >- 9579 DecCoin defines a token with a denomination and a decimal 9580 amount. 9581 9582 9583 NOTE: The amount field is an Dec which implements the custom 9584 method 9585 9586 signatures required by gogoproto. 9587 description: pool defines community pool's coins. 9588 description: >- 9589 QueryCommunityPoolResponse is the response type for the 9590 Query/CommunityPool 9591 9592 RPC method. 9593 default: 9594 description: An unexpected error response. 9595 schema: 9596 type: object 9597 properties: 9598 error: 9599 type: string 9600 code: 9601 type: integer 9602 format: int32 9603 message: 9604 type: string 9605 details: 9606 type: array 9607 items: 9608 type: object 9609 properties: 9610 type_url: 9611 type: string 9612 value: 9613 type: string 9614 format: byte 9615 tags: 9616 - Query 9617 /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards: 9618 get: 9619 summary: |- 9620 DelegationTotalRewards queries the total rewards accrued by each 9621 validator. 9622 operationId: DelegationTotalRewards 9623 responses: 9624 '200': 9625 description: A successful response. 9626 schema: 9627 type: object 9628 properties: 9629 rewards: 9630 type: array 9631 items: 9632 type: object 9633 properties: 9634 validator_address: 9635 type: string 9636 reward: 9637 type: array 9638 items: 9639 type: object 9640 properties: 9641 denom: 9642 type: string 9643 amount: 9644 type: string 9645 description: >- 9646 DecCoin defines a token with a denomination and a 9647 decimal amount. 9648 9649 9650 NOTE: The amount field is an Dec which implements the 9651 custom method 9652 9653 signatures required by gogoproto. 9654 description: |- 9655 DelegationDelegatorReward represents the properties 9656 of a delegator's delegation reward. 9657 description: rewards defines all the rewards accrued by a delegator. 9658 total: 9659 type: array 9660 items: 9661 type: object 9662 properties: 9663 denom: 9664 type: string 9665 amount: 9666 type: string 9667 description: >- 9668 DecCoin defines a token with a denomination and a decimal 9669 amount. 9670 9671 9672 NOTE: The amount field is an Dec which implements the custom 9673 method 9674 9675 signatures required by gogoproto. 9676 description: total defines the sum of all the rewards. 9677 description: |- 9678 QueryDelegationTotalRewardsResponse is the response type for the 9679 Query/DelegationTotalRewards RPC method. 9680 default: 9681 description: An unexpected error response. 9682 schema: 9683 type: object 9684 properties: 9685 error: 9686 type: string 9687 code: 9688 type: integer 9689 format: int32 9690 message: 9691 type: string 9692 details: 9693 type: array 9694 items: 9695 type: object 9696 properties: 9697 type_url: 9698 type: string 9699 value: 9700 type: string 9701 format: byte 9702 parameters: 9703 - name: delegator_address 9704 description: delegator_address defines the delegator address to query for. 9705 in: path 9706 required: true 9707 type: string 9708 tags: 9709 - Query 9710 /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}: 9711 get: 9712 summary: DelegationRewards queries the total rewards accrued by a delegation. 9713 operationId: DelegationRewards 9714 responses: 9715 '200': 9716 description: A successful response. 9717 schema: 9718 type: object 9719 properties: 9720 rewards: 9721 type: array 9722 items: 9723 type: object 9724 properties: 9725 denom: 9726 type: string 9727 amount: 9728 type: string 9729 description: >- 9730 DecCoin defines a token with a denomination and a decimal 9731 amount. 9732 9733 9734 NOTE: The amount field is an Dec which implements the custom 9735 method 9736 9737 signatures required by gogoproto. 9738 description: rewards defines the rewards accrued by a delegation. 9739 description: |- 9740 QueryDelegationRewardsResponse is the response type for the 9741 Query/DelegationRewards RPC method. 9742 default: 9743 description: An unexpected error response. 9744 schema: 9745 type: object 9746 properties: 9747 error: 9748 type: string 9749 code: 9750 type: integer 9751 format: int32 9752 message: 9753 type: string 9754 details: 9755 type: array 9756 items: 9757 type: object 9758 properties: 9759 type_url: 9760 type: string 9761 value: 9762 type: string 9763 format: byte 9764 parameters: 9765 - name: delegator_address 9766 description: delegator_address defines the delegator address to query for. 9767 in: path 9768 required: true 9769 type: string 9770 - name: validator_address 9771 description: validator_address defines the validator address to query for. 9772 in: path 9773 required: true 9774 type: string 9775 tags: 9776 - Query 9777 /cosmos/distribution/v1beta1/delegators/{delegator_address}/validators: 9778 get: 9779 summary: DelegatorValidators queries the validators of a delegator. 9780 operationId: DelegatorValidators 9781 responses: 9782 '200': 9783 description: A successful response. 9784 schema: 9785 type: object 9786 properties: 9787 validators: 9788 type: array 9789 items: 9790 type: string 9791 description: >- 9792 validators defines the validators a delegator is delegating 9793 for. 9794 description: |- 9795 QueryDelegatorValidatorsResponse is the response type for the 9796 Query/DelegatorValidators RPC method. 9797 default: 9798 description: An unexpected error response. 9799 schema: 9800 type: object 9801 properties: 9802 error: 9803 type: string 9804 code: 9805 type: integer 9806 format: int32 9807 message: 9808 type: string 9809 details: 9810 type: array 9811 items: 9812 type: object 9813 properties: 9814 type_url: 9815 type: string 9816 value: 9817 type: string 9818 format: byte 9819 parameters: 9820 - name: delegator_address 9821 description: delegator_address defines the delegator address to query for. 9822 in: path 9823 required: true 9824 type: string 9825 tags: 9826 - Query 9827 /cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address: 9828 get: 9829 summary: DelegatorWithdrawAddress queries withdraw address of a delegator. 9830 operationId: DelegatorWithdrawAddress 9831 responses: 9832 '200': 9833 description: A successful response. 9834 schema: 9835 type: object 9836 properties: 9837 withdraw_address: 9838 type: string 9839 description: withdraw_address defines the delegator address to query for. 9840 description: |- 9841 QueryDelegatorWithdrawAddressResponse is the response type for the 9842 Query/DelegatorWithdrawAddress RPC method. 9843 default: 9844 description: An unexpected error response. 9845 schema: 9846 type: object 9847 properties: 9848 error: 9849 type: string 9850 code: 9851 type: integer 9852 format: int32 9853 message: 9854 type: string 9855 details: 9856 type: array 9857 items: 9858 type: object 9859 properties: 9860 type_url: 9861 type: string 9862 value: 9863 type: string 9864 format: byte 9865 parameters: 9866 - name: delegator_address 9867 description: delegator_address defines the delegator address to query for. 9868 in: path 9869 required: true 9870 type: string 9871 tags: 9872 - Query 9873 /cosmos/distribution/v1beta1/params: 9874 get: 9875 summary: Params queries params of the distribution module. 9876 operationId: DistributionParams 9877 responses: 9878 '200': 9879 description: A successful response. 9880 schema: 9881 type: object 9882 properties: 9883 params: 9884 description: params defines the parameters of the module. 9885 type: object 9886 properties: 9887 community_tax: 9888 type: string 9889 base_proposer_reward: 9890 type: string 9891 description: >- 9892 Deprecated: The base_proposer_reward field is deprecated 9893 and is no longer used 9894 9895 in the x/distribution module's reward mechanism. 9896 bonus_proposer_reward: 9897 type: string 9898 description: >- 9899 Deprecated: The bonus_proposer_reward field is deprecated 9900 and is no longer used 9901 9902 in the x/distribution module's reward mechanism. 9903 withdraw_addr_enabled: 9904 type: boolean 9905 description: >- 9906 QueryParamsResponse is the response type for the Query/Params RPC 9907 method. 9908 default: 9909 description: An unexpected error response. 9910 schema: 9911 type: object 9912 properties: 9913 error: 9914 type: string 9915 code: 9916 type: integer 9917 format: int32 9918 message: 9919 type: string 9920 details: 9921 type: array 9922 items: 9923 type: object 9924 properties: 9925 type_url: 9926 type: string 9927 value: 9928 type: string 9929 format: byte 9930 tags: 9931 - Query 9932 /cosmos/distribution/v1beta1/validators/{validator_address}: 9933 get: 9934 summary: >- 9935 ValidatorDistributionInfo queries validator commission and 9936 self-delegation rewards for validator 9937 operationId: ValidatorDistributionInfo 9938 responses: 9939 '200': 9940 description: A successful response. 9941 schema: 9942 type: object 9943 properties: 9944 operator_address: 9945 type: string 9946 description: operator_address defines the validator operator address. 9947 self_bond_rewards: 9948 type: array 9949 items: 9950 type: object 9951 properties: 9952 denom: 9953 type: string 9954 amount: 9955 type: string 9956 description: >- 9957 DecCoin defines a token with a denomination and a decimal 9958 amount. 9959 9960 9961 NOTE: The amount field is an Dec which implements the custom 9962 method 9963 9964 signatures required by gogoproto. 9965 description: self_bond_rewards defines the self delegations rewards. 9966 commission: 9967 type: array 9968 items: 9969 type: object 9970 properties: 9971 denom: 9972 type: string 9973 amount: 9974 type: string 9975 description: >- 9976 DecCoin defines a token with a denomination and a decimal 9977 amount. 9978 9979 9980 NOTE: The amount field is an Dec which implements the custom 9981 method 9982 9983 signatures required by gogoproto. 9984 description: commission defines the commission the validator received. 9985 description: >- 9986 QueryValidatorDistributionInfoResponse is the response type for 9987 the Query/ValidatorDistributionInfo RPC method. 9988 default: 9989 description: An unexpected error response. 9990 schema: 9991 type: object 9992 properties: 9993 error: 9994 type: string 9995 code: 9996 type: integer 9997 format: int32 9998 message: 9999 type: string 10000 details: 10001 type: array 10002 items: 10003 type: object 10004 properties: 10005 type_url: 10006 type: string 10007 value: 10008 type: string 10009 format: byte 10010 parameters: 10011 - name: validator_address 10012 description: validator_address defines the validator address to query for. 10013 in: path 10014 required: true 10015 type: string 10016 tags: 10017 - Query 10018 /cosmos/distribution/v1beta1/validators/{validator_address}/commission: 10019 get: 10020 summary: ValidatorCommission queries accumulated commission for a validator. 10021 operationId: ValidatorCommission 10022 responses: 10023 '200': 10024 description: A successful response. 10025 schema: 10026 type: object 10027 properties: 10028 commission: 10029 description: commission defines the commission the validator received. 10030 type: object 10031 properties: 10032 commission: 10033 type: array 10034 items: 10035 type: object 10036 properties: 10037 denom: 10038 type: string 10039 amount: 10040 type: string 10041 description: >- 10042 DecCoin defines a token with a denomination and a 10043 decimal amount. 10044 10045 10046 NOTE: The amount field is an Dec which implements the 10047 custom method 10048 10049 signatures required by gogoproto. 10050 title: |- 10051 QueryValidatorCommissionResponse is the response type for the 10052 Query/ValidatorCommission RPC method 10053 default: 10054 description: An unexpected error response. 10055 schema: 10056 type: object 10057 properties: 10058 error: 10059 type: string 10060 code: 10061 type: integer 10062 format: int32 10063 message: 10064 type: string 10065 details: 10066 type: array 10067 items: 10068 type: object 10069 properties: 10070 type_url: 10071 type: string 10072 value: 10073 type: string 10074 format: byte 10075 parameters: 10076 - name: validator_address 10077 description: validator_address defines the validator address to query for. 10078 in: path 10079 required: true 10080 type: string 10081 tags: 10082 - Query 10083 /cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards: 10084 get: 10085 summary: ValidatorOutstandingRewards queries rewards of a validator address. 10086 operationId: ValidatorOutstandingRewards 10087 responses: 10088 '200': 10089 description: A successful response. 10090 schema: 10091 type: object 10092 properties: 10093 rewards: 10094 type: object 10095 properties: 10096 rewards: 10097 type: array 10098 items: 10099 type: object 10100 properties: 10101 denom: 10102 type: string 10103 amount: 10104 type: string 10105 description: >- 10106 DecCoin defines a token with a denomination and a 10107 decimal amount. 10108 10109 10110 NOTE: The amount field is an Dec which implements the 10111 custom method 10112 10113 signatures required by gogoproto. 10114 description: >- 10115 ValidatorOutstandingRewards represents outstanding 10116 (un-withdrawn) rewards 10117 10118 for a validator inexpensive to track, allows simple sanity 10119 checks. 10120 description: >- 10121 QueryValidatorOutstandingRewardsResponse is the response type for 10122 the 10123 10124 Query/ValidatorOutstandingRewards RPC method. 10125 default: 10126 description: An unexpected error response. 10127 schema: 10128 type: object 10129 properties: 10130 error: 10131 type: string 10132 code: 10133 type: integer 10134 format: int32 10135 message: 10136 type: string 10137 details: 10138 type: array 10139 items: 10140 type: object 10141 properties: 10142 type_url: 10143 type: string 10144 value: 10145 type: string 10146 format: byte 10147 parameters: 10148 - name: validator_address 10149 description: validator_address defines the validator address to query for. 10150 in: path 10151 required: true 10152 type: string 10153 tags: 10154 - Query 10155 /cosmos/distribution/v1beta1/validators/{validator_address}/slashes: 10156 get: 10157 summary: ValidatorSlashes queries slash events of a validator. 10158 operationId: ValidatorSlashes 10159 responses: 10160 '200': 10161 description: A successful response. 10162 schema: 10163 type: object 10164 properties: 10165 slashes: 10166 type: array 10167 items: 10168 type: object 10169 properties: 10170 validator_period: 10171 type: string 10172 format: uint64 10173 fraction: 10174 type: string 10175 description: >- 10176 ValidatorSlashEvent represents a validator slash event. 10177 10178 Height is implicit within the store key. 10179 10180 This is needed to calculate appropriate amount of staking 10181 tokens 10182 10183 for delegations which are withdrawn after a slash has 10184 occurred. 10185 description: slashes defines the slashes the validator received. 10186 pagination: 10187 description: pagination defines the pagination in the response. 10188 type: object 10189 properties: 10190 next_key: 10191 type: string 10192 format: byte 10193 description: |- 10194 next_key is the key to be passed to PageRequest.key to 10195 query the next page most efficiently. It will be empty if 10196 there are no more results. 10197 total: 10198 type: string 10199 format: uint64 10200 title: >- 10201 total is total number of results available if 10202 PageRequest.count_total 10203 10204 was set, its value is undefined otherwise 10205 description: |- 10206 QueryValidatorSlashesResponse is the response type for the 10207 Query/ValidatorSlashes RPC method. 10208 default: 10209 description: An unexpected error response. 10210 schema: 10211 type: object 10212 properties: 10213 error: 10214 type: string 10215 code: 10216 type: integer 10217 format: int32 10218 message: 10219 type: string 10220 details: 10221 type: array 10222 items: 10223 type: object 10224 properties: 10225 type_url: 10226 type: string 10227 value: 10228 type: string 10229 format: byte 10230 parameters: 10231 - name: validator_address 10232 description: validator_address defines the validator address to query for. 10233 in: path 10234 required: true 10235 type: string 10236 - name: starting_height 10237 description: >- 10238 starting_height defines the optional starting height to query the 10239 slashes. 10240 in: query 10241 required: false 10242 type: string 10243 format: uint64 10244 - name: ending_height 10245 description: >- 10246 starting_height defines the optional ending height to query the 10247 slashes. 10248 in: query 10249 required: false 10250 type: string 10251 format: uint64 10252 - name: pagination.key 10253 description: |- 10254 key is a value returned in PageResponse.next_key to begin 10255 querying the next page most efficiently. Only one of offset or key 10256 should be set. 10257 in: query 10258 required: false 10259 type: string 10260 format: byte 10261 - name: pagination.offset 10262 description: >- 10263 offset is a numeric offset that can be used when key is unavailable. 10264 10265 It is less efficient than using key. Only one of offset or key 10266 should 10267 10268 be set. 10269 in: query 10270 required: false 10271 type: string 10272 format: uint64 10273 - name: pagination.limit 10274 description: >- 10275 limit is the total number of results to be returned in the result 10276 page. 10277 10278 If left empty it will default to a value to be set by each app. 10279 in: query 10280 required: false 10281 type: string 10282 format: uint64 10283 - name: pagination.count_total 10284 description: >- 10285 count_total is set to true to indicate that the result set should 10286 include 10287 10288 a count of the total number of items available for pagination in 10289 UIs. 10290 10291 count_total is only respected when offset is used. It is ignored 10292 when key 10293 10294 is set. 10295 in: query 10296 required: false 10297 type: boolean 10298 - name: pagination.reverse 10299 description: >- 10300 reverse is set to true if results are to be returned in the 10301 descending order. 10302 10303 10304 Since: cosmos-sdk 0.43 10305 in: query 10306 required: false 10307 type: boolean 10308 tags: 10309 - Query 10310 /cosmos/evidence/v1beta1/evidence: 10311 get: 10312 summary: AllEvidence queries all evidence. 10313 operationId: AllEvidence 10314 responses: 10315 '200': 10316 description: A successful response. 10317 schema: 10318 type: object 10319 properties: 10320 evidence: 10321 type: array 10322 items: 10323 type: object 10324 properties: 10325 type_url: 10326 type: string 10327 description: >- 10328 A URL/resource name that uniquely identifies the type of 10329 the serialized 10330 10331 protocol buffer message. This string must contain at 10332 least 10333 10334 one "/" character. The last segment of the URL's path 10335 must represent 10336 10337 the fully qualified name of the type (as in 10338 10339 `path/google.protobuf.Duration`). The name should be in 10340 a canonical form 10341 10342 (e.g., leading "." is not accepted). 10343 10344 10345 In practice, teams usually precompile into the binary 10346 all types that they 10347 10348 expect it to use in the context of Any. However, for 10349 URLs which use the 10350 10351 scheme `http`, `https`, or no scheme, one can optionally 10352 set up a type 10353 10354 server that maps type URLs to message definitions as 10355 follows: 10356 10357 10358 * If no scheme is provided, `https` is assumed. 10359 10360 * An HTTP GET on the URL must yield a 10361 [google.protobuf.Type][] 10362 value in binary format, or produce an error. 10363 * Applications are allowed to cache lookup results based 10364 on the 10365 URL, or have them precompiled into a binary to avoid any 10366 lookup. Therefore, binary compatibility needs to be preserved 10367 on changes to types. (Use versioned type names to manage 10368 breaking changes.) 10369 10370 Note: this functionality is not currently available in 10371 the official 10372 10373 protobuf release, and it is not used for type URLs 10374 beginning with 10375 10376 type.googleapis.com. 10377 10378 10379 Schemes other than `http`, `https` (or the empty scheme) 10380 might be 10381 10382 used with implementation specific semantics. 10383 value: 10384 type: string 10385 format: byte 10386 description: >- 10387 Must be a valid serialized protocol buffer of the above 10388 specified type. 10389 description: >- 10390 `Any` contains an arbitrary serialized protocol buffer 10391 message along with a 10392 10393 URL that describes the type of the serialized message. 10394 10395 10396 Protobuf library provides support to pack/unpack Any values 10397 in the form 10398 10399 of utility functions or additional generated methods of the 10400 Any type. 10401 10402 10403 Example 1: Pack and unpack a message in C++. 10404 10405 Foo foo = ...; 10406 Any any; 10407 any.PackFrom(foo); 10408 ... 10409 if (any.UnpackTo(&foo)) { 10410 ... 10411 } 10412 10413 Example 2: Pack and unpack a message in Java. 10414 10415 Foo foo = ...; 10416 Any any = Any.pack(foo); 10417 ... 10418 if (any.is(Foo.class)) { 10419 foo = any.unpack(Foo.class); 10420 } 10421 // or ... 10422 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 10423 foo = any.unpack(Foo.getDefaultInstance()); 10424 } 10425 10426 Example 3: Pack and unpack a message in Python. 10427 10428 foo = Foo(...) 10429 any = Any() 10430 any.Pack(foo) 10431 ... 10432 if any.Is(Foo.DESCRIPTOR): 10433 any.Unpack(foo) 10434 ... 10435 10436 Example 4: Pack and unpack a message in Go 10437 10438 foo := &pb.Foo{...} 10439 any, err := anypb.New(foo) 10440 if err != nil { 10441 ... 10442 } 10443 ... 10444 foo := &pb.Foo{} 10445 if err := any.UnmarshalTo(foo); err != nil { 10446 ... 10447 } 10448 10449 The pack methods provided by protobuf library will by 10450 default use 10451 10452 'type.googleapis.com/full.type.name' as the type URL and the 10453 unpack 10454 10455 methods only use the fully qualified type name after the 10456 last '/' 10457 10458 in the type URL, for example "foo.bar.com/x/y.z" will yield 10459 type 10460 10461 name "y.z". 10462 10463 10464 JSON 10465 10466 10467 The JSON representation of an `Any` value uses the regular 10468 10469 representation of the deserialized, embedded message, with 10470 an 10471 10472 additional field `@type` which contains the type URL. 10473 Example: 10474 10475 package google.profile; 10476 message Person { 10477 string first_name = 1; 10478 string last_name = 2; 10479 } 10480 10481 { 10482 "@type": "type.googleapis.com/google.profile.Person", 10483 "firstName": <string>, 10484 "lastName": <string> 10485 } 10486 10487 If the embedded message type is well-known and has a custom 10488 JSON 10489 10490 representation, that representation will be embedded adding 10491 a field 10492 10493 `value` which holds the custom JSON in addition to the 10494 `@type` 10495 10496 field. Example (for message [google.protobuf.Duration][]): 10497 10498 { 10499 "@type": "type.googleapis.com/google.protobuf.Duration", 10500 "value": "1.212s" 10501 } 10502 description: evidence returns all evidences. 10503 pagination: 10504 description: pagination defines the pagination in the response. 10505 type: object 10506 properties: 10507 next_key: 10508 type: string 10509 format: byte 10510 description: |- 10511 next_key is the key to be passed to PageRequest.key to 10512 query the next page most efficiently. It will be empty if 10513 there are no more results. 10514 total: 10515 type: string 10516 format: uint64 10517 title: >- 10518 total is total number of results available if 10519 PageRequest.count_total 10520 10521 was set, its value is undefined otherwise 10522 description: >- 10523 QueryAllEvidenceResponse is the response type for the 10524 Query/AllEvidence RPC 10525 10526 method. 10527 default: 10528 description: An unexpected error response. 10529 schema: 10530 type: object 10531 properties: 10532 error: 10533 type: string 10534 code: 10535 type: integer 10536 format: int32 10537 message: 10538 type: string 10539 details: 10540 type: array 10541 items: 10542 type: object 10543 properties: 10544 type_url: 10545 type: string 10546 description: >- 10547 A URL/resource name that uniquely identifies the type of 10548 the serialized 10549 10550 protocol buffer message. This string must contain at 10551 least 10552 10553 one "/" character. The last segment of the URL's path 10554 must represent 10555 10556 the fully qualified name of the type (as in 10557 10558 `path/google.protobuf.Duration`). The name should be in 10559 a canonical form 10560 10561 (e.g., leading "." is not accepted). 10562 10563 10564 In practice, teams usually precompile into the binary 10565 all types that they 10566 10567 expect it to use in the context of Any. However, for 10568 URLs which use the 10569 10570 scheme `http`, `https`, or no scheme, one can optionally 10571 set up a type 10572 10573 server that maps type URLs to message definitions as 10574 follows: 10575 10576 10577 * If no scheme is provided, `https` is assumed. 10578 10579 * An HTTP GET on the URL must yield a 10580 [google.protobuf.Type][] 10581 value in binary format, or produce an error. 10582 * Applications are allowed to cache lookup results based 10583 on the 10584 URL, or have them precompiled into a binary to avoid any 10585 lookup. Therefore, binary compatibility needs to be preserved 10586 on changes to types. (Use versioned type names to manage 10587 breaking changes.) 10588 10589 Note: this functionality is not currently available in 10590 the official 10591 10592 protobuf release, and it is not used for type URLs 10593 beginning with 10594 10595 type.googleapis.com. 10596 10597 10598 Schemes other than `http`, `https` (or the empty scheme) 10599 might be 10600 10601 used with implementation specific semantics. 10602 value: 10603 type: string 10604 format: byte 10605 description: >- 10606 Must be a valid serialized protocol buffer of the above 10607 specified type. 10608 description: >- 10609 `Any` contains an arbitrary serialized protocol buffer 10610 message along with a 10611 10612 URL that describes the type of the serialized message. 10613 10614 10615 Protobuf library provides support to pack/unpack Any values 10616 in the form 10617 10618 of utility functions or additional generated methods of the 10619 Any type. 10620 10621 10622 Example 1: Pack and unpack a message in C++. 10623 10624 Foo foo = ...; 10625 Any any; 10626 any.PackFrom(foo); 10627 ... 10628 if (any.UnpackTo(&foo)) { 10629 ... 10630 } 10631 10632 Example 2: Pack and unpack a message in Java. 10633 10634 Foo foo = ...; 10635 Any any = Any.pack(foo); 10636 ... 10637 if (any.is(Foo.class)) { 10638 foo = any.unpack(Foo.class); 10639 } 10640 // or ... 10641 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 10642 foo = any.unpack(Foo.getDefaultInstance()); 10643 } 10644 10645 Example 3: Pack and unpack a message in Python. 10646 10647 foo = Foo(...) 10648 any = Any() 10649 any.Pack(foo) 10650 ... 10651 if any.Is(Foo.DESCRIPTOR): 10652 any.Unpack(foo) 10653 ... 10654 10655 Example 4: Pack and unpack a message in Go 10656 10657 foo := &pb.Foo{...} 10658 any, err := anypb.New(foo) 10659 if err != nil { 10660 ... 10661 } 10662 ... 10663 foo := &pb.Foo{} 10664 if err := any.UnmarshalTo(foo); err != nil { 10665 ... 10666 } 10667 10668 The pack methods provided by protobuf library will by 10669 default use 10670 10671 'type.googleapis.com/full.type.name' as the type URL and the 10672 unpack 10673 10674 methods only use the fully qualified type name after the 10675 last '/' 10676 10677 in the type URL, for example "foo.bar.com/x/y.z" will yield 10678 type 10679 10680 name "y.z". 10681 10682 10683 JSON 10684 10685 10686 The JSON representation of an `Any` value uses the regular 10687 10688 representation of the deserialized, embedded message, with 10689 an 10690 10691 additional field `@type` which contains the type URL. 10692 Example: 10693 10694 package google.profile; 10695 message Person { 10696 string first_name = 1; 10697 string last_name = 2; 10698 } 10699 10700 { 10701 "@type": "type.googleapis.com/google.profile.Person", 10702 "firstName": <string>, 10703 "lastName": <string> 10704 } 10705 10706 If the embedded message type is well-known and has a custom 10707 JSON 10708 10709 representation, that representation will be embedded adding 10710 a field 10711 10712 `value` which holds the custom JSON in addition to the 10713 `@type` 10714 10715 field. Example (for message [google.protobuf.Duration][]): 10716 10717 { 10718 "@type": "type.googleapis.com/google.protobuf.Duration", 10719 "value": "1.212s" 10720 } 10721 parameters: 10722 - name: pagination.key 10723 description: |- 10724 key is a value returned in PageResponse.next_key to begin 10725 querying the next page most efficiently. Only one of offset or key 10726 should be set. 10727 in: query 10728 required: false 10729 type: string 10730 format: byte 10731 - name: pagination.offset 10732 description: >- 10733 offset is a numeric offset that can be used when key is unavailable. 10734 10735 It is less efficient than using key. Only one of offset or key 10736 should 10737 10738 be set. 10739 in: query 10740 required: false 10741 type: string 10742 format: uint64 10743 - name: pagination.limit 10744 description: >- 10745 limit is the total number of results to be returned in the result 10746 page. 10747 10748 If left empty it will default to a value to be set by each app. 10749 in: query 10750 required: false 10751 type: string 10752 format: uint64 10753 - name: pagination.count_total 10754 description: >- 10755 count_total is set to true to indicate that the result set should 10756 include 10757 10758 a count of the total number of items available for pagination in 10759 UIs. 10760 10761 count_total is only respected when offset is used. It is ignored 10762 when key 10763 10764 is set. 10765 in: query 10766 required: false 10767 type: boolean 10768 - name: pagination.reverse 10769 description: >- 10770 reverse is set to true if results are to be returned in the 10771 descending order. 10772 10773 10774 Since: cosmos-sdk 0.43 10775 in: query 10776 required: false 10777 type: boolean 10778 tags: 10779 - Query 10780 /cosmos/evidence/v1beta1/evidence/{hash}: 10781 get: 10782 summary: Evidence queries evidence based on evidence hash. 10783 operationId: Evidence 10784 responses: 10785 '200': 10786 description: A successful response. 10787 schema: 10788 type: object 10789 properties: 10790 evidence: 10791 type: object 10792 properties: 10793 type_url: 10794 type: string 10795 description: >- 10796 A URL/resource name that uniquely identifies the type of 10797 the serialized 10798 10799 protocol buffer message. This string must contain at least 10800 10801 one "/" character. The last segment of the URL's path must 10802 represent 10803 10804 the fully qualified name of the type (as in 10805 10806 `path/google.protobuf.Duration`). The name should be in a 10807 canonical form 10808 10809 (e.g., leading "." is not accepted). 10810 10811 10812 In practice, teams usually precompile into the binary all 10813 types that they 10814 10815 expect it to use in the context of Any. However, for URLs 10816 which use the 10817 10818 scheme `http`, `https`, or no scheme, one can optionally 10819 set up a type 10820 10821 server that maps type URLs to message definitions as 10822 follows: 10823 10824 10825 * If no scheme is provided, `https` is assumed. 10826 10827 * An HTTP GET on the URL must yield a 10828 [google.protobuf.Type][] 10829 value in binary format, or produce an error. 10830 * Applications are allowed to cache lookup results based 10831 on the 10832 URL, or have them precompiled into a binary to avoid any 10833 lookup. Therefore, binary compatibility needs to be preserved 10834 on changes to types. (Use versioned type names to manage 10835 breaking changes.) 10836 10837 Note: this functionality is not currently available in the 10838 official 10839 10840 protobuf release, and it is not used for type URLs 10841 beginning with 10842 10843 type.googleapis.com. 10844 10845 10846 Schemes other than `http`, `https` (or the empty scheme) 10847 might be 10848 10849 used with implementation specific semantics. 10850 value: 10851 type: string 10852 format: byte 10853 description: >- 10854 Must be a valid serialized protocol buffer of the above 10855 specified type. 10856 description: >- 10857 `Any` contains an arbitrary serialized protocol buffer message 10858 along with a 10859 10860 URL that describes the type of the serialized message. 10861 10862 10863 Protobuf library provides support to pack/unpack Any values in 10864 the form 10865 10866 of utility functions or additional generated methods of the 10867 Any type. 10868 10869 10870 Example 1: Pack and unpack a message in C++. 10871 10872 Foo foo = ...; 10873 Any any; 10874 any.PackFrom(foo); 10875 ... 10876 if (any.UnpackTo(&foo)) { 10877 ... 10878 } 10879 10880 Example 2: Pack and unpack a message in Java. 10881 10882 Foo foo = ...; 10883 Any any = Any.pack(foo); 10884 ... 10885 if (any.is(Foo.class)) { 10886 foo = any.unpack(Foo.class); 10887 } 10888 // or ... 10889 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 10890 foo = any.unpack(Foo.getDefaultInstance()); 10891 } 10892 10893 Example 3: Pack and unpack a message in Python. 10894 10895 foo = Foo(...) 10896 any = Any() 10897 any.Pack(foo) 10898 ... 10899 if any.Is(Foo.DESCRIPTOR): 10900 any.Unpack(foo) 10901 ... 10902 10903 Example 4: Pack and unpack a message in Go 10904 10905 foo := &pb.Foo{...} 10906 any, err := anypb.New(foo) 10907 if err != nil { 10908 ... 10909 } 10910 ... 10911 foo := &pb.Foo{} 10912 if err := any.UnmarshalTo(foo); err != nil { 10913 ... 10914 } 10915 10916 The pack methods provided by protobuf library will by default 10917 use 10918 10919 'type.googleapis.com/full.type.name' as the type URL and the 10920 unpack 10921 10922 methods only use the fully qualified type name after the last 10923 '/' 10924 10925 in the type URL, for example "foo.bar.com/x/y.z" will yield 10926 type 10927 10928 name "y.z". 10929 10930 10931 JSON 10932 10933 10934 The JSON representation of an `Any` value uses the regular 10935 10936 representation of the deserialized, embedded message, with an 10937 10938 additional field `@type` which contains the type URL. Example: 10939 10940 package google.profile; 10941 message Person { 10942 string first_name = 1; 10943 string last_name = 2; 10944 } 10945 10946 { 10947 "@type": "type.googleapis.com/google.profile.Person", 10948 "firstName": <string>, 10949 "lastName": <string> 10950 } 10951 10952 If the embedded message type is well-known and has a custom 10953 JSON 10954 10955 representation, that representation will be embedded adding a 10956 field 10957 10958 `value` which holds the custom JSON in addition to the `@type` 10959 10960 field. Example (for message [google.protobuf.Duration][]): 10961 10962 { 10963 "@type": "type.googleapis.com/google.protobuf.Duration", 10964 "value": "1.212s" 10965 } 10966 description: >- 10967 QueryEvidenceResponse is the response type for the Query/Evidence 10968 RPC method. 10969 default: 10970 description: An unexpected error response. 10971 schema: 10972 type: object 10973 properties: 10974 error: 10975 type: string 10976 code: 10977 type: integer 10978 format: int32 10979 message: 10980 type: string 10981 details: 10982 type: array 10983 items: 10984 type: object 10985 properties: 10986 type_url: 10987 type: string 10988 description: >- 10989 A URL/resource name that uniquely identifies the type of 10990 the serialized 10991 10992 protocol buffer message. This string must contain at 10993 least 10994 10995 one "/" character. The last segment of the URL's path 10996 must represent 10997 10998 the fully qualified name of the type (as in 10999 11000 `path/google.protobuf.Duration`). The name should be in 11001 a canonical form 11002 11003 (e.g., leading "." is not accepted). 11004 11005 11006 In practice, teams usually precompile into the binary 11007 all types that they 11008 11009 expect it to use in the context of Any. However, for 11010 URLs which use the 11011 11012 scheme `http`, `https`, or no scheme, one can optionally 11013 set up a type 11014 11015 server that maps type URLs to message definitions as 11016 follows: 11017 11018 11019 * If no scheme is provided, `https` is assumed. 11020 11021 * An HTTP GET on the URL must yield a 11022 [google.protobuf.Type][] 11023 value in binary format, or produce an error. 11024 * Applications are allowed to cache lookup results based 11025 on the 11026 URL, or have them precompiled into a binary to avoid any 11027 lookup. Therefore, binary compatibility needs to be preserved 11028 on changes to types. (Use versioned type names to manage 11029 breaking changes.) 11030 11031 Note: this functionality is not currently available in 11032 the official 11033 11034 protobuf release, and it is not used for type URLs 11035 beginning with 11036 11037 type.googleapis.com. 11038 11039 11040 Schemes other than `http`, `https` (or the empty scheme) 11041 might be 11042 11043 used with implementation specific semantics. 11044 value: 11045 type: string 11046 format: byte 11047 description: >- 11048 Must be a valid serialized protocol buffer of the above 11049 specified type. 11050 description: >- 11051 `Any` contains an arbitrary serialized protocol buffer 11052 message along with a 11053 11054 URL that describes the type of the serialized message. 11055 11056 11057 Protobuf library provides support to pack/unpack Any values 11058 in the form 11059 11060 of utility functions or additional generated methods of the 11061 Any type. 11062 11063 11064 Example 1: Pack and unpack a message in C++. 11065 11066 Foo foo = ...; 11067 Any any; 11068 any.PackFrom(foo); 11069 ... 11070 if (any.UnpackTo(&foo)) { 11071 ... 11072 } 11073 11074 Example 2: Pack and unpack a message in Java. 11075 11076 Foo foo = ...; 11077 Any any = Any.pack(foo); 11078 ... 11079 if (any.is(Foo.class)) { 11080 foo = any.unpack(Foo.class); 11081 } 11082 // or ... 11083 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 11084 foo = any.unpack(Foo.getDefaultInstance()); 11085 } 11086 11087 Example 3: Pack and unpack a message in Python. 11088 11089 foo = Foo(...) 11090 any = Any() 11091 any.Pack(foo) 11092 ... 11093 if any.Is(Foo.DESCRIPTOR): 11094 any.Unpack(foo) 11095 ... 11096 11097 Example 4: Pack and unpack a message in Go 11098 11099 foo := &pb.Foo{...} 11100 any, err := anypb.New(foo) 11101 if err != nil { 11102 ... 11103 } 11104 ... 11105 foo := &pb.Foo{} 11106 if err := any.UnmarshalTo(foo); err != nil { 11107 ... 11108 } 11109 11110 The pack methods provided by protobuf library will by 11111 default use 11112 11113 'type.googleapis.com/full.type.name' as the type URL and the 11114 unpack 11115 11116 methods only use the fully qualified type name after the 11117 last '/' 11118 11119 in the type URL, for example "foo.bar.com/x/y.z" will yield 11120 type 11121 11122 name "y.z". 11123 11124 11125 JSON 11126 11127 11128 The JSON representation of an `Any` value uses the regular 11129 11130 representation of the deserialized, embedded message, with 11131 an 11132 11133 additional field `@type` which contains the type URL. 11134 Example: 11135 11136 package google.profile; 11137 message Person { 11138 string first_name = 1; 11139 string last_name = 2; 11140 } 11141 11142 { 11143 "@type": "type.googleapis.com/google.profile.Person", 11144 "firstName": <string>, 11145 "lastName": <string> 11146 } 11147 11148 If the embedded message type is well-known and has a custom 11149 JSON 11150 11151 representation, that representation will be embedded adding 11152 a field 11153 11154 `value` which holds the custom JSON in addition to the 11155 `@type` 11156 11157 field. Example (for message [google.protobuf.Duration][]): 11158 11159 { 11160 "@type": "type.googleapis.com/google.protobuf.Duration", 11161 "value": "1.212s" 11162 } 11163 parameters: 11164 - name: hash 11165 description: |- 11166 hash defines the evidence hash of the requested evidence. 11167 11168 Since: cosmos-sdk 0.47 11169 in: path 11170 required: true 11171 type: string 11172 - name: evidence_hash 11173 description: |- 11174 evidence_hash defines the hash of the requested evidence. 11175 Deprecated: Use hash, a HEX encoded string, instead. 11176 in: query 11177 required: false 11178 type: string 11179 format: byte 11180 tags: 11181 - Query 11182 /cosmos/gov/v1beta1/params/{params_type}: 11183 get: 11184 summary: Params queries all parameters of the gov module. 11185 operationId: GovParams 11186 responses: 11187 '200': 11188 description: A successful response. 11189 schema: 11190 type: object 11191 properties: 11192 voting_params: 11193 description: voting_params defines the parameters related to voting. 11194 type: object 11195 properties: 11196 voting_period: 11197 type: string 11198 description: Duration of the voting period. 11199 deposit_params: 11200 description: deposit_params defines the parameters related to deposit. 11201 type: object 11202 properties: 11203 min_deposit: 11204 type: array 11205 items: 11206 type: object 11207 properties: 11208 denom: 11209 type: string 11210 amount: 11211 type: string 11212 description: >- 11213 Coin defines a token with a denomination and an amount. 11214 11215 11216 NOTE: The amount field is an Int which implements the 11217 custom method 11218 11219 signatures required by gogoproto. 11220 description: Minimum deposit for a proposal to enter voting period. 11221 max_deposit_period: 11222 type: string 11223 description: >- 11224 Maximum period for Atom holders to deposit on a proposal. 11225 Initial value: 2 11226 11227 months. 11228 tally_params: 11229 description: tally_params defines the parameters related to tally. 11230 type: object 11231 properties: 11232 quorum: 11233 type: string 11234 format: byte 11235 description: >- 11236 Minimum percentage of total stake needed to vote for a 11237 result to be 11238 11239 considered valid. 11240 threshold: 11241 type: string 11242 format: byte 11243 description: >- 11244 Minimum proportion of Yes votes for proposal to pass. 11245 Default value: 0.5. 11246 veto_threshold: 11247 type: string 11248 format: byte 11249 description: >- 11250 Minimum value of Veto votes to Total votes ratio for 11251 proposal to be 11252 11253 vetoed. Default value: 1/3. 11254 description: >- 11255 QueryParamsResponse is the response type for the Query/Params RPC 11256 method. 11257 default: 11258 description: An unexpected error response. 11259 schema: 11260 type: object 11261 properties: 11262 error: 11263 type: string 11264 code: 11265 type: integer 11266 format: int32 11267 message: 11268 type: string 11269 details: 11270 type: array 11271 items: 11272 type: object 11273 properties: 11274 type_url: 11275 type: string 11276 description: >- 11277 A URL/resource name that uniquely identifies the type of 11278 the serialized 11279 11280 protocol buffer message. This string must contain at 11281 least 11282 11283 one "/" character. The last segment of the URL's path 11284 must represent 11285 11286 the fully qualified name of the type (as in 11287 11288 `path/google.protobuf.Duration`). The name should be in 11289 a canonical form 11290 11291 (e.g., leading "." is not accepted). 11292 11293 11294 In practice, teams usually precompile into the binary 11295 all types that they 11296 11297 expect it to use in the context of Any. However, for 11298 URLs which use the 11299 11300 scheme `http`, `https`, or no scheme, one can optionally 11301 set up a type 11302 11303 server that maps type URLs to message definitions as 11304 follows: 11305 11306 11307 * If no scheme is provided, `https` is assumed. 11308 11309 * An HTTP GET on the URL must yield a 11310 [google.protobuf.Type][] 11311 value in binary format, or produce an error. 11312 * Applications are allowed to cache lookup results based 11313 on the 11314 URL, or have them precompiled into a binary to avoid any 11315 lookup. Therefore, binary compatibility needs to be preserved 11316 on changes to types. (Use versioned type names to manage 11317 breaking changes.) 11318 11319 Note: this functionality is not currently available in 11320 the official 11321 11322 protobuf release, and it is not used for type URLs 11323 beginning with 11324 11325 type.googleapis.com. 11326 11327 11328 Schemes other than `http`, `https` (or the empty scheme) 11329 might be 11330 11331 used with implementation specific semantics. 11332 value: 11333 type: string 11334 format: byte 11335 description: >- 11336 Must be a valid serialized protocol buffer of the above 11337 specified type. 11338 description: >- 11339 `Any` contains an arbitrary serialized protocol buffer 11340 message along with a 11341 11342 URL that describes the type of the serialized message. 11343 11344 11345 Protobuf library provides support to pack/unpack Any values 11346 in the form 11347 11348 of utility functions or additional generated methods of the 11349 Any type. 11350 11351 11352 Example 1: Pack and unpack a message in C++. 11353 11354 Foo foo = ...; 11355 Any any; 11356 any.PackFrom(foo); 11357 ... 11358 if (any.UnpackTo(&foo)) { 11359 ... 11360 } 11361 11362 Example 2: Pack and unpack a message in Java. 11363 11364 Foo foo = ...; 11365 Any any = Any.pack(foo); 11366 ... 11367 if (any.is(Foo.class)) { 11368 foo = any.unpack(Foo.class); 11369 } 11370 // or ... 11371 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 11372 foo = any.unpack(Foo.getDefaultInstance()); 11373 } 11374 11375 Example 3: Pack and unpack a message in Python. 11376 11377 foo = Foo(...) 11378 any = Any() 11379 any.Pack(foo) 11380 ... 11381 if any.Is(Foo.DESCRIPTOR): 11382 any.Unpack(foo) 11383 ... 11384 11385 Example 4: Pack and unpack a message in Go 11386 11387 foo := &pb.Foo{...} 11388 any, err := anypb.New(foo) 11389 if err != nil { 11390 ... 11391 } 11392 ... 11393 foo := &pb.Foo{} 11394 if err := any.UnmarshalTo(foo); err != nil { 11395 ... 11396 } 11397 11398 The pack methods provided by protobuf library will by 11399 default use 11400 11401 'type.googleapis.com/full.type.name' as the type URL and the 11402 unpack 11403 11404 methods only use the fully qualified type name after the 11405 last '/' 11406 11407 in the type URL, for example "foo.bar.com/x/y.z" will yield 11408 type 11409 11410 name "y.z". 11411 11412 11413 JSON 11414 11415 11416 The JSON representation of an `Any` value uses the regular 11417 11418 representation of the deserialized, embedded message, with 11419 an 11420 11421 additional field `@type` which contains the type URL. 11422 Example: 11423 11424 package google.profile; 11425 message Person { 11426 string first_name = 1; 11427 string last_name = 2; 11428 } 11429 11430 { 11431 "@type": "type.googleapis.com/google.profile.Person", 11432 "firstName": <string>, 11433 "lastName": <string> 11434 } 11435 11436 If the embedded message type is well-known and has a custom 11437 JSON 11438 11439 representation, that representation will be embedded adding 11440 a field 11441 11442 `value` which holds the custom JSON in addition to the 11443 `@type` 11444 11445 field. Example (for message [google.protobuf.Duration][]): 11446 11447 { 11448 "@type": "type.googleapis.com/google.protobuf.Duration", 11449 "value": "1.212s" 11450 } 11451 parameters: 11452 - name: params_type 11453 description: >- 11454 params_type defines which parameters to query for, can be one of 11455 "voting", 11456 11457 "tallying" or "deposit". 11458 in: path 11459 required: true 11460 type: string 11461 tags: 11462 - Query 11463 /cosmos/gov/v1beta1/proposals: 11464 get: 11465 summary: Proposals queries all proposals based on given status. 11466 operationId: Proposals 11467 responses: 11468 '200': 11469 description: A successful response. 11470 schema: 11471 type: object 11472 properties: 11473 proposals: 11474 type: array 11475 items: 11476 type: object 11477 properties: 11478 proposal_id: 11479 type: string 11480 format: uint64 11481 description: proposal_id defines the unique id of the proposal. 11482 content: 11483 type: object 11484 properties: 11485 type_url: 11486 type: string 11487 description: >- 11488 A URL/resource name that uniquely identifies the 11489 type of the serialized 11490 11491 protocol buffer message. This string must contain at 11492 least 11493 11494 one "/" character. The last segment of the URL's 11495 path must represent 11496 11497 the fully qualified name of the type (as in 11498 11499 `path/google.protobuf.Duration`). The name should be 11500 in a canonical form 11501 11502 (e.g., leading "." is not accepted). 11503 11504 11505 In practice, teams usually precompile into the 11506 binary all types that they 11507 11508 expect it to use in the context of Any. However, for 11509 URLs which use the 11510 11511 scheme `http`, `https`, or no scheme, one can 11512 optionally set up a type 11513 11514 server that maps type URLs to message definitions as 11515 follows: 11516 11517 11518 * If no scheme is provided, `https` is assumed. 11519 11520 * An HTTP GET on the URL must yield a 11521 [google.protobuf.Type][] 11522 value in binary format, or produce an error. 11523 * Applications are allowed to cache lookup results 11524 based on the 11525 URL, or have them precompiled into a binary to avoid any 11526 lookup. Therefore, binary compatibility needs to be preserved 11527 on changes to types. (Use versioned type names to manage 11528 breaking changes.) 11529 11530 Note: this functionality is not currently available 11531 in the official 11532 11533 protobuf release, and it is not used for type URLs 11534 beginning with 11535 11536 type.googleapis.com. 11537 11538 11539 Schemes other than `http`, `https` (or the empty 11540 scheme) might be 11541 11542 used with implementation specific semantics. 11543 value: 11544 type: string 11545 format: byte 11546 description: >- 11547 Must be a valid serialized protocol buffer of the 11548 above specified type. 11549 description: >- 11550 `Any` contains an arbitrary serialized protocol buffer 11551 message along with a 11552 11553 URL that describes the type of the serialized message. 11554 11555 11556 Protobuf library provides support to pack/unpack Any 11557 values in the form 11558 11559 of utility functions or additional generated methods of 11560 the Any type. 11561 11562 11563 Example 1: Pack and unpack a message in C++. 11564 11565 Foo foo = ...; 11566 Any any; 11567 any.PackFrom(foo); 11568 ... 11569 if (any.UnpackTo(&foo)) { 11570 ... 11571 } 11572 11573 Example 2: Pack and unpack a message in Java. 11574 11575 Foo foo = ...; 11576 Any any = Any.pack(foo); 11577 ... 11578 if (any.is(Foo.class)) { 11579 foo = any.unpack(Foo.class); 11580 } 11581 // or ... 11582 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 11583 foo = any.unpack(Foo.getDefaultInstance()); 11584 } 11585 11586 Example 3: Pack and unpack a message in Python. 11587 11588 foo = Foo(...) 11589 any = Any() 11590 any.Pack(foo) 11591 ... 11592 if any.Is(Foo.DESCRIPTOR): 11593 any.Unpack(foo) 11594 ... 11595 11596 Example 4: Pack and unpack a message in Go 11597 11598 foo := &pb.Foo{...} 11599 any, err := anypb.New(foo) 11600 if err != nil { 11601 ... 11602 } 11603 ... 11604 foo := &pb.Foo{} 11605 if err := any.UnmarshalTo(foo); err != nil { 11606 ... 11607 } 11608 11609 The pack methods provided by protobuf library will by 11610 default use 11611 11612 'type.googleapis.com/full.type.name' as the type URL and 11613 the unpack 11614 11615 methods only use the fully qualified type name after the 11616 last '/' 11617 11618 in the type URL, for example "foo.bar.com/x/y.z" will 11619 yield type 11620 11621 name "y.z". 11622 11623 11624 JSON 11625 11626 11627 The JSON representation of an `Any` value uses the 11628 regular 11629 11630 representation of the deserialized, embedded message, 11631 with an 11632 11633 additional field `@type` which contains the type URL. 11634 Example: 11635 11636 package google.profile; 11637 message Person { 11638 string first_name = 1; 11639 string last_name = 2; 11640 } 11641 11642 { 11643 "@type": "type.googleapis.com/google.profile.Person", 11644 "firstName": <string>, 11645 "lastName": <string> 11646 } 11647 11648 If the embedded message type is well-known and has a 11649 custom JSON 11650 11651 representation, that representation will be embedded 11652 adding a field 11653 11654 `value` which holds the custom JSON in addition to the 11655 `@type` 11656 11657 field. Example (for message 11658 [google.protobuf.Duration][]): 11659 11660 { 11661 "@type": "type.googleapis.com/google.protobuf.Duration", 11662 "value": "1.212s" 11663 } 11664 status: 11665 description: status defines the proposal status. 11666 type: string 11667 enum: 11668 - PROPOSAL_STATUS_UNSPECIFIED 11669 - PROPOSAL_STATUS_DEPOSIT_PERIOD 11670 - PROPOSAL_STATUS_VOTING_PERIOD 11671 - PROPOSAL_STATUS_PASSED 11672 - PROPOSAL_STATUS_REJECTED 11673 - PROPOSAL_STATUS_FAILED 11674 default: PROPOSAL_STATUS_UNSPECIFIED 11675 final_tally_result: 11676 description: >- 11677 final_tally_result is the final tally result of the 11678 proposal. When 11679 11680 querying a proposal via gRPC, this field is not 11681 populated until the 11682 11683 proposal's voting period has ended. 11684 type: object 11685 properties: 11686 'yes': 11687 type: string 11688 description: yes is the number of yes votes on a proposal. 11689 abstain: 11690 type: string 11691 description: >- 11692 abstain is the number of abstain votes on a 11693 proposal. 11694 'no': 11695 type: string 11696 description: no is the number of no votes on a proposal. 11697 no_with_veto: 11698 type: string 11699 description: >- 11700 no_with_veto is the number of no with veto votes on 11701 a proposal. 11702 submit_time: 11703 type: string 11704 format: date-time 11705 description: submit_time is the time of proposal submission. 11706 deposit_end_time: 11707 type: string 11708 format: date-time 11709 description: deposit_end_time is the end time for deposition. 11710 total_deposit: 11711 type: array 11712 items: 11713 type: object 11714 properties: 11715 denom: 11716 type: string 11717 amount: 11718 type: string 11719 description: >- 11720 Coin defines a token with a denomination and an 11721 amount. 11722 11723 11724 NOTE: The amount field is an Int which implements the 11725 custom method 11726 11727 signatures required by gogoproto. 11728 description: total_deposit is the total deposit on the proposal. 11729 voting_start_time: 11730 type: string 11731 format: date-time 11732 description: >- 11733 voting_start_time is the starting time to vote on a 11734 proposal. 11735 voting_end_time: 11736 type: string 11737 format: date-time 11738 description: voting_end_time is the end time of voting on a proposal. 11739 description: >- 11740 Proposal defines the core field members of a governance 11741 proposal. 11742 description: proposals defines all the requested governance proposals. 11743 pagination: 11744 description: pagination defines the pagination in the response. 11745 type: object 11746 properties: 11747 next_key: 11748 type: string 11749 format: byte 11750 description: |- 11751 next_key is the key to be passed to PageRequest.key to 11752 query the next page most efficiently. It will be empty if 11753 there are no more results. 11754 total: 11755 type: string 11756 format: uint64 11757 title: >- 11758 total is total number of results available if 11759 PageRequest.count_total 11760 11761 was set, its value is undefined otherwise 11762 description: >- 11763 QueryProposalsResponse is the response type for the 11764 Query/Proposals RPC 11765 11766 method. 11767 default: 11768 description: An unexpected error response. 11769 schema: 11770 type: object 11771 properties: 11772 error: 11773 type: string 11774 code: 11775 type: integer 11776 format: int32 11777 message: 11778 type: string 11779 details: 11780 type: array 11781 items: 11782 type: object 11783 properties: 11784 type_url: 11785 type: string 11786 description: >- 11787 A URL/resource name that uniquely identifies the type of 11788 the serialized 11789 11790 protocol buffer message. This string must contain at 11791 least 11792 11793 one "/" character. The last segment of the URL's path 11794 must represent 11795 11796 the fully qualified name of the type (as in 11797 11798 `path/google.protobuf.Duration`). The name should be in 11799 a canonical form 11800 11801 (e.g., leading "." is not accepted). 11802 11803 11804 In practice, teams usually precompile into the binary 11805 all types that they 11806 11807 expect it to use in the context of Any. However, for 11808 URLs which use the 11809 11810 scheme `http`, `https`, or no scheme, one can optionally 11811 set up a type 11812 11813 server that maps type URLs to message definitions as 11814 follows: 11815 11816 11817 * If no scheme is provided, `https` is assumed. 11818 11819 * An HTTP GET on the URL must yield a 11820 [google.protobuf.Type][] 11821 value in binary format, or produce an error. 11822 * Applications are allowed to cache lookup results based 11823 on the 11824 URL, or have them precompiled into a binary to avoid any 11825 lookup. Therefore, binary compatibility needs to be preserved 11826 on changes to types. (Use versioned type names to manage 11827 breaking changes.) 11828 11829 Note: this functionality is not currently available in 11830 the official 11831 11832 protobuf release, and it is not used for type URLs 11833 beginning with 11834 11835 type.googleapis.com. 11836 11837 11838 Schemes other than `http`, `https` (or the empty scheme) 11839 might be 11840 11841 used with implementation specific semantics. 11842 value: 11843 type: string 11844 format: byte 11845 description: >- 11846 Must be a valid serialized protocol buffer of the above 11847 specified type. 11848 description: >- 11849 `Any` contains an arbitrary serialized protocol buffer 11850 message along with a 11851 11852 URL that describes the type of the serialized message. 11853 11854 11855 Protobuf library provides support to pack/unpack Any values 11856 in the form 11857 11858 of utility functions or additional generated methods of the 11859 Any type. 11860 11861 11862 Example 1: Pack and unpack a message in C++. 11863 11864 Foo foo = ...; 11865 Any any; 11866 any.PackFrom(foo); 11867 ... 11868 if (any.UnpackTo(&foo)) { 11869 ... 11870 } 11871 11872 Example 2: Pack and unpack a message in Java. 11873 11874 Foo foo = ...; 11875 Any any = Any.pack(foo); 11876 ... 11877 if (any.is(Foo.class)) { 11878 foo = any.unpack(Foo.class); 11879 } 11880 // or ... 11881 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 11882 foo = any.unpack(Foo.getDefaultInstance()); 11883 } 11884 11885 Example 3: Pack and unpack a message in Python. 11886 11887 foo = Foo(...) 11888 any = Any() 11889 any.Pack(foo) 11890 ... 11891 if any.Is(Foo.DESCRIPTOR): 11892 any.Unpack(foo) 11893 ... 11894 11895 Example 4: Pack and unpack a message in Go 11896 11897 foo := &pb.Foo{...} 11898 any, err := anypb.New(foo) 11899 if err != nil { 11900 ... 11901 } 11902 ... 11903 foo := &pb.Foo{} 11904 if err := any.UnmarshalTo(foo); err != nil { 11905 ... 11906 } 11907 11908 The pack methods provided by protobuf library will by 11909 default use 11910 11911 'type.googleapis.com/full.type.name' as the type URL and the 11912 unpack 11913 11914 methods only use the fully qualified type name after the 11915 last '/' 11916 11917 in the type URL, for example "foo.bar.com/x/y.z" will yield 11918 type 11919 11920 name "y.z". 11921 11922 11923 JSON 11924 11925 11926 The JSON representation of an `Any` value uses the regular 11927 11928 representation of the deserialized, embedded message, with 11929 an 11930 11931 additional field `@type` which contains the type URL. 11932 Example: 11933 11934 package google.profile; 11935 message Person { 11936 string first_name = 1; 11937 string last_name = 2; 11938 } 11939 11940 { 11941 "@type": "type.googleapis.com/google.profile.Person", 11942 "firstName": <string>, 11943 "lastName": <string> 11944 } 11945 11946 If the embedded message type is well-known and has a custom 11947 JSON 11948 11949 representation, that representation will be embedded adding 11950 a field 11951 11952 `value` which holds the custom JSON in addition to the 11953 `@type` 11954 11955 field. Example (for message [google.protobuf.Duration][]): 11956 11957 { 11958 "@type": "type.googleapis.com/google.protobuf.Duration", 11959 "value": "1.212s" 11960 } 11961 parameters: 11962 - name: proposal_status 11963 description: |- 11964 proposal_status defines the status of the proposals. 11965 11966 - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. 11967 - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit 11968 period. 11969 - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting 11970 period. 11971 - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has 11972 passed. 11973 - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has 11974 been rejected. 11975 - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has 11976 failed. 11977 in: query 11978 required: false 11979 type: string 11980 enum: 11981 - PROPOSAL_STATUS_UNSPECIFIED 11982 - PROPOSAL_STATUS_DEPOSIT_PERIOD 11983 - PROPOSAL_STATUS_VOTING_PERIOD 11984 - PROPOSAL_STATUS_PASSED 11985 - PROPOSAL_STATUS_REJECTED 11986 - PROPOSAL_STATUS_FAILED 11987 default: PROPOSAL_STATUS_UNSPECIFIED 11988 - name: voter 11989 description: voter defines the voter address for the proposals. 11990 in: query 11991 required: false 11992 type: string 11993 - name: depositor 11994 description: depositor defines the deposit addresses from the proposals. 11995 in: query 11996 required: false 11997 type: string 11998 - name: pagination.key 11999 description: |- 12000 key is a value returned in PageResponse.next_key to begin 12001 querying the next page most efficiently. Only one of offset or key 12002 should be set. 12003 in: query 12004 required: false 12005 type: string 12006 format: byte 12007 - name: pagination.offset 12008 description: >- 12009 offset is a numeric offset that can be used when key is unavailable. 12010 12011 It is less efficient than using key. Only one of offset or key 12012 should 12013 12014 be set. 12015 in: query 12016 required: false 12017 type: string 12018 format: uint64 12019 - name: pagination.limit 12020 description: >- 12021 limit is the total number of results to be returned in the result 12022 page. 12023 12024 If left empty it will default to a value to be set by each app. 12025 in: query 12026 required: false 12027 type: string 12028 format: uint64 12029 - name: pagination.count_total 12030 description: >- 12031 count_total is set to true to indicate that the result set should 12032 include 12033 12034 a count of the total number of items available for pagination in 12035 UIs. 12036 12037 count_total is only respected when offset is used. It is ignored 12038 when key 12039 12040 is set. 12041 in: query 12042 required: false 12043 type: boolean 12044 - name: pagination.reverse 12045 description: >- 12046 reverse is set to true if results are to be returned in the 12047 descending order. 12048 12049 12050 Since: cosmos-sdk 0.43 12051 in: query 12052 required: false 12053 type: boolean 12054 tags: 12055 - Query 12056 /cosmos/gov/v1beta1/proposals/{proposal_id}: 12057 get: 12058 summary: Proposal queries proposal details based on ProposalID. 12059 operationId: Proposal 12060 responses: 12061 '200': 12062 description: A successful response. 12063 schema: 12064 type: object 12065 properties: 12066 proposal: 12067 type: object 12068 properties: 12069 proposal_id: 12070 type: string 12071 format: uint64 12072 description: proposal_id defines the unique id of the proposal. 12073 content: 12074 type: object 12075 properties: 12076 type_url: 12077 type: string 12078 description: >- 12079 A URL/resource name that uniquely identifies the type 12080 of the serialized 12081 12082 protocol buffer message. This string must contain at 12083 least 12084 12085 one "/" character. The last segment of the URL's path 12086 must represent 12087 12088 the fully qualified name of the type (as in 12089 12090 `path/google.protobuf.Duration`). The name should be 12091 in a canonical form 12092 12093 (e.g., leading "." is not accepted). 12094 12095 12096 In practice, teams usually precompile into the binary 12097 all types that they 12098 12099 expect it to use in the context of Any. However, for 12100 URLs which use the 12101 12102 scheme `http`, `https`, or no scheme, one can 12103 optionally set up a type 12104 12105 server that maps type URLs to message definitions as 12106 follows: 12107 12108 12109 * If no scheme is provided, `https` is assumed. 12110 12111 * An HTTP GET on the URL must yield a 12112 [google.protobuf.Type][] 12113 value in binary format, or produce an error. 12114 * Applications are allowed to cache lookup results 12115 based on the 12116 URL, or have them precompiled into a binary to avoid any 12117 lookup. Therefore, binary compatibility needs to be preserved 12118 on changes to types. (Use versioned type names to manage 12119 breaking changes.) 12120 12121 Note: this functionality is not currently available in 12122 the official 12123 12124 protobuf release, and it is not used for type URLs 12125 beginning with 12126 12127 type.googleapis.com. 12128 12129 12130 Schemes other than `http`, `https` (or the empty 12131 scheme) might be 12132 12133 used with implementation specific semantics. 12134 value: 12135 type: string 12136 format: byte 12137 description: >- 12138 Must be a valid serialized protocol buffer of the 12139 above specified type. 12140 description: >- 12141 `Any` contains an arbitrary serialized protocol buffer 12142 message along with a 12143 12144 URL that describes the type of the serialized message. 12145 12146 12147 Protobuf library provides support to pack/unpack Any 12148 values in the form 12149 12150 of utility functions or additional generated methods of 12151 the Any type. 12152 12153 12154 Example 1: Pack and unpack a message in C++. 12155 12156 Foo foo = ...; 12157 Any any; 12158 any.PackFrom(foo); 12159 ... 12160 if (any.UnpackTo(&foo)) { 12161 ... 12162 } 12163 12164 Example 2: Pack and unpack a message in Java. 12165 12166 Foo foo = ...; 12167 Any any = Any.pack(foo); 12168 ... 12169 if (any.is(Foo.class)) { 12170 foo = any.unpack(Foo.class); 12171 } 12172 // or ... 12173 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 12174 foo = any.unpack(Foo.getDefaultInstance()); 12175 } 12176 12177 Example 3: Pack and unpack a message in Python. 12178 12179 foo = Foo(...) 12180 any = Any() 12181 any.Pack(foo) 12182 ... 12183 if any.Is(Foo.DESCRIPTOR): 12184 any.Unpack(foo) 12185 ... 12186 12187 Example 4: Pack and unpack a message in Go 12188 12189 foo := &pb.Foo{...} 12190 any, err := anypb.New(foo) 12191 if err != nil { 12192 ... 12193 } 12194 ... 12195 foo := &pb.Foo{} 12196 if err := any.UnmarshalTo(foo); err != nil { 12197 ... 12198 } 12199 12200 The pack methods provided by protobuf library will by 12201 default use 12202 12203 'type.googleapis.com/full.type.name' as the type URL and 12204 the unpack 12205 12206 methods only use the fully qualified type name after the 12207 last '/' 12208 12209 in the type URL, for example "foo.bar.com/x/y.z" will 12210 yield type 12211 12212 name "y.z". 12213 12214 12215 JSON 12216 12217 12218 The JSON representation of an `Any` value uses the regular 12219 12220 representation of the deserialized, embedded message, with 12221 an 12222 12223 additional field `@type` which contains the type URL. 12224 Example: 12225 12226 package google.profile; 12227 message Person { 12228 string first_name = 1; 12229 string last_name = 2; 12230 } 12231 12232 { 12233 "@type": "type.googleapis.com/google.profile.Person", 12234 "firstName": <string>, 12235 "lastName": <string> 12236 } 12237 12238 If the embedded message type is well-known and has a 12239 custom JSON 12240 12241 representation, that representation will be embedded 12242 adding a field 12243 12244 `value` which holds the custom JSON in addition to the 12245 `@type` 12246 12247 field. Example (for message [google.protobuf.Duration][]): 12248 12249 { 12250 "@type": "type.googleapis.com/google.protobuf.Duration", 12251 "value": "1.212s" 12252 } 12253 status: 12254 description: status defines the proposal status. 12255 type: string 12256 enum: 12257 - PROPOSAL_STATUS_UNSPECIFIED 12258 - PROPOSAL_STATUS_DEPOSIT_PERIOD 12259 - PROPOSAL_STATUS_VOTING_PERIOD 12260 - PROPOSAL_STATUS_PASSED 12261 - PROPOSAL_STATUS_REJECTED 12262 - PROPOSAL_STATUS_FAILED 12263 default: PROPOSAL_STATUS_UNSPECIFIED 12264 final_tally_result: 12265 description: >- 12266 final_tally_result is the final tally result of the 12267 proposal. When 12268 12269 querying a proposal via gRPC, this field is not populated 12270 until the 12271 12272 proposal's voting period has ended. 12273 type: object 12274 properties: 12275 'yes': 12276 type: string 12277 description: yes is the number of yes votes on a proposal. 12278 abstain: 12279 type: string 12280 description: abstain is the number of abstain votes on a proposal. 12281 'no': 12282 type: string 12283 description: no is the number of no votes on a proposal. 12284 no_with_veto: 12285 type: string 12286 description: >- 12287 no_with_veto is the number of no with veto votes on a 12288 proposal. 12289 submit_time: 12290 type: string 12291 format: date-time 12292 description: submit_time is the time of proposal submission. 12293 deposit_end_time: 12294 type: string 12295 format: date-time 12296 description: deposit_end_time is the end time for deposition. 12297 total_deposit: 12298 type: array 12299 items: 12300 type: object 12301 properties: 12302 denom: 12303 type: string 12304 amount: 12305 type: string 12306 description: >- 12307 Coin defines a token with a denomination and an amount. 12308 12309 12310 NOTE: The amount field is an Int which implements the 12311 custom method 12312 12313 signatures required by gogoproto. 12314 description: total_deposit is the total deposit on the proposal. 12315 voting_start_time: 12316 type: string 12317 format: date-time 12318 description: >- 12319 voting_start_time is the starting time to vote on a 12320 proposal. 12321 voting_end_time: 12322 type: string 12323 format: date-time 12324 description: voting_end_time is the end time of voting on a proposal. 12325 description: >- 12326 Proposal defines the core field members of a governance 12327 proposal. 12328 description: >- 12329 QueryProposalResponse is the response type for the Query/Proposal 12330 RPC method. 12331 default: 12332 description: An unexpected error response. 12333 schema: 12334 type: object 12335 properties: 12336 error: 12337 type: string 12338 code: 12339 type: integer 12340 format: int32 12341 message: 12342 type: string 12343 details: 12344 type: array 12345 items: 12346 type: object 12347 properties: 12348 type_url: 12349 type: string 12350 description: >- 12351 A URL/resource name that uniquely identifies the type of 12352 the serialized 12353 12354 protocol buffer message. This string must contain at 12355 least 12356 12357 one "/" character. The last segment of the URL's path 12358 must represent 12359 12360 the fully qualified name of the type (as in 12361 12362 `path/google.protobuf.Duration`). The name should be in 12363 a canonical form 12364 12365 (e.g., leading "." is not accepted). 12366 12367 12368 In practice, teams usually precompile into the binary 12369 all types that they 12370 12371 expect it to use in the context of Any. However, for 12372 URLs which use the 12373 12374 scheme `http`, `https`, or no scheme, one can optionally 12375 set up a type 12376 12377 server that maps type URLs to message definitions as 12378 follows: 12379 12380 12381 * If no scheme is provided, `https` is assumed. 12382 12383 * An HTTP GET on the URL must yield a 12384 [google.protobuf.Type][] 12385 value in binary format, or produce an error. 12386 * Applications are allowed to cache lookup results based 12387 on the 12388 URL, or have them precompiled into a binary to avoid any 12389 lookup. Therefore, binary compatibility needs to be preserved 12390 on changes to types. (Use versioned type names to manage 12391 breaking changes.) 12392 12393 Note: this functionality is not currently available in 12394 the official 12395 12396 protobuf release, and it is not used for type URLs 12397 beginning with 12398 12399 type.googleapis.com. 12400 12401 12402 Schemes other than `http`, `https` (or the empty scheme) 12403 might be 12404 12405 used with implementation specific semantics. 12406 value: 12407 type: string 12408 format: byte 12409 description: >- 12410 Must be a valid serialized protocol buffer of the above 12411 specified type. 12412 description: >- 12413 `Any` contains an arbitrary serialized protocol buffer 12414 message along with a 12415 12416 URL that describes the type of the serialized message. 12417 12418 12419 Protobuf library provides support to pack/unpack Any values 12420 in the form 12421 12422 of utility functions or additional generated methods of the 12423 Any type. 12424 12425 12426 Example 1: Pack and unpack a message in C++. 12427 12428 Foo foo = ...; 12429 Any any; 12430 any.PackFrom(foo); 12431 ... 12432 if (any.UnpackTo(&foo)) { 12433 ... 12434 } 12435 12436 Example 2: Pack and unpack a message in Java. 12437 12438 Foo foo = ...; 12439 Any any = Any.pack(foo); 12440 ... 12441 if (any.is(Foo.class)) { 12442 foo = any.unpack(Foo.class); 12443 } 12444 // or ... 12445 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 12446 foo = any.unpack(Foo.getDefaultInstance()); 12447 } 12448 12449 Example 3: Pack and unpack a message in Python. 12450 12451 foo = Foo(...) 12452 any = Any() 12453 any.Pack(foo) 12454 ... 12455 if any.Is(Foo.DESCRIPTOR): 12456 any.Unpack(foo) 12457 ... 12458 12459 Example 4: Pack and unpack a message in Go 12460 12461 foo := &pb.Foo{...} 12462 any, err := anypb.New(foo) 12463 if err != nil { 12464 ... 12465 } 12466 ... 12467 foo := &pb.Foo{} 12468 if err := any.UnmarshalTo(foo); err != nil { 12469 ... 12470 } 12471 12472 The pack methods provided by protobuf library will by 12473 default use 12474 12475 'type.googleapis.com/full.type.name' as the type URL and the 12476 unpack 12477 12478 methods only use the fully qualified type name after the 12479 last '/' 12480 12481 in the type URL, for example "foo.bar.com/x/y.z" will yield 12482 type 12483 12484 name "y.z". 12485 12486 12487 JSON 12488 12489 12490 The JSON representation of an `Any` value uses the regular 12491 12492 representation of the deserialized, embedded message, with 12493 an 12494 12495 additional field `@type` which contains the type URL. 12496 Example: 12497 12498 package google.profile; 12499 message Person { 12500 string first_name = 1; 12501 string last_name = 2; 12502 } 12503 12504 { 12505 "@type": "type.googleapis.com/google.profile.Person", 12506 "firstName": <string>, 12507 "lastName": <string> 12508 } 12509 12510 If the embedded message type is well-known and has a custom 12511 JSON 12512 12513 representation, that representation will be embedded adding 12514 a field 12515 12516 `value` which holds the custom JSON in addition to the 12517 `@type` 12518 12519 field. Example (for message [google.protobuf.Duration][]): 12520 12521 { 12522 "@type": "type.googleapis.com/google.protobuf.Duration", 12523 "value": "1.212s" 12524 } 12525 parameters: 12526 - name: proposal_id 12527 description: proposal_id defines the unique id of the proposal. 12528 in: path 12529 required: true 12530 type: string 12531 format: uint64 12532 tags: 12533 - Query 12534 /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits: 12535 get: 12536 summary: Deposits queries all deposits of a single proposal. 12537 operationId: Deposits 12538 responses: 12539 '200': 12540 description: A successful response. 12541 schema: 12542 type: object 12543 properties: 12544 deposits: 12545 type: array 12546 items: 12547 type: object 12548 properties: 12549 proposal_id: 12550 type: string 12551 format: uint64 12552 description: proposal_id defines the unique id of the proposal. 12553 depositor: 12554 type: string 12555 description: >- 12556 depositor defines the deposit addresses from the 12557 proposals. 12558 amount: 12559 type: array 12560 items: 12561 type: object 12562 properties: 12563 denom: 12564 type: string 12565 amount: 12566 type: string 12567 description: >- 12568 Coin defines a token with a denomination and an 12569 amount. 12570 12571 12572 NOTE: The amount field is an Int which implements the 12573 custom method 12574 12575 signatures required by gogoproto. 12576 description: amount to be deposited by depositor. 12577 description: >- 12578 Deposit defines an amount deposited by an account address to 12579 an active 12580 12581 proposal. 12582 description: deposits defines the requested deposits. 12583 pagination: 12584 description: pagination defines the pagination in the response. 12585 type: object 12586 properties: 12587 next_key: 12588 type: string 12589 format: byte 12590 description: |- 12591 next_key is the key to be passed to PageRequest.key to 12592 query the next page most efficiently. It will be empty if 12593 there are no more results. 12594 total: 12595 type: string 12596 format: uint64 12597 title: >- 12598 total is total number of results available if 12599 PageRequest.count_total 12600 12601 was set, its value is undefined otherwise 12602 description: >- 12603 QueryDepositsResponse is the response type for the Query/Deposits 12604 RPC method. 12605 default: 12606 description: An unexpected error response. 12607 schema: 12608 type: object 12609 properties: 12610 error: 12611 type: string 12612 code: 12613 type: integer 12614 format: int32 12615 message: 12616 type: string 12617 details: 12618 type: array 12619 items: 12620 type: object 12621 properties: 12622 type_url: 12623 type: string 12624 description: >- 12625 A URL/resource name that uniquely identifies the type of 12626 the serialized 12627 12628 protocol buffer message. This string must contain at 12629 least 12630 12631 one "/" character. The last segment of the URL's path 12632 must represent 12633 12634 the fully qualified name of the type (as in 12635 12636 `path/google.protobuf.Duration`). The name should be in 12637 a canonical form 12638 12639 (e.g., leading "." is not accepted). 12640 12641 12642 In practice, teams usually precompile into the binary 12643 all types that they 12644 12645 expect it to use in the context of Any. However, for 12646 URLs which use the 12647 12648 scheme `http`, `https`, or no scheme, one can optionally 12649 set up a type 12650 12651 server that maps type URLs to message definitions as 12652 follows: 12653 12654 12655 * If no scheme is provided, `https` is assumed. 12656 12657 * An HTTP GET on the URL must yield a 12658 [google.protobuf.Type][] 12659 value in binary format, or produce an error. 12660 * Applications are allowed to cache lookup results based 12661 on the 12662 URL, or have them precompiled into a binary to avoid any 12663 lookup. Therefore, binary compatibility needs to be preserved 12664 on changes to types. (Use versioned type names to manage 12665 breaking changes.) 12666 12667 Note: this functionality is not currently available in 12668 the official 12669 12670 protobuf release, and it is not used for type URLs 12671 beginning with 12672 12673 type.googleapis.com. 12674 12675 12676 Schemes other than `http`, `https` (or the empty scheme) 12677 might be 12678 12679 used with implementation specific semantics. 12680 value: 12681 type: string 12682 format: byte 12683 description: >- 12684 Must be a valid serialized protocol buffer of the above 12685 specified type. 12686 description: >- 12687 `Any` contains an arbitrary serialized protocol buffer 12688 message along with a 12689 12690 URL that describes the type of the serialized message. 12691 12692 12693 Protobuf library provides support to pack/unpack Any values 12694 in the form 12695 12696 of utility functions or additional generated methods of the 12697 Any type. 12698 12699 12700 Example 1: Pack and unpack a message in C++. 12701 12702 Foo foo = ...; 12703 Any any; 12704 any.PackFrom(foo); 12705 ... 12706 if (any.UnpackTo(&foo)) { 12707 ... 12708 } 12709 12710 Example 2: Pack and unpack a message in Java. 12711 12712 Foo foo = ...; 12713 Any any = Any.pack(foo); 12714 ... 12715 if (any.is(Foo.class)) { 12716 foo = any.unpack(Foo.class); 12717 } 12718 // or ... 12719 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 12720 foo = any.unpack(Foo.getDefaultInstance()); 12721 } 12722 12723 Example 3: Pack and unpack a message in Python. 12724 12725 foo = Foo(...) 12726 any = Any() 12727 any.Pack(foo) 12728 ... 12729 if any.Is(Foo.DESCRIPTOR): 12730 any.Unpack(foo) 12731 ... 12732 12733 Example 4: Pack and unpack a message in Go 12734 12735 foo := &pb.Foo{...} 12736 any, err := anypb.New(foo) 12737 if err != nil { 12738 ... 12739 } 12740 ... 12741 foo := &pb.Foo{} 12742 if err := any.UnmarshalTo(foo); err != nil { 12743 ... 12744 } 12745 12746 The pack methods provided by protobuf library will by 12747 default use 12748 12749 'type.googleapis.com/full.type.name' as the type URL and the 12750 unpack 12751 12752 methods only use the fully qualified type name after the 12753 last '/' 12754 12755 in the type URL, for example "foo.bar.com/x/y.z" will yield 12756 type 12757 12758 name "y.z". 12759 12760 12761 JSON 12762 12763 12764 The JSON representation of an `Any` value uses the regular 12765 12766 representation of the deserialized, embedded message, with 12767 an 12768 12769 additional field `@type` which contains the type URL. 12770 Example: 12771 12772 package google.profile; 12773 message Person { 12774 string first_name = 1; 12775 string last_name = 2; 12776 } 12777 12778 { 12779 "@type": "type.googleapis.com/google.profile.Person", 12780 "firstName": <string>, 12781 "lastName": <string> 12782 } 12783 12784 If the embedded message type is well-known and has a custom 12785 JSON 12786 12787 representation, that representation will be embedded adding 12788 a field 12789 12790 `value` which holds the custom JSON in addition to the 12791 `@type` 12792 12793 field. Example (for message [google.protobuf.Duration][]): 12794 12795 { 12796 "@type": "type.googleapis.com/google.protobuf.Duration", 12797 "value": "1.212s" 12798 } 12799 parameters: 12800 - name: proposal_id 12801 description: proposal_id defines the unique id of the proposal. 12802 in: path 12803 required: true 12804 type: string 12805 format: uint64 12806 - name: pagination.key 12807 description: |- 12808 key is a value returned in PageResponse.next_key to begin 12809 querying the next page most efficiently. Only one of offset or key 12810 should be set. 12811 in: query 12812 required: false 12813 type: string 12814 format: byte 12815 - name: pagination.offset 12816 description: >- 12817 offset is a numeric offset that can be used when key is unavailable. 12818 12819 It is less efficient than using key. Only one of offset or key 12820 should 12821 12822 be set. 12823 in: query 12824 required: false 12825 type: string 12826 format: uint64 12827 - name: pagination.limit 12828 description: >- 12829 limit is the total number of results to be returned in the result 12830 page. 12831 12832 If left empty it will default to a value to be set by each app. 12833 in: query 12834 required: false 12835 type: string 12836 format: uint64 12837 - name: pagination.count_total 12838 description: >- 12839 count_total is set to true to indicate that the result set should 12840 include 12841 12842 a count of the total number of items available for pagination in 12843 UIs. 12844 12845 count_total is only respected when offset is used. It is ignored 12846 when key 12847 12848 is set. 12849 in: query 12850 required: false 12851 type: boolean 12852 - name: pagination.reverse 12853 description: >- 12854 reverse is set to true if results are to be returned in the 12855 descending order. 12856 12857 12858 Since: cosmos-sdk 0.43 12859 in: query 12860 required: false 12861 type: boolean 12862 tags: 12863 - Query 12864 /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}: 12865 get: 12866 summary: >- 12867 Deposit queries single deposit information based on proposalID, 12868 depositor address. 12869 operationId: Deposit 12870 responses: 12871 '200': 12872 description: A successful response. 12873 schema: 12874 type: object 12875 properties: 12876 deposit: 12877 type: object 12878 properties: 12879 proposal_id: 12880 type: string 12881 format: uint64 12882 description: proposal_id defines the unique id of the proposal. 12883 depositor: 12884 type: string 12885 description: >- 12886 depositor defines the deposit addresses from the 12887 proposals. 12888 amount: 12889 type: array 12890 items: 12891 type: object 12892 properties: 12893 denom: 12894 type: string 12895 amount: 12896 type: string 12897 description: >- 12898 Coin defines a token with a denomination and an amount. 12899 12900 12901 NOTE: The amount field is an Int which implements the 12902 custom method 12903 12904 signatures required by gogoproto. 12905 description: amount to be deposited by depositor. 12906 description: >- 12907 Deposit defines an amount deposited by an account address to 12908 an active 12909 12910 proposal. 12911 description: >- 12912 QueryDepositResponse is the response type for the Query/Deposit 12913 RPC method. 12914 default: 12915 description: An unexpected error response. 12916 schema: 12917 type: object 12918 properties: 12919 error: 12920 type: string 12921 code: 12922 type: integer 12923 format: int32 12924 message: 12925 type: string 12926 details: 12927 type: array 12928 items: 12929 type: object 12930 properties: 12931 type_url: 12932 type: string 12933 description: >- 12934 A URL/resource name that uniquely identifies the type of 12935 the serialized 12936 12937 protocol buffer message. This string must contain at 12938 least 12939 12940 one "/" character. The last segment of the URL's path 12941 must represent 12942 12943 the fully qualified name of the type (as in 12944 12945 `path/google.protobuf.Duration`). The name should be in 12946 a canonical form 12947 12948 (e.g., leading "." is not accepted). 12949 12950 12951 In practice, teams usually precompile into the binary 12952 all types that they 12953 12954 expect it to use in the context of Any. However, for 12955 URLs which use the 12956 12957 scheme `http`, `https`, or no scheme, one can optionally 12958 set up a type 12959 12960 server that maps type URLs to message definitions as 12961 follows: 12962 12963 12964 * If no scheme is provided, `https` is assumed. 12965 12966 * An HTTP GET on the URL must yield a 12967 [google.protobuf.Type][] 12968 value in binary format, or produce an error. 12969 * Applications are allowed to cache lookup results based 12970 on the 12971 URL, or have them precompiled into a binary to avoid any 12972 lookup. Therefore, binary compatibility needs to be preserved 12973 on changes to types. (Use versioned type names to manage 12974 breaking changes.) 12975 12976 Note: this functionality is not currently available in 12977 the official 12978 12979 protobuf release, and it is not used for type URLs 12980 beginning with 12981 12982 type.googleapis.com. 12983 12984 12985 Schemes other than `http`, `https` (or the empty scheme) 12986 might be 12987 12988 used with implementation specific semantics. 12989 value: 12990 type: string 12991 format: byte 12992 description: >- 12993 Must be a valid serialized protocol buffer of the above 12994 specified type. 12995 description: >- 12996 `Any` contains an arbitrary serialized protocol buffer 12997 message along with a 12998 12999 URL that describes the type of the serialized message. 13000 13001 13002 Protobuf library provides support to pack/unpack Any values 13003 in the form 13004 13005 of utility functions or additional generated methods of the 13006 Any type. 13007 13008 13009 Example 1: Pack and unpack a message in C++. 13010 13011 Foo foo = ...; 13012 Any any; 13013 any.PackFrom(foo); 13014 ... 13015 if (any.UnpackTo(&foo)) { 13016 ... 13017 } 13018 13019 Example 2: Pack and unpack a message in Java. 13020 13021 Foo foo = ...; 13022 Any any = Any.pack(foo); 13023 ... 13024 if (any.is(Foo.class)) { 13025 foo = any.unpack(Foo.class); 13026 } 13027 // or ... 13028 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 13029 foo = any.unpack(Foo.getDefaultInstance()); 13030 } 13031 13032 Example 3: Pack and unpack a message in Python. 13033 13034 foo = Foo(...) 13035 any = Any() 13036 any.Pack(foo) 13037 ... 13038 if any.Is(Foo.DESCRIPTOR): 13039 any.Unpack(foo) 13040 ... 13041 13042 Example 4: Pack and unpack a message in Go 13043 13044 foo := &pb.Foo{...} 13045 any, err := anypb.New(foo) 13046 if err != nil { 13047 ... 13048 } 13049 ... 13050 foo := &pb.Foo{} 13051 if err := any.UnmarshalTo(foo); err != nil { 13052 ... 13053 } 13054 13055 The pack methods provided by protobuf library will by 13056 default use 13057 13058 'type.googleapis.com/full.type.name' as the type URL and the 13059 unpack 13060 13061 methods only use the fully qualified type name after the 13062 last '/' 13063 13064 in the type URL, for example "foo.bar.com/x/y.z" will yield 13065 type 13066 13067 name "y.z". 13068 13069 13070 JSON 13071 13072 13073 The JSON representation of an `Any` value uses the regular 13074 13075 representation of the deserialized, embedded message, with 13076 an 13077 13078 additional field `@type` which contains the type URL. 13079 Example: 13080 13081 package google.profile; 13082 message Person { 13083 string first_name = 1; 13084 string last_name = 2; 13085 } 13086 13087 { 13088 "@type": "type.googleapis.com/google.profile.Person", 13089 "firstName": <string>, 13090 "lastName": <string> 13091 } 13092 13093 If the embedded message type is well-known and has a custom 13094 JSON 13095 13096 representation, that representation will be embedded adding 13097 a field 13098 13099 `value` which holds the custom JSON in addition to the 13100 `@type` 13101 13102 field. Example (for message [google.protobuf.Duration][]): 13103 13104 { 13105 "@type": "type.googleapis.com/google.protobuf.Duration", 13106 "value": "1.212s" 13107 } 13108 parameters: 13109 - name: proposal_id 13110 description: proposal_id defines the unique id of the proposal. 13111 in: path 13112 required: true 13113 type: string 13114 format: uint64 13115 - name: depositor 13116 description: depositor defines the deposit addresses from the proposals. 13117 in: path 13118 required: true 13119 type: string 13120 tags: 13121 - Query 13122 /cosmos/gov/v1beta1/proposals/{proposal_id}/tally: 13123 get: 13124 summary: TallyResult queries the tally of a proposal vote. 13125 operationId: TallyResult 13126 responses: 13127 '200': 13128 description: A successful response. 13129 schema: 13130 type: object 13131 properties: 13132 tally: 13133 description: tally defines the requested tally. 13134 type: object 13135 properties: 13136 'yes': 13137 type: string 13138 description: yes is the number of yes votes on a proposal. 13139 abstain: 13140 type: string 13141 description: abstain is the number of abstain votes on a proposal. 13142 'no': 13143 type: string 13144 description: no is the number of no votes on a proposal. 13145 no_with_veto: 13146 type: string 13147 description: >- 13148 no_with_veto is the number of no with veto votes on a 13149 proposal. 13150 description: >- 13151 QueryTallyResultResponse is the response type for the Query/Tally 13152 RPC method. 13153 default: 13154 description: An unexpected error response. 13155 schema: 13156 type: object 13157 properties: 13158 error: 13159 type: string 13160 code: 13161 type: integer 13162 format: int32 13163 message: 13164 type: string 13165 details: 13166 type: array 13167 items: 13168 type: object 13169 properties: 13170 type_url: 13171 type: string 13172 description: >- 13173 A URL/resource name that uniquely identifies the type of 13174 the serialized 13175 13176 protocol buffer message. This string must contain at 13177 least 13178 13179 one "/" character. The last segment of the URL's path 13180 must represent 13181 13182 the fully qualified name of the type (as in 13183 13184 `path/google.protobuf.Duration`). The name should be in 13185 a canonical form 13186 13187 (e.g., leading "." is not accepted). 13188 13189 13190 In practice, teams usually precompile into the binary 13191 all types that they 13192 13193 expect it to use in the context of Any. However, for 13194 URLs which use the 13195 13196 scheme `http`, `https`, or no scheme, one can optionally 13197 set up a type 13198 13199 server that maps type URLs to message definitions as 13200 follows: 13201 13202 13203 * If no scheme is provided, `https` is assumed. 13204 13205 * An HTTP GET on the URL must yield a 13206 [google.protobuf.Type][] 13207 value in binary format, or produce an error. 13208 * Applications are allowed to cache lookup results based 13209 on the 13210 URL, or have them precompiled into a binary to avoid any 13211 lookup. Therefore, binary compatibility needs to be preserved 13212 on changes to types. (Use versioned type names to manage 13213 breaking changes.) 13214 13215 Note: this functionality is not currently available in 13216 the official 13217 13218 protobuf release, and it is not used for type URLs 13219 beginning with 13220 13221 type.googleapis.com. 13222 13223 13224 Schemes other than `http`, `https` (or the empty scheme) 13225 might be 13226 13227 used with implementation specific semantics. 13228 value: 13229 type: string 13230 format: byte 13231 description: >- 13232 Must be a valid serialized protocol buffer of the above 13233 specified type. 13234 description: >- 13235 `Any` contains an arbitrary serialized protocol buffer 13236 message along with a 13237 13238 URL that describes the type of the serialized message. 13239 13240 13241 Protobuf library provides support to pack/unpack Any values 13242 in the form 13243 13244 of utility functions or additional generated methods of the 13245 Any type. 13246 13247 13248 Example 1: Pack and unpack a message in C++. 13249 13250 Foo foo = ...; 13251 Any any; 13252 any.PackFrom(foo); 13253 ... 13254 if (any.UnpackTo(&foo)) { 13255 ... 13256 } 13257 13258 Example 2: Pack and unpack a message in Java. 13259 13260 Foo foo = ...; 13261 Any any = Any.pack(foo); 13262 ... 13263 if (any.is(Foo.class)) { 13264 foo = any.unpack(Foo.class); 13265 } 13266 // or ... 13267 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 13268 foo = any.unpack(Foo.getDefaultInstance()); 13269 } 13270 13271 Example 3: Pack and unpack a message in Python. 13272 13273 foo = Foo(...) 13274 any = Any() 13275 any.Pack(foo) 13276 ... 13277 if any.Is(Foo.DESCRIPTOR): 13278 any.Unpack(foo) 13279 ... 13280 13281 Example 4: Pack and unpack a message in Go 13282 13283 foo := &pb.Foo{...} 13284 any, err := anypb.New(foo) 13285 if err != nil { 13286 ... 13287 } 13288 ... 13289 foo := &pb.Foo{} 13290 if err := any.UnmarshalTo(foo); err != nil { 13291 ... 13292 } 13293 13294 The pack methods provided by protobuf library will by 13295 default use 13296 13297 'type.googleapis.com/full.type.name' as the type URL and the 13298 unpack 13299 13300 methods only use the fully qualified type name after the 13301 last '/' 13302 13303 in the type URL, for example "foo.bar.com/x/y.z" will yield 13304 type 13305 13306 name "y.z". 13307 13308 13309 JSON 13310 13311 13312 The JSON representation of an `Any` value uses the regular 13313 13314 representation of the deserialized, embedded message, with 13315 an 13316 13317 additional field `@type` which contains the type URL. 13318 Example: 13319 13320 package google.profile; 13321 message Person { 13322 string first_name = 1; 13323 string last_name = 2; 13324 } 13325 13326 { 13327 "@type": "type.googleapis.com/google.profile.Person", 13328 "firstName": <string>, 13329 "lastName": <string> 13330 } 13331 13332 If the embedded message type is well-known and has a custom 13333 JSON 13334 13335 representation, that representation will be embedded adding 13336 a field 13337 13338 `value` which holds the custom JSON in addition to the 13339 `@type` 13340 13341 field. Example (for message [google.protobuf.Duration][]): 13342 13343 { 13344 "@type": "type.googleapis.com/google.protobuf.Duration", 13345 "value": "1.212s" 13346 } 13347 parameters: 13348 - name: proposal_id 13349 description: proposal_id defines the unique id of the proposal. 13350 in: path 13351 required: true 13352 type: string 13353 format: uint64 13354 tags: 13355 - Query 13356 /cosmos/gov/v1beta1/proposals/{proposal_id}/votes: 13357 get: 13358 summary: Votes queries votes of a given proposal. 13359 operationId: Votes 13360 responses: 13361 '200': 13362 description: A successful response. 13363 schema: 13364 type: object 13365 properties: 13366 votes: 13367 type: array 13368 items: 13369 type: object 13370 properties: 13371 proposal_id: 13372 type: string 13373 format: uint64 13374 description: proposal_id defines the unique id of the proposal. 13375 voter: 13376 type: string 13377 description: voter is the voter address of the proposal. 13378 option: 13379 description: >- 13380 Deprecated: Prefer to use `options` instead. This field 13381 is set in queries 13382 13383 if and only if `len(options) == 1` and that option has 13384 weight 1. In all 13385 13386 other cases, this field will default to 13387 VOTE_OPTION_UNSPECIFIED. 13388 type: string 13389 enum: 13390 - VOTE_OPTION_UNSPECIFIED 13391 - VOTE_OPTION_YES 13392 - VOTE_OPTION_ABSTAIN 13393 - VOTE_OPTION_NO 13394 - VOTE_OPTION_NO_WITH_VETO 13395 default: VOTE_OPTION_UNSPECIFIED 13396 options: 13397 type: array 13398 items: 13399 type: object 13400 properties: 13401 option: 13402 description: >- 13403 option defines the valid vote options, it must not 13404 contain duplicate vote options. 13405 type: string 13406 enum: 13407 - VOTE_OPTION_UNSPECIFIED 13408 - VOTE_OPTION_YES 13409 - VOTE_OPTION_ABSTAIN 13410 - VOTE_OPTION_NO 13411 - VOTE_OPTION_NO_WITH_VETO 13412 default: VOTE_OPTION_UNSPECIFIED 13413 weight: 13414 type: string 13415 description: >- 13416 weight is the vote weight associated with the vote 13417 option. 13418 description: >- 13419 WeightedVoteOption defines a unit of vote for vote 13420 split. 13421 13422 13423 Since: cosmos-sdk 0.43 13424 description: |- 13425 options is the weighted vote options. 13426 13427 Since: cosmos-sdk 0.43 13428 description: >- 13429 Vote defines a vote on a governance proposal. 13430 13431 A Vote consists of a proposal ID, the voter, and the vote 13432 option. 13433 description: votes defines the queried votes. 13434 pagination: 13435 description: pagination defines the pagination in the response. 13436 type: object 13437 properties: 13438 next_key: 13439 type: string 13440 format: byte 13441 description: |- 13442 next_key is the key to be passed to PageRequest.key to 13443 query the next page most efficiently. It will be empty if 13444 there are no more results. 13445 total: 13446 type: string 13447 format: uint64 13448 title: >- 13449 total is total number of results available if 13450 PageRequest.count_total 13451 13452 was set, its value is undefined otherwise 13453 description: >- 13454 QueryVotesResponse is the response type for the Query/Votes RPC 13455 method. 13456 default: 13457 description: An unexpected error response. 13458 schema: 13459 type: object 13460 properties: 13461 error: 13462 type: string 13463 code: 13464 type: integer 13465 format: int32 13466 message: 13467 type: string 13468 details: 13469 type: array 13470 items: 13471 type: object 13472 properties: 13473 type_url: 13474 type: string 13475 description: >- 13476 A URL/resource name that uniquely identifies the type of 13477 the serialized 13478 13479 protocol buffer message. This string must contain at 13480 least 13481 13482 one "/" character. The last segment of the URL's path 13483 must represent 13484 13485 the fully qualified name of the type (as in 13486 13487 `path/google.protobuf.Duration`). The name should be in 13488 a canonical form 13489 13490 (e.g., leading "." is not accepted). 13491 13492 13493 In practice, teams usually precompile into the binary 13494 all types that they 13495 13496 expect it to use in the context of Any. However, for 13497 URLs which use the 13498 13499 scheme `http`, `https`, or no scheme, one can optionally 13500 set up a type 13501 13502 server that maps type URLs to message definitions as 13503 follows: 13504 13505 13506 * If no scheme is provided, `https` is assumed. 13507 13508 * An HTTP GET on the URL must yield a 13509 [google.protobuf.Type][] 13510 value in binary format, or produce an error. 13511 * Applications are allowed to cache lookup results based 13512 on the 13513 URL, or have them precompiled into a binary to avoid any 13514 lookup. Therefore, binary compatibility needs to be preserved 13515 on changes to types. (Use versioned type names to manage 13516 breaking changes.) 13517 13518 Note: this functionality is not currently available in 13519 the official 13520 13521 protobuf release, and it is not used for type URLs 13522 beginning with 13523 13524 type.googleapis.com. 13525 13526 13527 Schemes other than `http`, `https` (or the empty scheme) 13528 might be 13529 13530 used with implementation specific semantics. 13531 value: 13532 type: string 13533 format: byte 13534 description: >- 13535 Must be a valid serialized protocol buffer of the above 13536 specified type. 13537 description: >- 13538 `Any` contains an arbitrary serialized protocol buffer 13539 message along with a 13540 13541 URL that describes the type of the serialized message. 13542 13543 13544 Protobuf library provides support to pack/unpack Any values 13545 in the form 13546 13547 of utility functions or additional generated methods of the 13548 Any type. 13549 13550 13551 Example 1: Pack and unpack a message in C++. 13552 13553 Foo foo = ...; 13554 Any any; 13555 any.PackFrom(foo); 13556 ... 13557 if (any.UnpackTo(&foo)) { 13558 ... 13559 } 13560 13561 Example 2: Pack and unpack a message in Java. 13562 13563 Foo foo = ...; 13564 Any any = Any.pack(foo); 13565 ... 13566 if (any.is(Foo.class)) { 13567 foo = any.unpack(Foo.class); 13568 } 13569 // or ... 13570 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 13571 foo = any.unpack(Foo.getDefaultInstance()); 13572 } 13573 13574 Example 3: Pack and unpack a message in Python. 13575 13576 foo = Foo(...) 13577 any = Any() 13578 any.Pack(foo) 13579 ... 13580 if any.Is(Foo.DESCRIPTOR): 13581 any.Unpack(foo) 13582 ... 13583 13584 Example 4: Pack and unpack a message in Go 13585 13586 foo := &pb.Foo{...} 13587 any, err := anypb.New(foo) 13588 if err != nil { 13589 ... 13590 } 13591 ... 13592 foo := &pb.Foo{} 13593 if err := any.UnmarshalTo(foo); err != nil { 13594 ... 13595 } 13596 13597 The pack methods provided by protobuf library will by 13598 default use 13599 13600 'type.googleapis.com/full.type.name' as the type URL and the 13601 unpack 13602 13603 methods only use the fully qualified type name after the 13604 last '/' 13605 13606 in the type URL, for example "foo.bar.com/x/y.z" will yield 13607 type 13608 13609 name "y.z". 13610 13611 13612 JSON 13613 13614 13615 The JSON representation of an `Any` value uses the regular 13616 13617 representation of the deserialized, embedded message, with 13618 an 13619 13620 additional field `@type` which contains the type URL. 13621 Example: 13622 13623 package google.profile; 13624 message Person { 13625 string first_name = 1; 13626 string last_name = 2; 13627 } 13628 13629 { 13630 "@type": "type.googleapis.com/google.profile.Person", 13631 "firstName": <string>, 13632 "lastName": <string> 13633 } 13634 13635 If the embedded message type is well-known and has a custom 13636 JSON 13637 13638 representation, that representation will be embedded adding 13639 a field 13640 13641 `value` which holds the custom JSON in addition to the 13642 `@type` 13643 13644 field. Example (for message [google.protobuf.Duration][]): 13645 13646 { 13647 "@type": "type.googleapis.com/google.protobuf.Duration", 13648 "value": "1.212s" 13649 } 13650 parameters: 13651 - name: proposal_id 13652 description: proposal_id defines the unique id of the proposal. 13653 in: path 13654 required: true 13655 type: string 13656 format: uint64 13657 - name: pagination.key 13658 description: |- 13659 key is a value returned in PageResponse.next_key to begin 13660 querying the next page most efficiently. Only one of offset or key 13661 should be set. 13662 in: query 13663 required: false 13664 type: string 13665 format: byte 13666 - name: pagination.offset 13667 description: >- 13668 offset is a numeric offset that can be used when key is unavailable. 13669 13670 It is less efficient than using key. Only one of offset or key 13671 should 13672 13673 be set. 13674 in: query 13675 required: false 13676 type: string 13677 format: uint64 13678 - name: pagination.limit 13679 description: >- 13680 limit is the total number of results to be returned in the result 13681 page. 13682 13683 If left empty it will default to a value to be set by each app. 13684 in: query 13685 required: false 13686 type: string 13687 format: uint64 13688 - name: pagination.count_total 13689 description: >- 13690 count_total is set to true to indicate that the result set should 13691 include 13692 13693 a count of the total number of items available for pagination in 13694 UIs. 13695 13696 count_total is only respected when offset is used. It is ignored 13697 when key 13698 13699 is set. 13700 in: query 13701 required: false 13702 type: boolean 13703 - name: pagination.reverse 13704 description: >- 13705 reverse is set to true if results are to be returned in the 13706 descending order. 13707 13708 13709 Since: cosmos-sdk 0.43 13710 in: query 13711 required: false 13712 type: boolean 13713 tags: 13714 - Query 13715 /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}: 13716 get: 13717 summary: Vote queries voted information based on proposalID, voterAddr. 13718 operationId: Vote 13719 responses: 13720 '200': 13721 description: A successful response. 13722 schema: 13723 type: object 13724 properties: 13725 vote: 13726 type: object 13727 properties: 13728 proposal_id: 13729 type: string 13730 format: uint64 13731 description: proposal_id defines the unique id of the proposal. 13732 voter: 13733 type: string 13734 description: voter is the voter address of the proposal. 13735 option: 13736 description: >- 13737 Deprecated: Prefer to use `options` instead. This field is 13738 set in queries 13739 13740 if and only if `len(options) == 1` and that option has 13741 weight 1. In all 13742 13743 other cases, this field will default to 13744 VOTE_OPTION_UNSPECIFIED. 13745 type: string 13746 enum: 13747 - VOTE_OPTION_UNSPECIFIED 13748 - VOTE_OPTION_YES 13749 - VOTE_OPTION_ABSTAIN 13750 - VOTE_OPTION_NO 13751 - VOTE_OPTION_NO_WITH_VETO 13752 default: VOTE_OPTION_UNSPECIFIED 13753 options: 13754 type: array 13755 items: 13756 type: object 13757 properties: 13758 option: 13759 description: >- 13760 option defines the valid vote options, it must not 13761 contain duplicate vote options. 13762 type: string 13763 enum: 13764 - VOTE_OPTION_UNSPECIFIED 13765 - VOTE_OPTION_YES 13766 - VOTE_OPTION_ABSTAIN 13767 - VOTE_OPTION_NO 13768 - VOTE_OPTION_NO_WITH_VETO 13769 default: VOTE_OPTION_UNSPECIFIED 13770 weight: 13771 type: string 13772 description: >- 13773 weight is the vote weight associated with the vote 13774 option. 13775 description: >- 13776 WeightedVoteOption defines a unit of vote for vote 13777 split. 13778 13779 13780 Since: cosmos-sdk 0.43 13781 description: |- 13782 options is the weighted vote options. 13783 13784 Since: cosmos-sdk 0.43 13785 description: >- 13786 Vote defines a vote on a governance proposal. 13787 13788 A Vote consists of a proposal ID, the voter, and the vote 13789 option. 13790 description: >- 13791 QueryVoteResponse is the response type for the Query/Vote RPC 13792 method. 13793 default: 13794 description: An unexpected error response. 13795 schema: 13796 type: object 13797 properties: 13798 error: 13799 type: string 13800 code: 13801 type: integer 13802 format: int32 13803 message: 13804 type: string 13805 details: 13806 type: array 13807 items: 13808 type: object 13809 properties: 13810 type_url: 13811 type: string 13812 description: >- 13813 A URL/resource name that uniquely identifies the type of 13814 the serialized 13815 13816 protocol buffer message. This string must contain at 13817 least 13818 13819 one "/" character. The last segment of the URL's path 13820 must represent 13821 13822 the fully qualified name of the type (as in 13823 13824 `path/google.protobuf.Duration`). The name should be in 13825 a canonical form 13826 13827 (e.g., leading "." is not accepted). 13828 13829 13830 In practice, teams usually precompile into the binary 13831 all types that they 13832 13833 expect it to use in the context of Any. However, for 13834 URLs which use the 13835 13836 scheme `http`, `https`, or no scheme, one can optionally 13837 set up a type 13838 13839 server that maps type URLs to message definitions as 13840 follows: 13841 13842 13843 * If no scheme is provided, `https` is assumed. 13844 13845 * An HTTP GET on the URL must yield a 13846 [google.protobuf.Type][] 13847 value in binary format, or produce an error. 13848 * Applications are allowed to cache lookup results based 13849 on the 13850 URL, or have them precompiled into a binary to avoid any 13851 lookup. Therefore, binary compatibility needs to be preserved 13852 on changes to types. (Use versioned type names to manage 13853 breaking changes.) 13854 13855 Note: this functionality is not currently available in 13856 the official 13857 13858 protobuf release, and it is not used for type URLs 13859 beginning with 13860 13861 type.googleapis.com. 13862 13863 13864 Schemes other than `http`, `https` (or the empty scheme) 13865 might be 13866 13867 used with implementation specific semantics. 13868 value: 13869 type: string 13870 format: byte 13871 description: >- 13872 Must be a valid serialized protocol buffer of the above 13873 specified type. 13874 description: >- 13875 `Any` contains an arbitrary serialized protocol buffer 13876 message along with a 13877 13878 URL that describes the type of the serialized message. 13879 13880 13881 Protobuf library provides support to pack/unpack Any values 13882 in the form 13883 13884 of utility functions or additional generated methods of the 13885 Any type. 13886 13887 13888 Example 1: Pack and unpack a message in C++. 13889 13890 Foo foo = ...; 13891 Any any; 13892 any.PackFrom(foo); 13893 ... 13894 if (any.UnpackTo(&foo)) { 13895 ... 13896 } 13897 13898 Example 2: Pack and unpack a message in Java. 13899 13900 Foo foo = ...; 13901 Any any = Any.pack(foo); 13902 ... 13903 if (any.is(Foo.class)) { 13904 foo = any.unpack(Foo.class); 13905 } 13906 // or ... 13907 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 13908 foo = any.unpack(Foo.getDefaultInstance()); 13909 } 13910 13911 Example 3: Pack and unpack a message in Python. 13912 13913 foo = Foo(...) 13914 any = Any() 13915 any.Pack(foo) 13916 ... 13917 if any.Is(Foo.DESCRIPTOR): 13918 any.Unpack(foo) 13919 ... 13920 13921 Example 4: Pack and unpack a message in Go 13922 13923 foo := &pb.Foo{...} 13924 any, err := anypb.New(foo) 13925 if err != nil { 13926 ... 13927 } 13928 ... 13929 foo := &pb.Foo{} 13930 if err := any.UnmarshalTo(foo); err != nil { 13931 ... 13932 } 13933 13934 The pack methods provided by protobuf library will by 13935 default use 13936 13937 'type.googleapis.com/full.type.name' as the type URL and the 13938 unpack 13939 13940 methods only use the fully qualified type name after the 13941 last '/' 13942 13943 in the type URL, for example "foo.bar.com/x/y.z" will yield 13944 type 13945 13946 name "y.z". 13947 13948 13949 JSON 13950 13951 13952 The JSON representation of an `Any` value uses the regular 13953 13954 representation of the deserialized, embedded message, with 13955 an 13956 13957 additional field `@type` which contains the type URL. 13958 Example: 13959 13960 package google.profile; 13961 message Person { 13962 string first_name = 1; 13963 string last_name = 2; 13964 } 13965 13966 { 13967 "@type": "type.googleapis.com/google.profile.Person", 13968 "firstName": <string>, 13969 "lastName": <string> 13970 } 13971 13972 If the embedded message type is well-known and has a custom 13973 JSON 13974 13975 representation, that representation will be embedded adding 13976 a field 13977 13978 `value` which holds the custom JSON in addition to the 13979 `@type` 13980 13981 field. Example (for message [google.protobuf.Duration][]): 13982 13983 { 13984 "@type": "type.googleapis.com/google.protobuf.Duration", 13985 "value": "1.212s" 13986 } 13987 parameters: 13988 - name: proposal_id 13989 description: proposal_id defines the unique id of the proposal. 13990 in: path 13991 required: true 13992 type: string 13993 format: uint64 13994 - name: voter 13995 description: voter defines the voter address for the proposals. 13996 in: path 13997 required: true 13998 type: string 13999 tags: 14000 - Query 14001 /cosmos/gov/v1/constitution: 14002 get: 14003 summary: Constitution queries the chain's constitution. 14004 operationId: Constitution 14005 responses: 14006 '200': 14007 description: A successful response. 14008 schema: 14009 type: object 14010 properties: 14011 constitution: 14012 type: string 14013 title: >- 14014 QueryConstitutionResponse is the response type for the 14015 Query/Constitution RPC method 14016 default: 14017 description: An unexpected error response. 14018 schema: 14019 type: object 14020 properties: 14021 error: 14022 type: string 14023 code: 14024 type: integer 14025 format: int32 14026 message: 14027 type: string 14028 details: 14029 type: array 14030 items: 14031 type: object 14032 properties: 14033 type_url: 14034 type: string 14035 description: >- 14036 A URL/resource name that uniquely identifies the type of 14037 the serialized 14038 14039 protocol buffer message. This string must contain at 14040 least 14041 14042 one "/" character. The last segment of the URL's path 14043 must represent 14044 14045 the fully qualified name of the type (as in 14046 14047 `path/google.protobuf.Duration`). The name should be in 14048 a canonical form 14049 14050 (e.g., leading "." is not accepted). 14051 14052 14053 In practice, teams usually precompile into the binary 14054 all types that they 14055 14056 expect it to use in the context of Any. However, for 14057 URLs which use the 14058 14059 scheme `http`, `https`, or no scheme, one can optionally 14060 set up a type 14061 14062 server that maps type URLs to message definitions as 14063 follows: 14064 14065 14066 * If no scheme is provided, `https` is assumed. 14067 14068 * An HTTP GET on the URL must yield a 14069 [google.protobuf.Type][] 14070 value in binary format, or produce an error. 14071 * Applications are allowed to cache lookup results based 14072 on the 14073 URL, or have them precompiled into a binary to avoid any 14074 lookup. Therefore, binary compatibility needs to be preserved 14075 on changes to types. (Use versioned type names to manage 14076 breaking changes.) 14077 14078 Note: this functionality is not currently available in 14079 the official 14080 14081 protobuf release, and it is not used for type URLs 14082 beginning with 14083 14084 type.googleapis.com. 14085 14086 14087 Schemes other than `http`, `https` (or the empty scheme) 14088 might be 14089 14090 used with implementation specific semantics. 14091 value: 14092 type: string 14093 format: byte 14094 description: >- 14095 Must be a valid serialized protocol buffer of the above 14096 specified type. 14097 description: >- 14098 `Any` contains an arbitrary serialized protocol buffer 14099 message along with a 14100 14101 URL that describes the type of the serialized message. 14102 14103 14104 Protobuf library provides support to pack/unpack Any values 14105 in the form 14106 14107 of utility functions or additional generated methods of the 14108 Any type. 14109 14110 14111 Example 1: Pack and unpack a message in C++. 14112 14113 Foo foo = ...; 14114 Any any; 14115 any.PackFrom(foo); 14116 ... 14117 if (any.UnpackTo(&foo)) { 14118 ... 14119 } 14120 14121 Example 2: Pack and unpack a message in Java. 14122 14123 Foo foo = ...; 14124 Any any = Any.pack(foo); 14125 ... 14126 if (any.is(Foo.class)) { 14127 foo = any.unpack(Foo.class); 14128 } 14129 // or ... 14130 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 14131 foo = any.unpack(Foo.getDefaultInstance()); 14132 } 14133 14134 Example 3: Pack and unpack a message in Python. 14135 14136 foo = Foo(...) 14137 any = Any() 14138 any.Pack(foo) 14139 ... 14140 if any.Is(Foo.DESCRIPTOR): 14141 any.Unpack(foo) 14142 ... 14143 14144 Example 4: Pack and unpack a message in Go 14145 14146 foo := &pb.Foo{...} 14147 any, err := anypb.New(foo) 14148 if err != nil { 14149 ... 14150 } 14151 ... 14152 foo := &pb.Foo{} 14153 if err := any.UnmarshalTo(foo); err != nil { 14154 ... 14155 } 14156 14157 The pack methods provided by protobuf library will by 14158 default use 14159 14160 'type.googleapis.com/full.type.name' as the type URL and the 14161 unpack 14162 14163 methods only use the fully qualified type name after the 14164 last '/' 14165 14166 in the type URL, for example "foo.bar.com/x/y.z" will yield 14167 type 14168 14169 name "y.z". 14170 14171 14172 JSON 14173 14174 14175 The JSON representation of an `Any` value uses the regular 14176 14177 representation of the deserialized, embedded message, with 14178 an 14179 14180 additional field `@type` which contains the type URL. 14181 Example: 14182 14183 package google.profile; 14184 message Person { 14185 string first_name = 1; 14186 string last_name = 2; 14187 } 14188 14189 { 14190 "@type": "type.googleapis.com/google.profile.Person", 14191 "firstName": <string>, 14192 "lastName": <string> 14193 } 14194 14195 If the embedded message type is well-known and has a custom 14196 JSON 14197 14198 representation, that representation will be embedded adding 14199 a field 14200 14201 `value` which holds the custom JSON in addition to the 14202 `@type` 14203 14204 field. Example (for message [google.protobuf.Duration][]): 14205 14206 { 14207 "@type": "type.googleapis.com/google.protobuf.Duration", 14208 "value": "1.212s" 14209 } 14210 tags: 14211 - Query 14212 /cosmos/gov/v1/params/{params_type}: 14213 get: 14214 summary: Params queries all parameters of the gov module. 14215 operationId: GovV1Params 14216 responses: 14217 '200': 14218 description: A successful response. 14219 schema: 14220 type: object 14221 properties: 14222 voting_params: 14223 description: |- 14224 Deprecated: Prefer to use `params` instead. 14225 voting_params defines the parameters related to voting. 14226 type: object 14227 properties: 14228 voting_period: 14229 type: string 14230 description: Duration of the voting period. 14231 deposit_params: 14232 description: |- 14233 Deprecated: Prefer to use `params` instead. 14234 deposit_params defines the parameters related to deposit. 14235 type: object 14236 properties: 14237 min_deposit: 14238 type: array 14239 items: 14240 type: object 14241 properties: 14242 denom: 14243 type: string 14244 amount: 14245 type: string 14246 description: >- 14247 Coin defines a token with a denomination and an amount. 14248 14249 14250 NOTE: The amount field is an Int which implements the 14251 custom method 14252 14253 signatures required by gogoproto. 14254 description: Minimum deposit for a proposal to enter voting period. 14255 max_deposit_period: 14256 type: string 14257 description: >- 14258 Maximum period for Atom holders to deposit on a proposal. 14259 Initial value: 2 14260 14261 months. 14262 tally_params: 14263 description: |- 14264 Deprecated: Prefer to use `params` instead. 14265 tally_params defines the parameters related to tally. 14266 type: object 14267 properties: 14268 quorum: 14269 type: string 14270 description: >- 14271 Minimum percentage of total stake needed to vote for a 14272 result to be 14273 14274 considered valid. 14275 threshold: 14276 type: string 14277 description: >- 14278 Minimum proportion of Yes votes for proposal to pass. 14279 Default value: 0.5. 14280 veto_threshold: 14281 type: string 14282 description: >- 14283 Minimum value of Veto votes to Total votes ratio for 14284 proposal to be 14285 14286 vetoed. Default value: 1/3. 14287 params: 14288 description: |- 14289 params defines all the paramaters of x/gov module. 14290 14291 Since: cosmos-sdk 0.47 14292 type: object 14293 properties: 14294 min_deposit: 14295 type: array 14296 items: 14297 type: object 14298 properties: 14299 denom: 14300 type: string 14301 amount: 14302 type: string 14303 description: >- 14304 Coin defines a token with a denomination and an amount. 14305 14306 14307 NOTE: The amount field is an Int which implements the 14308 custom method 14309 14310 signatures required by gogoproto. 14311 description: Minimum deposit for a proposal to enter voting period. 14312 max_deposit_period: 14313 type: string 14314 description: >- 14315 Maximum period for Atom holders to deposit on a proposal. 14316 Initial value: 2 14317 14318 months. 14319 voting_period: 14320 type: string 14321 description: Duration of the voting period. 14322 quorum: 14323 type: string 14324 description: >- 14325 Minimum percentage of total stake needed to vote for a 14326 result to be 14327 considered valid. 14328 threshold: 14329 type: string 14330 description: >- 14331 Minimum proportion of Yes votes for proposal to pass. 14332 Default value: 0.5. 14333 veto_threshold: 14334 type: string 14335 description: >- 14336 Minimum value of Veto votes to Total votes ratio for 14337 proposal to be 14338 vetoed. Default value: 1/3. 14339 min_initial_deposit_ratio: 14340 type: string 14341 description: >- 14342 The ratio representing the proportion of the deposit value 14343 that must be paid at proposal submission. 14344 proposal_cancel_ratio: 14345 type: string 14346 description: >- 14347 The cancel ratio which will not be returned back to the 14348 depositors when a proposal is cancelled. 14349 14350 14351 Since: cosmos-sdk 0.50 14352 proposal_cancel_dest: 14353 type: string 14354 description: >- 14355 The address which will receive (proposal_cancel_ratio * 14356 deposit) proposal deposits. 14357 14358 If empty, the (proposal_cancel_ratio * deposit) proposal 14359 deposits will be burned. 14360 14361 14362 Since: cosmos-sdk 0.50 14363 expedited_voting_period: 14364 type: string 14365 description: |- 14366 Duration of the voting period of an expedited proposal. 14367 14368 Since: cosmos-sdk 0.50 14369 expedited_threshold: 14370 type: string 14371 description: >- 14372 Minimum proportion of Yes votes for proposal to pass. 14373 Default value: 0.67. 14374 14375 14376 Since: cosmos-sdk 0.50 14377 expedited_min_deposit: 14378 type: array 14379 items: 14380 type: object 14381 properties: 14382 denom: 14383 type: string 14384 amount: 14385 type: string 14386 description: >- 14387 Coin defines a token with a denomination and an amount. 14388 14389 14390 NOTE: The amount field is an Int which implements the 14391 custom method 14392 14393 signatures required by gogoproto. 14394 description: >- 14395 Minimum expedited deposit for a proposal to enter voting 14396 period. 14397 burn_vote_quorum: 14398 type: boolean 14399 title: burn deposits if a proposal does not meet quorum 14400 burn_proposal_deposit_prevote: 14401 type: boolean 14402 title: burn deposits if the proposal does not enter voting period 14403 burn_vote_veto: 14404 type: boolean 14405 title: burn deposits if quorum with vote type no_veto is met 14406 min_deposit_ratio: 14407 type: string 14408 description: >- 14409 The ratio representing the proportion of the deposit value 14410 minimum that must be met when making a deposit. 14411 14412 Default value: 0.01. Meaning that for a chain with a 14413 min_deposit of 100stake, a deposit of 1stake would be 14414 14415 required. 14416 14417 14418 Since: cosmos-sdk 0.50 14419 description: >- 14420 QueryParamsResponse is the response type for the Query/Params RPC 14421 method. 14422 default: 14423 description: An unexpected error response. 14424 schema: 14425 type: object 14426 properties: 14427 error: 14428 type: string 14429 code: 14430 type: integer 14431 format: int32 14432 message: 14433 type: string 14434 details: 14435 type: array 14436 items: 14437 type: object 14438 properties: 14439 type_url: 14440 type: string 14441 description: >- 14442 A URL/resource name that uniquely identifies the type of 14443 the serialized 14444 14445 protocol buffer message. This string must contain at 14446 least 14447 14448 one "/" character. The last segment of the URL's path 14449 must represent 14450 14451 the fully qualified name of the type (as in 14452 14453 `path/google.protobuf.Duration`). The name should be in 14454 a canonical form 14455 14456 (e.g., leading "." is not accepted). 14457 14458 14459 In practice, teams usually precompile into the binary 14460 all types that they 14461 14462 expect it to use in the context of Any. However, for 14463 URLs which use the 14464 14465 scheme `http`, `https`, or no scheme, one can optionally 14466 set up a type 14467 14468 server that maps type URLs to message definitions as 14469 follows: 14470 14471 14472 * If no scheme is provided, `https` is assumed. 14473 14474 * An HTTP GET on the URL must yield a 14475 [google.protobuf.Type][] 14476 value in binary format, or produce an error. 14477 * Applications are allowed to cache lookup results based 14478 on the 14479 URL, or have them precompiled into a binary to avoid any 14480 lookup. Therefore, binary compatibility needs to be preserved 14481 on changes to types. (Use versioned type names to manage 14482 breaking changes.) 14483 14484 Note: this functionality is not currently available in 14485 the official 14486 14487 protobuf release, and it is not used for type URLs 14488 beginning with 14489 14490 type.googleapis.com. 14491 14492 14493 Schemes other than `http`, `https` (or the empty scheme) 14494 might be 14495 14496 used with implementation specific semantics. 14497 value: 14498 type: string 14499 format: byte 14500 description: >- 14501 Must be a valid serialized protocol buffer of the above 14502 specified type. 14503 description: >- 14504 `Any` contains an arbitrary serialized protocol buffer 14505 message along with a 14506 14507 URL that describes the type of the serialized message. 14508 14509 14510 Protobuf library provides support to pack/unpack Any values 14511 in the form 14512 14513 of utility functions or additional generated methods of the 14514 Any type. 14515 14516 14517 Example 1: Pack and unpack a message in C++. 14518 14519 Foo foo = ...; 14520 Any any; 14521 any.PackFrom(foo); 14522 ... 14523 if (any.UnpackTo(&foo)) { 14524 ... 14525 } 14526 14527 Example 2: Pack and unpack a message in Java. 14528 14529 Foo foo = ...; 14530 Any any = Any.pack(foo); 14531 ... 14532 if (any.is(Foo.class)) { 14533 foo = any.unpack(Foo.class); 14534 } 14535 // or ... 14536 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 14537 foo = any.unpack(Foo.getDefaultInstance()); 14538 } 14539 14540 Example 3: Pack and unpack a message in Python. 14541 14542 foo = Foo(...) 14543 any = Any() 14544 any.Pack(foo) 14545 ... 14546 if any.Is(Foo.DESCRIPTOR): 14547 any.Unpack(foo) 14548 ... 14549 14550 Example 4: Pack and unpack a message in Go 14551 14552 foo := &pb.Foo{...} 14553 any, err := anypb.New(foo) 14554 if err != nil { 14555 ... 14556 } 14557 ... 14558 foo := &pb.Foo{} 14559 if err := any.UnmarshalTo(foo); err != nil { 14560 ... 14561 } 14562 14563 The pack methods provided by protobuf library will by 14564 default use 14565 14566 'type.googleapis.com/full.type.name' as the type URL and the 14567 unpack 14568 14569 methods only use the fully qualified type name after the 14570 last '/' 14571 14572 in the type URL, for example "foo.bar.com/x/y.z" will yield 14573 type 14574 14575 name "y.z". 14576 14577 14578 JSON 14579 14580 14581 The JSON representation of an `Any` value uses the regular 14582 14583 representation of the deserialized, embedded message, with 14584 an 14585 14586 additional field `@type` which contains the type URL. 14587 Example: 14588 14589 package google.profile; 14590 message Person { 14591 string first_name = 1; 14592 string last_name = 2; 14593 } 14594 14595 { 14596 "@type": "type.googleapis.com/google.profile.Person", 14597 "firstName": <string>, 14598 "lastName": <string> 14599 } 14600 14601 If the embedded message type is well-known and has a custom 14602 JSON 14603 14604 representation, that representation will be embedded adding 14605 a field 14606 14607 `value` which holds the custom JSON in addition to the 14608 `@type` 14609 14610 field. Example (for message [google.protobuf.Duration][]): 14611 14612 { 14613 "@type": "type.googleapis.com/google.protobuf.Duration", 14614 "value": "1.212s" 14615 } 14616 parameters: 14617 - name: params_type 14618 description: >- 14619 params_type defines which parameters to query for, can be one of 14620 "voting", 14621 14622 "tallying" or "deposit". 14623 in: path 14624 required: true 14625 type: string 14626 tags: 14627 - Query 14628 /cosmos/gov/v1/proposals: 14629 get: 14630 summary: Proposals queries all proposals based on given status. 14631 operationId: GovV1Proposal 14632 responses: 14633 '200': 14634 description: A successful response. 14635 schema: 14636 type: object 14637 properties: 14638 proposals: 14639 type: array 14640 items: 14641 type: object 14642 properties: 14643 id: 14644 type: string 14645 format: uint64 14646 description: id defines the unique id of the proposal. 14647 messages: 14648 type: array 14649 items: 14650 type: object 14651 properties: 14652 type_url: 14653 type: string 14654 description: >- 14655 A URL/resource name that uniquely identifies the 14656 type of the serialized 14657 14658 protocol buffer message. This string must contain 14659 at least 14660 14661 one "/" character. The last segment of the URL's 14662 path must represent 14663 14664 the fully qualified name of the type (as in 14665 14666 `path/google.protobuf.Duration`). The name should 14667 be in a canonical form 14668 14669 (e.g., leading "." is not accepted). 14670 14671 14672 In practice, teams usually precompile into the 14673 binary all types that they 14674 14675 expect it to use in the context of Any. However, 14676 for URLs which use the 14677 14678 scheme `http`, `https`, or no scheme, one can 14679 optionally set up a type 14680 14681 server that maps type URLs to message definitions 14682 as follows: 14683 14684 14685 * If no scheme is provided, `https` is assumed. 14686 14687 * An HTTP GET on the URL must yield a 14688 [google.protobuf.Type][] 14689 value in binary format, or produce an error. 14690 * Applications are allowed to cache lookup results 14691 based on the 14692 URL, or have them precompiled into a binary to avoid any 14693 lookup. Therefore, binary compatibility needs to be preserved 14694 on changes to types. (Use versioned type names to manage 14695 breaking changes.) 14696 14697 Note: this functionality is not currently 14698 available in the official 14699 14700 protobuf release, and it is not used for type URLs 14701 beginning with 14702 14703 type.googleapis.com. 14704 14705 14706 Schemes other than `http`, `https` (or the empty 14707 scheme) might be 14708 14709 used with implementation specific semantics. 14710 value: 14711 type: string 14712 format: byte 14713 description: >- 14714 Must be a valid serialized protocol buffer of the 14715 above specified type. 14716 description: >- 14717 `Any` contains an arbitrary serialized protocol buffer 14718 message along with a 14719 14720 URL that describes the type of the serialized message. 14721 14722 14723 Protobuf library provides support to pack/unpack Any 14724 values in the form 14725 14726 of utility functions or additional generated methods 14727 of the Any type. 14728 14729 14730 Example 1: Pack and unpack a message in C++. 14731 14732 Foo foo = ...; 14733 Any any; 14734 any.PackFrom(foo); 14735 ... 14736 if (any.UnpackTo(&foo)) { 14737 ... 14738 } 14739 14740 Example 2: Pack and unpack a message in Java. 14741 14742 Foo foo = ...; 14743 Any any = Any.pack(foo); 14744 ... 14745 if (any.is(Foo.class)) { 14746 foo = any.unpack(Foo.class); 14747 } 14748 // or ... 14749 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 14750 foo = any.unpack(Foo.getDefaultInstance()); 14751 } 14752 14753 Example 3: Pack and unpack a message in Python. 14754 14755 foo = Foo(...) 14756 any = Any() 14757 any.Pack(foo) 14758 ... 14759 if any.Is(Foo.DESCRIPTOR): 14760 any.Unpack(foo) 14761 ... 14762 14763 Example 4: Pack and unpack a message in Go 14764 14765 foo := &pb.Foo{...} 14766 any, err := anypb.New(foo) 14767 if err != nil { 14768 ... 14769 } 14770 ... 14771 foo := &pb.Foo{} 14772 if err := any.UnmarshalTo(foo); err != nil { 14773 ... 14774 } 14775 14776 The pack methods provided by protobuf library will by 14777 default use 14778 14779 'type.googleapis.com/full.type.name' as the type URL 14780 and the unpack 14781 14782 methods only use the fully qualified type name after 14783 the last '/' 14784 14785 in the type URL, for example "foo.bar.com/x/y.z" will 14786 yield type 14787 14788 name "y.z". 14789 14790 14791 JSON 14792 14793 14794 The JSON representation of an `Any` value uses the 14795 regular 14796 14797 representation of the deserialized, embedded message, 14798 with an 14799 14800 additional field `@type` which contains the type URL. 14801 Example: 14802 14803 package google.profile; 14804 message Person { 14805 string first_name = 1; 14806 string last_name = 2; 14807 } 14808 14809 { 14810 "@type": "type.googleapis.com/google.profile.Person", 14811 "firstName": <string>, 14812 "lastName": <string> 14813 } 14814 14815 If the embedded message type is well-known and has a 14816 custom JSON 14817 14818 representation, that representation will be embedded 14819 adding a field 14820 14821 `value` which holds the custom JSON in addition to the 14822 `@type` 14823 14824 field. Example (for message 14825 [google.protobuf.Duration][]): 14826 14827 { 14828 "@type": "type.googleapis.com/google.protobuf.Duration", 14829 "value": "1.212s" 14830 } 14831 description: >- 14832 messages are the arbitrary messages to be executed if 14833 the proposal passes. 14834 status: 14835 description: status defines the proposal status. 14836 type: string 14837 enum: 14838 - PROPOSAL_STATUS_UNSPECIFIED 14839 - PROPOSAL_STATUS_DEPOSIT_PERIOD 14840 - PROPOSAL_STATUS_VOTING_PERIOD 14841 - PROPOSAL_STATUS_PASSED 14842 - PROPOSAL_STATUS_REJECTED 14843 - PROPOSAL_STATUS_FAILED 14844 default: PROPOSAL_STATUS_UNSPECIFIED 14845 final_tally_result: 14846 description: >- 14847 final_tally_result is the final tally result of the 14848 proposal. When 14849 14850 querying a proposal via gRPC, this field is not 14851 populated until the 14852 14853 proposal's voting period has ended. 14854 type: object 14855 properties: 14856 yes_count: 14857 type: string 14858 description: yes_count is the number of yes votes on a proposal. 14859 abstain_count: 14860 type: string 14861 description: >- 14862 abstain_count is the number of abstain votes on a 14863 proposal. 14864 no_count: 14865 type: string 14866 description: no_count is the number of no votes on a proposal. 14867 no_with_veto_count: 14868 type: string 14869 description: >- 14870 no_with_veto_count is the number of no with veto 14871 votes on a proposal. 14872 submit_time: 14873 type: string 14874 format: date-time 14875 description: submit_time is the time of proposal submission. 14876 deposit_end_time: 14877 type: string 14878 format: date-time 14879 description: deposit_end_time is the end time for deposition. 14880 total_deposit: 14881 type: array 14882 items: 14883 type: object 14884 properties: 14885 denom: 14886 type: string 14887 amount: 14888 type: string 14889 description: >- 14890 Coin defines a token with a denomination and an 14891 amount. 14892 14893 14894 NOTE: The amount field is an Int which implements the 14895 custom method 14896 14897 signatures required by gogoproto. 14898 description: total_deposit is the total deposit on the proposal. 14899 voting_start_time: 14900 type: string 14901 format: date-time 14902 description: >- 14903 voting_start_time is the starting time to vote on a 14904 proposal. 14905 voting_end_time: 14906 type: string 14907 format: date-time 14908 description: voting_end_time is the end time of voting on a proposal. 14909 metadata: 14910 type: string 14911 title: >- 14912 metadata is any arbitrary metadata attached to the 14913 proposal. 14914 14915 the recommended format of the metadata is to be found 14916 here: 14917 14918 https://docs.cosmos.network/v0.47/modules/gov#proposal-3 14919 title: 14920 type: string 14921 description: 'Since: cosmos-sdk 0.47' 14922 title: title is the title of the proposal 14923 summary: 14924 type: string 14925 description: 'Since: cosmos-sdk 0.47' 14926 title: summary is a short summary of the proposal 14927 proposer: 14928 type: string 14929 description: 'Since: cosmos-sdk 0.47' 14930 title: proposer is the address of the proposal sumbitter 14931 expedited: 14932 type: boolean 14933 description: 'Since: cosmos-sdk 0.50' 14934 title: expedited defines if the proposal is expedited 14935 failed_reason: 14936 type: string 14937 description: 'Since: cosmos-sdk 0.50' 14938 title: failed_reason defines the reason why the proposal failed 14939 description: >- 14940 Proposal defines the core field members of a governance 14941 proposal. 14942 description: proposals defines all the requested governance proposals. 14943 pagination: 14944 description: pagination defines the pagination in the response. 14945 type: object 14946 properties: 14947 next_key: 14948 type: string 14949 format: byte 14950 description: |- 14951 next_key is the key to be passed to PageRequest.key to 14952 query the next page most efficiently. It will be empty if 14953 there are no more results. 14954 total: 14955 type: string 14956 format: uint64 14957 title: >- 14958 total is total number of results available if 14959 PageRequest.count_total 14960 14961 was set, its value is undefined otherwise 14962 description: >- 14963 QueryProposalsResponse is the response type for the 14964 Query/Proposals RPC 14965 14966 method. 14967 default: 14968 description: An unexpected error response. 14969 schema: 14970 type: object 14971 properties: 14972 error: 14973 type: string 14974 code: 14975 type: integer 14976 format: int32 14977 message: 14978 type: string 14979 details: 14980 type: array 14981 items: 14982 type: object 14983 properties: 14984 type_url: 14985 type: string 14986 description: >- 14987 A URL/resource name that uniquely identifies the type of 14988 the serialized 14989 14990 protocol buffer message. This string must contain at 14991 least 14992 14993 one "/" character. The last segment of the URL's path 14994 must represent 14995 14996 the fully qualified name of the type (as in 14997 14998 `path/google.protobuf.Duration`). The name should be in 14999 a canonical form 15000 15001 (e.g., leading "." is not accepted). 15002 15003 15004 In practice, teams usually precompile into the binary 15005 all types that they 15006 15007 expect it to use in the context of Any. However, for 15008 URLs which use the 15009 15010 scheme `http`, `https`, or no scheme, one can optionally 15011 set up a type 15012 15013 server that maps type URLs to message definitions as 15014 follows: 15015 15016 15017 * If no scheme is provided, `https` is assumed. 15018 15019 * An HTTP GET on the URL must yield a 15020 [google.protobuf.Type][] 15021 value in binary format, or produce an error. 15022 * Applications are allowed to cache lookup results based 15023 on the 15024 URL, or have them precompiled into a binary to avoid any 15025 lookup. Therefore, binary compatibility needs to be preserved 15026 on changes to types. (Use versioned type names to manage 15027 breaking changes.) 15028 15029 Note: this functionality is not currently available in 15030 the official 15031 15032 protobuf release, and it is not used for type URLs 15033 beginning with 15034 15035 type.googleapis.com. 15036 15037 15038 Schemes other than `http`, `https` (or the empty scheme) 15039 might be 15040 15041 used with implementation specific semantics. 15042 value: 15043 type: string 15044 format: byte 15045 description: >- 15046 Must be a valid serialized protocol buffer of the above 15047 specified type. 15048 description: >- 15049 `Any` contains an arbitrary serialized protocol buffer 15050 message along with a 15051 15052 URL that describes the type of the serialized message. 15053 15054 15055 Protobuf library provides support to pack/unpack Any values 15056 in the form 15057 15058 of utility functions or additional generated methods of the 15059 Any type. 15060 15061 15062 Example 1: Pack and unpack a message in C++. 15063 15064 Foo foo = ...; 15065 Any any; 15066 any.PackFrom(foo); 15067 ... 15068 if (any.UnpackTo(&foo)) { 15069 ... 15070 } 15071 15072 Example 2: Pack and unpack a message in Java. 15073 15074 Foo foo = ...; 15075 Any any = Any.pack(foo); 15076 ... 15077 if (any.is(Foo.class)) { 15078 foo = any.unpack(Foo.class); 15079 } 15080 // or ... 15081 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 15082 foo = any.unpack(Foo.getDefaultInstance()); 15083 } 15084 15085 Example 3: Pack and unpack a message in Python. 15086 15087 foo = Foo(...) 15088 any = Any() 15089 any.Pack(foo) 15090 ... 15091 if any.Is(Foo.DESCRIPTOR): 15092 any.Unpack(foo) 15093 ... 15094 15095 Example 4: Pack and unpack a message in Go 15096 15097 foo := &pb.Foo{...} 15098 any, err := anypb.New(foo) 15099 if err != nil { 15100 ... 15101 } 15102 ... 15103 foo := &pb.Foo{} 15104 if err := any.UnmarshalTo(foo); err != nil { 15105 ... 15106 } 15107 15108 The pack methods provided by protobuf library will by 15109 default use 15110 15111 'type.googleapis.com/full.type.name' as the type URL and the 15112 unpack 15113 15114 methods only use the fully qualified type name after the 15115 last '/' 15116 15117 in the type URL, for example "foo.bar.com/x/y.z" will yield 15118 type 15119 15120 name "y.z". 15121 15122 15123 JSON 15124 15125 15126 The JSON representation of an `Any` value uses the regular 15127 15128 representation of the deserialized, embedded message, with 15129 an 15130 15131 additional field `@type` which contains the type URL. 15132 Example: 15133 15134 package google.profile; 15135 message Person { 15136 string first_name = 1; 15137 string last_name = 2; 15138 } 15139 15140 { 15141 "@type": "type.googleapis.com/google.profile.Person", 15142 "firstName": <string>, 15143 "lastName": <string> 15144 } 15145 15146 If the embedded message type is well-known and has a custom 15147 JSON 15148 15149 representation, that representation will be embedded adding 15150 a field 15151 15152 `value` which holds the custom JSON in addition to the 15153 `@type` 15154 15155 field. Example (for message [google.protobuf.Duration][]): 15156 15157 { 15158 "@type": "type.googleapis.com/google.protobuf.Duration", 15159 "value": "1.212s" 15160 } 15161 parameters: 15162 - name: proposal_status 15163 description: |- 15164 proposal_status defines the status of the proposals. 15165 15166 - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. 15167 - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit 15168 period. 15169 - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting 15170 period. 15171 - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has 15172 passed. 15173 - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has 15174 been rejected. 15175 - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has 15176 failed. 15177 in: query 15178 required: false 15179 type: string 15180 enum: 15181 - PROPOSAL_STATUS_UNSPECIFIED 15182 - PROPOSAL_STATUS_DEPOSIT_PERIOD 15183 - PROPOSAL_STATUS_VOTING_PERIOD 15184 - PROPOSAL_STATUS_PASSED 15185 - PROPOSAL_STATUS_REJECTED 15186 - PROPOSAL_STATUS_FAILED 15187 default: PROPOSAL_STATUS_UNSPECIFIED 15188 - name: voter 15189 description: voter defines the voter address for the proposals. 15190 in: query 15191 required: false 15192 type: string 15193 - name: depositor 15194 description: depositor defines the deposit addresses from the proposals. 15195 in: query 15196 required: false 15197 type: string 15198 - name: pagination.key 15199 description: |- 15200 key is a value returned in PageResponse.next_key to begin 15201 querying the next page most efficiently. Only one of offset or key 15202 should be set. 15203 in: query 15204 required: false 15205 type: string 15206 format: byte 15207 - name: pagination.offset 15208 description: >- 15209 offset is a numeric offset that can be used when key is unavailable. 15210 15211 It is less efficient than using key. Only one of offset or key 15212 should 15213 15214 be set. 15215 in: query 15216 required: false 15217 type: string 15218 format: uint64 15219 - name: pagination.limit 15220 description: >- 15221 limit is the total number of results to be returned in the result 15222 page. 15223 15224 If left empty it will default to a value to be set by each app. 15225 in: query 15226 required: false 15227 type: string 15228 format: uint64 15229 - name: pagination.count_total 15230 description: >- 15231 count_total is set to true to indicate that the result set should 15232 include 15233 15234 a count of the total number of items available for pagination in 15235 UIs. 15236 15237 count_total is only respected when offset is used. It is ignored 15238 when key 15239 15240 is set. 15241 in: query 15242 required: false 15243 type: boolean 15244 - name: pagination.reverse 15245 description: >- 15246 reverse is set to true if results are to be returned in the 15247 descending order. 15248 15249 15250 Since: cosmos-sdk 0.43 15251 in: query 15252 required: false 15253 type: boolean 15254 tags: 15255 - Query 15256 /cosmos/gov/v1/proposals/{proposal_id}: 15257 get: 15258 summary: Proposal queries proposal details based on ProposalID. 15259 operationId: GovV1Proposal 15260 responses: 15261 '200': 15262 description: A successful response. 15263 schema: 15264 type: object 15265 properties: 15266 proposal: 15267 type: object 15268 properties: 15269 id: 15270 type: string 15271 format: uint64 15272 description: id defines the unique id of the proposal. 15273 messages: 15274 type: array 15275 items: 15276 type: object 15277 properties: 15278 type_url: 15279 type: string 15280 description: >- 15281 A URL/resource name that uniquely identifies the 15282 type of the serialized 15283 15284 protocol buffer message. This string must contain at 15285 least 15286 15287 one "/" character. The last segment of the URL's 15288 path must represent 15289 15290 the fully qualified name of the type (as in 15291 15292 `path/google.protobuf.Duration`). The name should be 15293 in a canonical form 15294 15295 (e.g., leading "." is not accepted). 15296 15297 15298 In practice, teams usually precompile into the 15299 binary all types that they 15300 15301 expect it to use in the context of Any. However, for 15302 URLs which use the 15303 15304 scheme `http`, `https`, or no scheme, one can 15305 optionally set up a type 15306 15307 server that maps type URLs to message definitions as 15308 follows: 15309 15310 15311 * If no scheme is provided, `https` is assumed. 15312 15313 * An HTTP GET on the URL must yield a 15314 [google.protobuf.Type][] 15315 value in binary format, or produce an error. 15316 * Applications are allowed to cache lookup results 15317 based on the 15318 URL, or have them precompiled into a binary to avoid any 15319 lookup. Therefore, binary compatibility needs to be preserved 15320 on changes to types. (Use versioned type names to manage 15321 breaking changes.) 15322 15323 Note: this functionality is not currently available 15324 in the official 15325 15326 protobuf release, and it is not used for type URLs 15327 beginning with 15328 15329 type.googleapis.com. 15330 15331 15332 Schemes other than `http`, `https` (or the empty 15333 scheme) might be 15334 15335 used with implementation specific semantics. 15336 value: 15337 type: string 15338 format: byte 15339 description: >- 15340 Must be a valid serialized protocol buffer of the 15341 above specified type. 15342 description: >- 15343 `Any` contains an arbitrary serialized protocol buffer 15344 message along with a 15345 15346 URL that describes the type of the serialized message. 15347 15348 15349 Protobuf library provides support to pack/unpack Any 15350 values in the form 15351 15352 of utility functions or additional generated methods of 15353 the Any type. 15354 15355 15356 Example 1: Pack and unpack a message in C++. 15357 15358 Foo foo = ...; 15359 Any any; 15360 any.PackFrom(foo); 15361 ... 15362 if (any.UnpackTo(&foo)) { 15363 ... 15364 } 15365 15366 Example 2: Pack and unpack a message in Java. 15367 15368 Foo foo = ...; 15369 Any any = Any.pack(foo); 15370 ... 15371 if (any.is(Foo.class)) { 15372 foo = any.unpack(Foo.class); 15373 } 15374 // or ... 15375 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 15376 foo = any.unpack(Foo.getDefaultInstance()); 15377 } 15378 15379 Example 3: Pack and unpack a message in Python. 15380 15381 foo = Foo(...) 15382 any = Any() 15383 any.Pack(foo) 15384 ... 15385 if any.Is(Foo.DESCRIPTOR): 15386 any.Unpack(foo) 15387 ... 15388 15389 Example 4: Pack and unpack a message in Go 15390 15391 foo := &pb.Foo{...} 15392 any, err := anypb.New(foo) 15393 if err != nil { 15394 ... 15395 } 15396 ... 15397 foo := &pb.Foo{} 15398 if err := any.UnmarshalTo(foo); err != nil { 15399 ... 15400 } 15401 15402 The pack methods provided by protobuf library will by 15403 default use 15404 15405 'type.googleapis.com/full.type.name' as the type URL and 15406 the unpack 15407 15408 methods only use the fully qualified type name after the 15409 last '/' 15410 15411 in the type URL, for example "foo.bar.com/x/y.z" will 15412 yield type 15413 15414 name "y.z". 15415 15416 15417 JSON 15418 15419 15420 The JSON representation of an `Any` value uses the 15421 regular 15422 15423 representation of the deserialized, embedded message, 15424 with an 15425 15426 additional field `@type` which contains the type URL. 15427 Example: 15428 15429 package google.profile; 15430 message Person { 15431 string first_name = 1; 15432 string last_name = 2; 15433 } 15434 15435 { 15436 "@type": "type.googleapis.com/google.profile.Person", 15437 "firstName": <string>, 15438 "lastName": <string> 15439 } 15440 15441 If the embedded message type is well-known and has a 15442 custom JSON 15443 15444 representation, that representation will be embedded 15445 adding a field 15446 15447 `value` which holds the custom JSON in addition to the 15448 `@type` 15449 15450 field. Example (for message 15451 [google.protobuf.Duration][]): 15452 15453 { 15454 "@type": "type.googleapis.com/google.protobuf.Duration", 15455 "value": "1.212s" 15456 } 15457 description: >- 15458 messages are the arbitrary messages to be executed if the 15459 proposal passes. 15460 status: 15461 description: status defines the proposal status. 15462 type: string 15463 enum: 15464 - PROPOSAL_STATUS_UNSPECIFIED 15465 - PROPOSAL_STATUS_DEPOSIT_PERIOD 15466 - PROPOSAL_STATUS_VOTING_PERIOD 15467 - PROPOSAL_STATUS_PASSED 15468 - PROPOSAL_STATUS_REJECTED 15469 - PROPOSAL_STATUS_FAILED 15470 default: PROPOSAL_STATUS_UNSPECIFIED 15471 final_tally_result: 15472 description: >- 15473 final_tally_result is the final tally result of the 15474 proposal. When 15475 15476 querying a proposal via gRPC, this field is not populated 15477 until the 15478 15479 proposal's voting period has ended. 15480 type: object 15481 properties: 15482 yes_count: 15483 type: string 15484 description: yes_count is the number of yes votes on a proposal. 15485 abstain_count: 15486 type: string 15487 description: >- 15488 abstain_count is the number of abstain votes on a 15489 proposal. 15490 no_count: 15491 type: string 15492 description: no_count is the number of no votes on a proposal. 15493 no_with_veto_count: 15494 type: string 15495 description: >- 15496 no_with_veto_count is the number of no with veto votes 15497 on a proposal. 15498 submit_time: 15499 type: string 15500 format: date-time 15501 description: submit_time is the time of proposal submission. 15502 deposit_end_time: 15503 type: string 15504 format: date-time 15505 description: deposit_end_time is the end time for deposition. 15506 total_deposit: 15507 type: array 15508 items: 15509 type: object 15510 properties: 15511 denom: 15512 type: string 15513 amount: 15514 type: string 15515 description: >- 15516 Coin defines a token with a denomination and an amount. 15517 15518 15519 NOTE: The amount field is an Int which implements the 15520 custom method 15521 15522 signatures required by gogoproto. 15523 description: total_deposit is the total deposit on the proposal. 15524 voting_start_time: 15525 type: string 15526 format: date-time 15527 description: >- 15528 voting_start_time is the starting time to vote on a 15529 proposal. 15530 voting_end_time: 15531 type: string 15532 format: date-time 15533 description: voting_end_time is the end time of voting on a proposal. 15534 metadata: 15535 type: string 15536 title: >- 15537 metadata is any arbitrary metadata attached to the 15538 proposal. 15539 15540 the recommended format of the metadata is to be found 15541 here: 15542 15543 https://docs.cosmos.network/v0.47/modules/gov#proposal-3 15544 title: 15545 type: string 15546 description: 'Since: cosmos-sdk 0.47' 15547 title: title is the title of the proposal 15548 summary: 15549 type: string 15550 description: 'Since: cosmos-sdk 0.47' 15551 title: summary is a short summary of the proposal 15552 proposer: 15553 type: string 15554 description: 'Since: cosmos-sdk 0.47' 15555 title: proposer is the address of the proposal sumbitter 15556 expedited: 15557 type: boolean 15558 description: 'Since: cosmos-sdk 0.50' 15559 title: expedited defines if the proposal is expedited 15560 failed_reason: 15561 type: string 15562 description: 'Since: cosmos-sdk 0.50' 15563 title: failed_reason defines the reason why the proposal failed 15564 description: >- 15565 Proposal defines the core field members of a governance 15566 proposal. 15567 description: >- 15568 QueryProposalResponse is the response type for the Query/Proposal 15569 RPC method. 15570 default: 15571 description: An unexpected error response. 15572 schema: 15573 type: object 15574 properties: 15575 error: 15576 type: string 15577 code: 15578 type: integer 15579 format: int32 15580 message: 15581 type: string 15582 details: 15583 type: array 15584 items: 15585 type: object 15586 properties: 15587 type_url: 15588 type: string 15589 description: >- 15590 A URL/resource name that uniquely identifies the type of 15591 the serialized 15592 15593 protocol buffer message. This string must contain at 15594 least 15595 15596 one "/" character. The last segment of the URL's path 15597 must represent 15598 15599 the fully qualified name of the type (as in 15600 15601 `path/google.protobuf.Duration`). The name should be in 15602 a canonical form 15603 15604 (e.g., leading "." is not accepted). 15605 15606 15607 In practice, teams usually precompile into the binary 15608 all types that they 15609 15610 expect it to use in the context of Any. However, for 15611 URLs which use the 15612 15613 scheme `http`, `https`, or no scheme, one can optionally 15614 set up a type 15615 15616 server that maps type URLs to message definitions as 15617 follows: 15618 15619 15620 * If no scheme is provided, `https` is assumed. 15621 15622 * An HTTP GET on the URL must yield a 15623 [google.protobuf.Type][] 15624 value in binary format, or produce an error. 15625 * Applications are allowed to cache lookup results based 15626 on the 15627 URL, or have them precompiled into a binary to avoid any 15628 lookup. Therefore, binary compatibility needs to be preserved 15629 on changes to types. (Use versioned type names to manage 15630 breaking changes.) 15631 15632 Note: this functionality is not currently available in 15633 the official 15634 15635 protobuf release, and it is not used for type URLs 15636 beginning with 15637 15638 type.googleapis.com. 15639 15640 15641 Schemes other than `http`, `https` (or the empty scheme) 15642 might be 15643 15644 used with implementation specific semantics. 15645 value: 15646 type: string 15647 format: byte 15648 description: >- 15649 Must be a valid serialized protocol buffer of the above 15650 specified type. 15651 description: >- 15652 `Any` contains an arbitrary serialized protocol buffer 15653 message along with a 15654 15655 URL that describes the type of the serialized message. 15656 15657 15658 Protobuf library provides support to pack/unpack Any values 15659 in the form 15660 15661 of utility functions or additional generated methods of the 15662 Any type. 15663 15664 15665 Example 1: Pack and unpack a message in C++. 15666 15667 Foo foo = ...; 15668 Any any; 15669 any.PackFrom(foo); 15670 ... 15671 if (any.UnpackTo(&foo)) { 15672 ... 15673 } 15674 15675 Example 2: Pack and unpack a message in Java. 15676 15677 Foo foo = ...; 15678 Any any = Any.pack(foo); 15679 ... 15680 if (any.is(Foo.class)) { 15681 foo = any.unpack(Foo.class); 15682 } 15683 // or ... 15684 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 15685 foo = any.unpack(Foo.getDefaultInstance()); 15686 } 15687 15688 Example 3: Pack and unpack a message in Python. 15689 15690 foo = Foo(...) 15691 any = Any() 15692 any.Pack(foo) 15693 ... 15694 if any.Is(Foo.DESCRIPTOR): 15695 any.Unpack(foo) 15696 ... 15697 15698 Example 4: Pack and unpack a message in Go 15699 15700 foo := &pb.Foo{...} 15701 any, err := anypb.New(foo) 15702 if err != nil { 15703 ... 15704 } 15705 ... 15706 foo := &pb.Foo{} 15707 if err := any.UnmarshalTo(foo); err != nil { 15708 ... 15709 } 15710 15711 The pack methods provided by protobuf library will by 15712 default use 15713 15714 'type.googleapis.com/full.type.name' as the type URL and the 15715 unpack 15716 15717 methods only use the fully qualified type name after the 15718 last '/' 15719 15720 in the type URL, for example "foo.bar.com/x/y.z" will yield 15721 type 15722 15723 name "y.z". 15724 15725 15726 JSON 15727 15728 15729 The JSON representation of an `Any` value uses the regular 15730 15731 representation of the deserialized, embedded message, with 15732 an 15733 15734 additional field `@type` which contains the type URL. 15735 Example: 15736 15737 package google.profile; 15738 message Person { 15739 string first_name = 1; 15740 string last_name = 2; 15741 } 15742 15743 { 15744 "@type": "type.googleapis.com/google.profile.Person", 15745 "firstName": <string>, 15746 "lastName": <string> 15747 } 15748 15749 If the embedded message type is well-known and has a custom 15750 JSON 15751 15752 representation, that representation will be embedded adding 15753 a field 15754 15755 `value` which holds the custom JSON in addition to the 15756 `@type` 15757 15758 field. Example (for message [google.protobuf.Duration][]): 15759 15760 { 15761 "@type": "type.googleapis.com/google.protobuf.Duration", 15762 "value": "1.212s" 15763 } 15764 parameters: 15765 - name: proposal_id 15766 description: proposal_id defines the unique id of the proposal. 15767 in: path 15768 required: true 15769 type: string 15770 format: uint64 15771 tags: 15772 - Query 15773 /cosmos/gov/v1/proposals/{proposal_id}/deposits: 15774 get: 15775 summary: Deposits queries all deposits of a single proposal. 15776 operationId: GovV1Deposit 15777 responses: 15778 '200': 15779 description: A successful response. 15780 schema: 15781 type: object 15782 properties: 15783 deposits: 15784 type: array 15785 items: 15786 type: object 15787 properties: 15788 proposal_id: 15789 type: string 15790 format: uint64 15791 description: proposal_id defines the unique id of the proposal. 15792 depositor: 15793 type: string 15794 description: >- 15795 depositor defines the deposit addresses from the 15796 proposals. 15797 amount: 15798 type: array 15799 items: 15800 type: object 15801 properties: 15802 denom: 15803 type: string 15804 amount: 15805 type: string 15806 description: >- 15807 Coin defines a token with a denomination and an 15808 amount. 15809 15810 15811 NOTE: The amount field is an Int which implements the 15812 custom method 15813 15814 signatures required by gogoproto. 15815 description: amount to be deposited by depositor. 15816 description: >- 15817 Deposit defines an amount deposited by an account address to 15818 an active 15819 15820 proposal. 15821 description: deposits defines the requested deposits. 15822 pagination: 15823 description: pagination defines the pagination in the response. 15824 type: object 15825 properties: 15826 next_key: 15827 type: string 15828 format: byte 15829 description: |- 15830 next_key is the key to be passed to PageRequest.key to 15831 query the next page most efficiently. It will be empty if 15832 there are no more results. 15833 total: 15834 type: string 15835 format: uint64 15836 title: >- 15837 total is total number of results available if 15838 PageRequest.count_total 15839 15840 was set, its value is undefined otherwise 15841 description: >- 15842 QueryDepositsResponse is the response type for the Query/Deposits 15843 RPC method. 15844 default: 15845 description: An unexpected error response. 15846 schema: 15847 type: object 15848 properties: 15849 error: 15850 type: string 15851 code: 15852 type: integer 15853 format: int32 15854 message: 15855 type: string 15856 details: 15857 type: array 15858 items: 15859 type: object 15860 properties: 15861 type_url: 15862 type: string 15863 description: >- 15864 A URL/resource name that uniquely identifies the type of 15865 the serialized 15866 15867 protocol buffer message. This string must contain at 15868 least 15869 15870 one "/" character. The last segment of the URL's path 15871 must represent 15872 15873 the fully qualified name of the type (as in 15874 15875 `path/google.protobuf.Duration`). The name should be in 15876 a canonical form 15877 15878 (e.g., leading "." is not accepted). 15879 15880 15881 In practice, teams usually precompile into the binary 15882 all types that they 15883 15884 expect it to use in the context of Any. However, for 15885 URLs which use the 15886 15887 scheme `http`, `https`, or no scheme, one can optionally 15888 set up a type 15889 15890 server that maps type URLs to message definitions as 15891 follows: 15892 15893 15894 * If no scheme is provided, `https` is assumed. 15895 15896 * An HTTP GET on the URL must yield a 15897 [google.protobuf.Type][] 15898 value in binary format, or produce an error. 15899 * Applications are allowed to cache lookup results based 15900 on the 15901 URL, or have them precompiled into a binary to avoid any 15902 lookup. Therefore, binary compatibility needs to be preserved 15903 on changes to types. (Use versioned type names to manage 15904 breaking changes.) 15905 15906 Note: this functionality is not currently available in 15907 the official 15908 15909 protobuf release, and it is not used for type URLs 15910 beginning with 15911 15912 type.googleapis.com. 15913 15914 15915 Schemes other than `http`, `https` (or the empty scheme) 15916 might be 15917 15918 used with implementation specific semantics. 15919 value: 15920 type: string 15921 format: byte 15922 description: >- 15923 Must be a valid serialized protocol buffer of the above 15924 specified type. 15925 description: >- 15926 `Any` contains an arbitrary serialized protocol buffer 15927 message along with a 15928 15929 URL that describes the type of the serialized message. 15930 15931 15932 Protobuf library provides support to pack/unpack Any values 15933 in the form 15934 15935 of utility functions or additional generated methods of the 15936 Any type. 15937 15938 15939 Example 1: Pack and unpack a message in C++. 15940 15941 Foo foo = ...; 15942 Any any; 15943 any.PackFrom(foo); 15944 ... 15945 if (any.UnpackTo(&foo)) { 15946 ... 15947 } 15948 15949 Example 2: Pack and unpack a message in Java. 15950 15951 Foo foo = ...; 15952 Any any = Any.pack(foo); 15953 ... 15954 if (any.is(Foo.class)) { 15955 foo = any.unpack(Foo.class); 15956 } 15957 // or ... 15958 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 15959 foo = any.unpack(Foo.getDefaultInstance()); 15960 } 15961 15962 Example 3: Pack and unpack a message in Python. 15963 15964 foo = Foo(...) 15965 any = Any() 15966 any.Pack(foo) 15967 ... 15968 if any.Is(Foo.DESCRIPTOR): 15969 any.Unpack(foo) 15970 ... 15971 15972 Example 4: Pack and unpack a message in Go 15973 15974 foo := &pb.Foo{...} 15975 any, err := anypb.New(foo) 15976 if err != nil { 15977 ... 15978 } 15979 ... 15980 foo := &pb.Foo{} 15981 if err := any.UnmarshalTo(foo); err != nil { 15982 ... 15983 } 15984 15985 The pack methods provided by protobuf library will by 15986 default use 15987 15988 'type.googleapis.com/full.type.name' as the type URL and the 15989 unpack 15990 15991 methods only use the fully qualified type name after the 15992 last '/' 15993 15994 in the type URL, for example "foo.bar.com/x/y.z" will yield 15995 type 15996 15997 name "y.z". 15998 15999 16000 JSON 16001 16002 16003 The JSON representation of an `Any` value uses the regular 16004 16005 representation of the deserialized, embedded message, with 16006 an 16007 16008 additional field `@type` which contains the type URL. 16009 Example: 16010 16011 package google.profile; 16012 message Person { 16013 string first_name = 1; 16014 string last_name = 2; 16015 } 16016 16017 { 16018 "@type": "type.googleapis.com/google.profile.Person", 16019 "firstName": <string>, 16020 "lastName": <string> 16021 } 16022 16023 If the embedded message type is well-known and has a custom 16024 JSON 16025 16026 representation, that representation will be embedded adding 16027 a field 16028 16029 `value` which holds the custom JSON in addition to the 16030 `@type` 16031 16032 field. Example (for message [google.protobuf.Duration][]): 16033 16034 { 16035 "@type": "type.googleapis.com/google.protobuf.Duration", 16036 "value": "1.212s" 16037 } 16038 parameters: 16039 - name: proposal_id 16040 description: proposal_id defines the unique id of the proposal. 16041 in: path 16042 required: true 16043 type: string 16044 format: uint64 16045 - name: pagination.key 16046 description: |- 16047 key is a value returned in PageResponse.next_key to begin 16048 querying the next page most efficiently. Only one of offset or key 16049 should be set. 16050 in: query 16051 required: false 16052 type: string 16053 format: byte 16054 - name: pagination.offset 16055 description: >- 16056 offset is a numeric offset that can be used when key is unavailable. 16057 16058 It is less efficient than using key. Only one of offset or key 16059 should 16060 16061 be set. 16062 in: query 16063 required: false 16064 type: string 16065 format: uint64 16066 - name: pagination.limit 16067 description: >- 16068 limit is the total number of results to be returned in the result 16069 page. 16070 16071 If left empty it will default to a value to be set by each app. 16072 in: query 16073 required: false 16074 type: string 16075 format: uint64 16076 - name: pagination.count_total 16077 description: >- 16078 count_total is set to true to indicate that the result set should 16079 include 16080 16081 a count of the total number of items available for pagination in 16082 UIs. 16083 16084 count_total is only respected when offset is used. It is ignored 16085 when key 16086 16087 is set. 16088 in: query 16089 required: false 16090 type: boolean 16091 - name: pagination.reverse 16092 description: >- 16093 reverse is set to true if results are to be returned in the 16094 descending order. 16095 16096 16097 Since: cosmos-sdk 0.43 16098 in: query 16099 required: false 16100 type: boolean 16101 tags: 16102 - Query 16103 /cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}: 16104 get: 16105 summary: >- 16106 Deposit queries single deposit information based on proposalID, 16107 depositAddr. 16108 operationId: GovV1Deposit 16109 responses: 16110 '200': 16111 description: A successful response. 16112 schema: 16113 type: object 16114 properties: 16115 deposit: 16116 type: object 16117 properties: 16118 proposal_id: 16119 type: string 16120 format: uint64 16121 description: proposal_id defines the unique id of the proposal. 16122 depositor: 16123 type: string 16124 description: >- 16125 depositor defines the deposit addresses from the 16126 proposals. 16127 amount: 16128 type: array 16129 items: 16130 type: object 16131 properties: 16132 denom: 16133 type: string 16134 amount: 16135 type: string 16136 description: >- 16137 Coin defines a token with a denomination and an amount. 16138 16139 16140 NOTE: The amount field is an Int which implements the 16141 custom method 16142 16143 signatures required by gogoproto. 16144 description: amount to be deposited by depositor. 16145 description: >- 16146 Deposit defines an amount deposited by an account address to 16147 an active 16148 16149 proposal. 16150 description: >- 16151 QueryDepositResponse is the response type for the Query/Deposit 16152 RPC method. 16153 default: 16154 description: An unexpected error response. 16155 schema: 16156 type: object 16157 properties: 16158 error: 16159 type: string 16160 code: 16161 type: integer 16162 format: int32 16163 message: 16164 type: string 16165 details: 16166 type: array 16167 items: 16168 type: object 16169 properties: 16170 type_url: 16171 type: string 16172 description: >- 16173 A URL/resource name that uniquely identifies the type of 16174 the serialized 16175 16176 protocol buffer message. This string must contain at 16177 least 16178 16179 one "/" character. The last segment of the URL's path 16180 must represent 16181 16182 the fully qualified name of the type (as in 16183 16184 `path/google.protobuf.Duration`). The name should be in 16185 a canonical form 16186 16187 (e.g., leading "." is not accepted). 16188 16189 16190 In practice, teams usually precompile into the binary 16191 all types that they 16192 16193 expect it to use in the context of Any. However, for 16194 URLs which use the 16195 16196 scheme `http`, `https`, or no scheme, one can optionally 16197 set up a type 16198 16199 server that maps type URLs to message definitions as 16200 follows: 16201 16202 16203 * If no scheme is provided, `https` is assumed. 16204 16205 * An HTTP GET on the URL must yield a 16206 [google.protobuf.Type][] 16207 value in binary format, or produce an error. 16208 * Applications are allowed to cache lookup results based 16209 on the 16210 URL, or have them precompiled into a binary to avoid any 16211 lookup. Therefore, binary compatibility needs to be preserved 16212 on changes to types. (Use versioned type names to manage 16213 breaking changes.) 16214 16215 Note: this functionality is not currently available in 16216 the official 16217 16218 protobuf release, and it is not used for type URLs 16219 beginning with 16220 16221 type.googleapis.com. 16222 16223 16224 Schemes other than `http`, `https` (or the empty scheme) 16225 might be 16226 16227 used with implementation specific semantics. 16228 value: 16229 type: string 16230 format: byte 16231 description: >- 16232 Must be a valid serialized protocol buffer of the above 16233 specified type. 16234 description: >- 16235 `Any` contains an arbitrary serialized protocol buffer 16236 message along with a 16237 16238 URL that describes the type of the serialized message. 16239 16240 16241 Protobuf library provides support to pack/unpack Any values 16242 in the form 16243 16244 of utility functions or additional generated methods of the 16245 Any type. 16246 16247 16248 Example 1: Pack and unpack a message in C++. 16249 16250 Foo foo = ...; 16251 Any any; 16252 any.PackFrom(foo); 16253 ... 16254 if (any.UnpackTo(&foo)) { 16255 ... 16256 } 16257 16258 Example 2: Pack and unpack a message in Java. 16259 16260 Foo foo = ...; 16261 Any any = Any.pack(foo); 16262 ... 16263 if (any.is(Foo.class)) { 16264 foo = any.unpack(Foo.class); 16265 } 16266 // or ... 16267 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 16268 foo = any.unpack(Foo.getDefaultInstance()); 16269 } 16270 16271 Example 3: Pack and unpack a message in Python. 16272 16273 foo = Foo(...) 16274 any = Any() 16275 any.Pack(foo) 16276 ... 16277 if any.Is(Foo.DESCRIPTOR): 16278 any.Unpack(foo) 16279 ... 16280 16281 Example 4: Pack and unpack a message in Go 16282 16283 foo := &pb.Foo{...} 16284 any, err := anypb.New(foo) 16285 if err != nil { 16286 ... 16287 } 16288 ... 16289 foo := &pb.Foo{} 16290 if err := any.UnmarshalTo(foo); err != nil { 16291 ... 16292 } 16293 16294 The pack methods provided by protobuf library will by 16295 default use 16296 16297 'type.googleapis.com/full.type.name' as the type URL and the 16298 unpack 16299 16300 methods only use the fully qualified type name after the 16301 last '/' 16302 16303 in the type URL, for example "foo.bar.com/x/y.z" will yield 16304 type 16305 16306 name "y.z". 16307 16308 16309 JSON 16310 16311 16312 The JSON representation of an `Any` value uses the regular 16313 16314 representation of the deserialized, embedded message, with 16315 an 16316 16317 additional field `@type` which contains the type URL. 16318 Example: 16319 16320 package google.profile; 16321 message Person { 16322 string first_name = 1; 16323 string last_name = 2; 16324 } 16325 16326 { 16327 "@type": "type.googleapis.com/google.profile.Person", 16328 "firstName": <string>, 16329 "lastName": <string> 16330 } 16331 16332 If the embedded message type is well-known and has a custom 16333 JSON 16334 16335 representation, that representation will be embedded adding 16336 a field 16337 16338 `value` which holds the custom JSON in addition to the 16339 `@type` 16340 16341 field. Example (for message [google.protobuf.Duration][]): 16342 16343 { 16344 "@type": "type.googleapis.com/google.protobuf.Duration", 16345 "value": "1.212s" 16346 } 16347 parameters: 16348 - name: proposal_id 16349 description: proposal_id defines the unique id of the proposal. 16350 in: path 16351 required: true 16352 type: string 16353 format: uint64 16354 - name: depositor 16355 description: depositor defines the deposit addresses from the proposals. 16356 in: path 16357 required: true 16358 type: string 16359 tags: 16360 - Query 16361 /cosmos/gov/v1/proposals/{proposal_id}/tally: 16362 get: 16363 summary: TallyResult queries the tally of a proposal vote. 16364 operationId: GovV1TallyResult 16365 responses: 16366 '200': 16367 description: A successful response. 16368 schema: 16369 type: object 16370 properties: 16371 tally: 16372 description: tally defines the requested tally. 16373 type: object 16374 properties: 16375 yes_count: 16376 type: string 16377 description: yes_count is the number of yes votes on a proposal. 16378 abstain_count: 16379 type: string 16380 description: >- 16381 abstain_count is the number of abstain votes on a 16382 proposal. 16383 no_count: 16384 type: string 16385 description: no_count is the number of no votes on a proposal. 16386 no_with_veto_count: 16387 type: string 16388 description: >- 16389 no_with_veto_count is the number of no with veto votes on 16390 a proposal. 16391 description: >- 16392 QueryTallyResultResponse is the response type for the Query/Tally 16393 RPC method. 16394 default: 16395 description: An unexpected error response. 16396 schema: 16397 type: object 16398 properties: 16399 error: 16400 type: string 16401 code: 16402 type: integer 16403 format: int32 16404 message: 16405 type: string 16406 details: 16407 type: array 16408 items: 16409 type: object 16410 properties: 16411 type_url: 16412 type: string 16413 description: >- 16414 A URL/resource name that uniquely identifies the type of 16415 the serialized 16416 16417 protocol buffer message. This string must contain at 16418 least 16419 16420 one "/" character. The last segment of the URL's path 16421 must represent 16422 16423 the fully qualified name of the type (as in 16424 16425 `path/google.protobuf.Duration`). The name should be in 16426 a canonical form 16427 16428 (e.g., leading "." is not accepted). 16429 16430 16431 In practice, teams usually precompile into the binary 16432 all types that they 16433 16434 expect it to use in the context of Any. However, for 16435 URLs which use the 16436 16437 scheme `http`, `https`, or no scheme, one can optionally 16438 set up a type 16439 16440 server that maps type URLs to message definitions as 16441 follows: 16442 16443 16444 * If no scheme is provided, `https` is assumed. 16445 16446 * An HTTP GET on the URL must yield a 16447 [google.protobuf.Type][] 16448 value in binary format, or produce an error. 16449 * Applications are allowed to cache lookup results based 16450 on the 16451 URL, or have them precompiled into a binary to avoid any 16452 lookup. Therefore, binary compatibility needs to be preserved 16453 on changes to types. (Use versioned type names to manage 16454 breaking changes.) 16455 16456 Note: this functionality is not currently available in 16457 the official 16458 16459 protobuf release, and it is not used for type URLs 16460 beginning with 16461 16462 type.googleapis.com. 16463 16464 16465 Schemes other than `http`, `https` (or the empty scheme) 16466 might be 16467 16468 used with implementation specific semantics. 16469 value: 16470 type: string 16471 format: byte 16472 description: >- 16473 Must be a valid serialized protocol buffer of the above 16474 specified type. 16475 description: >- 16476 `Any` contains an arbitrary serialized protocol buffer 16477 message along with a 16478 16479 URL that describes the type of the serialized message. 16480 16481 16482 Protobuf library provides support to pack/unpack Any values 16483 in the form 16484 16485 of utility functions or additional generated methods of the 16486 Any type. 16487 16488 16489 Example 1: Pack and unpack a message in C++. 16490 16491 Foo foo = ...; 16492 Any any; 16493 any.PackFrom(foo); 16494 ... 16495 if (any.UnpackTo(&foo)) { 16496 ... 16497 } 16498 16499 Example 2: Pack and unpack a message in Java. 16500 16501 Foo foo = ...; 16502 Any any = Any.pack(foo); 16503 ... 16504 if (any.is(Foo.class)) { 16505 foo = any.unpack(Foo.class); 16506 } 16507 // or ... 16508 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 16509 foo = any.unpack(Foo.getDefaultInstance()); 16510 } 16511 16512 Example 3: Pack and unpack a message in Python. 16513 16514 foo = Foo(...) 16515 any = Any() 16516 any.Pack(foo) 16517 ... 16518 if any.Is(Foo.DESCRIPTOR): 16519 any.Unpack(foo) 16520 ... 16521 16522 Example 4: Pack and unpack a message in Go 16523 16524 foo := &pb.Foo{...} 16525 any, err := anypb.New(foo) 16526 if err != nil { 16527 ... 16528 } 16529 ... 16530 foo := &pb.Foo{} 16531 if err := any.UnmarshalTo(foo); err != nil { 16532 ... 16533 } 16534 16535 The pack methods provided by protobuf library will by 16536 default use 16537 16538 'type.googleapis.com/full.type.name' as the type URL and the 16539 unpack 16540 16541 methods only use the fully qualified type name after the 16542 last '/' 16543 16544 in the type URL, for example "foo.bar.com/x/y.z" will yield 16545 type 16546 16547 name "y.z". 16548 16549 16550 JSON 16551 16552 16553 The JSON representation of an `Any` value uses the regular 16554 16555 representation of the deserialized, embedded message, with 16556 an 16557 16558 additional field `@type` which contains the type URL. 16559 Example: 16560 16561 package google.profile; 16562 message Person { 16563 string first_name = 1; 16564 string last_name = 2; 16565 } 16566 16567 { 16568 "@type": "type.googleapis.com/google.profile.Person", 16569 "firstName": <string>, 16570 "lastName": <string> 16571 } 16572 16573 If the embedded message type is well-known and has a custom 16574 JSON 16575 16576 representation, that representation will be embedded adding 16577 a field 16578 16579 `value` which holds the custom JSON in addition to the 16580 `@type` 16581 16582 field. Example (for message [google.protobuf.Duration][]): 16583 16584 { 16585 "@type": "type.googleapis.com/google.protobuf.Duration", 16586 "value": "1.212s" 16587 } 16588 parameters: 16589 - name: proposal_id 16590 description: proposal_id defines the unique id of the proposal. 16591 in: path 16592 required: true 16593 type: string 16594 format: uint64 16595 tags: 16596 - Query 16597 /cosmos/gov/v1/proposals/{proposal_id}/votes: 16598 get: 16599 summary: Votes queries votes of a given proposal. 16600 operationId: GovV1Votes 16601 responses: 16602 '200': 16603 description: A successful response. 16604 schema: 16605 type: object 16606 properties: 16607 votes: 16608 type: array 16609 items: 16610 type: object 16611 properties: 16612 proposal_id: 16613 type: string 16614 format: uint64 16615 description: proposal_id defines the unique id of the proposal. 16616 voter: 16617 type: string 16618 description: voter is the voter address of the proposal. 16619 options: 16620 type: array 16621 items: 16622 type: object 16623 properties: 16624 option: 16625 description: >- 16626 option defines the valid vote options, it must not 16627 contain duplicate vote options. 16628 type: string 16629 enum: 16630 - VOTE_OPTION_UNSPECIFIED 16631 - VOTE_OPTION_YES 16632 - VOTE_OPTION_ABSTAIN 16633 - VOTE_OPTION_NO 16634 - VOTE_OPTION_NO_WITH_VETO 16635 default: VOTE_OPTION_UNSPECIFIED 16636 weight: 16637 type: string 16638 description: >- 16639 weight is the vote weight associated with the vote 16640 option. 16641 description: >- 16642 WeightedVoteOption defines a unit of vote for vote 16643 split. 16644 description: options is the weighted vote options. 16645 metadata: 16646 type: string 16647 title: >- 16648 metadata is any arbitrary metadata attached to the vote. 16649 16650 the recommended format of the metadata is to be found 16651 here: 16652 https://docs.cosmos.network/v0.47/modules/gov#vote-5 16653 description: >- 16654 Vote defines a vote on a governance proposal. 16655 16656 A Vote consists of a proposal ID, the voter, and the vote 16657 option. 16658 description: votes defines the queried votes. 16659 pagination: 16660 description: pagination defines the pagination in the response. 16661 type: object 16662 properties: 16663 next_key: 16664 type: string 16665 format: byte 16666 description: |- 16667 next_key is the key to be passed to PageRequest.key to 16668 query the next page most efficiently. It will be empty if 16669 there are no more results. 16670 total: 16671 type: string 16672 format: uint64 16673 title: >- 16674 total is total number of results available if 16675 PageRequest.count_total 16676 16677 was set, its value is undefined otherwise 16678 description: >- 16679 QueryVotesResponse is the response type for the Query/Votes RPC 16680 method. 16681 default: 16682 description: An unexpected error response. 16683 schema: 16684 type: object 16685 properties: 16686 error: 16687 type: string 16688 code: 16689 type: integer 16690 format: int32 16691 message: 16692 type: string 16693 details: 16694 type: array 16695 items: 16696 type: object 16697 properties: 16698 type_url: 16699 type: string 16700 description: >- 16701 A URL/resource name that uniquely identifies the type of 16702 the serialized 16703 16704 protocol buffer message. This string must contain at 16705 least 16706 16707 one "/" character. The last segment of the URL's path 16708 must represent 16709 16710 the fully qualified name of the type (as in 16711 16712 `path/google.protobuf.Duration`). The name should be in 16713 a canonical form 16714 16715 (e.g., leading "." is not accepted). 16716 16717 16718 In practice, teams usually precompile into the binary 16719 all types that they 16720 16721 expect it to use in the context of Any. However, for 16722 URLs which use the 16723 16724 scheme `http`, `https`, or no scheme, one can optionally 16725 set up a type 16726 16727 server that maps type URLs to message definitions as 16728 follows: 16729 16730 16731 * If no scheme is provided, `https` is assumed. 16732 16733 * An HTTP GET on the URL must yield a 16734 [google.protobuf.Type][] 16735 value in binary format, or produce an error. 16736 * Applications are allowed to cache lookup results based 16737 on the 16738 URL, or have them precompiled into a binary to avoid any 16739 lookup. Therefore, binary compatibility needs to be preserved 16740 on changes to types. (Use versioned type names to manage 16741 breaking changes.) 16742 16743 Note: this functionality is not currently available in 16744 the official 16745 16746 protobuf release, and it is not used for type URLs 16747 beginning with 16748 16749 type.googleapis.com. 16750 16751 16752 Schemes other than `http`, `https` (or the empty scheme) 16753 might be 16754 16755 used with implementation specific semantics. 16756 value: 16757 type: string 16758 format: byte 16759 description: >- 16760 Must be a valid serialized protocol buffer of the above 16761 specified type. 16762 description: >- 16763 `Any` contains an arbitrary serialized protocol buffer 16764 message along with a 16765 16766 URL that describes the type of the serialized message. 16767 16768 16769 Protobuf library provides support to pack/unpack Any values 16770 in the form 16771 16772 of utility functions or additional generated methods of the 16773 Any type. 16774 16775 16776 Example 1: Pack and unpack a message in C++. 16777 16778 Foo foo = ...; 16779 Any any; 16780 any.PackFrom(foo); 16781 ... 16782 if (any.UnpackTo(&foo)) { 16783 ... 16784 } 16785 16786 Example 2: Pack and unpack a message in Java. 16787 16788 Foo foo = ...; 16789 Any any = Any.pack(foo); 16790 ... 16791 if (any.is(Foo.class)) { 16792 foo = any.unpack(Foo.class); 16793 } 16794 // or ... 16795 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 16796 foo = any.unpack(Foo.getDefaultInstance()); 16797 } 16798 16799 Example 3: Pack and unpack a message in Python. 16800 16801 foo = Foo(...) 16802 any = Any() 16803 any.Pack(foo) 16804 ... 16805 if any.Is(Foo.DESCRIPTOR): 16806 any.Unpack(foo) 16807 ... 16808 16809 Example 4: Pack and unpack a message in Go 16810 16811 foo := &pb.Foo{...} 16812 any, err := anypb.New(foo) 16813 if err != nil { 16814 ... 16815 } 16816 ... 16817 foo := &pb.Foo{} 16818 if err := any.UnmarshalTo(foo); err != nil { 16819 ... 16820 } 16821 16822 The pack methods provided by protobuf library will by 16823 default use 16824 16825 'type.googleapis.com/full.type.name' as the type URL and the 16826 unpack 16827 16828 methods only use the fully qualified type name after the 16829 last '/' 16830 16831 in the type URL, for example "foo.bar.com/x/y.z" will yield 16832 type 16833 16834 name "y.z". 16835 16836 16837 JSON 16838 16839 16840 The JSON representation of an `Any` value uses the regular 16841 16842 representation of the deserialized, embedded message, with 16843 an 16844 16845 additional field `@type` which contains the type URL. 16846 Example: 16847 16848 package google.profile; 16849 message Person { 16850 string first_name = 1; 16851 string last_name = 2; 16852 } 16853 16854 { 16855 "@type": "type.googleapis.com/google.profile.Person", 16856 "firstName": <string>, 16857 "lastName": <string> 16858 } 16859 16860 If the embedded message type is well-known and has a custom 16861 JSON 16862 16863 representation, that representation will be embedded adding 16864 a field 16865 16866 `value` which holds the custom JSON in addition to the 16867 `@type` 16868 16869 field. Example (for message [google.protobuf.Duration][]): 16870 16871 { 16872 "@type": "type.googleapis.com/google.protobuf.Duration", 16873 "value": "1.212s" 16874 } 16875 parameters: 16876 - name: proposal_id 16877 description: proposal_id defines the unique id of the proposal. 16878 in: path 16879 required: true 16880 type: string 16881 format: uint64 16882 - name: pagination.key 16883 description: |- 16884 key is a value returned in PageResponse.next_key to begin 16885 querying the next page most efficiently. Only one of offset or key 16886 should be set. 16887 in: query 16888 required: false 16889 type: string 16890 format: byte 16891 - name: pagination.offset 16892 description: >- 16893 offset is a numeric offset that can be used when key is unavailable. 16894 16895 It is less efficient than using key. Only one of offset or key 16896 should 16897 16898 be set. 16899 in: query 16900 required: false 16901 type: string 16902 format: uint64 16903 - name: pagination.limit 16904 description: >- 16905 limit is the total number of results to be returned in the result 16906 page. 16907 16908 If left empty it will default to a value to be set by each app. 16909 in: query 16910 required: false 16911 type: string 16912 format: uint64 16913 - name: pagination.count_total 16914 description: >- 16915 count_total is set to true to indicate that the result set should 16916 include 16917 16918 a count of the total number of items available for pagination in 16919 UIs. 16920 16921 count_total is only respected when offset is used. It is ignored 16922 when key 16923 16924 is set. 16925 in: query 16926 required: false 16927 type: boolean 16928 - name: pagination.reverse 16929 description: >- 16930 reverse is set to true if results are to be returned in the 16931 descending order. 16932 16933 16934 Since: cosmos-sdk 0.43 16935 in: query 16936 required: false 16937 type: boolean 16938 tags: 16939 - Query 16940 /cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}: 16941 get: 16942 summary: Vote queries voted information based on proposalID, voterAddr. 16943 operationId: GovV1Vote 16944 responses: 16945 '200': 16946 description: A successful response. 16947 schema: 16948 type: object 16949 properties: 16950 vote: 16951 type: object 16952 properties: 16953 proposal_id: 16954 type: string 16955 format: uint64 16956 description: proposal_id defines the unique id of the proposal. 16957 voter: 16958 type: string 16959 description: voter is the voter address of the proposal. 16960 options: 16961 type: array 16962 items: 16963 type: object 16964 properties: 16965 option: 16966 description: >- 16967 option defines the valid vote options, it must not 16968 contain duplicate vote options. 16969 type: string 16970 enum: 16971 - VOTE_OPTION_UNSPECIFIED 16972 - VOTE_OPTION_YES 16973 - VOTE_OPTION_ABSTAIN 16974 - VOTE_OPTION_NO 16975 - VOTE_OPTION_NO_WITH_VETO 16976 default: VOTE_OPTION_UNSPECIFIED 16977 weight: 16978 type: string 16979 description: >- 16980 weight is the vote weight associated with the vote 16981 option. 16982 description: >- 16983 WeightedVoteOption defines a unit of vote for vote 16984 split. 16985 description: options is the weighted vote options. 16986 metadata: 16987 type: string 16988 title: >- 16989 metadata is any arbitrary metadata attached to the vote. 16990 16991 the recommended format of the metadata is to be found 16992 here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 16993 description: >- 16994 Vote defines a vote on a governance proposal. 16995 16996 A Vote consists of a proposal ID, the voter, and the vote 16997 option. 16998 description: >- 16999 QueryVoteResponse is the response type for the Query/Vote RPC 17000 method. 17001 default: 17002 description: An unexpected error response. 17003 schema: 17004 type: object 17005 properties: 17006 error: 17007 type: string 17008 code: 17009 type: integer 17010 format: int32 17011 message: 17012 type: string 17013 details: 17014 type: array 17015 items: 17016 type: object 17017 properties: 17018 type_url: 17019 type: string 17020 description: >- 17021 A URL/resource name that uniquely identifies the type of 17022 the serialized 17023 17024 protocol buffer message. This string must contain at 17025 least 17026 17027 one "/" character. The last segment of the URL's path 17028 must represent 17029 17030 the fully qualified name of the type (as in 17031 17032 `path/google.protobuf.Duration`). The name should be in 17033 a canonical form 17034 17035 (e.g., leading "." is not accepted). 17036 17037 17038 In practice, teams usually precompile into the binary 17039 all types that they 17040 17041 expect it to use in the context of Any. However, for 17042 URLs which use the 17043 17044 scheme `http`, `https`, or no scheme, one can optionally 17045 set up a type 17046 17047 server that maps type URLs to message definitions as 17048 follows: 17049 17050 17051 * If no scheme is provided, `https` is assumed. 17052 17053 * An HTTP GET on the URL must yield a 17054 [google.protobuf.Type][] 17055 value in binary format, or produce an error. 17056 * Applications are allowed to cache lookup results based 17057 on the 17058 URL, or have them precompiled into a binary to avoid any 17059 lookup. Therefore, binary compatibility needs to be preserved 17060 on changes to types. (Use versioned type names to manage 17061 breaking changes.) 17062 17063 Note: this functionality is not currently available in 17064 the official 17065 17066 protobuf release, and it is not used for type URLs 17067 beginning with 17068 17069 type.googleapis.com. 17070 17071 17072 Schemes other than `http`, `https` (or the empty scheme) 17073 might be 17074 17075 used with implementation specific semantics. 17076 value: 17077 type: string 17078 format: byte 17079 description: >- 17080 Must be a valid serialized protocol buffer of the above 17081 specified type. 17082 description: >- 17083 `Any` contains an arbitrary serialized protocol buffer 17084 message along with a 17085 17086 URL that describes the type of the serialized message. 17087 17088 17089 Protobuf library provides support to pack/unpack Any values 17090 in the form 17091 17092 of utility functions or additional generated methods of the 17093 Any type. 17094 17095 17096 Example 1: Pack and unpack a message in C++. 17097 17098 Foo foo = ...; 17099 Any any; 17100 any.PackFrom(foo); 17101 ... 17102 if (any.UnpackTo(&foo)) { 17103 ... 17104 } 17105 17106 Example 2: Pack and unpack a message in Java. 17107 17108 Foo foo = ...; 17109 Any any = Any.pack(foo); 17110 ... 17111 if (any.is(Foo.class)) { 17112 foo = any.unpack(Foo.class); 17113 } 17114 // or ... 17115 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 17116 foo = any.unpack(Foo.getDefaultInstance()); 17117 } 17118 17119 Example 3: Pack and unpack a message in Python. 17120 17121 foo = Foo(...) 17122 any = Any() 17123 any.Pack(foo) 17124 ... 17125 if any.Is(Foo.DESCRIPTOR): 17126 any.Unpack(foo) 17127 ... 17128 17129 Example 4: Pack and unpack a message in Go 17130 17131 foo := &pb.Foo{...} 17132 any, err := anypb.New(foo) 17133 if err != nil { 17134 ... 17135 } 17136 ... 17137 foo := &pb.Foo{} 17138 if err := any.UnmarshalTo(foo); err != nil { 17139 ... 17140 } 17141 17142 The pack methods provided by protobuf library will by 17143 default use 17144 17145 'type.googleapis.com/full.type.name' as the type URL and the 17146 unpack 17147 17148 methods only use the fully qualified type name after the 17149 last '/' 17150 17151 in the type URL, for example "foo.bar.com/x/y.z" will yield 17152 type 17153 17154 name "y.z". 17155 17156 17157 JSON 17158 17159 17160 The JSON representation of an `Any` value uses the regular 17161 17162 representation of the deserialized, embedded message, with 17163 an 17164 17165 additional field `@type` which contains the type URL. 17166 Example: 17167 17168 package google.profile; 17169 message Person { 17170 string first_name = 1; 17171 string last_name = 2; 17172 } 17173 17174 { 17175 "@type": "type.googleapis.com/google.profile.Person", 17176 "firstName": <string>, 17177 "lastName": <string> 17178 } 17179 17180 If the embedded message type is well-known and has a custom 17181 JSON 17182 17183 representation, that representation will be embedded adding 17184 a field 17185 17186 `value` which holds the custom JSON in addition to the 17187 `@type` 17188 17189 field. Example (for message [google.protobuf.Duration][]): 17190 17191 { 17192 "@type": "type.googleapis.com/google.protobuf.Duration", 17193 "value": "1.212s" 17194 } 17195 parameters: 17196 - name: proposal_id 17197 description: proposal_id defines the unique id of the proposal. 17198 in: path 17199 required: true 17200 type: string 17201 format: uint64 17202 - name: voter 17203 description: voter defines the voter address for the proposals. 17204 in: path 17205 required: true 17206 type: string 17207 tags: 17208 - Query 17209 /cosmos/mint/v1beta1/annual_provisions: 17210 get: 17211 summary: AnnualProvisions current minting annual provisions value. 17212 operationId: AnnualProvisions 17213 responses: 17214 '200': 17215 description: A successful response. 17216 schema: 17217 type: object 17218 properties: 17219 annual_provisions: 17220 type: string 17221 format: byte 17222 description: >- 17223 annual_provisions is the current minting annual provisions 17224 value. 17225 description: |- 17226 QueryAnnualProvisionsResponse is the response type for the 17227 Query/AnnualProvisions RPC method. 17228 default: 17229 description: An unexpected error response. 17230 schema: 17231 type: object 17232 properties: 17233 error: 17234 type: string 17235 code: 17236 type: integer 17237 format: int32 17238 message: 17239 type: string 17240 details: 17241 type: array 17242 items: 17243 type: object 17244 properties: 17245 type_url: 17246 type: string 17247 value: 17248 type: string 17249 format: byte 17250 tags: 17251 - Query 17252 /cosmos/mint/v1beta1/inflation: 17253 get: 17254 summary: Inflation returns the current minting inflation value. 17255 operationId: Inflation 17256 responses: 17257 '200': 17258 description: A successful response. 17259 schema: 17260 type: object 17261 properties: 17262 inflation: 17263 type: string 17264 format: byte 17265 description: inflation is the current minting inflation value. 17266 description: >- 17267 QueryInflationResponse is the response type for the 17268 Query/Inflation RPC 17269 17270 method. 17271 default: 17272 description: An unexpected error response. 17273 schema: 17274 type: object 17275 properties: 17276 error: 17277 type: string 17278 code: 17279 type: integer 17280 format: int32 17281 message: 17282 type: string 17283 details: 17284 type: array 17285 items: 17286 type: object 17287 properties: 17288 type_url: 17289 type: string 17290 value: 17291 type: string 17292 format: byte 17293 tags: 17294 - Query 17295 /cosmos/mint/v1beta1/params: 17296 get: 17297 summary: Params returns the total set of minting parameters. 17298 operationId: MintParams 17299 responses: 17300 '200': 17301 description: A successful response. 17302 schema: 17303 type: object 17304 properties: 17305 params: 17306 description: params defines the parameters of the module. 17307 type: object 17308 properties: 17309 mint_denom: 17310 type: string 17311 title: type of coin to mint 17312 inflation_rate_change: 17313 type: string 17314 title: maximum annual change in inflation rate 17315 inflation_max: 17316 type: string 17317 title: maximum inflation rate 17318 inflation_min: 17319 type: string 17320 title: minimum inflation rate 17321 goal_bonded: 17322 type: string 17323 title: goal of percent bonded atoms 17324 blocks_per_year: 17325 type: string 17326 format: uint64 17327 title: expected blocks per year 17328 description: >- 17329 QueryParamsResponse is the response type for the Query/Params RPC 17330 method. 17331 default: 17332 description: An unexpected error response. 17333 schema: 17334 type: object 17335 properties: 17336 error: 17337 type: string 17338 code: 17339 type: integer 17340 format: int32 17341 message: 17342 type: string 17343 details: 17344 type: array 17345 items: 17346 type: object 17347 properties: 17348 type_url: 17349 type: string 17350 value: 17351 type: string 17352 format: byte 17353 tags: 17354 - Query 17355 /cosmos/params/v1beta1/params: 17356 get: 17357 summary: |- 17358 Params queries a specific parameter of a module, given its subspace and 17359 key. 17360 operationId: Params 17361 responses: 17362 '200': 17363 description: A successful response. 17364 schema: 17365 type: object 17366 properties: 17367 param: 17368 description: param defines the queried parameter. 17369 type: object 17370 properties: 17371 subspace: 17372 type: string 17373 key: 17374 type: string 17375 value: 17376 type: string 17377 description: >- 17378 QueryParamsResponse is response type for the Query/Params RPC 17379 method. 17380 default: 17381 description: An unexpected error response. 17382 schema: 17383 type: object 17384 properties: 17385 error: 17386 type: string 17387 code: 17388 type: integer 17389 format: int32 17390 message: 17391 type: string 17392 details: 17393 type: array 17394 items: 17395 type: object 17396 properties: 17397 type_url: 17398 type: string 17399 value: 17400 type: string 17401 format: byte 17402 parameters: 17403 - name: subspace 17404 description: subspace defines the module to query the parameter for. 17405 in: query 17406 required: false 17407 type: string 17408 - name: key 17409 description: key defines the key of the parameter in the subspace. 17410 in: query 17411 required: false 17412 type: string 17413 tags: 17414 - Query 17415 /cosmos/params/v1beta1/subspaces: 17416 get: 17417 summary: >- 17418 Subspaces queries for all registered subspaces and all keys for a 17419 subspace. 17420 description: 'Since: cosmos-sdk 0.46' 17421 operationId: Subspaces 17422 responses: 17423 '200': 17424 description: A successful response. 17425 schema: 17426 type: object 17427 properties: 17428 subspaces: 17429 type: array 17430 items: 17431 type: object 17432 properties: 17433 subspace: 17434 type: string 17435 keys: 17436 type: array 17437 items: 17438 type: string 17439 description: >- 17440 Subspace defines a parameter subspace name and all the keys 17441 that exist for 17442 17443 the subspace. 17444 17445 17446 Since: cosmos-sdk 0.46 17447 description: >- 17448 QuerySubspacesResponse defines the response types for querying for 17449 all 17450 17451 registered subspaces and all keys for a subspace. 17452 17453 17454 Since: cosmos-sdk 0.46 17455 default: 17456 description: An unexpected error response. 17457 schema: 17458 type: object 17459 properties: 17460 error: 17461 type: string 17462 code: 17463 type: integer 17464 format: int32 17465 message: 17466 type: string 17467 details: 17468 type: array 17469 items: 17470 type: object 17471 properties: 17472 type_url: 17473 type: string 17474 value: 17475 type: string 17476 format: byte 17477 tags: 17478 - Query 17479 /cosmos/slashing/v1beta1/params: 17480 get: 17481 summary: Params queries the parameters of slashing module 17482 operationId: SlashingParams 17483 responses: 17484 '200': 17485 description: A successful response. 17486 schema: 17487 type: object 17488 properties: 17489 params: 17490 type: object 17491 properties: 17492 signed_blocks_window: 17493 type: string 17494 format: int64 17495 min_signed_per_window: 17496 type: string 17497 format: byte 17498 downtime_jail_duration: 17499 type: string 17500 slash_fraction_double_sign: 17501 type: string 17502 format: byte 17503 slash_fraction_downtime: 17504 type: string 17505 format: byte 17506 description: >- 17507 Params represents the parameters used for by the slashing 17508 module. 17509 title: >- 17510 QueryParamsResponse is the response type for the Query/Params RPC 17511 method 17512 default: 17513 description: An unexpected error response. 17514 schema: 17515 type: object 17516 properties: 17517 error: 17518 type: string 17519 code: 17520 type: integer 17521 format: int32 17522 message: 17523 type: string 17524 details: 17525 type: array 17526 items: 17527 type: object 17528 properties: 17529 type_url: 17530 type: string 17531 value: 17532 type: string 17533 format: byte 17534 tags: 17535 - Query 17536 /cosmos/slashing/v1beta1/signing_infos: 17537 get: 17538 summary: SigningInfos queries signing info of all validators 17539 operationId: SigningInfos 17540 responses: 17541 '200': 17542 description: A successful response. 17543 schema: 17544 type: object 17545 properties: 17546 info: 17547 type: array 17548 items: 17549 type: object 17550 properties: 17551 address: 17552 type: string 17553 start_height: 17554 type: string 17555 format: int64 17556 title: >- 17557 Height at which validator was first a candidate OR was 17558 un-jailed 17559 index_offset: 17560 type: string 17561 format: int64 17562 description: >- 17563 Index which is incremented every time a validator is 17564 bonded in a block and 17565 17566 _may_ have signed a pre-commit or not. This in 17567 conjunction with the 17568 17569 signed_blocks_window param determines the index in the 17570 missed block bitmap. 17571 jailed_until: 17572 type: string 17573 format: date-time 17574 description: >- 17575 Timestamp until which the validator is jailed due to 17576 liveness downtime. 17577 tombstoned: 17578 type: boolean 17579 description: >- 17580 Whether or not a validator has been tombstoned (killed 17581 out of validator 17582 17583 set). It is set once the validator commits an 17584 equivocation or for any other 17585 17586 configured misbehavior. 17587 missed_blocks_counter: 17588 type: string 17589 format: int64 17590 description: >- 17591 A counter of missed (unsigned) blocks. It is used to 17592 avoid unnecessary 17593 17594 reads in the missed block bitmap. 17595 description: >- 17596 ValidatorSigningInfo defines a validator's signing info for 17597 monitoring their 17598 17599 liveness activity. 17600 title: info is the signing info of all validators 17601 pagination: 17602 type: object 17603 properties: 17604 next_key: 17605 type: string 17606 format: byte 17607 description: |- 17608 next_key is the key to be passed to PageRequest.key to 17609 query the next page most efficiently. It will be empty if 17610 there are no more results. 17611 total: 17612 type: string 17613 format: uint64 17614 title: >- 17615 total is total number of results available if 17616 PageRequest.count_total 17617 17618 was set, its value is undefined otherwise 17619 description: >- 17620 PageResponse is to be embedded in gRPC response messages where 17621 the 17622 17623 corresponding request message has used PageRequest. 17624 17625 message SomeResponse { 17626 repeated Bar results = 1; 17627 PageResponse page = 2; 17628 } 17629 title: >- 17630 QuerySigningInfosResponse is the response type for the 17631 Query/SigningInfos RPC 17632 17633 method 17634 default: 17635 description: An unexpected error response. 17636 schema: 17637 type: object 17638 properties: 17639 error: 17640 type: string 17641 code: 17642 type: integer 17643 format: int32 17644 message: 17645 type: string 17646 details: 17647 type: array 17648 items: 17649 type: object 17650 properties: 17651 type_url: 17652 type: string 17653 value: 17654 type: string 17655 format: byte 17656 parameters: 17657 - name: pagination.key 17658 description: |- 17659 key is a value returned in PageResponse.next_key to begin 17660 querying the next page most efficiently. Only one of offset or key 17661 should be set. 17662 in: query 17663 required: false 17664 type: string 17665 format: byte 17666 - name: pagination.offset 17667 description: >- 17668 offset is a numeric offset that can be used when key is unavailable. 17669 17670 It is less efficient than using key. Only one of offset or key 17671 should 17672 17673 be set. 17674 in: query 17675 required: false 17676 type: string 17677 format: uint64 17678 - name: pagination.limit 17679 description: >- 17680 limit is the total number of results to be returned in the result 17681 page. 17682 17683 If left empty it will default to a value to be set by each app. 17684 in: query 17685 required: false 17686 type: string 17687 format: uint64 17688 - name: pagination.count_total 17689 description: >- 17690 count_total is set to true to indicate that the result set should 17691 include 17692 17693 a count of the total number of items available for pagination in 17694 UIs. 17695 17696 count_total is only respected when offset is used. It is ignored 17697 when key 17698 17699 is set. 17700 in: query 17701 required: false 17702 type: boolean 17703 - name: pagination.reverse 17704 description: >- 17705 reverse is set to true if results are to be returned in the 17706 descending order. 17707 17708 17709 Since: cosmos-sdk 0.43 17710 in: query 17711 required: false 17712 type: boolean 17713 tags: 17714 - Query 17715 /cosmos/slashing/v1beta1/signing_infos/{cons_address}: 17716 get: 17717 summary: SigningInfo queries the signing info of given cons address 17718 operationId: SigningInfo 17719 responses: 17720 '200': 17721 description: A successful response. 17722 schema: 17723 type: object 17724 properties: 17725 val_signing_info: 17726 type: object 17727 properties: 17728 address: 17729 type: string 17730 start_height: 17731 type: string 17732 format: int64 17733 title: >- 17734 Height at which validator was first a candidate OR was 17735 un-jailed 17736 index_offset: 17737 type: string 17738 format: int64 17739 description: >- 17740 Index which is incremented every time a validator is 17741 bonded in a block and 17742 17743 _may_ have signed a pre-commit or not. This in conjunction 17744 with the 17745 17746 signed_blocks_window param determines the index in the 17747 missed block bitmap. 17748 jailed_until: 17749 type: string 17750 format: date-time 17751 description: >- 17752 Timestamp until which the validator is jailed due to 17753 liveness downtime. 17754 tombstoned: 17755 type: boolean 17756 description: >- 17757 Whether or not a validator has been tombstoned (killed out 17758 of validator 17759 17760 set). It is set once the validator commits an equivocation 17761 or for any other 17762 17763 configured misbehavior. 17764 missed_blocks_counter: 17765 type: string 17766 format: int64 17767 description: >- 17768 A counter of missed (unsigned) blocks. It is used to avoid 17769 unnecessary 17770 17771 reads in the missed block bitmap. 17772 description: >- 17773 ValidatorSigningInfo defines a validator's signing info for 17774 monitoring their 17775 17776 liveness activity. 17777 title: >- 17778 val_signing_info is the signing info of requested val cons 17779 address 17780 title: >- 17781 QuerySigningInfoResponse is the response type for the 17782 Query/SigningInfo RPC 17783 17784 method 17785 default: 17786 description: An unexpected error response. 17787 schema: 17788 type: object 17789 properties: 17790 error: 17791 type: string 17792 code: 17793 type: integer 17794 format: int32 17795 message: 17796 type: string 17797 details: 17798 type: array 17799 items: 17800 type: object 17801 properties: 17802 type_url: 17803 type: string 17804 value: 17805 type: string 17806 format: byte 17807 parameters: 17808 - name: cons_address 17809 description: cons_address is the address to query signing info of 17810 in: path 17811 required: true 17812 type: string 17813 tags: 17814 - Query 17815 /cosmos/staking/v1beta1/delegations/{delegator_addr}: 17816 get: 17817 summary: >- 17818 DelegatorDelegations queries all delegations of a given delegator 17819 address. 17820 description: >- 17821 When called from another module, this query might consume a high amount 17822 of 17823 17824 gas if the pagination field is incorrectly set. 17825 operationId: DelegatorDelegations 17826 responses: 17827 '200': 17828 description: A successful response. 17829 schema: 17830 type: object 17831 properties: 17832 delegation_responses: 17833 type: array 17834 items: 17835 type: object 17836 properties: 17837 delegation: 17838 type: object 17839 properties: 17840 delegator_address: 17841 type: string 17842 description: >- 17843 delegator_address is the encoded address of the 17844 delegator. 17845 validator_address: 17846 type: string 17847 description: >- 17848 validator_address is the encoded address of the 17849 validator. 17850 shares: 17851 type: string 17852 description: shares define the delegation shares received. 17853 description: >- 17854 Delegation represents the bond with tokens held by an 17855 account. It is 17856 17857 owned by one delegator, and is associated with the 17858 voting power of one 17859 17860 validator. 17861 balance: 17862 type: object 17863 properties: 17864 denom: 17865 type: string 17866 amount: 17867 type: string 17868 description: >- 17869 Coin defines a token with a denomination and an amount. 17870 17871 17872 NOTE: The amount field is an Int which implements the 17873 custom method 17874 17875 signatures required by gogoproto. 17876 description: >- 17877 DelegationResponse is equivalent to Delegation except that 17878 it contains a 17879 17880 balance in addition to shares which is more suitable for 17881 client responses. 17882 description: >- 17883 delegation_responses defines all the delegations' info of a 17884 delegator. 17885 pagination: 17886 description: pagination defines the pagination in the response. 17887 type: object 17888 properties: 17889 next_key: 17890 type: string 17891 format: byte 17892 description: |- 17893 next_key is the key to be passed to PageRequest.key to 17894 query the next page most efficiently. It will be empty if 17895 there are no more results. 17896 total: 17897 type: string 17898 format: uint64 17899 title: >- 17900 total is total number of results available if 17901 PageRequest.count_total 17902 17903 was set, its value is undefined otherwise 17904 description: |- 17905 QueryDelegatorDelegationsResponse is response type for the 17906 Query/DelegatorDelegations RPC method. 17907 default: 17908 description: An unexpected error response. 17909 schema: 17910 type: object 17911 properties: 17912 error: 17913 type: string 17914 code: 17915 type: integer 17916 format: int32 17917 message: 17918 type: string 17919 details: 17920 type: array 17921 items: 17922 type: object 17923 properties: 17924 type_url: 17925 type: string 17926 description: >- 17927 A URL/resource name that uniquely identifies the type of 17928 the serialized 17929 17930 protocol buffer message. This string must contain at 17931 least 17932 17933 one "/" character. The last segment of the URL's path 17934 must represent 17935 17936 the fully qualified name of the type (as in 17937 17938 `path/google.protobuf.Duration`). The name should be in 17939 a canonical form 17940 17941 (e.g., leading "." is not accepted). 17942 17943 17944 In practice, teams usually precompile into the binary 17945 all types that they 17946 17947 expect it to use in the context of Any. However, for 17948 URLs which use the 17949 17950 scheme `http`, `https`, or no scheme, one can optionally 17951 set up a type 17952 17953 server that maps type URLs to message definitions as 17954 follows: 17955 17956 17957 * If no scheme is provided, `https` is assumed. 17958 17959 * An HTTP GET on the URL must yield a 17960 [google.protobuf.Type][] 17961 value in binary format, or produce an error. 17962 * Applications are allowed to cache lookup results based 17963 on the 17964 URL, or have them precompiled into a binary to avoid any 17965 lookup. Therefore, binary compatibility needs to be preserved 17966 on changes to types. (Use versioned type names to manage 17967 breaking changes.) 17968 17969 Note: this functionality is not currently available in 17970 the official 17971 17972 protobuf release, and it is not used for type URLs 17973 beginning with 17974 17975 type.googleapis.com. 17976 17977 17978 Schemes other than `http`, `https` (or the empty scheme) 17979 might be 17980 17981 used with implementation specific semantics. 17982 value: 17983 type: string 17984 format: byte 17985 description: >- 17986 Must be a valid serialized protocol buffer of the above 17987 specified type. 17988 description: >- 17989 `Any` contains an arbitrary serialized protocol buffer 17990 message along with a 17991 17992 URL that describes the type of the serialized message. 17993 17994 17995 Protobuf library provides support to pack/unpack Any values 17996 in the form 17997 17998 of utility functions or additional generated methods of the 17999 Any type. 18000 18001 18002 Example 1: Pack and unpack a message in C++. 18003 18004 Foo foo = ...; 18005 Any any; 18006 any.PackFrom(foo); 18007 ... 18008 if (any.UnpackTo(&foo)) { 18009 ... 18010 } 18011 18012 Example 2: Pack and unpack a message in Java. 18013 18014 Foo foo = ...; 18015 Any any = Any.pack(foo); 18016 ... 18017 if (any.is(Foo.class)) { 18018 foo = any.unpack(Foo.class); 18019 } 18020 // or ... 18021 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 18022 foo = any.unpack(Foo.getDefaultInstance()); 18023 } 18024 18025 Example 3: Pack and unpack a message in Python. 18026 18027 foo = Foo(...) 18028 any = Any() 18029 any.Pack(foo) 18030 ... 18031 if any.Is(Foo.DESCRIPTOR): 18032 any.Unpack(foo) 18033 ... 18034 18035 Example 4: Pack and unpack a message in Go 18036 18037 foo := &pb.Foo{...} 18038 any, err := anypb.New(foo) 18039 if err != nil { 18040 ... 18041 } 18042 ... 18043 foo := &pb.Foo{} 18044 if err := any.UnmarshalTo(foo); err != nil { 18045 ... 18046 } 18047 18048 The pack methods provided by protobuf library will by 18049 default use 18050 18051 'type.googleapis.com/full.type.name' as the type URL and the 18052 unpack 18053 18054 methods only use the fully qualified type name after the 18055 last '/' 18056 18057 in the type URL, for example "foo.bar.com/x/y.z" will yield 18058 type 18059 18060 name "y.z". 18061 18062 18063 JSON 18064 18065 18066 The JSON representation of an `Any` value uses the regular 18067 18068 representation of the deserialized, embedded message, with 18069 an 18070 18071 additional field `@type` which contains the type URL. 18072 Example: 18073 18074 package google.profile; 18075 message Person { 18076 string first_name = 1; 18077 string last_name = 2; 18078 } 18079 18080 { 18081 "@type": "type.googleapis.com/google.profile.Person", 18082 "firstName": <string>, 18083 "lastName": <string> 18084 } 18085 18086 If the embedded message type is well-known and has a custom 18087 JSON 18088 18089 representation, that representation will be embedded adding 18090 a field 18091 18092 `value` which holds the custom JSON in addition to the 18093 `@type` 18094 18095 field. Example (for message [google.protobuf.Duration][]): 18096 18097 { 18098 "@type": "type.googleapis.com/google.protobuf.Duration", 18099 "value": "1.212s" 18100 } 18101 parameters: 18102 - name: delegator_addr 18103 description: delegator_addr defines the delegator address to query for. 18104 in: path 18105 required: true 18106 type: string 18107 - name: pagination.key 18108 description: |- 18109 key is a value returned in PageResponse.next_key to begin 18110 querying the next page most efficiently. Only one of offset or key 18111 should be set. 18112 in: query 18113 required: false 18114 type: string 18115 format: byte 18116 - name: pagination.offset 18117 description: >- 18118 offset is a numeric offset that can be used when key is unavailable. 18119 18120 It is less efficient than using key. Only one of offset or key 18121 should 18122 18123 be set. 18124 in: query 18125 required: false 18126 type: string 18127 format: uint64 18128 - name: pagination.limit 18129 description: >- 18130 limit is the total number of results to be returned in the result 18131 page. 18132 18133 If left empty it will default to a value to be set by each app. 18134 in: query 18135 required: false 18136 type: string 18137 format: uint64 18138 - name: pagination.count_total 18139 description: >- 18140 count_total is set to true to indicate that the result set should 18141 include 18142 18143 a count of the total number of items available for pagination in 18144 UIs. 18145 18146 count_total is only respected when offset is used. It is ignored 18147 when key 18148 18149 is set. 18150 in: query 18151 required: false 18152 type: boolean 18153 - name: pagination.reverse 18154 description: >- 18155 reverse is set to true if results are to be returned in the 18156 descending order. 18157 18158 18159 Since: cosmos-sdk 0.43 18160 in: query 18161 required: false 18162 type: boolean 18163 tags: 18164 - Query 18165 /cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations: 18166 get: 18167 summary: Redelegations queries redelegations of given address. 18168 description: >- 18169 When called from another module, this query might consume a high amount 18170 of 18171 18172 gas if the pagination field is incorrectly set. 18173 operationId: Redelegations 18174 responses: 18175 '200': 18176 description: A successful response. 18177 schema: 18178 type: object 18179 properties: 18180 redelegation_responses: 18181 type: array 18182 items: 18183 type: object 18184 properties: 18185 redelegation: 18186 type: object 18187 properties: 18188 delegator_address: 18189 type: string 18190 description: >- 18191 delegator_address is the bech32-encoded address of 18192 the delegator. 18193 validator_src_address: 18194 type: string 18195 description: >- 18196 validator_src_address is the validator redelegation 18197 source operator address. 18198 validator_dst_address: 18199 type: string 18200 description: >- 18201 validator_dst_address is the validator redelegation 18202 destination operator address. 18203 entries: 18204 type: array 18205 items: 18206 type: object 18207 properties: 18208 creation_height: 18209 type: string 18210 format: int64 18211 description: >- 18212 creation_height defines the height which the 18213 redelegation took place. 18214 completion_time: 18215 type: string 18216 format: date-time 18217 description: >- 18218 completion_time defines the unix time for 18219 redelegation completion. 18220 initial_balance: 18221 type: string 18222 description: >- 18223 initial_balance defines the initial balance 18224 when redelegation started. 18225 shares_dst: 18226 type: string 18227 description: >- 18228 shares_dst is the amount of 18229 destination-validator shares created by 18230 redelegation. 18231 unbonding_id: 18232 type: string 18233 format: uint64 18234 title: >- 18235 Incrementing id that uniquely identifies this 18236 entry 18237 unbonding_on_hold_ref_count: 18238 type: string 18239 format: int64 18240 title: >- 18241 Strictly positive if this entry's unbonding 18242 has been stopped by external modules 18243 description: >- 18244 RedelegationEntry defines a redelegation object 18245 with relevant metadata. 18246 description: entries are the redelegation entries. 18247 description: >- 18248 Redelegation contains the list of a particular 18249 delegator's redelegating bonds 18250 18251 from a particular source validator to a particular 18252 destination validator. 18253 entries: 18254 type: array 18255 items: 18256 type: object 18257 properties: 18258 redelegation_entry: 18259 type: object 18260 properties: 18261 creation_height: 18262 type: string 18263 format: int64 18264 description: >- 18265 creation_height defines the height which the 18266 redelegation took place. 18267 completion_time: 18268 type: string 18269 format: date-time 18270 description: >- 18271 completion_time defines the unix time for 18272 redelegation completion. 18273 initial_balance: 18274 type: string 18275 description: >- 18276 initial_balance defines the initial balance 18277 when redelegation started. 18278 shares_dst: 18279 type: string 18280 description: >- 18281 shares_dst is the amount of 18282 destination-validator shares created by 18283 redelegation. 18284 unbonding_id: 18285 type: string 18286 format: uint64 18287 title: >- 18288 Incrementing id that uniquely identifies this 18289 entry 18290 unbonding_on_hold_ref_count: 18291 type: string 18292 format: int64 18293 title: >- 18294 Strictly positive if this entry's unbonding 18295 has been stopped by external modules 18296 description: >- 18297 RedelegationEntry defines a redelegation object 18298 with relevant metadata. 18299 balance: 18300 type: string 18301 description: >- 18302 RedelegationEntryResponse is equivalent to a 18303 RedelegationEntry except that it 18304 18305 contains a balance in addition to shares which is more 18306 suitable for client 18307 18308 responses. 18309 description: >- 18310 RedelegationResponse is equivalent to a Redelegation except 18311 that its entries 18312 18313 contain a balance in addition to shares which is more 18314 suitable for client 18315 18316 responses. 18317 pagination: 18318 description: pagination defines the pagination in the response. 18319 type: object 18320 properties: 18321 next_key: 18322 type: string 18323 format: byte 18324 description: |- 18325 next_key is the key to be passed to PageRequest.key to 18326 query the next page most efficiently. It will be empty if 18327 there are no more results. 18328 total: 18329 type: string 18330 format: uint64 18331 title: >- 18332 total is total number of results available if 18333 PageRequest.count_total 18334 18335 was set, its value is undefined otherwise 18336 description: >- 18337 QueryRedelegationsResponse is response type for the 18338 Query/Redelegations RPC 18339 18340 method. 18341 default: 18342 description: An unexpected error response. 18343 schema: 18344 type: object 18345 properties: 18346 error: 18347 type: string 18348 code: 18349 type: integer 18350 format: int32 18351 message: 18352 type: string 18353 details: 18354 type: array 18355 items: 18356 type: object 18357 properties: 18358 type_url: 18359 type: string 18360 description: >- 18361 A URL/resource name that uniquely identifies the type of 18362 the serialized 18363 18364 protocol buffer message. This string must contain at 18365 least 18366 18367 one "/" character. The last segment of the URL's path 18368 must represent 18369 18370 the fully qualified name of the type (as in 18371 18372 `path/google.protobuf.Duration`). The name should be in 18373 a canonical form 18374 18375 (e.g., leading "." is not accepted). 18376 18377 18378 In practice, teams usually precompile into the binary 18379 all types that they 18380 18381 expect it to use in the context of Any. However, for 18382 URLs which use the 18383 18384 scheme `http`, `https`, or no scheme, one can optionally 18385 set up a type 18386 18387 server that maps type URLs to message definitions as 18388 follows: 18389 18390 18391 * If no scheme is provided, `https` is assumed. 18392 18393 * An HTTP GET on the URL must yield a 18394 [google.protobuf.Type][] 18395 value in binary format, or produce an error. 18396 * Applications are allowed to cache lookup results based 18397 on the 18398 URL, or have them precompiled into a binary to avoid any 18399 lookup. Therefore, binary compatibility needs to be preserved 18400 on changes to types. (Use versioned type names to manage 18401 breaking changes.) 18402 18403 Note: this functionality is not currently available in 18404 the official 18405 18406 protobuf release, and it is not used for type URLs 18407 beginning with 18408 18409 type.googleapis.com. 18410 18411 18412 Schemes other than `http`, `https` (or the empty scheme) 18413 might be 18414 18415 used with implementation specific semantics. 18416 value: 18417 type: string 18418 format: byte 18419 description: >- 18420 Must be a valid serialized protocol buffer of the above 18421 specified type. 18422 description: >- 18423 `Any` contains an arbitrary serialized protocol buffer 18424 message along with a 18425 18426 URL that describes the type of the serialized message. 18427 18428 18429 Protobuf library provides support to pack/unpack Any values 18430 in the form 18431 18432 of utility functions or additional generated methods of the 18433 Any type. 18434 18435 18436 Example 1: Pack and unpack a message in C++. 18437 18438 Foo foo = ...; 18439 Any any; 18440 any.PackFrom(foo); 18441 ... 18442 if (any.UnpackTo(&foo)) { 18443 ... 18444 } 18445 18446 Example 2: Pack and unpack a message in Java. 18447 18448 Foo foo = ...; 18449 Any any = Any.pack(foo); 18450 ... 18451 if (any.is(Foo.class)) { 18452 foo = any.unpack(Foo.class); 18453 } 18454 // or ... 18455 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 18456 foo = any.unpack(Foo.getDefaultInstance()); 18457 } 18458 18459 Example 3: Pack and unpack a message in Python. 18460 18461 foo = Foo(...) 18462 any = Any() 18463 any.Pack(foo) 18464 ... 18465 if any.Is(Foo.DESCRIPTOR): 18466 any.Unpack(foo) 18467 ... 18468 18469 Example 4: Pack and unpack a message in Go 18470 18471 foo := &pb.Foo{...} 18472 any, err := anypb.New(foo) 18473 if err != nil { 18474 ... 18475 } 18476 ... 18477 foo := &pb.Foo{} 18478 if err := any.UnmarshalTo(foo); err != nil { 18479 ... 18480 } 18481 18482 The pack methods provided by protobuf library will by 18483 default use 18484 18485 'type.googleapis.com/full.type.name' as the type URL and the 18486 unpack 18487 18488 methods only use the fully qualified type name after the 18489 last '/' 18490 18491 in the type URL, for example "foo.bar.com/x/y.z" will yield 18492 type 18493 18494 name "y.z". 18495 18496 18497 JSON 18498 18499 18500 The JSON representation of an `Any` value uses the regular 18501 18502 representation of the deserialized, embedded message, with 18503 an 18504 18505 additional field `@type` which contains the type URL. 18506 Example: 18507 18508 package google.profile; 18509 message Person { 18510 string first_name = 1; 18511 string last_name = 2; 18512 } 18513 18514 { 18515 "@type": "type.googleapis.com/google.profile.Person", 18516 "firstName": <string>, 18517 "lastName": <string> 18518 } 18519 18520 If the embedded message type is well-known and has a custom 18521 JSON 18522 18523 representation, that representation will be embedded adding 18524 a field 18525 18526 `value` which holds the custom JSON in addition to the 18527 `@type` 18528 18529 field. Example (for message [google.protobuf.Duration][]): 18530 18531 { 18532 "@type": "type.googleapis.com/google.protobuf.Duration", 18533 "value": "1.212s" 18534 } 18535 parameters: 18536 - name: delegator_addr 18537 description: delegator_addr defines the delegator address to query for. 18538 in: path 18539 required: true 18540 type: string 18541 - name: src_validator_addr 18542 description: src_validator_addr defines the validator address to redelegate from. 18543 in: query 18544 required: false 18545 type: string 18546 - name: dst_validator_addr 18547 description: dst_validator_addr defines the validator address to redelegate to. 18548 in: query 18549 required: false 18550 type: string 18551 - name: pagination.key 18552 description: |- 18553 key is a value returned in PageResponse.next_key to begin 18554 querying the next page most efficiently. Only one of offset or key 18555 should be set. 18556 in: query 18557 required: false 18558 type: string 18559 format: byte 18560 - name: pagination.offset 18561 description: >- 18562 offset is a numeric offset that can be used when key is unavailable. 18563 18564 It is less efficient than using key. Only one of offset or key 18565 should 18566 18567 be set. 18568 in: query 18569 required: false 18570 type: string 18571 format: uint64 18572 - name: pagination.limit 18573 description: >- 18574 limit is the total number of results to be returned in the result 18575 page. 18576 18577 If left empty it will default to a value to be set by each app. 18578 in: query 18579 required: false 18580 type: string 18581 format: uint64 18582 - name: pagination.count_total 18583 description: >- 18584 count_total is set to true to indicate that the result set should 18585 include 18586 18587 a count of the total number of items available for pagination in 18588 UIs. 18589 18590 count_total is only respected when offset is used. It is ignored 18591 when key 18592 18593 is set. 18594 in: query 18595 required: false 18596 type: boolean 18597 - name: pagination.reverse 18598 description: >- 18599 reverse is set to true if results are to be returned in the 18600 descending order. 18601 18602 18603 Since: cosmos-sdk 0.43 18604 in: query 18605 required: false 18606 type: boolean 18607 tags: 18608 - Query 18609 /cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations: 18610 get: 18611 summary: >- 18612 DelegatorUnbondingDelegations queries all unbonding delegations of a 18613 given 18614 18615 delegator address. 18616 description: >- 18617 When called from another module, this query might consume a high amount 18618 of 18619 18620 gas if the pagination field is incorrectly set. 18621 operationId: DelegatorUnbondingDelegations 18622 responses: 18623 '200': 18624 description: A successful response. 18625 schema: 18626 type: object 18627 properties: 18628 unbonding_responses: 18629 type: array 18630 items: 18631 type: object 18632 properties: 18633 delegator_address: 18634 type: string 18635 description: >- 18636 delegator_address is the encoded address of the 18637 delegator. 18638 validator_address: 18639 type: string 18640 description: >- 18641 validator_address is the encoded address of the 18642 validator. 18643 entries: 18644 type: array 18645 items: 18646 type: object 18647 properties: 18648 creation_height: 18649 type: string 18650 format: int64 18651 description: >- 18652 creation_height is the height which the unbonding 18653 took place. 18654 completion_time: 18655 type: string 18656 format: date-time 18657 description: >- 18658 completion_time is the unix time for unbonding 18659 completion. 18660 initial_balance: 18661 type: string 18662 description: >- 18663 initial_balance defines the tokens initially 18664 scheduled to receive at completion. 18665 balance: 18666 type: string 18667 description: >- 18668 balance defines the tokens to receive at 18669 completion. 18670 unbonding_id: 18671 type: string 18672 format: uint64 18673 title: >- 18674 Incrementing id that uniquely identifies this 18675 entry 18676 unbonding_on_hold_ref_count: 18677 type: string 18678 format: int64 18679 title: >- 18680 Strictly positive if this entry's unbonding has 18681 been stopped by external modules 18682 description: >- 18683 UnbondingDelegationEntry defines an unbonding object 18684 with relevant metadata. 18685 description: entries are the unbonding delegation entries. 18686 description: >- 18687 UnbondingDelegation stores all of a single delegator's 18688 unbonding bonds 18689 18690 for a single validator in an time-ordered list. 18691 pagination: 18692 description: pagination defines the pagination in the response. 18693 type: object 18694 properties: 18695 next_key: 18696 type: string 18697 format: byte 18698 description: |- 18699 next_key is the key to be passed to PageRequest.key to 18700 query the next page most efficiently. It will be empty if 18701 there are no more results. 18702 total: 18703 type: string 18704 format: uint64 18705 title: >- 18706 total is total number of results available if 18707 PageRequest.count_total 18708 18709 was set, its value is undefined otherwise 18710 description: >- 18711 QueryUnbondingDelegatorDelegationsResponse is response type for 18712 the 18713 18714 Query/UnbondingDelegatorDelegations RPC method. 18715 default: 18716 description: An unexpected error response. 18717 schema: 18718 type: object 18719 properties: 18720 error: 18721 type: string 18722 code: 18723 type: integer 18724 format: int32 18725 message: 18726 type: string 18727 details: 18728 type: array 18729 items: 18730 type: object 18731 properties: 18732 type_url: 18733 type: string 18734 description: >- 18735 A URL/resource name that uniquely identifies the type of 18736 the serialized 18737 18738 protocol buffer message. This string must contain at 18739 least 18740 18741 one "/" character. The last segment of the URL's path 18742 must represent 18743 18744 the fully qualified name of the type (as in 18745 18746 `path/google.protobuf.Duration`). The name should be in 18747 a canonical form 18748 18749 (e.g., leading "." is not accepted). 18750 18751 18752 In practice, teams usually precompile into the binary 18753 all types that they 18754 18755 expect it to use in the context of Any. However, for 18756 URLs which use the 18757 18758 scheme `http`, `https`, or no scheme, one can optionally 18759 set up a type 18760 18761 server that maps type URLs to message definitions as 18762 follows: 18763 18764 18765 * If no scheme is provided, `https` is assumed. 18766 18767 * An HTTP GET on the URL must yield a 18768 [google.protobuf.Type][] 18769 value in binary format, or produce an error. 18770 * Applications are allowed to cache lookup results based 18771 on the 18772 URL, or have them precompiled into a binary to avoid any 18773 lookup. Therefore, binary compatibility needs to be preserved 18774 on changes to types. (Use versioned type names to manage 18775 breaking changes.) 18776 18777 Note: this functionality is not currently available in 18778 the official 18779 18780 protobuf release, and it is not used for type URLs 18781 beginning with 18782 18783 type.googleapis.com. 18784 18785 18786 Schemes other than `http`, `https` (or the empty scheme) 18787 might be 18788 18789 used with implementation specific semantics. 18790 value: 18791 type: string 18792 format: byte 18793 description: >- 18794 Must be a valid serialized protocol buffer of the above 18795 specified type. 18796 description: >- 18797 `Any` contains an arbitrary serialized protocol buffer 18798 message along with a 18799 18800 URL that describes the type of the serialized message. 18801 18802 18803 Protobuf library provides support to pack/unpack Any values 18804 in the form 18805 18806 of utility functions or additional generated methods of the 18807 Any type. 18808 18809 18810 Example 1: Pack and unpack a message in C++. 18811 18812 Foo foo = ...; 18813 Any any; 18814 any.PackFrom(foo); 18815 ... 18816 if (any.UnpackTo(&foo)) { 18817 ... 18818 } 18819 18820 Example 2: Pack and unpack a message in Java. 18821 18822 Foo foo = ...; 18823 Any any = Any.pack(foo); 18824 ... 18825 if (any.is(Foo.class)) { 18826 foo = any.unpack(Foo.class); 18827 } 18828 // or ... 18829 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 18830 foo = any.unpack(Foo.getDefaultInstance()); 18831 } 18832 18833 Example 3: Pack and unpack a message in Python. 18834 18835 foo = Foo(...) 18836 any = Any() 18837 any.Pack(foo) 18838 ... 18839 if any.Is(Foo.DESCRIPTOR): 18840 any.Unpack(foo) 18841 ... 18842 18843 Example 4: Pack and unpack a message in Go 18844 18845 foo := &pb.Foo{...} 18846 any, err := anypb.New(foo) 18847 if err != nil { 18848 ... 18849 } 18850 ... 18851 foo := &pb.Foo{} 18852 if err := any.UnmarshalTo(foo); err != nil { 18853 ... 18854 } 18855 18856 The pack methods provided by protobuf library will by 18857 default use 18858 18859 'type.googleapis.com/full.type.name' as the type URL and the 18860 unpack 18861 18862 methods only use the fully qualified type name after the 18863 last '/' 18864 18865 in the type URL, for example "foo.bar.com/x/y.z" will yield 18866 type 18867 18868 name "y.z". 18869 18870 18871 JSON 18872 18873 18874 The JSON representation of an `Any` value uses the regular 18875 18876 representation of the deserialized, embedded message, with 18877 an 18878 18879 additional field `@type` which contains the type URL. 18880 Example: 18881 18882 package google.profile; 18883 message Person { 18884 string first_name = 1; 18885 string last_name = 2; 18886 } 18887 18888 { 18889 "@type": "type.googleapis.com/google.profile.Person", 18890 "firstName": <string>, 18891 "lastName": <string> 18892 } 18893 18894 If the embedded message type is well-known and has a custom 18895 JSON 18896 18897 representation, that representation will be embedded adding 18898 a field 18899 18900 `value` which holds the custom JSON in addition to the 18901 `@type` 18902 18903 field. Example (for message [google.protobuf.Duration][]): 18904 18905 { 18906 "@type": "type.googleapis.com/google.protobuf.Duration", 18907 "value": "1.212s" 18908 } 18909 parameters: 18910 - name: delegator_addr 18911 description: delegator_addr defines the delegator address to query for. 18912 in: path 18913 required: true 18914 type: string 18915 - name: pagination.key 18916 description: |- 18917 key is a value returned in PageResponse.next_key to begin 18918 querying the next page most efficiently. Only one of offset or key 18919 should be set. 18920 in: query 18921 required: false 18922 type: string 18923 format: byte 18924 - name: pagination.offset 18925 description: >- 18926 offset is a numeric offset that can be used when key is unavailable. 18927 18928 It is less efficient than using key. Only one of offset or key 18929 should 18930 18931 be set. 18932 in: query 18933 required: false 18934 type: string 18935 format: uint64 18936 - name: pagination.limit 18937 description: >- 18938 limit is the total number of results to be returned in the result 18939 page. 18940 18941 If left empty it will default to a value to be set by each app. 18942 in: query 18943 required: false 18944 type: string 18945 format: uint64 18946 - name: pagination.count_total 18947 description: >- 18948 count_total is set to true to indicate that the result set should 18949 include 18950 18951 a count of the total number of items available for pagination in 18952 UIs. 18953 18954 count_total is only respected when offset is used. It is ignored 18955 when key 18956 18957 is set. 18958 in: query 18959 required: false 18960 type: boolean 18961 - name: pagination.reverse 18962 description: >- 18963 reverse is set to true if results are to be returned in the 18964 descending order. 18965 18966 18967 Since: cosmos-sdk 0.43 18968 in: query 18969 required: false 18970 type: boolean 18971 tags: 18972 - Query 18973 /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators: 18974 get: 18975 summary: |- 18976 DelegatorValidators queries all validators info for given delegator 18977 address. 18978 description: >- 18979 When called from another module, this query might consume a high amount 18980 of 18981 18982 gas if the pagination field is incorrectly set. 18983 operationId: StakingDelegatorValidators 18984 responses: 18985 '200': 18986 description: A successful response. 18987 schema: 18988 type: object 18989 properties: 18990 validators: 18991 type: array 18992 items: 18993 type: object 18994 properties: 18995 operator_address: 18996 type: string 18997 description: >- 18998 operator_address defines the address of the validator's 18999 operator; bech encoded in JSON. 19000 consensus_pubkey: 19001 type: object 19002 properties: 19003 type_url: 19004 type: string 19005 description: >- 19006 A URL/resource name that uniquely identifies the 19007 type of the serialized 19008 19009 protocol buffer message. This string must contain at 19010 least 19011 19012 one "/" character. The last segment of the URL's 19013 path must represent 19014 19015 the fully qualified name of the type (as in 19016 19017 `path/google.protobuf.Duration`). The name should be 19018 in a canonical form 19019 19020 (e.g., leading "." is not accepted). 19021 19022 19023 In practice, teams usually precompile into the 19024 binary all types that they 19025 19026 expect it to use in the context of Any. However, for 19027 URLs which use the 19028 19029 scheme `http`, `https`, or no scheme, one can 19030 optionally set up a type 19031 19032 server that maps type URLs to message definitions as 19033 follows: 19034 19035 19036 * If no scheme is provided, `https` is assumed. 19037 19038 * An HTTP GET on the URL must yield a 19039 [google.protobuf.Type][] 19040 value in binary format, or produce an error. 19041 * Applications are allowed to cache lookup results 19042 based on the 19043 URL, or have them precompiled into a binary to avoid any 19044 lookup. Therefore, binary compatibility needs to be preserved 19045 on changes to types. (Use versioned type names to manage 19046 breaking changes.) 19047 19048 Note: this functionality is not currently available 19049 in the official 19050 19051 protobuf release, and it is not used for type URLs 19052 beginning with 19053 19054 type.googleapis.com. 19055 19056 19057 Schemes other than `http`, `https` (or the empty 19058 scheme) might be 19059 19060 used with implementation specific semantics. 19061 value: 19062 type: string 19063 format: byte 19064 description: >- 19065 Must be a valid serialized protocol buffer of the 19066 above specified type. 19067 description: >- 19068 `Any` contains an arbitrary serialized protocol buffer 19069 message along with a 19070 19071 URL that describes the type of the serialized message. 19072 19073 19074 Protobuf library provides support to pack/unpack Any 19075 values in the form 19076 19077 of utility functions or additional generated methods of 19078 the Any type. 19079 19080 19081 Example 1: Pack and unpack a message in C++. 19082 19083 Foo foo = ...; 19084 Any any; 19085 any.PackFrom(foo); 19086 ... 19087 if (any.UnpackTo(&foo)) { 19088 ... 19089 } 19090 19091 Example 2: Pack and unpack a message in Java. 19092 19093 Foo foo = ...; 19094 Any any = Any.pack(foo); 19095 ... 19096 if (any.is(Foo.class)) { 19097 foo = any.unpack(Foo.class); 19098 } 19099 // or ... 19100 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 19101 foo = any.unpack(Foo.getDefaultInstance()); 19102 } 19103 19104 Example 3: Pack and unpack a message in Python. 19105 19106 foo = Foo(...) 19107 any = Any() 19108 any.Pack(foo) 19109 ... 19110 if any.Is(Foo.DESCRIPTOR): 19111 any.Unpack(foo) 19112 ... 19113 19114 Example 4: Pack and unpack a message in Go 19115 19116 foo := &pb.Foo{...} 19117 any, err := anypb.New(foo) 19118 if err != nil { 19119 ... 19120 } 19121 ... 19122 foo := &pb.Foo{} 19123 if err := any.UnmarshalTo(foo); err != nil { 19124 ... 19125 } 19126 19127 The pack methods provided by protobuf library will by 19128 default use 19129 19130 'type.googleapis.com/full.type.name' as the type URL and 19131 the unpack 19132 19133 methods only use the fully qualified type name after the 19134 last '/' 19135 19136 in the type URL, for example "foo.bar.com/x/y.z" will 19137 yield type 19138 19139 name "y.z". 19140 19141 19142 JSON 19143 19144 19145 The JSON representation of an `Any` value uses the 19146 regular 19147 19148 representation of the deserialized, embedded message, 19149 with an 19150 19151 additional field `@type` which contains the type URL. 19152 Example: 19153 19154 package google.profile; 19155 message Person { 19156 string first_name = 1; 19157 string last_name = 2; 19158 } 19159 19160 { 19161 "@type": "type.googleapis.com/google.profile.Person", 19162 "firstName": <string>, 19163 "lastName": <string> 19164 } 19165 19166 If the embedded message type is well-known and has a 19167 custom JSON 19168 19169 representation, that representation will be embedded 19170 adding a field 19171 19172 `value` which holds the custom JSON in addition to the 19173 `@type` 19174 19175 field. Example (for message 19176 [google.protobuf.Duration][]): 19177 19178 { 19179 "@type": "type.googleapis.com/google.protobuf.Duration", 19180 "value": "1.212s" 19181 } 19182 jailed: 19183 type: boolean 19184 description: >- 19185 jailed defined whether the validator has been jailed 19186 from bonded status or not. 19187 status: 19188 description: >- 19189 status is the validator status 19190 (bonded/unbonding/unbonded). 19191 type: string 19192 enum: 19193 - BOND_STATUS_UNSPECIFIED 19194 - BOND_STATUS_UNBONDED 19195 - BOND_STATUS_UNBONDING 19196 - BOND_STATUS_BONDED 19197 default: BOND_STATUS_UNSPECIFIED 19198 tokens: 19199 type: string 19200 description: >- 19201 tokens define the delegated tokens (incl. 19202 self-delegation). 19203 delegator_shares: 19204 type: string 19205 description: >- 19206 delegator_shares defines total shares issued to a 19207 validator's delegators. 19208 description: 19209 description: >- 19210 description defines the description terms for the 19211 validator. 19212 type: object 19213 properties: 19214 moniker: 19215 type: string 19216 description: >- 19217 moniker defines a human-readable name for the 19218 validator. 19219 identity: 19220 type: string 19221 description: >- 19222 identity defines an optional identity signature (ex. 19223 UPort or Keybase). 19224 website: 19225 type: string 19226 description: website defines an optional website link. 19227 security_contact: 19228 type: string 19229 description: >- 19230 security_contact defines an optional email for 19231 security contact. 19232 details: 19233 type: string 19234 description: details define other optional details. 19235 unbonding_height: 19236 type: string 19237 format: int64 19238 description: >- 19239 unbonding_height defines, if unbonding, the height at 19240 which this validator has begun unbonding. 19241 unbonding_time: 19242 type: string 19243 format: date-time 19244 description: >- 19245 unbonding_time defines, if unbonding, the min time for 19246 the validator to complete unbonding. 19247 commission: 19248 description: commission defines the commission parameters. 19249 type: object 19250 properties: 19251 commission_rates: 19252 description: >- 19253 commission_rates defines the initial commission 19254 rates to be used for creating a validator. 19255 type: object 19256 properties: 19257 rate: 19258 type: string 19259 description: >- 19260 rate is the commission rate charged to 19261 delegators, as a fraction. 19262 max_rate: 19263 type: string 19264 description: >- 19265 max_rate defines the maximum commission rate 19266 which validator can ever charge, as a fraction. 19267 max_change_rate: 19268 type: string 19269 description: >- 19270 max_change_rate defines the maximum daily 19271 increase of the validator commission, as a 19272 fraction. 19273 update_time: 19274 type: string 19275 format: date-time 19276 description: >- 19277 update_time is the last time the commission rate was 19278 changed. 19279 min_self_delegation: 19280 type: string 19281 description: >- 19282 min_self_delegation is the validator's self declared 19283 minimum self delegation. 19284 19285 19286 Since: cosmos-sdk 0.46 19287 unbonding_on_hold_ref_count: 19288 type: string 19289 format: int64 19290 title: >- 19291 strictly positive if this validator's unbonding has been 19292 stopped by external modules 19293 unbonding_ids: 19294 type: array 19295 items: 19296 type: string 19297 format: uint64 19298 title: >- 19299 list of unbonding ids, each uniquely identifing an 19300 unbonding of this validator 19301 description: >- 19302 Validator defines a validator, together with the total 19303 amount of the 19304 19305 Validator's bond shares and their exchange rate to coins. 19306 Slashing results in 19307 19308 a decrease in the exchange rate, allowing correct 19309 calculation of future 19310 19311 undelegations without iterating over delegators. When coins 19312 are delegated to 19313 19314 this validator, the validator is credited with a delegation 19315 whose number of 19316 19317 bond shares is based on the amount of coins delegated 19318 divided by the current 19319 19320 exchange rate. Voting power can be calculated as total 19321 bonded shares 19322 19323 multiplied by exchange rate. 19324 description: validators defines the validators' info of a delegator. 19325 pagination: 19326 description: pagination defines the pagination in the response. 19327 type: object 19328 properties: 19329 next_key: 19330 type: string 19331 format: byte 19332 description: |- 19333 next_key is the key to be passed to PageRequest.key to 19334 query the next page most efficiently. It will be empty if 19335 there are no more results. 19336 total: 19337 type: string 19338 format: uint64 19339 title: >- 19340 total is total number of results available if 19341 PageRequest.count_total 19342 19343 was set, its value is undefined otherwise 19344 description: |- 19345 QueryDelegatorValidatorsResponse is response type for the 19346 Query/DelegatorValidators RPC method. 19347 default: 19348 description: An unexpected error response. 19349 schema: 19350 type: object 19351 properties: 19352 error: 19353 type: string 19354 code: 19355 type: integer 19356 format: int32 19357 message: 19358 type: string 19359 details: 19360 type: array 19361 items: 19362 type: object 19363 properties: 19364 type_url: 19365 type: string 19366 description: >- 19367 A URL/resource name that uniquely identifies the type of 19368 the serialized 19369 19370 protocol buffer message. This string must contain at 19371 least 19372 19373 one "/" character. The last segment of the URL's path 19374 must represent 19375 19376 the fully qualified name of the type (as in 19377 19378 `path/google.protobuf.Duration`). The name should be in 19379 a canonical form 19380 19381 (e.g., leading "." is not accepted). 19382 19383 19384 In practice, teams usually precompile into the binary 19385 all types that they 19386 19387 expect it to use in the context of Any. However, for 19388 URLs which use the 19389 19390 scheme `http`, `https`, or no scheme, one can optionally 19391 set up a type 19392 19393 server that maps type URLs to message definitions as 19394 follows: 19395 19396 19397 * If no scheme is provided, `https` is assumed. 19398 19399 * An HTTP GET on the URL must yield a 19400 [google.protobuf.Type][] 19401 value in binary format, or produce an error. 19402 * Applications are allowed to cache lookup results based 19403 on the 19404 URL, or have them precompiled into a binary to avoid any 19405 lookup. Therefore, binary compatibility needs to be preserved 19406 on changes to types. (Use versioned type names to manage 19407 breaking changes.) 19408 19409 Note: this functionality is not currently available in 19410 the official 19411 19412 protobuf release, and it is not used for type URLs 19413 beginning with 19414 19415 type.googleapis.com. 19416 19417 19418 Schemes other than `http`, `https` (or the empty scheme) 19419 might be 19420 19421 used with implementation specific semantics. 19422 value: 19423 type: string 19424 format: byte 19425 description: >- 19426 Must be a valid serialized protocol buffer of the above 19427 specified type. 19428 description: >- 19429 `Any` contains an arbitrary serialized protocol buffer 19430 message along with a 19431 19432 URL that describes the type of the serialized message. 19433 19434 19435 Protobuf library provides support to pack/unpack Any values 19436 in the form 19437 19438 of utility functions or additional generated methods of the 19439 Any type. 19440 19441 19442 Example 1: Pack and unpack a message in C++. 19443 19444 Foo foo = ...; 19445 Any any; 19446 any.PackFrom(foo); 19447 ... 19448 if (any.UnpackTo(&foo)) { 19449 ... 19450 } 19451 19452 Example 2: Pack and unpack a message in Java. 19453 19454 Foo foo = ...; 19455 Any any = Any.pack(foo); 19456 ... 19457 if (any.is(Foo.class)) { 19458 foo = any.unpack(Foo.class); 19459 } 19460 // or ... 19461 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 19462 foo = any.unpack(Foo.getDefaultInstance()); 19463 } 19464 19465 Example 3: Pack and unpack a message in Python. 19466 19467 foo = Foo(...) 19468 any = Any() 19469 any.Pack(foo) 19470 ... 19471 if any.Is(Foo.DESCRIPTOR): 19472 any.Unpack(foo) 19473 ... 19474 19475 Example 4: Pack and unpack a message in Go 19476 19477 foo := &pb.Foo{...} 19478 any, err := anypb.New(foo) 19479 if err != nil { 19480 ... 19481 } 19482 ... 19483 foo := &pb.Foo{} 19484 if err := any.UnmarshalTo(foo); err != nil { 19485 ... 19486 } 19487 19488 The pack methods provided by protobuf library will by 19489 default use 19490 19491 'type.googleapis.com/full.type.name' as the type URL and the 19492 unpack 19493 19494 methods only use the fully qualified type name after the 19495 last '/' 19496 19497 in the type URL, for example "foo.bar.com/x/y.z" will yield 19498 type 19499 19500 name "y.z". 19501 19502 19503 JSON 19504 19505 19506 The JSON representation of an `Any` value uses the regular 19507 19508 representation of the deserialized, embedded message, with 19509 an 19510 19511 additional field `@type` which contains the type URL. 19512 Example: 19513 19514 package google.profile; 19515 message Person { 19516 string first_name = 1; 19517 string last_name = 2; 19518 } 19519 19520 { 19521 "@type": "type.googleapis.com/google.profile.Person", 19522 "firstName": <string>, 19523 "lastName": <string> 19524 } 19525 19526 If the embedded message type is well-known and has a custom 19527 JSON 19528 19529 representation, that representation will be embedded adding 19530 a field 19531 19532 `value` which holds the custom JSON in addition to the 19533 `@type` 19534 19535 field. Example (for message [google.protobuf.Duration][]): 19536 19537 { 19538 "@type": "type.googleapis.com/google.protobuf.Duration", 19539 "value": "1.212s" 19540 } 19541 parameters: 19542 - name: delegator_addr 19543 description: delegator_addr defines the delegator address to query for. 19544 in: path 19545 required: true 19546 type: string 19547 - name: pagination.key 19548 description: |- 19549 key is a value returned in PageResponse.next_key to begin 19550 querying the next page most efficiently. Only one of offset or key 19551 should be set. 19552 in: query 19553 required: false 19554 type: string 19555 format: byte 19556 - name: pagination.offset 19557 description: >- 19558 offset is a numeric offset that can be used when key is unavailable. 19559 19560 It is less efficient than using key. Only one of offset or key 19561 should 19562 19563 be set. 19564 in: query 19565 required: false 19566 type: string 19567 format: uint64 19568 - name: pagination.limit 19569 description: >- 19570 limit is the total number of results to be returned in the result 19571 page. 19572 19573 If left empty it will default to a value to be set by each app. 19574 in: query 19575 required: false 19576 type: string 19577 format: uint64 19578 - name: pagination.count_total 19579 description: >- 19580 count_total is set to true to indicate that the result set should 19581 include 19582 19583 a count of the total number of items available for pagination in 19584 UIs. 19585 19586 count_total is only respected when offset is used. It is ignored 19587 when key 19588 19589 is set. 19590 in: query 19591 required: false 19592 type: boolean 19593 - name: pagination.reverse 19594 description: >- 19595 reverse is set to true if results are to be returned in the 19596 descending order. 19597 19598 19599 Since: cosmos-sdk 0.43 19600 in: query 19601 required: false 19602 type: boolean 19603 tags: 19604 - Query 19605 /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}: 19606 get: 19607 summary: |- 19608 DelegatorValidator queries validator info for given delegator validator 19609 pair. 19610 operationId: DelegatorValidator 19611 responses: 19612 '200': 19613 description: A successful response. 19614 schema: 19615 type: object 19616 properties: 19617 validator: 19618 type: object 19619 properties: 19620 operator_address: 19621 type: string 19622 description: >- 19623 operator_address defines the address of the validator's 19624 operator; bech encoded in JSON. 19625 consensus_pubkey: 19626 type: object 19627 properties: 19628 type_url: 19629 type: string 19630 description: >- 19631 A URL/resource name that uniquely identifies the type 19632 of the serialized 19633 19634 protocol buffer message. This string must contain at 19635 least 19636 19637 one "/" character. The last segment of the URL's path 19638 must represent 19639 19640 the fully qualified name of the type (as in 19641 19642 `path/google.protobuf.Duration`). The name should be 19643 in a canonical form 19644 19645 (e.g., leading "." is not accepted). 19646 19647 19648 In practice, teams usually precompile into the binary 19649 all types that they 19650 19651 expect it to use in the context of Any. However, for 19652 URLs which use the 19653 19654 scheme `http`, `https`, or no scheme, one can 19655 optionally set up a type 19656 19657 server that maps type URLs to message definitions as 19658 follows: 19659 19660 19661 * If no scheme is provided, `https` is assumed. 19662 19663 * An HTTP GET on the URL must yield a 19664 [google.protobuf.Type][] 19665 value in binary format, or produce an error. 19666 * Applications are allowed to cache lookup results 19667 based on the 19668 URL, or have them precompiled into a binary to avoid any 19669 lookup. Therefore, binary compatibility needs to be preserved 19670 on changes to types. (Use versioned type names to manage 19671 breaking changes.) 19672 19673 Note: this functionality is not currently available in 19674 the official 19675 19676 protobuf release, and it is not used for type URLs 19677 beginning with 19678 19679 type.googleapis.com. 19680 19681 19682 Schemes other than `http`, `https` (or the empty 19683 scheme) might be 19684 19685 used with implementation specific semantics. 19686 value: 19687 type: string 19688 format: byte 19689 description: >- 19690 Must be a valid serialized protocol buffer of the 19691 above specified type. 19692 description: >- 19693 `Any` contains an arbitrary serialized protocol buffer 19694 message along with a 19695 19696 URL that describes the type of the serialized message. 19697 19698 19699 Protobuf library provides support to pack/unpack Any 19700 values in the form 19701 19702 of utility functions or additional generated methods of 19703 the Any type. 19704 19705 19706 Example 1: Pack and unpack a message in C++. 19707 19708 Foo foo = ...; 19709 Any any; 19710 any.PackFrom(foo); 19711 ... 19712 if (any.UnpackTo(&foo)) { 19713 ... 19714 } 19715 19716 Example 2: Pack and unpack a message in Java. 19717 19718 Foo foo = ...; 19719 Any any = Any.pack(foo); 19720 ... 19721 if (any.is(Foo.class)) { 19722 foo = any.unpack(Foo.class); 19723 } 19724 // or ... 19725 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 19726 foo = any.unpack(Foo.getDefaultInstance()); 19727 } 19728 19729 Example 3: Pack and unpack a message in Python. 19730 19731 foo = Foo(...) 19732 any = Any() 19733 any.Pack(foo) 19734 ... 19735 if any.Is(Foo.DESCRIPTOR): 19736 any.Unpack(foo) 19737 ... 19738 19739 Example 4: Pack and unpack a message in Go 19740 19741 foo := &pb.Foo{...} 19742 any, err := anypb.New(foo) 19743 if err != nil { 19744 ... 19745 } 19746 ... 19747 foo := &pb.Foo{} 19748 if err := any.UnmarshalTo(foo); err != nil { 19749 ... 19750 } 19751 19752 The pack methods provided by protobuf library will by 19753 default use 19754 19755 'type.googleapis.com/full.type.name' as the type URL and 19756 the unpack 19757 19758 methods only use the fully qualified type name after the 19759 last '/' 19760 19761 in the type URL, for example "foo.bar.com/x/y.z" will 19762 yield type 19763 19764 name "y.z". 19765 19766 19767 JSON 19768 19769 19770 The JSON representation of an `Any` value uses the regular 19771 19772 representation of the deserialized, embedded message, with 19773 an 19774 19775 additional field `@type` which contains the type URL. 19776 Example: 19777 19778 package google.profile; 19779 message Person { 19780 string first_name = 1; 19781 string last_name = 2; 19782 } 19783 19784 { 19785 "@type": "type.googleapis.com/google.profile.Person", 19786 "firstName": <string>, 19787 "lastName": <string> 19788 } 19789 19790 If the embedded message type is well-known and has a 19791 custom JSON 19792 19793 representation, that representation will be embedded 19794 adding a field 19795 19796 `value` which holds the custom JSON in addition to the 19797 `@type` 19798 19799 field. Example (for message [google.protobuf.Duration][]): 19800 19801 { 19802 "@type": "type.googleapis.com/google.protobuf.Duration", 19803 "value": "1.212s" 19804 } 19805 jailed: 19806 type: boolean 19807 description: >- 19808 jailed defined whether the validator has been jailed from 19809 bonded status or not. 19810 status: 19811 description: >- 19812 status is the validator status 19813 (bonded/unbonding/unbonded). 19814 type: string 19815 enum: 19816 - BOND_STATUS_UNSPECIFIED 19817 - BOND_STATUS_UNBONDED 19818 - BOND_STATUS_UNBONDING 19819 - BOND_STATUS_BONDED 19820 default: BOND_STATUS_UNSPECIFIED 19821 tokens: 19822 type: string 19823 description: >- 19824 tokens define the delegated tokens (incl. 19825 self-delegation). 19826 delegator_shares: 19827 type: string 19828 description: >- 19829 delegator_shares defines total shares issued to a 19830 validator's delegators. 19831 description: 19832 description: >- 19833 description defines the description terms for the 19834 validator. 19835 type: object 19836 properties: 19837 moniker: 19838 type: string 19839 description: >- 19840 moniker defines a human-readable name for the 19841 validator. 19842 identity: 19843 type: string 19844 description: >- 19845 identity defines an optional identity signature (ex. 19846 UPort or Keybase). 19847 website: 19848 type: string 19849 description: website defines an optional website link. 19850 security_contact: 19851 type: string 19852 description: >- 19853 security_contact defines an optional email for 19854 security contact. 19855 details: 19856 type: string 19857 description: details define other optional details. 19858 unbonding_height: 19859 type: string 19860 format: int64 19861 description: >- 19862 unbonding_height defines, if unbonding, the height at 19863 which this validator has begun unbonding. 19864 unbonding_time: 19865 type: string 19866 format: date-time 19867 description: >- 19868 unbonding_time defines, if unbonding, the min time for the 19869 validator to complete unbonding. 19870 commission: 19871 description: commission defines the commission parameters. 19872 type: object 19873 properties: 19874 commission_rates: 19875 description: >- 19876 commission_rates defines the initial commission rates 19877 to be used for creating a validator. 19878 type: object 19879 properties: 19880 rate: 19881 type: string 19882 description: >- 19883 rate is the commission rate charged to delegators, 19884 as a fraction. 19885 max_rate: 19886 type: string 19887 description: >- 19888 max_rate defines the maximum commission rate which 19889 validator can ever charge, as a fraction. 19890 max_change_rate: 19891 type: string 19892 description: >- 19893 max_change_rate defines the maximum daily increase 19894 of the validator commission, as a fraction. 19895 update_time: 19896 type: string 19897 format: date-time 19898 description: >- 19899 update_time is the last time the commission rate was 19900 changed. 19901 min_self_delegation: 19902 type: string 19903 description: >- 19904 min_self_delegation is the validator's self declared 19905 minimum self delegation. 19906 19907 19908 Since: cosmos-sdk 0.46 19909 unbonding_on_hold_ref_count: 19910 type: string 19911 format: int64 19912 title: >- 19913 strictly positive if this validator's unbonding has been 19914 stopped by external modules 19915 unbonding_ids: 19916 type: array 19917 items: 19918 type: string 19919 format: uint64 19920 title: >- 19921 list of unbonding ids, each uniquely identifing an 19922 unbonding of this validator 19923 description: >- 19924 Validator defines a validator, together with the total amount 19925 of the 19926 19927 Validator's bond shares and their exchange rate to coins. 19928 Slashing results in 19929 19930 a decrease in the exchange rate, allowing correct calculation 19931 of future 19932 19933 undelegations without iterating over delegators. When coins 19934 are delegated to 19935 19936 this validator, the validator is credited with a delegation 19937 whose number of 19938 19939 bond shares is based on the amount of coins delegated divided 19940 by the current 19941 19942 exchange rate. Voting power can be calculated as total bonded 19943 shares 19944 19945 multiplied by exchange rate. 19946 description: |- 19947 QueryDelegatorValidatorResponse response type for the 19948 Query/DelegatorValidator RPC method. 19949 default: 19950 description: An unexpected error response. 19951 schema: 19952 type: object 19953 properties: 19954 error: 19955 type: string 19956 code: 19957 type: integer 19958 format: int32 19959 message: 19960 type: string 19961 details: 19962 type: array 19963 items: 19964 type: object 19965 properties: 19966 type_url: 19967 type: string 19968 description: >- 19969 A URL/resource name that uniquely identifies the type of 19970 the serialized 19971 19972 protocol buffer message. This string must contain at 19973 least 19974 19975 one "/" character. The last segment of the URL's path 19976 must represent 19977 19978 the fully qualified name of the type (as in 19979 19980 `path/google.protobuf.Duration`). The name should be in 19981 a canonical form 19982 19983 (e.g., leading "." is not accepted). 19984 19985 19986 In practice, teams usually precompile into the binary 19987 all types that they 19988 19989 expect it to use in the context of Any. However, for 19990 URLs which use the 19991 19992 scheme `http`, `https`, or no scheme, one can optionally 19993 set up a type 19994 19995 server that maps type URLs to message definitions as 19996 follows: 19997 19998 19999 * If no scheme is provided, `https` is assumed. 20000 20001 * An HTTP GET on the URL must yield a 20002 [google.protobuf.Type][] 20003 value in binary format, or produce an error. 20004 * Applications are allowed to cache lookup results based 20005 on the 20006 URL, or have them precompiled into a binary to avoid any 20007 lookup. Therefore, binary compatibility needs to be preserved 20008 on changes to types. (Use versioned type names to manage 20009 breaking changes.) 20010 20011 Note: this functionality is not currently available in 20012 the official 20013 20014 protobuf release, and it is not used for type URLs 20015 beginning with 20016 20017 type.googleapis.com. 20018 20019 20020 Schemes other than `http`, `https` (or the empty scheme) 20021 might be 20022 20023 used with implementation specific semantics. 20024 value: 20025 type: string 20026 format: byte 20027 description: >- 20028 Must be a valid serialized protocol buffer of the above 20029 specified type. 20030 description: >- 20031 `Any` contains an arbitrary serialized protocol buffer 20032 message along with a 20033 20034 URL that describes the type of the serialized message. 20035 20036 20037 Protobuf library provides support to pack/unpack Any values 20038 in the form 20039 20040 of utility functions or additional generated methods of the 20041 Any type. 20042 20043 20044 Example 1: Pack and unpack a message in C++. 20045 20046 Foo foo = ...; 20047 Any any; 20048 any.PackFrom(foo); 20049 ... 20050 if (any.UnpackTo(&foo)) { 20051 ... 20052 } 20053 20054 Example 2: Pack and unpack a message in Java. 20055 20056 Foo foo = ...; 20057 Any any = Any.pack(foo); 20058 ... 20059 if (any.is(Foo.class)) { 20060 foo = any.unpack(Foo.class); 20061 } 20062 // or ... 20063 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 20064 foo = any.unpack(Foo.getDefaultInstance()); 20065 } 20066 20067 Example 3: Pack and unpack a message in Python. 20068 20069 foo = Foo(...) 20070 any = Any() 20071 any.Pack(foo) 20072 ... 20073 if any.Is(Foo.DESCRIPTOR): 20074 any.Unpack(foo) 20075 ... 20076 20077 Example 4: Pack and unpack a message in Go 20078 20079 foo := &pb.Foo{...} 20080 any, err := anypb.New(foo) 20081 if err != nil { 20082 ... 20083 } 20084 ... 20085 foo := &pb.Foo{} 20086 if err := any.UnmarshalTo(foo); err != nil { 20087 ... 20088 } 20089 20090 The pack methods provided by protobuf library will by 20091 default use 20092 20093 'type.googleapis.com/full.type.name' as the type URL and the 20094 unpack 20095 20096 methods only use the fully qualified type name after the 20097 last '/' 20098 20099 in the type URL, for example "foo.bar.com/x/y.z" will yield 20100 type 20101 20102 name "y.z". 20103 20104 20105 JSON 20106 20107 20108 The JSON representation of an `Any` value uses the regular 20109 20110 representation of the deserialized, embedded message, with 20111 an 20112 20113 additional field `@type` which contains the type URL. 20114 Example: 20115 20116 package google.profile; 20117 message Person { 20118 string first_name = 1; 20119 string last_name = 2; 20120 } 20121 20122 { 20123 "@type": "type.googleapis.com/google.profile.Person", 20124 "firstName": <string>, 20125 "lastName": <string> 20126 } 20127 20128 If the embedded message type is well-known and has a custom 20129 JSON 20130 20131 representation, that representation will be embedded adding 20132 a field 20133 20134 `value` which holds the custom JSON in addition to the 20135 `@type` 20136 20137 field. Example (for message [google.protobuf.Duration][]): 20138 20139 { 20140 "@type": "type.googleapis.com/google.protobuf.Duration", 20141 "value": "1.212s" 20142 } 20143 parameters: 20144 - name: delegator_addr 20145 description: delegator_addr defines the delegator address to query for. 20146 in: path 20147 required: true 20148 type: string 20149 - name: validator_addr 20150 description: validator_addr defines the validator address to query for. 20151 in: path 20152 required: true 20153 type: string 20154 tags: 20155 - Query 20156 /cosmos/staking/v1beta1/historical_info/{height}: 20157 get: 20158 summary: HistoricalInfo queries the historical info for given height. 20159 operationId: HistoricalInfo 20160 responses: 20161 '200': 20162 description: A successful response. 20163 schema: 20164 type: object 20165 properties: 20166 hist: 20167 description: hist defines the historical info at the given height. 20168 type: object 20169 properties: 20170 header: 20171 type: object 20172 properties: 20173 version: 20174 title: basic block info 20175 type: object 20176 properties: 20177 block: 20178 type: string 20179 format: uint64 20180 app: 20181 type: string 20182 format: uint64 20183 description: >- 20184 Consensus captures the consensus rules for processing 20185 a block in the blockchain, 20186 20187 including all blockchain data structures and the rules 20188 of the application's 20189 20190 state transition machine. 20191 chain_id: 20192 type: string 20193 height: 20194 type: string 20195 format: int64 20196 time: 20197 type: string 20198 format: date-time 20199 last_block_id: 20200 title: prev block info 20201 type: object 20202 properties: 20203 hash: 20204 type: string 20205 format: byte 20206 part_set_header: 20207 type: object 20208 properties: 20209 total: 20210 type: integer 20211 format: int64 20212 hash: 20213 type: string 20214 format: byte 20215 title: PartsetHeader 20216 last_commit_hash: 20217 type: string 20218 format: byte 20219 title: hashes of block data 20220 data_hash: 20221 type: string 20222 format: byte 20223 validators_hash: 20224 type: string 20225 format: byte 20226 title: hashes from the app output from the prev block 20227 next_validators_hash: 20228 type: string 20229 format: byte 20230 consensus_hash: 20231 type: string 20232 format: byte 20233 app_hash: 20234 type: string 20235 format: byte 20236 last_results_hash: 20237 type: string 20238 format: byte 20239 evidence_hash: 20240 type: string 20241 format: byte 20242 title: consensus info 20243 proposer_address: 20244 type: string 20245 format: byte 20246 description: Header defines the structure of a block header. 20247 valset: 20248 type: array 20249 items: 20250 type: object 20251 properties: 20252 operator_address: 20253 type: string 20254 description: >- 20255 operator_address defines the address of the 20256 validator's operator; bech encoded in JSON. 20257 consensus_pubkey: 20258 type: object 20259 properties: 20260 type_url: 20261 type: string 20262 description: >- 20263 A URL/resource name that uniquely identifies the 20264 type of the serialized 20265 20266 protocol buffer message. This string must 20267 contain at least 20268 20269 one "/" character. The last segment of the URL's 20270 path must represent 20271 20272 the fully qualified name of the type (as in 20273 20274 `path/google.protobuf.Duration`). The name 20275 should be in a canonical form 20276 20277 (e.g., leading "." is not accepted). 20278 20279 20280 In practice, teams usually precompile into the 20281 binary all types that they 20282 20283 expect it to use in the context of Any. However, 20284 for URLs which use the 20285 20286 scheme `http`, `https`, or no scheme, one can 20287 optionally set up a type 20288 20289 server that maps type URLs to message 20290 definitions as follows: 20291 20292 20293 * If no scheme is provided, `https` is assumed. 20294 20295 * An HTTP GET on the URL must yield a 20296 [google.protobuf.Type][] 20297 value in binary format, or produce an error. 20298 * Applications are allowed to cache lookup 20299 results based on the 20300 URL, or have them precompiled into a binary to avoid any 20301 lookup. Therefore, binary compatibility needs to be preserved 20302 on changes to types. (Use versioned type names to manage 20303 breaking changes.) 20304 20305 Note: this functionality is not currently 20306 available in the official 20307 20308 protobuf release, and it is not used for type 20309 URLs beginning with 20310 20311 type.googleapis.com. 20312 20313 20314 Schemes other than `http`, `https` (or the empty 20315 scheme) might be 20316 20317 used with implementation specific semantics. 20318 value: 20319 type: string 20320 format: byte 20321 description: >- 20322 Must be a valid serialized protocol buffer of 20323 the above specified type. 20324 description: >- 20325 `Any` contains an arbitrary serialized protocol 20326 buffer message along with a 20327 20328 URL that describes the type of the serialized 20329 message. 20330 20331 20332 Protobuf library provides support to pack/unpack Any 20333 values in the form 20334 20335 of utility functions or additional generated methods 20336 of the Any type. 20337 20338 20339 Example 1: Pack and unpack a message in C++. 20340 20341 Foo foo = ...; 20342 Any any; 20343 any.PackFrom(foo); 20344 ... 20345 if (any.UnpackTo(&foo)) { 20346 ... 20347 } 20348 20349 Example 2: Pack and unpack a message in Java. 20350 20351 Foo foo = ...; 20352 Any any = Any.pack(foo); 20353 ... 20354 if (any.is(Foo.class)) { 20355 foo = any.unpack(Foo.class); 20356 } 20357 // or ... 20358 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 20359 foo = any.unpack(Foo.getDefaultInstance()); 20360 } 20361 20362 Example 3: Pack and unpack a message in Python. 20363 20364 foo = Foo(...) 20365 any = Any() 20366 any.Pack(foo) 20367 ... 20368 if any.Is(Foo.DESCRIPTOR): 20369 any.Unpack(foo) 20370 ... 20371 20372 Example 4: Pack and unpack a message in Go 20373 20374 foo := &pb.Foo{...} 20375 any, err := anypb.New(foo) 20376 if err != nil { 20377 ... 20378 } 20379 ... 20380 foo := &pb.Foo{} 20381 if err := any.UnmarshalTo(foo); err != nil { 20382 ... 20383 } 20384 20385 The pack methods provided by protobuf library will 20386 by default use 20387 20388 'type.googleapis.com/full.type.name' as the type URL 20389 and the unpack 20390 20391 methods only use the fully qualified type name after 20392 the last '/' 20393 20394 in the type URL, for example "foo.bar.com/x/y.z" 20395 will yield type 20396 20397 name "y.z". 20398 20399 20400 JSON 20401 20402 20403 The JSON representation of an `Any` value uses the 20404 regular 20405 20406 representation of the deserialized, embedded 20407 message, with an 20408 20409 additional field `@type` which contains the type 20410 URL. Example: 20411 20412 package google.profile; 20413 message Person { 20414 string first_name = 1; 20415 string last_name = 2; 20416 } 20417 20418 { 20419 "@type": "type.googleapis.com/google.profile.Person", 20420 "firstName": <string>, 20421 "lastName": <string> 20422 } 20423 20424 If the embedded message type is well-known and has a 20425 custom JSON 20426 20427 representation, that representation will be embedded 20428 adding a field 20429 20430 `value` which holds the custom JSON in addition to 20431 the `@type` 20432 20433 field. Example (for message 20434 [google.protobuf.Duration][]): 20435 20436 { 20437 "@type": "type.googleapis.com/google.protobuf.Duration", 20438 "value": "1.212s" 20439 } 20440 jailed: 20441 type: boolean 20442 description: >- 20443 jailed defined whether the validator has been jailed 20444 from bonded status or not. 20445 status: 20446 description: >- 20447 status is the validator status 20448 (bonded/unbonding/unbonded). 20449 type: string 20450 enum: 20451 - BOND_STATUS_UNSPECIFIED 20452 - BOND_STATUS_UNBONDED 20453 - BOND_STATUS_UNBONDING 20454 - BOND_STATUS_BONDED 20455 default: BOND_STATUS_UNSPECIFIED 20456 tokens: 20457 type: string 20458 description: >- 20459 tokens define the delegated tokens (incl. 20460 self-delegation). 20461 delegator_shares: 20462 type: string 20463 description: >- 20464 delegator_shares defines total shares issued to a 20465 validator's delegators. 20466 description: 20467 description: >- 20468 description defines the description terms for the 20469 validator. 20470 type: object 20471 properties: 20472 moniker: 20473 type: string 20474 description: >- 20475 moniker defines a human-readable name for the 20476 validator. 20477 identity: 20478 type: string 20479 description: >- 20480 identity defines an optional identity signature 20481 (ex. UPort or Keybase). 20482 website: 20483 type: string 20484 description: website defines an optional website link. 20485 security_contact: 20486 type: string 20487 description: >- 20488 security_contact defines an optional email for 20489 security contact. 20490 details: 20491 type: string 20492 description: details define other optional details. 20493 unbonding_height: 20494 type: string 20495 format: int64 20496 description: >- 20497 unbonding_height defines, if unbonding, the height 20498 at which this validator has begun unbonding. 20499 unbonding_time: 20500 type: string 20501 format: date-time 20502 description: >- 20503 unbonding_time defines, if unbonding, the min time 20504 for the validator to complete unbonding. 20505 commission: 20506 description: commission defines the commission parameters. 20507 type: object 20508 properties: 20509 commission_rates: 20510 description: >- 20511 commission_rates defines the initial commission 20512 rates to be used for creating a validator. 20513 type: object 20514 properties: 20515 rate: 20516 type: string 20517 description: >- 20518 rate is the commission rate charged to 20519 delegators, as a fraction. 20520 max_rate: 20521 type: string 20522 description: >- 20523 max_rate defines the maximum commission rate 20524 which validator can ever charge, as a 20525 fraction. 20526 max_change_rate: 20527 type: string 20528 description: >- 20529 max_change_rate defines the maximum daily 20530 increase of the validator commission, as a 20531 fraction. 20532 update_time: 20533 type: string 20534 format: date-time 20535 description: >- 20536 update_time is the last time the commission rate 20537 was changed. 20538 min_self_delegation: 20539 type: string 20540 description: >- 20541 min_self_delegation is the validator's self declared 20542 minimum self delegation. 20543 20544 20545 Since: cosmos-sdk 0.46 20546 unbonding_on_hold_ref_count: 20547 type: string 20548 format: int64 20549 title: >- 20550 strictly positive if this validator's unbonding has 20551 been stopped by external modules 20552 unbonding_ids: 20553 type: array 20554 items: 20555 type: string 20556 format: uint64 20557 title: >- 20558 list of unbonding ids, each uniquely identifing an 20559 unbonding of this validator 20560 description: >- 20561 Validator defines a validator, together with the total 20562 amount of the 20563 20564 Validator's bond shares and their exchange rate to 20565 coins. Slashing results in 20566 20567 a decrease in the exchange rate, allowing correct 20568 calculation of future 20569 20570 undelegations without iterating over delegators. When 20571 coins are delegated to 20572 20573 this validator, the validator is credited with a 20574 delegation whose number of 20575 20576 bond shares is based on the amount of coins delegated 20577 divided by the current 20578 20579 exchange rate. Voting power can be calculated as total 20580 bonded shares 20581 20582 multiplied by exchange rate. 20583 description: >- 20584 QueryHistoricalInfoResponse is response type for the 20585 Query/HistoricalInfo RPC 20586 20587 method. 20588 default: 20589 description: An unexpected error response. 20590 schema: 20591 type: object 20592 properties: 20593 error: 20594 type: string 20595 code: 20596 type: integer 20597 format: int32 20598 message: 20599 type: string 20600 details: 20601 type: array 20602 items: 20603 type: object 20604 properties: 20605 type_url: 20606 type: string 20607 description: >- 20608 A URL/resource name that uniquely identifies the type of 20609 the serialized 20610 20611 protocol buffer message. This string must contain at 20612 least 20613 20614 one "/" character. The last segment of the URL's path 20615 must represent 20616 20617 the fully qualified name of the type (as in 20618 20619 `path/google.protobuf.Duration`). The name should be in 20620 a canonical form 20621 20622 (e.g., leading "." is not accepted). 20623 20624 20625 In practice, teams usually precompile into the binary 20626 all types that they 20627 20628 expect it to use in the context of Any. However, for 20629 URLs which use the 20630 20631 scheme `http`, `https`, or no scheme, one can optionally 20632 set up a type 20633 20634 server that maps type URLs to message definitions as 20635 follows: 20636 20637 20638 * If no scheme is provided, `https` is assumed. 20639 20640 * An HTTP GET on the URL must yield a 20641 [google.protobuf.Type][] 20642 value in binary format, or produce an error. 20643 * Applications are allowed to cache lookup results based 20644 on the 20645 URL, or have them precompiled into a binary to avoid any 20646 lookup. Therefore, binary compatibility needs to be preserved 20647 on changes to types. (Use versioned type names to manage 20648 breaking changes.) 20649 20650 Note: this functionality is not currently available in 20651 the official 20652 20653 protobuf release, and it is not used for type URLs 20654 beginning with 20655 20656 type.googleapis.com. 20657 20658 20659 Schemes other than `http`, `https` (or the empty scheme) 20660 might be 20661 20662 used with implementation specific semantics. 20663 value: 20664 type: string 20665 format: byte 20666 description: >- 20667 Must be a valid serialized protocol buffer of the above 20668 specified type. 20669 description: >- 20670 `Any` contains an arbitrary serialized protocol buffer 20671 message along with a 20672 20673 URL that describes the type of the serialized message. 20674 20675 20676 Protobuf library provides support to pack/unpack Any values 20677 in the form 20678 20679 of utility functions or additional generated methods of the 20680 Any type. 20681 20682 20683 Example 1: Pack and unpack a message in C++. 20684 20685 Foo foo = ...; 20686 Any any; 20687 any.PackFrom(foo); 20688 ... 20689 if (any.UnpackTo(&foo)) { 20690 ... 20691 } 20692 20693 Example 2: Pack and unpack a message in Java. 20694 20695 Foo foo = ...; 20696 Any any = Any.pack(foo); 20697 ... 20698 if (any.is(Foo.class)) { 20699 foo = any.unpack(Foo.class); 20700 } 20701 // or ... 20702 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 20703 foo = any.unpack(Foo.getDefaultInstance()); 20704 } 20705 20706 Example 3: Pack and unpack a message in Python. 20707 20708 foo = Foo(...) 20709 any = Any() 20710 any.Pack(foo) 20711 ... 20712 if any.Is(Foo.DESCRIPTOR): 20713 any.Unpack(foo) 20714 ... 20715 20716 Example 4: Pack and unpack a message in Go 20717 20718 foo := &pb.Foo{...} 20719 any, err := anypb.New(foo) 20720 if err != nil { 20721 ... 20722 } 20723 ... 20724 foo := &pb.Foo{} 20725 if err := any.UnmarshalTo(foo); err != nil { 20726 ... 20727 } 20728 20729 The pack methods provided by protobuf library will by 20730 default use 20731 20732 'type.googleapis.com/full.type.name' as the type URL and the 20733 unpack 20734 20735 methods only use the fully qualified type name after the 20736 last '/' 20737 20738 in the type URL, for example "foo.bar.com/x/y.z" will yield 20739 type 20740 20741 name "y.z". 20742 20743 20744 JSON 20745 20746 20747 The JSON representation of an `Any` value uses the regular 20748 20749 representation of the deserialized, embedded message, with 20750 an 20751 20752 additional field `@type` which contains the type URL. 20753 Example: 20754 20755 package google.profile; 20756 message Person { 20757 string first_name = 1; 20758 string last_name = 2; 20759 } 20760 20761 { 20762 "@type": "type.googleapis.com/google.profile.Person", 20763 "firstName": <string>, 20764 "lastName": <string> 20765 } 20766 20767 If the embedded message type is well-known and has a custom 20768 JSON 20769 20770 representation, that representation will be embedded adding 20771 a field 20772 20773 `value` which holds the custom JSON in addition to the 20774 `@type` 20775 20776 field. Example (for message [google.protobuf.Duration][]): 20777 20778 { 20779 "@type": "type.googleapis.com/google.protobuf.Duration", 20780 "value": "1.212s" 20781 } 20782 parameters: 20783 - name: height 20784 description: height defines at which height to query the historical info. 20785 in: path 20786 required: true 20787 type: string 20788 format: int64 20789 tags: 20790 - Query 20791 /cosmos/staking/v1beta1/params: 20792 get: 20793 summary: Parameters queries the staking parameters. 20794 operationId: StakingParams 20795 responses: 20796 '200': 20797 description: A successful response. 20798 schema: 20799 type: object 20800 properties: 20801 params: 20802 description: params holds all the parameters of this module. 20803 type: object 20804 properties: 20805 unbonding_time: 20806 type: string 20807 description: unbonding_time is the time duration of unbonding. 20808 max_validators: 20809 type: integer 20810 format: int64 20811 description: max_validators is the maximum number of validators. 20812 max_entries: 20813 type: integer 20814 format: int64 20815 description: >- 20816 max_entries is the max entries for either unbonding 20817 delegation or redelegation (per pair/trio). 20818 historical_entries: 20819 type: integer 20820 format: int64 20821 description: >- 20822 historical_entries is the number of historical entries to 20823 persist. 20824 bond_denom: 20825 type: string 20826 description: bond_denom defines the bondable coin denomination. 20827 min_commission_rate: 20828 type: string 20829 title: >- 20830 min_commission_rate is the chain-wide minimum commission 20831 rate that a validator can charge their delegators 20832 description: >- 20833 QueryParamsResponse is response type for the Query/Params RPC 20834 method. 20835 default: 20836 description: An unexpected error response. 20837 schema: 20838 type: object 20839 properties: 20840 error: 20841 type: string 20842 code: 20843 type: integer 20844 format: int32 20845 message: 20846 type: string 20847 details: 20848 type: array 20849 items: 20850 type: object 20851 properties: 20852 type_url: 20853 type: string 20854 description: >- 20855 A URL/resource name that uniquely identifies the type of 20856 the serialized 20857 20858 protocol buffer message. This string must contain at 20859 least 20860 20861 one "/" character. The last segment of the URL's path 20862 must represent 20863 20864 the fully qualified name of the type (as in 20865 20866 `path/google.protobuf.Duration`). The name should be in 20867 a canonical form 20868 20869 (e.g., leading "." is not accepted). 20870 20871 20872 In practice, teams usually precompile into the binary 20873 all types that they 20874 20875 expect it to use in the context of Any. However, for 20876 URLs which use the 20877 20878 scheme `http`, `https`, or no scheme, one can optionally 20879 set up a type 20880 20881 server that maps type URLs to message definitions as 20882 follows: 20883 20884 20885 * If no scheme is provided, `https` is assumed. 20886 20887 * An HTTP GET on the URL must yield a 20888 [google.protobuf.Type][] 20889 value in binary format, or produce an error. 20890 * Applications are allowed to cache lookup results based 20891 on the 20892 URL, or have them precompiled into a binary to avoid any 20893 lookup. Therefore, binary compatibility needs to be preserved 20894 on changes to types. (Use versioned type names to manage 20895 breaking changes.) 20896 20897 Note: this functionality is not currently available in 20898 the official 20899 20900 protobuf release, and it is not used for type URLs 20901 beginning with 20902 20903 type.googleapis.com. 20904 20905 20906 Schemes other than `http`, `https` (or the empty scheme) 20907 might be 20908 20909 used with implementation specific semantics. 20910 value: 20911 type: string 20912 format: byte 20913 description: >- 20914 Must be a valid serialized protocol buffer of the above 20915 specified type. 20916 description: >- 20917 `Any` contains an arbitrary serialized protocol buffer 20918 message along with a 20919 20920 URL that describes the type of the serialized message. 20921 20922 20923 Protobuf library provides support to pack/unpack Any values 20924 in the form 20925 20926 of utility functions or additional generated methods of the 20927 Any type. 20928 20929 20930 Example 1: Pack and unpack a message in C++. 20931 20932 Foo foo = ...; 20933 Any any; 20934 any.PackFrom(foo); 20935 ... 20936 if (any.UnpackTo(&foo)) { 20937 ... 20938 } 20939 20940 Example 2: Pack and unpack a message in Java. 20941 20942 Foo foo = ...; 20943 Any any = Any.pack(foo); 20944 ... 20945 if (any.is(Foo.class)) { 20946 foo = any.unpack(Foo.class); 20947 } 20948 // or ... 20949 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 20950 foo = any.unpack(Foo.getDefaultInstance()); 20951 } 20952 20953 Example 3: Pack and unpack a message in Python. 20954 20955 foo = Foo(...) 20956 any = Any() 20957 any.Pack(foo) 20958 ... 20959 if any.Is(Foo.DESCRIPTOR): 20960 any.Unpack(foo) 20961 ... 20962 20963 Example 4: Pack and unpack a message in Go 20964 20965 foo := &pb.Foo{...} 20966 any, err := anypb.New(foo) 20967 if err != nil { 20968 ... 20969 } 20970 ... 20971 foo := &pb.Foo{} 20972 if err := any.UnmarshalTo(foo); err != nil { 20973 ... 20974 } 20975 20976 The pack methods provided by protobuf library will by 20977 default use 20978 20979 'type.googleapis.com/full.type.name' as the type URL and the 20980 unpack 20981 20982 methods only use the fully qualified type name after the 20983 last '/' 20984 20985 in the type URL, for example "foo.bar.com/x/y.z" will yield 20986 type 20987 20988 name "y.z". 20989 20990 20991 JSON 20992 20993 20994 The JSON representation of an `Any` value uses the regular 20995 20996 representation of the deserialized, embedded message, with 20997 an 20998 20999 additional field `@type` which contains the type URL. 21000 Example: 21001 21002 package google.profile; 21003 message Person { 21004 string first_name = 1; 21005 string last_name = 2; 21006 } 21007 21008 { 21009 "@type": "type.googleapis.com/google.profile.Person", 21010 "firstName": <string>, 21011 "lastName": <string> 21012 } 21013 21014 If the embedded message type is well-known and has a custom 21015 JSON 21016 21017 representation, that representation will be embedded adding 21018 a field 21019 21020 `value` which holds the custom JSON in addition to the 21021 `@type` 21022 21023 field. Example (for message [google.protobuf.Duration][]): 21024 21025 { 21026 "@type": "type.googleapis.com/google.protobuf.Duration", 21027 "value": "1.212s" 21028 } 21029 tags: 21030 - Query 21031 /cosmos/staking/v1beta1/pool: 21032 get: 21033 summary: Pool queries the pool info. 21034 operationId: Pool 21035 responses: 21036 '200': 21037 description: A successful response. 21038 schema: 21039 type: object 21040 properties: 21041 pool: 21042 description: pool defines the pool info. 21043 type: object 21044 properties: 21045 not_bonded_tokens: 21046 type: string 21047 bonded_tokens: 21048 type: string 21049 description: QueryPoolResponse is response type for the Query/Pool RPC method. 21050 default: 21051 description: An unexpected error response. 21052 schema: 21053 type: object 21054 properties: 21055 error: 21056 type: string 21057 code: 21058 type: integer 21059 format: int32 21060 message: 21061 type: string 21062 details: 21063 type: array 21064 items: 21065 type: object 21066 properties: 21067 type_url: 21068 type: string 21069 description: >- 21070 A URL/resource name that uniquely identifies the type of 21071 the serialized 21072 21073 protocol buffer message. This string must contain at 21074 least 21075 21076 one "/" character. The last segment of the URL's path 21077 must represent 21078 21079 the fully qualified name of the type (as in 21080 21081 `path/google.protobuf.Duration`). The name should be in 21082 a canonical form 21083 21084 (e.g., leading "." is not accepted). 21085 21086 21087 In practice, teams usually precompile into the binary 21088 all types that they 21089 21090 expect it to use in the context of Any. However, for 21091 URLs which use the 21092 21093 scheme `http`, `https`, or no scheme, one can optionally 21094 set up a type 21095 21096 server that maps type URLs to message definitions as 21097 follows: 21098 21099 21100 * If no scheme is provided, `https` is assumed. 21101 21102 * An HTTP GET on the URL must yield a 21103 [google.protobuf.Type][] 21104 value in binary format, or produce an error. 21105 * Applications are allowed to cache lookup results based 21106 on the 21107 URL, or have them precompiled into a binary to avoid any 21108 lookup. Therefore, binary compatibility needs to be preserved 21109 on changes to types. (Use versioned type names to manage 21110 breaking changes.) 21111 21112 Note: this functionality is not currently available in 21113 the official 21114 21115 protobuf release, and it is not used for type URLs 21116 beginning with 21117 21118 type.googleapis.com. 21119 21120 21121 Schemes other than `http`, `https` (or the empty scheme) 21122 might be 21123 21124 used with implementation specific semantics. 21125 value: 21126 type: string 21127 format: byte 21128 description: >- 21129 Must be a valid serialized protocol buffer of the above 21130 specified type. 21131 description: >- 21132 `Any` contains an arbitrary serialized protocol buffer 21133 message along with a 21134 21135 URL that describes the type of the serialized message. 21136 21137 21138 Protobuf library provides support to pack/unpack Any values 21139 in the form 21140 21141 of utility functions or additional generated methods of the 21142 Any type. 21143 21144 21145 Example 1: Pack and unpack a message in C++. 21146 21147 Foo foo = ...; 21148 Any any; 21149 any.PackFrom(foo); 21150 ... 21151 if (any.UnpackTo(&foo)) { 21152 ... 21153 } 21154 21155 Example 2: Pack and unpack a message in Java. 21156 21157 Foo foo = ...; 21158 Any any = Any.pack(foo); 21159 ... 21160 if (any.is(Foo.class)) { 21161 foo = any.unpack(Foo.class); 21162 } 21163 // or ... 21164 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 21165 foo = any.unpack(Foo.getDefaultInstance()); 21166 } 21167 21168 Example 3: Pack and unpack a message in Python. 21169 21170 foo = Foo(...) 21171 any = Any() 21172 any.Pack(foo) 21173 ... 21174 if any.Is(Foo.DESCRIPTOR): 21175 any.Unpack(foo) 21176 ... 21177 21178 Example 4: Pack and unpack a message in Go 21179 21180 foo := &pb.Foo{...} 21181 any, err := anypb.New(foo) 21182 if err != nil { 21183 ... 21184 } 21185 ... 21186 foo := &pb.Foo{} 21187 if err := any.UnmarshalTo(foo); err != nil { 21188 ... 21189 } 21190 21191 The pack methods provided by protobuf library will by 21192 default use 21193 21194 'type.googleapis.com/full.type.name' as the type URL and the 21195 unpack 21196 21197 methods only use the fully qualified type name after the 21198 last '/' 21199 21200 in the type URL, for example "foo.bar.com/x/y.z" will yield 21201 type 21202 21203 name "y.z". 21204 21205 21206 JSON 21207 21208 21209 The JSON representation of an `Any` value uses the regular 21210 21211 representation of the deserialized, embedded message, with 21212 an 21213 21214 additional field `@type` which contains the type URL. 21215 Example: 21216 21217 package google.profile; 21218 message Person { 21219 string first_name = 1; 21220 string last_name = 2; 21221 } 21222 21223 { 21224 "@type": "type.googleapis.com/google.profile.Person", 21225 "firstName": <string>, 21226 "lastName": <string> 21227 } 21228 21229 If the embedded message type is well-known and has a custom 21230 JSON 21231 21232 representation, that representation will be embedded adding 21233 a field 21234 21235 `value` which holds the custom JSON in addition to the 21236 `@type` 21237 21238 field. Example (for message [google.protobuf.Duration][]): 21239 21240 { 21241 "@type": "type.googleapis.com/google.protobuf.Duration", 21242 "value": "1.212s" 21243 } 21244 tags: 21245 - Query 21246 /cosmos/staking/v1beta1/validators: 21247 get: 21248 summary: Validators queries all validators that match the given status. 21249 description: >- 21250 When called from another module, this query might consume a high amount 21251 of 21252 21253 gas if the pagination field is incorrectly set. 21254 operationId: Validators 21255 responses: 21256 '200': 21257 description: A successful response. 21258 schema: 21259 type: object 21260 properties: 21261 validators: 21262 type: array 21263 items: 21264 type: object 21265 properties: 21266 operator_address: 21267 type: string 21268 description: >- 21269 operator_address defines the address of the validator's 21270 operator; bech encoded in JSON. 21271 consensus_pubkey: 21272 type: object 21273 properties: 21274 type_url: 21275 type: string 21276 description: >- 21277 A URL/resource name that uniquely identifies the 21278 type of the serialized 21279 21280 protocol buffer message. This string must contain at 21281 least 21282 21283 one "/" character. The last segment of the URL's 21284 path must represent 21285 21286 the fully qualified name of the type (as in 21287 21288 `path/google.protobuf.Duration`). The name should be 21289 in a canonical form 21290 21291 (e.g., leading "." is not accepted). 21292 21293 21294 In practice, teams usually precompile into the 21295 binary all types that they 21296 21297 expect it to use in the context of Any. However, for 21298 URLs which use the 21299 21300 scheme `http`, `https`, or no scheme, one can 21301 optionally set up a type 21302 21303 server that maps type URLs to message definitions as 21304 follows: 21305 21306 21307 * If no scheme is provided, `https` is assumed. 21308 21309 * An HTTP GET on the URL must yield a 21310 [google.protobuf.Type][] 21311 value in binary format, or produce an error. 21312 * Applications are allowed to cache lookup results 21313 based on the 21314 URL, or have them precompiled into a binary to avoid any 21315 lookup. Therefore, binary compatibility needs to be preserved 21316 on changes to types. (Use versioned type names to manage 21317 breaking changes.) 21318 21319 Note: this functionality is not currently available 21320 in the official 21321 21322 protobuf release, and it is not used for type URLs 21323 beginning with 21324 21325 type.googleapis.com. 21326 21327 21328 Schemes other than `http`, `https` (or the empty 21329 scheme) might be 21330 21331 used with implementation specific semantics. 21332 value: 21333 type: string 21334 format: byte 21335 description: >- 21336 Must be a valid serialized protocol buffer of the 21337 above specified type. 21338 description: >- 21339 `Any` contains an arbitrary serialized protocol buffer 21340 message along with a 21341 21342 URL that describes the type of the serialized message. 21343 21344 21345 Protobuf library provides support to pack/unpack Any 21346 values in the form 21347 21348 of utility functions or additional generated methods of 21349 the Any type. 21350 21351 21352 Example 1: Pack and unpack a message in C++. 21353 21354 Foo foo = ...; 21355 Any any; 21356 any.PackFrom(foo); 21357 ... 21358 if (any.UnpackTo(&foo)) { 21359 ... 21360 } 21361 21362 Example 2: Pack and unpack a message in Java. 21363 21364 Foo foo = ...; 21365 Any any = Any.pack(foo); 21366 ... 21367 if (any.is(Foo.class)) { 21368 foo = any.unpack(Foo.class); 21369 } 21370 // or ... 21371 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 21372 foo = any.unpack(Foo.getDefaultInstance()); 21373 } 21374 21375 Example 3: Pack and unpack a message in Python. 21376 21377 foo = Foo(...) 21378 any = Any() 21379 any.Pack(foo) 21380 ... 21381 if any.Is(Foo.DESCRIPTOR): 21382 any.Unpack(foo) 21383 ... 21384 21385 Example 4: Pack and unpack a message in Go 21386 21387 foo := &pb.Foo{...} 21388 any, err := anypb.New(foo) 21389 if err != nil { 21390 ... 21391 } 21392 ... 21393 foo := &pb.Foo{} 21394 if err := any.UnmarshalTo(foo); err != nil { 21395 ... 21396 } 21397 21398 The pack methods provided by protobuf library will by 21399 default use 21400 21401 'type.googleapis.com/full.type.name' as the type URL and 21402 the unpack 21403 21404 methods only use the fully qualified type name after the 21405 last '/' 21406 21407 in the type URL, for example "foo.bar.com/x/y.z" will 21408 yield type 21409 21410 name "y.z". 21411 21412 21413 JSON 21414 21415 21416 The JSON representation of an `Any` value uses the 21417 regular 21418 21419 representation of the deserialized, embedded message, 21420 with an 21421 21422 additional field `@type` which contains the type URL. 21423 Example: 21424 21425 package google.profile; 21426 message Person { 21427 string first_name = 1; 21428 string last_name = 2; 21429 } 21430 21431 { 21432 "@type": "type.googleapis.com/google.profile.Person", 21433 "firstName": <string>, 21434 "lastName": <string> 21435 } 21436 21437 If the embedded message type is well-known and has a 21438 custom JSON 21439 21440 representation, that representation will be embedded 21441 adding a field 21442 21443 `value` which holds the custom JSON in addition to the 21444 `@type` 21445 21446 field. Example (for message 21447 [google.protobuf.Duration][]): 21448 21449 { 21450 "@type": "type.googleapis.com/google.protobuf.Duration", 21451 "value": "1.212s" 21452 } 21453 jailed: 21454 type: boolean 21455 description: >- 21456 jailed defined whether the validator has been jailed 21457 from bonded status or not. 21458 status: 21459 description: >- 21460 status is the validator status 21461 (bonded/unbonding/unbonded). 21462 type: string 21463 enum: 21464 - BOND_STATUS_UNSPECIFIED 21465 - BOND_STATUS_UNBONDED 21466 - BOND_STATUS_UNBONDING 21467 - BOND_STATUS_BONDED 21468 default: BOND_STATUS_UNSPECIFIED 21469 tokens: 21470 type: string 21471 description: >- 21472 tokens define the delegated tokens (incl. 21473 self-delegation). 21474 delegator_shares: 21475 type: string 21476 description: >- 21477 delegator_shares defines total shares issued to a 21478 validator's delegators. 21479 description: 21480 description: >- 21481 description defines the description terms for the 21482 validator. 21483 type: object 21484 properties: 21485 moniker: 21486 type: string 21487 description: >- 21488 moniker defines a human-readable name for the 21489 validator. 21490 identity: 21491 type: string 21492 description: >- 21493 identity defines an optional identity signature (ex. 21494 UPort or Keybase). 21495 website: 21496 type: string 21497 description: website defines an optional website link. 21498 security_contact: 21499 type: string 21500 description: >- 21501 security_contact defines an optional email for 21502 security contact. 21503 details: 21504 type: string 21505 description: details define other optional details. 21506 unbonding_height: 21507 type: string 21508 format: int64 21509 description: >- 21510 unbonding_height defines, if unbonding, the height at 21511 which this validator has begun unbonding. 21512 unbonding_time: 21513 type: string 21514 format: date-time 21515 description: >- 21516 unbonding_time defines, if unbonding, the min time for 21517 the validator to complete unbonding. 21518 commission: 21519 description: commission defines the commission parameters. 21520 type: object 21521 properties: 21522 commission_rates: 21523 description: >- 21524 commission_rates defines the initial commission 21525 rates to be used for creating a validator. 21526 type: object 21527 properties: 21528 rate: 21529 type: string 21530 description: >- 21531 rate is the commission rate charged to 21532 delegators, as a fraction. 21533 max_rate: 21534 type: string 21535 description: >- 21536 max_rate defines the maximum commission rate 21537 which validator can ever charge, as a fraction. 21538 max_change_rate: 21539 type: string 21540 description: >- 21541 max_change_rate defines the maximum daily 21542 increase of the validator commission, as a 21543 fraction. 21544 update_time: 21545 type: string 21546 format: date-time 21547 description: >- 21548 update_time is the last time the commission rate was 21549 changed. 21550 min_self_delegation: 21551 type: string 21552 description: >- 21553 min_self_delegation is the validator's self declared 21554 minimum self delegation. 21555 21556 21557 Since: cosmos-sdk 0.46 21558 unbonding_on_hold_ref_count: 21559 type: string 21560 format: int64 21561 title: >- 21562 strictly positive if this validator's unbonding has been 21563 stopped by external modules 21564 unbonding_ids: 21565 type: array 21566 items: 21567 type: string 21568 format: uint64 21569 title: >- 21570 list of unbonding ids, each uniquely identifing an 21571 unbonding of this validator 21572 description: >- 21573 Validator defines a validator, together with the total 21574 amount of the 21575 21576 Validator's bond shares and their exchange rate to coins. 21577 Slashing results in 21578 21579 a decrease in the exchange rate, allowing correct 21580 calculation of future 21581 21582 undelegations without iterating over delegators. When coins 21583 are delegated to 21584 21585 this validator, the validator is credited with a delegation 21586 whose number of 21587 21588 bond shares is based on the amount of coins delegated 21589 divided by the current 21590 21591 exchange rate. Voting power can be calculated as total 21592 bonded shares 21593 21594 multiplied by exchange rate. 21595 description: validators contains all the queried validators. 21596 pagination: 21597 description: pagination defines the pagination in the response. 21598 type: object 21599 properties: 21600 next_key: 21601 type: string 21602 format: byte 21603 description: |- 21604 next_key is the key to be passed to PageRequest.key to 21605 query the next page most efficiently. It will be empty if 21606 there are no more results. 21607 total: 21608 type: string 21609 format: uint64 21610 title: >- 21611 total is total number of results available if 21612 PageRequest.count_total 21613 21614 was set, its value is undefined otherwise 21615 title: >- 21616 QueryValidatorsResponse is response type for the Query/Validators 21617 RPC method 21618 default: 21619 description: An unexpected error response. 21620 schema: 21621 type: object 21622 properties: 21623 error: 21624 type: string 21625 code: 21626 type: integer 21627 format: int32 21628 message: 21629 type: string 21630 details: 21631 type: array 21632 items: 21633 type: object 21634 properties: 21635 type_url: 21636 type: string 21637 description: >- 21638 A URL/resource name that uniquely identifies the type of 21639 the serialized 21640 21641 protocol buffer message. This string must contain at 21642 least 21643 21644 one "/" character. The last segment of the URL's path 21645 must represent 21646 21647 the fully qualified name of the type (as in 21648 21649 `path/google.protobuf.Duration`). The name should be in 21650 a canonical form 21651 21652 (e.g., leading "." is not accepted). 21653 21654 21655 In practice, teams usually precompile into the binary 21656 all types that they 21657 21658 expect it to use in the context of Any. However, for 21659 URLs which use the 21660 21661 scheme `http`, `https`, or no scheme, one can optionally 21662 set up a type 21663 21664 server that maps type URLs to message definitions as 21665 follows: 21666 21667 21668 * If no scheme is provided, `https` is assumed. 21669 21670 * An HTTP GET on the URL must yield a 21671 [google.protobuf.Type][] 21672 value in binary format, or produce an error. 21673 * Applications are allowed to cache lookup results based 21674 on the 21675 URL, or have them precompiled into a binary to avoid any 21676 lookup. Therefore, binary compatibility needs to be preserved 21677 on changes to types. (Use versioned type names to manage 21678 breaking changes.) 21679 21680 Note: this functionality is not currently available in 21681 the official 21682 21683 protobuf release, and it is not used for type URLs 21684 beginning with 21685 21686 type.googleapis.com. 21687 21688 21689 Schemes other than `http`, `https` (or the empty scheme) 21690 might be 21691 21692 used with implementation specific semantics. 21693 value: 21694 type: string 21695 format: byte 21696 description: >- 21697 Must be a valid serialized protocol buffer of the above 21698 specified type. 21699 description: >- 21700 `Any` contains an arbitrary serialized protocol buffer 21701 message along with a 21702 21703 URL that describes the type of the serialized message. 21704 21705 21706 Protobuf library provides support to pack/unpack Any values 21707 in the form 21708 21709 of utility functions or additional generated methods of the 21710 Any type. 21711 21712 21713 Example 1: Pack and unpack a message in C++. 21714 21715 Foo foo = ...; 21716 Any any; 21717 any.PackFrom(foo); 21718 ... 21719 if (any.UnpackTo(&foo)) { 21720 ... 21721 } 21722 21723 Example 2: Pack and unpack a message in Java. 21724 21725 Foo foo = ...; 21726 Any any = Any.pack(foo); 21727 ... 21728 if (any.is(Foo.class)) { 21729 foo = any.unpack(Foo.class); 21730 } 21731 // or ... 21732 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 21733 foo = any.unpack(Foo.getDefaultInstance()); 21734 } 21735 21736 Example 3: Pack and unpack a message in Python. 21737 21738 foo = Foo(...) 21739 any = Any() 21740 any.Pack(foo) 21741 ... 21742 if any.Is(Foo.DESCRIPTOR): 21743 any.Unpack(foo) 21744 ... 21745 21746 Example 4: Pack and unpack a message in Go 21747 21748 foo := &pb.Foo{...} 21749 any, err := anypb.New(foo) 21750 if err != nil { 21751 ... 21752 } 21753 ... 21754 foo := &pb.Foo{} 21755 if err := any.UnmarshalTo(foo); err != nil { 21756 ... 21757 } 21758 21759 The pack methods provided by protobuf library will by 21760 default use 21761 21762 'type.googleapis.com/full.type.name' as the type URL and the 21763 unpack 21764 21765 methods only use the fully qualified type name after the 21766 last '/' 21767 21768 in the type URL, for example "foo.bar.com/x/y.z" will yield 21769 type 21770 21771 name "y.z". 21772 21773 21774 JSON 21775 21776 21777 The JSON representation of an `Any` value uses the regular 21778 21779 representation of the deserialized, embedded message, with 21780 an 21781 21782 additional field `@type` which contains the type URL. 21783 Example: 21784 21785 package google.profile; 21786 message Person { 21787 string first_name = 1; 21788 string last_name = 2; 21789 } 21790 21791 { 21792 "@type": "type.googleapis.com/google.profile.Person", 21793 "firstName": <string>, 21794 "lastName": <string> 21795 } 21796 21797 If the embedded message type is well-known and has a custom 21798 JSON 21799 21800 representation, that representation will be embedded adding 21801 a field 21802 21803 `value` which holds the custom JSON in addition to the 21804 `@type` 21805 21806 field. Example (for message [google.protobuf.Duration][]): 21807 21808 { 21809 "@type": "type.googleapis.com/google.protobuf.Duration", 21810 "value": "1.212s" 21811 } 21812 parameters: 21813 - name: status 21814 description: status enables to query for validators matching a given status. 21815 in: query 21816 required: false 21817 type: string 21818 - name: pagination.key 21819 description: |- 21820 key is a value returned in PageResponse.next_key to begin 21821 querying the next page most efficiently. Only one of offset or key 21822 should be set. 21823 in: query 21824 required: false 21825 type: string 21826 format: byte 21827 - name: pagination.offset 21828 description: >- 21829 offset is a numeric offset that can be used when key is unavailable. 21830 21831 It is less efficient than using key. Only one of offset or key 21832 should 21833 21834 be set. 21835 in: query 21836 required: false 21837 type: string 21838 format: uint64 21839 - name: pagination.limit 21840 description: >- 21841 limit is the total number of results to be returned in the result 21842 page. 21843 21844 If left empty it will default to a value to be set by each app. 21845 in: query 21846 required: false 21847 type: string 21848 format: uint64 21849 - name: pagination.count_total 21850 description: >- 21851 count_total is set to true to indicate that the result set should 21852 include 21853 21854 a count of the total number of items available for pagination in 21855 UIs. 21856 21857 count_total is only respected when offset is used. It is ignored 21858 when key 21859 21860 is set. 21861 in: query 21862 required: false 21863 type: boolean 21864 - name: pagination.reverse 21865 description: >- 21866 reverse is set to true if results are to be returned in the 21867 descending order. 21868 21869 21870 Since: cosmos-sdk 0.43 21871 in: query 21872 required: false 21873 type: boolean 21874 tags: 21875 - Query 21876 /cosmos/staking/v1beta1/validators/{validator_addr}: 21877 get: 21878 summary: Validator queries validator info for given validator address. 21879 operationId: Validator 21880 responses: 21881 '200': 21882 description: A successful response. 21883 schema: 21884 type: object 21885 properties: 21886 validator: 21887 type: object 21888 properties: 21889 operator_address: 21890 type: string 21891 description: >- 21892 operator_address defines the address of the validator's 21893 operator; bech encoded in JSON. 21894 consensus_pubkey: 21895 type: object 21896 properties: 21897 type_url: 21898 type: string 21899 description: >- 21900 A URL/resource name that uniquely identifies the type 21901 of the serialized 21902 21903 protocol buffer message. This string must contain at 21904 least 21905 21906 one "/" character. The last segment of the URL's path 21907 must represent 21908 21909 the fully qualified name of the type (as in 21910 21911 `path/google.protobuf.Duration`). The name should be 21912 in a canonical form 21913 21914 (e.g., leading "." is not accepted). 21915 21916 21917 In practice, teams usually precompile into the binary 21918 all types that they 21919 21920 expect it to use in the context of Any. However, for 21921 URLs which use the 21922 21923 scheme `http`, `https`, or no scheme, one can 21924 optionally set up a type 21925 21926 server that maps type URLs to message definitions as 21927 follows: 21928 21929 21930 * If no scheme is provided, `https` is assumed. 21931 21932 * An HTTP GET on the URL must yield a 21933 [google.protobuf.Type][] 21934 value in binary format, or produce an error. 21935 * Applications are allowed to cache lookup results 21936 based on the 21937 URL, or have them precompiled into a binary to avoid any 21938 lookup. Therefore, binary compatibility needs to be preserved 21939 on changes to types. (Use versioned type names to manage 21940 breaking changes.) 21941 21942 Note: this functionality is not currently available in 21943 the official 21944 21945 protobuf release, and it is not used for type URLs 21946 beginning with 21947 21948 type.googleapis.com. 21949 21950 21951 Schemes other than `http`, `https` (or the empty 21952 scheme) might be 21953 21954 used with implementation specific semantics. 21955 value: 21956 type: string 21957 format: byte 21958 description: >- 21959 Must be a valid serialized protocol buffer of the 21960 above specified type. 21961 description: >- 21962 `Any` contains an arbitrary serialized protocol buffer 21963 message along with a 21964 21965 URL that describes the type of the serialized message. 21966 21967 21968 Protobuf library provides support to pack/unpack Any 21969 values in the form 21970 21971 of utility functions or additional generated methods of 21972 the Any type. 21973 21974 21975 Example 1: Pack and unpack a message in C++. 21976 21977 Foo foo = ...; 21978 Any any; 21979 any.PackFrom(foo); 21980 ... 21981 if (any.UnpackTo(&foo)) { 21982 ... 21983 } 21984 21985 Example 2: Pack and unpack a message in Java. 21986 21987 Foo foo = ...; 21988 Any any = Any.pack(foo); 21989 ... 21990 if (any.is(Foo.class)) { 21991 foo = any.unpack(Foo.class); 21992 } 21993 // or ... 21994 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 21995 foo = any.unpack(Foo.getDefaultInstance()); 21996 } 21997 21998 Example 3: Pack and unpack a message in Python. 21999 22000 foo = Foo(...) 22001 any = Any() 22002 any.Pack(foo) 22003 ... 22004 if any.Is(Foo.DESCRIPTOR): 22005 any.Unpack(foo) 22006 ... 22007 22008 Example 4: Pack and unpack a message in Go 22009 22010 foo := &pb.Foo{...} 22011 any, err := anypb.New(foo) 22012 if err != nil { 22013 ... 22014 } 22015 ... 22016 foo := &pb.Foo{} 22017 if err := any.UnmarshalTo(foo); err != nil { 22018 ... 22019 } 22020 22021 The pack methods provided by protobuf library will by 22022 default use 22023 22024 'type.googleapis.com/full.type.name' as the type URL and 22025 the unpack 22026 22027 methods only use the fully qualified type name after the 22028 last '/' 22029 22030 in the type URL, for example "foo.bar.com/x/y.z" will 22031 yield type 22032 22033 name "y.z". 22034 22035 22036 JSON 22037 22038 22039 The JSON representation of an `Any` value uses the regular 22040 22041 representation of the deserialized, embedded message, with 22042 an 22043 22044 additional field `@type` which contains the type URL. 22045 Example: 22046 22047 package google.profile; 22048 message Person { 22049 string first_name = 1; 22050 string last_name = 2; 22051 } 22052 22053 { 22054 "@type": "type.googleapis.com/google.profile.Person", 22055 "firstName": <string>, 22056 "lastName": <string> 22057 } 22058 22059 If the embedded message type is well-known and has a 22060 custom JSON 22061 22062 representation, that representation will be embedded 22063 adding a field 22064 22065 `value` which holds the custom JSON in addition to the 22066 `@type` 22067 22068 field. Example (for message [google.protobuf.Duration][]): 22069 22070 { 22071 "@type": "type.googleapis.com/google.protobuf.Duration", 22072 "value": "1.212s" 22073 } 22074 jailed: 22075 type: boolean 22076 description: >- 22077 jailed defined whether the validator has been jailed from 22078 bonded status or not. 22079 status: 22080 description: >- 22081 status is the validator status 22082 (bonded/unbonding/unbonded). 22083 type: string 22084 enum: 22085 - BOND_STATUS_UNSPECIFIED 22086 - BOND_STATUS_UNBONDED 22087 - BOND_STATUS_UNBONDING 22088 - BOND_STATUS_BONDED 22089 default: BOND_STATUS_UNSPECIFIED 22090 tokens: 22091 type: string 22092 description: >- 22093 tokens define the delegated tokens (incl. 22094 self-delegation). 22095 delegator_shares: 22096 type: string 22097 description: >- 22098 delegator_shares defines total shares issued to a 22099 validator's delegators. 22100 description: 22101 description: >- 22102 description defines the description terms for the 22103 validator. 22104 type: object 22105 properties: 22106 moniker: 22107 type: string 22108 description: >- 22109 moniker defines a human-readable name for the 22110 validator. 22111 identity: 22112 type: string 22113 description: >- 22114 identity defines an optional identity signature (ex. 22115 UPort or Keybase). 22116 website: 22117 type: string 22118 description: website defines an optional website link. 22119 security_contact: 22120 type: string 22121 description: >- 22122 security_contact defines an optional email for 22123 security contact. 22124 details: 22125 type: string 22126 description: details define other optional details. 22127 unbonding_height: 22128 type: string 22129 format: int64 22130 description: >- 22131 unbonding_height defines, if unbonding, the height at 22132 which this validator has begun unbonding. 22133 unbonding_time: 22134 type: string 22135 format: date-time 22136 description: >- 22137 unbonding_time defines, if unbonding, the min time for the 22138 validator to complete unbonding. 22139 commission: 22140 description: commission defines the commission parameters. 22141 type: object 22142 properties: 22143 commission_rates: 22144 description: >- 22145 commission_rates defines the initial commission rates 22146 to be used for creating a validator. 22147 type: object 22148 properties: 22149 rate: 22150 type: string 22151 description: >- 22152 rate is the commission rate charged to delegators, 22153 as a fraction. 22154 max_rate: 22155 type: string 22156 description: >- 22157 max_rate defines the maximum commission rate which 22158 validator can ever charge, as a fraction. 22159 max_change_rate: 22160 type: string 22161 description: >- 22162 max_change_rate defines the maximum daily increase 22163 of the validator commission, as a fraction. 22164 update_time: 22165 type: string 22166 format: date-time 22167 description: >- 22168 update_time is the last time the commission rate was 22169 changed. 22170 min_self_delegation: 22171 type: string 22172 description: >- 22173 min_self_delegation is the validator's self declared 22174 minimum self delegation. 22175 22176 22177 Since: cosmos-sdk 0.46 22178 unbonding_on_hold_ref_count: 22179 type: string 22180 format: int64 22181 title: >- 22182 strictly positive if this validator's unbonding has been 22183 stopped by external modules 22184 unbonding_ids: 22185 type: array 22186 items: 22187 type: string 22188 format: uint64 22189 title: >- 22190 list of unbonding ids, each uniquely identifing an 22191 unbonding of this validator 22192 description: >- 22193 Validator defines a validator, together with the total amount 22194 of the 22195 22196 Validator's bond shares and their exchange rate to coins. 22197 Slashing results in 22198 22199 a decrease in the exchange rate, allowing correct calculation 22200 of future 22201 22202 undelegations without iterating over delegators. When coins 22203 are delegated to 22204 22205 this validator, the validator is credited with a delegation 22206 whose number of 22207 22208 bond shares is based on the amount of coins delegated divided 22209 by the current 22210 22211 exchange rate. Voting power can be calculated as total bonded 22212 shares 22213 22214 multiplied by exchange rate. 22215 title: >- 22216 QueryValidatorResponse is response type for the Query/Validator 22217 RPC method 22218 default: 22219 description: An unexpected error response. 22220 schema: 22221 type: object 22222 properties: 22223 error: 22224 type: string 22225 code: 22226 type: integer 22227 format: int32 22228 message: 22229 type: string 22230 details: 22231 type: array 22232 items: 22233 type: object 22234 properties: 22235 type_url: 22236 type: string 22237 description: >- 22238 A URL/resource name that uniquely identifies the type of 22239 the serialized 22240 22241 protocol buffer message. This string must contain at 22242 least 22243 22244 one "/" character. The last segment of the URL's path 22245 must represent 22246 22247 the fully qualified name of the type (as in 22248 22249 `path/google.protobuf.Duration`). The name should be in 22250 a canonical form 22251 22252 (e.g., leading "." is not accepted). 22253 22254 22255 In practice, teams usually precompile into the binary 22256 all types that they 22257 22258 expect it to use in the context of Any. However, for 22259 URLs which use the 22260 22261 scheme `http`, `https`, or no scheme, one can optionally 22262 set up a type 22263 22264 server that maps type URLs to message definitions as 22265 follows: 22266 22267 22268 * If no scheme is provided, `https` is assumed. 22269 22270 * An HTTP GET on the URL must yield a 22271 [google.protobuf.Type][] 22272 value in binary format, or produce an error. 22273 * Applications are allowed to cache lookup results based 22274 on the 22275 URL, or have them precompiled into a binary to avoid any 22276 lookup. Therefore, binary compatibility needs to be preserved 22277 on changes to types. (Use versioned type names to manage 22278 breaking changes.) 22279 22280 Note: this functionality is not currently available in 22281 the official 22282 22283 protobuf release, and it is not used for type URLs 22284 beginning with 22285 22286 type.googleapis.com. 22287 22288 22289 Schemes other than `http`, `https` (or the empty scheme) 22290 might be 22291 22292 used with implementation specific semantics. 22293 value: 22294 type: string 22295 format: byte 22296 description: >- 22297 Must be a valid serialized protocol buffer of the above 22298 specified type. 22299 description: >- 22300 `Any` contains an arbitrary serialized protocol buffer 22301 message along with a 22302 22303 URL that describes the type of the serialized message. 22304 22305 22306 Protobuf library provides support to pack/unpack Any values 22307 in the form 22308 22309 of utility functions or additional generated methods of the 22310 Any type. 22311 22312 22313 Example 1: Pack and unpack a message in C++. 22314 22315 Foo foo = ...; 22316 Any any; 22317 any.PackFrom(foo); 22318 ... 22319 if (any.UnpackTo(&foo)) { 22320 ... 22321 } 22322 22323 Example 2: Pack and unpack a message in Java. 22324 22325 Foo foo = ...; 22326 Any any = Any.pack(foo); 22327 ... 22328 if (any.is(Foo.class)) { 22329 foo = any.unpack(Foo.class); 22330 } 22331 // or ... 22332 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 22333 foo = any.unpack(Foo.getDefaultInstance()); 22334 } 22335 22336 Example 3: Pack and unpack a message in Python. 22337 22338 foo = Foo(...) 22339 any = Any() 22340 any.Pack(foo) 22341 ... 22342 if any.Is(Foo.DESCRIPTOR): 22343 any.Unpack(foo) 22344 ... 22345 22346 Example 4: Pack and unpack a message in Go 22347 22348 foo := &pb.Foo{...} 22349 any, err := anypb.New(foo) 22350 if err != nil { 22351 ... 22352 } 22353 ... 22354 foo := &pb.Foo{} 22355 if err := any.UnmarshalTo(foo); err != nil { 22356 ... 22357 } 22358 22359 The pack methods provided by protobuf library will by 22360 default use 22361 22362 'type.googleapis.com/full.type.name' as the type URL and the 22363 unpack 22364 22365 methods only use the fully qualified type name after the 22366 last '/' 22367 22368 in the type URL, for example "foo.bar.com/x/y.z" will yield 22369 type 22370 22371 name "y.z". 22372 22373 22374 JSON 22375 22376 22377 The JSON representation of an `Any` value uses the regular 22378 22379 representation of the deserialized, embedded message, with 22380 an 22381 22382 additional field `@type` which contains the type URL. 22383 Example: 22384 22385 package google.profile; 22386 message Person { 22387 string first_name = 1; 22388 string last_name = 2; 22389 } 22390 22391 { 22392 "@type": "type.googleapis.com/google.profile.Person", 22393 "firstName": <string>, 22394 "lastName": <string> 22395 } 22396 22397 If the embedded message type is well-known and has a custom 22398 JSON 22399 22400 representation, that representation will be embedded adding 22401 a field 22402 22403 `value` which holds the custom JSON in addition to the 22404 `@type` 22405 22406 field. Example (for message [google.protobuf.Duration][]): 22407 22408 { 22409 "@type": "type.googleapis.com/google.protobuf.Duration", 22410 "value": "1.212s" 22411 } 22412 parameters: 22413 - name: validator_addr 22414 description: validator_addr defines the validator address to query for. 22415 in: path 22416 required: true 22417 type: string 22418 tags: 22419 - Query 22420 /cosmos/staking/v1beta1/validators/{validator_addr}/delegations: 22421 get: 22422 summary: ValidatorDelegations queries delegate info for given validator. 22423 description: >- 22424 When called from another module, this query might consume a high amount 22425 of 22426 22427 gas if the pagination field is incorrectly set. 22428 operationId: ValidatorDelegations 22429 responses: 22430 '200': 22431 description: A successful response. 22432 schema: 22433 type: object 22434 properties: 22435 delegation_responses: 22436 type: array 22437 items: 22438 type: object 22439 properties: 22440 delegation: 22441 type: object 22442 properties: 22443 delegator_address: 22444 type: string 22445 description: >- 22446 delegator_address is the encoded address of the 22447 delegator. 22448 validator_address: 22449 type: string 22450 description: >- 22451 validator_address is the encoded address of the 22452 validator. 22453 shares: 22454 type: string 22455 description: shares define the delegation shares received. 22456 description: >- 22457 Delegation represents the bond with tokens held by an 22458 account. It is 22459 22460 owned by one delegator, and is associated with the 22461 voting power of one 22462 22463 validator. 22464 balance: 22465 type: object 22466 properties: 22467 denom: 22468 type: string 22469 amount: 22470 type: string 22471 description: >- 22472 Coin defines a token with a denomination and an amount. 22473 22474 22475 NOTE: The amount field is an Int which implements the 22476 custom method 22477 22478 signatures required by gogoproto. 22479 description: >- 22480 DelegationResponse is equivalent to Delegation except that 22481 it contains a 22482 22483 balance in addition to shares which is more suitable for 22484 client responses. 22485 pagination: 22486 description: pagination defines the pagination in the response. 22487 type: object 22488 properties: 22489 next_key: 22490 type: string 22491 format: byte 22492 description: |- 22493 next_key is the key to be passed to PageRequest.key to 22494 query the next page most efficiently. It will be empty if 22495 there are no more results. 22496 total: 22497 type: string 22498 format: uint64 22499 title: >- 22500 total is total number of results available if 22501 PageRequest.count_total 22502 22503 was set, its value is undefined otherwise 22504 title: |- 22505 QueryValidatorDelegationsResponse is response type for the 22506 Query/ValidatorDelegations RPC method 22507 default: 22508 description: An unexpected error response. 22509 schema: 22510 type: object 22511 properties: 22512 error: 22513 type: string 22514 code: 22515 type: integer 22516 format: int32 22517 message: 22518 type: string 22519 details: 22520 type: array 22521 items: 22522 type: object 22523 properties: 22524 type_url: 22525 type: string 22526 description: >- 22527 A URL/resource name that uniquely identifies the type of 22528 the serialized 22529 22530 protocol buffer message. This string must contain at 22531 least 22532 22533 one "/" character. The last segment of the URL's path 22534 must represent 22535 22536 the fully qualified name of the type (as in 22537 22538 `path/google.protobuf.Duration`). The name should be in 22539 a canonical form 22540 22541 (e.g., leading "." is not accepted). 22542 22543 22544 In practice, teams usually precompile into the binary 22545 all types that they 22546 22547 expect it to use in the context of Any. However, for 22548 URLs which use the 22549 22550 scheme `http`, `https`, or no scheme, one can optionally 22551 set up a type 22552 22553 server that maps type URLs to message definitions as 22554 follows: 22555 22556 22557 * If no scheme is provided, `https` is assumed. 22558 22559 * An HTTP GET on the URL must yield a 22560 [google.protobuf.Type][] 22561 value in binary format, or produce an error. 22562 * Applications are allowed to cache lookup results based 22563 on the 22564 URL, or have them precompiled into a binary to avoid any 22565 lookup. Therefore, binary compatibility needs to be preserved 22566 on changes to types. (Use versioned type names to manage 22567 breaking changes.) 22568 22569 Note: this functionality is not currently available in 22570 the official 22571 22572 protobuf release, and it is not used for type URLs 22573 beginning with 22574 22575 type.googleapis.com. 22576 22577 22578 Schemes other than `http`, `https` (or the empty scheme) 22579 might be 22580 22581 used with implementation specific semantics. 22582 value: 22583 type: string 22584 format: byte 22585 description: >- 22586 Must be a valid serialized protocol buffer of the above 22587 specified type. 22588 description: >- 22589 `Any` contains an arbitrary serialized protocol buffer 22590 message along with a 22591 22592 URL that describes the type of the serialized message. 22593 22594 22595 Protobuf library provides support to pack/unpack Any values 22596 in the form 22597 22598 of utility functions or additional generated methods of the 22599 Any type. 22600 22601 22602 Example 1: Pack and unpack a message in C++. 22603 22604 Foo foo = ...; 22605 Any any; 22606 any.PackFrom(foo); 22607 ... 22608 if (any.UnpackTo(&foo)) { 22609 ... 22610 } 22611 22612 Example 2: Pack and unpack a message in Java. 22613 22614 Foo foo = ...; 22615 Any any = Any.pack(foo); 22616 ... 22617 if (any.is(Foo.class)) { 22618 foo = any.unpack(Foo.class); 22619 } 22620 // or ... 22621 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 22622 foo = any.unpack(Foo.getDefaultInstance()); 22623 } 22624 22625 Example 3: Pack and unpack a message in Python. 22626 22627 foo = Foo(...) 22628 any = Any() 22629 any.Pack(foo) 22630 ... 22631 if any.Is(Foo.DESCRIPTOR): 22632 any.Unpack(foo) 22633 ... 22634 22635 Example 4: Pack and unpack a message in Go 22636 22637 foo := &pb.Foo{...} 22638 any, err := anypb.New(foo) 22639 if err != nil { 22640 ... 22641 } 22642 ... 22643 foo := &pb.Foo{} 22644 if err := any.UnmarshalTo(foo); err != nil { 22645 ... 22646 } 22647 22648 The pack methods provided by protobuf library will by 22649 default use 22650 22651 'type.googleapis.com/full.type.name' as the type URL and the 22652 unpack 22653 22654 methods only use the fully qualified type name after the 22655 last '/' 22656 22657 in the type URL, for example "foo.bar.com/x/y.z" will yield 22658 type 22659 22660 name "y.z". 22661 22662 22663 JSON 22664 22665 22666 The JSON representation of an `Any` value uses the regular 22667 22668 representation of the deserialized, embedded message, with 22669 an 22670 22671 additional field `@type` which contains the type URL. 22672 Example: 22673 22674 package google.profile; 22675 message Person { 22676 string first_name = 1; 22677 string last_name = 2; 22678 } 22679 22680 { 22681 "@type": "type.googleapis.com/google.profile.Person", 22682 "firstName": <string>, 22683 "lastName": <string> 22684 } 22685 22686 If the embedded message type is well-known and has a custom 22687 JSON 22688 22689 representation, that representation will be embedded adding 22690 a field 22691 22692 `value` which holds the custom JSON in addition to the 22693 `@type` 22694 22695 field. Example (for message [google.protobuf.Duration][]): 22696 22697 { 22698 "@type": "type.googleapis.com/google.protobuf.Duration", 22699 "value": "1.212s" 22700 } 22701 parameters: 22702 - name: validator_addr 22703 description: validator_addr defines the validator address to query for. 22704 in: path 22705 required: true 22706 type: string 22707 - name: pagination.key 22708 description: |- 22709 key is a value returned in PageResponse.next_key to begin 22710 querying the next page most efficiently. Only one of offset or key 22711 should be set. 22712 in: query 22713 required: false 22714 type: string 22715 format: byte 22716 - name: pagination.offset 22717 description: >- 22718 offset is a numeric offset that can be used when key is unavailable. 22719 22720 It is less efficient than using key. Only one of offset or key 22721 should 22722 22723 be set. 22724 in: query 22725 required: false 22726 type: string 22727 format: uint64 22728 - name: pagination.limit 22729 description: >- 22730 limit is the total number of results to be returned in the result 22731 page. 22732 22733 If left empty it will default to a value to be set by each app. 22734 in: query 22735 required: false 22736 type: string 22737 format: uint64 22738 - name: pagination.count_total 22739 description: >- 22740 count_total is set to true to indicate that the result set should 22741 include 22742 22743 a count of the total number of items available for pagination in 22744 UIs. 22745 22746 count_total is only respected when offset is used. It is ignored 22747 when key 22748 22749 is set. 22750 in: query 22751 required: false 22752 type: boolean 22753 - name: pagination.reverse 22754 description: >- 22755 reverse is set to true if results are to be returned in the 22756 descending order. 22757 22758 22759 Since: cosmos-sdk 0.43 22760 in: query 22761 required: false 22762 type: boolean 22763 tags: 22764 - Query 22765 /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}: 22766 get: 22767 summary: Delegation queries delegate info for given validator delegator pair. 22768 operationId: Delegation 22769 responses: 22770 '200': 22771 description: A successful response. 22772 schema: 22773 type: object 22774 properties: 22775 delegation_response: 22776 type: object 22777 properties: 22778 delegation: 22779 type: object 22780 properties: 22781 delegator_address: 22782 type: string 22783 description: >- 22784 delegator_address is the encoded address of the 22785 delegator. 22786 validator_address: 22787 type: string 22788 description: >- 22789 validator_address is the encoded address of the 22790 validator. 22791 shares: 22792 type: string 22793 description: shares define the delegation shares received. 22794 description: >- 22795 Delegation represents the bond with tokens held by an 22796 account. It is 22797 22798 owned by one delegator, and is associated with the voting 22799 power of one 22800 22801 validator. 22802 balance: 22803 type: object 22804 properties: 22805 denom: 22806 type: string 22807 amount: 22808 type: string 22809 description: >- 22810 Coin defines a token with a denomination and an amount. 22811 22812 22813 NOTE: The amount field is an Int which implements the 22814 custom method 22815 22816 signatures required by gogoproto. 22817 description: >- 22818 DelegationResponse is equivalent to Delegation except that it 22819 contains a 22820 22821 balance in addition to shares which is more suitable for 22822 client responses. 22823 description: >- 22824 QueryDelegationResponse is response type for the Query/Delegation 22825 RPC method. 22826 default: 22827 description: An unexpected error response. 22828 schema: 22829 type: object 22830 properties: 22831 error: 22832 type: string 22833 code: 22834 type: integer 22835 format: int32 22836 message: 22837 type: string 22838 details: 22839 type: array 22840 items: 22841 type: object 22842 properties: 22843 type_url: 22844 type: string 22845 description: >- 22846 A URL/resource name that uniquely identifies the type of 22847 the serialized 22848 22849 protocol buffer message. This string must contain at 22850 least 22851 22852 one "/" character. The last segment of the URL's path 22853 must represent 22854 22855 the fully qualified name of the type (as in 22856 22857 `path/google.protobuf.Duration`). The name should be in 22858 a canonical form 22859 22860 (e.g., leading "." is not accepted). 22861 22862 22863 In practice, teams usually precompile into the binary 22864 all types that they 22865 22866 expect it to use in the context of Any. However, for 22867 URLs which use the 22868 22869 scheme `http`, `https`, or no scheme, one can optionally 22870 set up a type 22871 22872 server that maps type URLs to message definitions as 22873 follows: 22874 22875 22876 * If no scheme is provided, `https` is assumed. 22877 22878 * An HTTP GET on the URL must yield a 22879 [google.protobuf.Type][] 22880 value in binary format, or produce an error. 22881 * Applications are allowed to cache lookup results based 22882 on the 22883 URL, or have them precompiled into a binary to avoid any 22884 lookup. Therefore, binary compatibility needs to be preserved 22885 on changes to types. (Use versioned type names to manage 22886 breaking changes.) 22887 22888 Note: this functionality is not currently available in 22889 the official 22890 22891 protobuf release, and it is not used for type URLs 22892 beginning with 22893 22894 type.googleapis.com. 22895 22896 22897 Schemes other than `http`, `https` (or the empty scheme) 22898 might be 22899 22900 used with implementation specific semantics. 22901 value: 22902 type: string 22903 format: byte 22904 description: >- 22905 Must be a valid serialized protocol buffer of the above 22906 specified type. 22907 description: >- 22908 `Any` contains an arbitrary serialized protocol buffer 22909 message along with a 22910 22911 URL that describes the type of the serialized message. 22912 22913 22914 Protobuf library provides support to pack/unpack Any values 22915 in the form 22916 22917 of utility functions or additional generated methods of the 22918 Any type. 22919 22920 22921 Example 1: Pack and unpack a message in C++. 22922 22923 Foo foo = ...; 22924 Any any; 22925 any.PackFrom(foo); 22926 ... 22927 if (any.UnpackTo(&foo)) { 22928 ... 22929 } 22930 22931 Example 2: Pack and unpack a message in Java. 22932 22933 Foo foo = ...; 22934 Any any = Any.pack(foo); 22935 ... 22936 if (any.is(Foo.class)) { 22937 foo = any.unpack(Foo.class); 22938 } 22939 // or ... 22940 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 22941 foo = any.unpack(Foo.getDefaultInstance()); 22942 } 22943 22944 Example 3: Pack and unpack a message in Python. 22945 22946 foo = Foo(...) 22947 any = Any() 22948 any.Pack(foo) 22949 ... 22950 if any.Is(Foo.DESCRIPTOR): 22951 any.Unpack(foo) 22952 ... 22953 22954 Example 4: Pack and unpack a message in Go 22955 22956 foo := &pb.Foo{...} 22957 any, err := anypb.New(foo) 22958 if err != nil { 22959 ... 22960 } 22961 ... 22962 foo := &pb.Foo{} 22963 if err := any.UnmarshalTo(foo); err != nil { 22964 ... 22965 } 22966 22967 The pack methods provided by protobuf library will by 22968 default use 22969 22970 'type.googleapis.com/full.type.name' as the type URL and the 22971 unpack 22972 22973 methods only use the fully qualified type name after the 22974 last '/' 22975 22976 in the type URL, for example "foo.bar.com/x/y.z" will yield 22977 type 22978 22979 name "y.z". 22980 22981 22982 JSON 22983 22984 22985 The JSON representation of an `Any` value uses the regular 22986 22987 representation of the deserialized, embedded message, with 22988 an 22989 22990 additional field `@type` which contains the type URL. 22991 Example: 22992 22993 package google.profile; 22994 message Person { 22995 string first_name = 1; 22996 string last_name = 2; 22997 } 22998 22999 { 23000 "@type": "type.googleapis.com/google.profile.Person", 23001 "firstName": <string>, 23002 "lastName": <string> 23003 } 23004 23005 If the embedded message type is well-known and has a custom 23006 JSON 23007 23008 representation, that representation will be embedded adding 23009 a field 23010 23011 `value` which holds the custom JSON in addition to the 23012 `@type` 23013 23014 field. Example (for message [google.protobuf.Duration][]): 23015 23016 { 23017 "@type": "type.googleapis.com/google.protobuf.Duration", 23018 "value": "1.212s" 23019 } 23020 parameters: 23021 - name: validator_addr 23022 description: validator_addr defines the validator address to query for. 23023 in: path 23024 required: true 23025 type: string 23026 - name: delegator_addr 23027 description: delegator_addr defines the delegator address to query for. 23028 in: path 23029 required: true 23030 type: string 23031 tags: 23032 - Query 23033 /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation: 23034 get: 23035 summary: |- 23036 UnbondingDelegation queries unbonding info for given validator delegator 23037 pair. 23038 operationId: UnbondingDelegation 23039 responses: 23040 '200': 23041 description: A successful response. 23042 schema: 23043 type: object 23044 properties: 23045 unbond: 23046 type: object 23047 properties: 23048 delegator_address: 23049 type: string 23050 description: delegator_address is the encoded address of the delegator. 23051 validator_address: 23052 type: string 23053 description: validator_address is the encoded address of the validator. 23054 entries: 23055 type: array 23056 items: 23057 type: object 23058 properties: 23059 creation_height: 23060 type: string 23061 format: int64 23062 description: >- 23063 creation_height is the height which the unbonding 23064 took place. 23065 completion_time: 23066 type: string 23067 format: date-time 23068 description: >- 23069 completion_time is the unix time for unbonding 23070 completion. 23071 initial_balance: 23072 type: string 23073 description: >- 23074 initial_balance defines the tokens initially 23075 scheduled to receive at completion. 23076 balance: 23077 type: string 23078 description: balance defines the tokens to receive at completion. 23079 unbonding_id: 23080 type: string 23081 format: uint64 23082 title: Incrementing id that uniquely identifies this entry 23083 unbonding_on_hold_ref_count: 23084 type: string 23085 format: int64 23086 title: >- 23087 Strictly positive if this entry's unbonding has been 23088 stopped by external modules 23089 description: >- 23090 UnbondingDelegationEntry defines an unbonding object 23091 with relevant metadata. 23092 description: entries are the unbonding delegation entries. 23093 description: >- 23094 UnbondingDelegation stores all of a single delegator's 23095 unbonding bonds 23096 23097 for a single validator in an time-ordered list. 23098 description: >- 23099 QueryDelegationResponse is response type for the 23100 Query/UnbondingDelegation 23101 23102 RPC method. 23103 default: 23104 description: An unexpected error response. 23105 schema: 23106 type: object 23107 properties: 23108 error: 23109 type: string 23110 code: 23111 type: integer 23112 format: int32 23113 message: 23114 type: string 23115 details: 23116 type: array 23117 items: 23118 type: object 23119 properties: 23120 type_url: 23121 type: string 23122 description: >- 23123 A URL/resource name that uniquely identifies the type of 23124 the serialized 23125 23126 protocol buffer message. This string must contain at 23127 least 23128 23129 one "/" character. The last segment of the URL's path 23130 must represent 23131 23132 the fully qualified name of the type (as in 23133 23134 `path/google.protobuf.Duration`). The name should be in 23135 a canonical form 23136 23137 (e.g., leading "." is not accepted). 23138 23139 23140 In practice, teams usually precompile into the binary 23141 all types that they 23142 23143 expect it to use in the context of Any. However, for 23144 URLs which use the 23145 23146 scheme `http`, `https`, or no scheme, one can optionally 23147 set up a type 23148 23149 server that maps type URLs to message definitions as 23150 follows: 23151 23152 23153 * If no scheme is provided, `https` is assumed. 23154 23155 * An HTTP GET on the URL must yield a 23156 [google.protobuf.Type][] 23157 value in binary format, or produce an error. 23158 * Applications are allowed to cache lookup results based 23159 on the 23160 URL, or have them precompiled into a binary to avoid any 23161 lookup. Therefore, binary compatibility needs to be preserved 23162 on changes to types. (Use versioned type names to manage 23163 breaking changes.) 23164 23165 Note: this functionality is not currently available in 23166 the official 23167 23168 protobuf release, and it is not used for type URLs 23169 beginning with 23170 23171 type.googleapis.com. 23172 23173 23174 Schemes other than `http`, `https` (or the empty scheme) 23175 might be 23176 23177 used with implementation specific semantics. 23178 value: 23179 type: string 23180 format: byte 23181 description: >- 23182 Must be a valid serialized protocol buffer of the above 23183 specified type. 23184 description: >- 23185 `Any` contains an arbitrary serialized protocol buffer 23186 message along with a 23187 23188 URL that describes the type of the serialized message. 23189 23190 23191 Protobuf library provides support to pack/unpack Any values 23192 in the form 23193 23194 of utility functions or additional generated methods of the 23195 Any type. 23196 23197 23198 Example 1: Pack and unpack a message in C++. 23199 23200 Foo foo = ...; 23201 Any any; 23202 any.PackFrom(foo); 23203 ... 23204 if (any.UnpackTo(&foo)) { 23205 ... 23206 } 23207 23208 Example 2: Pack and unpack a message in Java. 23209 23210 Foo foo = ...; 23211 Any any = Any.pack(foo); 23212 ... 23213 if (any.is(Foo.class)) { 23214 foo = any.unpack(Foo.class); 23215 } 23216 // or ... 23217 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 23218 foo = any.unpack(Foo.getDefaultInstance()); 23219 } 23220 23221 Example 3: Pack and unpack a message in Python. 23222 23223 foo = Foo(...) 23224 any = Any() 23225 any.Pack(foo) 23226 ... 23227 if any.Is(Foo.DESCRIPTOR): 23228 any.Unpack(foo) 23229 ... 23230 23231 Example 4: Pack and unpack a message in Go 23232 23233 foo := &pb.Foo{...} 23234 any, err := anypb.New(foo) 23235 if err != nil { 23236 ... 23237 } 23238 ... 23239 foo := &pb.Foo{} 23240 if err := any.UnmarshalTo(foo); err != nil { 23241 ... 23242 } 23243 23244 The pack methods provided by protobuf library will by 23245 default use 23246 23247 'type.googleapis.com/full.type.name' as the type URL and the 23248 unpack 23249 23250 methods only use the fully qualified type name after the 23251 last '/' 23252 23253 in the type URL, for example "foo.bar.com/x/y.z" will yield 23254 type 23255 23256 name "y.z". 23257 23258 23259 JSON 23260 23261 23262 The JSON representation of an `Any` value uses the regular 23263 23264 representation of the deserialized, embedded message, with 23265 an 23266 23267 additional field `@type` which contains the type URL. 23268 Example: 23269 23270 package google.profile; 23271 message Person { 23272 string first_name = 1; 23273 string last_name = 2; 23274 } 23275 23276 { 23277 "@type": "type.googleapis.com/google.profile.Person", 23278 "firstName": <string>, 23279 "lastName": <string> 23280 } 23281 23282 If the embedded message type is well-known and has a custom 23283 JSON 23284 23285 representation, that representation will be embedded adding 23286 a field 23287 23288 `value` which holds the custom JSON in addition to the 23289 `@type` 23290 23291 field. Example (for message [google.protobuf.Duration][]): 23292 23293 { 23294 "@type": "type.googleapis.com/google.protobuf.Duration", 23295 "value": "1.212s" 23296 } 23297 parameters: 23298 - name: validator_addr 23299 description: validator_addr defines the validator address to query for. 23300 in: path 23301 required: true 23302 type: string 23303 - name: delegator_addr 23304 description: delegator_addr defines the delegator address to query for. 23305 in: path 23306 required: true 23307 type: string 23308 tags: 23309 - Query 23310 /cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations: 23311 get: 23312 summary: >- 23313 ValidatorUnbondingDelegations queries unbonding delegations of a 23314 validator. 23315 description: >- 23316 When called from another module, this query might consume a high amount 23317 of 23318 23319 gas if the pagination field is incorrectly set. 23320 operationId: ValidatorUnbondingDelegations 23321 responses: 23322 '200': 23323 description: A successful response. 23324 schema: 23325 type: object 23326 properties: 23327 unbonding_responses: 23328 type: array 23329 items: 23330 type: object 23331 properties: 23332 delegator_address: 23333 type: string 23334 description: >- 23335 delegator_address is the encoded address of the 23336 delegator. 23337 validator_address: 23338 type: string 23339 description: >- 23340 validator_address is the encoded address of the 23341 validator. 23342 entries: 23343 type: array 23344 items: 23345 type: object 23346 properties: 23347 creation_height: 23348 type: string 23349 format: int64 23350 description: >- 23351 creation_height is the height which the unbonding 23352 took place. 23353 completion_time: 23354 type: string 23355 format: date-time 23356 description: >- 23357 completion_time is the unix time for unbonding 23358 completion. 23359 initial_balance: 23360 type: string 23361 description: >- 23362 initial_balance defines the tokens initially 23363 scheduled to receive at completion. 23364 balance: 23365 type: string 23366 description: >- 23367 balance defines the tokens to receive at 23368 completion. 23369 unbonding_id: 23370 type: string 23371 format: uint64 23372 title: >- 23373 Incrementing id that uniquely identifies this 23374 entry 23375 unbonding_on_hold_ref_count: 23376 type: string 23377 format: int64 23378 title: >- 23379 Strictly positive if this entry's unbonding has 23380 been stopped by external modules 23381 description: >- 23382 UnbondingDelegationEntry defines an unbonding object 23383 with relevant metadata. 23384 description: entries are the unbonding delegation entries. 23385 description: >- 23386 UnbondingDelegation stores all of a single delegator's 23387 unbonding bonds 23388 23389 for a single validator in an time-ordered list. 23390 pagination: 23391 description: pagination defines the pagination in the response. 23392 type: object 23393 properties: 23394 next_key: 23395 type: string 23396 format: byte 23397 description: |- 23398 next_key is the key to be passed to PageRequest.key to 23399 query the next page most efficiently. It will be empty if 23400 there are no more results. 23401 total: 23402 type: string 23403 format: uint64 23404 title: >- 23405 total is total number of results available if 23406 PageRequest.count_total 23407 23408 was set, its value is undefined otherwise 23409 description: >- 23410 QueryValidatorUnbondingDelegationsResponse is response type for 23411 the 23412 23413 Query/ValidatorUnbondingDelegations RPC method. 23414 default: 23415 description: An unexpected error response. 23416 schema: 23417 type: object 23418 properties: 23419 error: 23420 type: string 23421 code: 23422 type: integer 23423 format: int32 23424 message: 23425 type: string 23426 details: 23427 type: array 23428 items: 23429 type: object 23430 properties: 23431 type_url: 23432 type: string 23433 description: >- 23434 A URL/resource name that uniquely identifies the type of 23435 the serialized 23436 23437 protocol buffer message. This string must contain at 23438 least 23439 23440 one "/" character. The last segment of the URL's path 23441 must represent 23442 23443 the fully qualified name of the type (as in 23444 23445 `path/google.protobuf.Duration`). The name should be in 23446 a canonical form 23447 23448 (e.g., leading "." is not accepted). 23449 23450 23451 In practice, teams usually precompile into the binary 23452 all types that they 23453 23454 expect it to use in the context of Any. However, for 23455 URLs which use the 23456 23457 scheme `http`, `https`, or no scheme, one can optionally 23458 set up a type 23459 23460 server that maps type URLs to message definitions as 23461 follows: 23462 23463 23464 * If no scheme is provided, `https` is assumed. 23465 23466 * An HTTP GET on the URL must yield a 23467 [google.protobuf.Type][] 23468 value in binary format, or produce an error. 23469 * Applications are allowed to cache lookup results based 23470 on the 23471 URL, or have them precompiled into a binary to avoid any 23472 lookup. Therefore, binary compatibility needs to be preserved 23473 on changes to types. (Use versioned type names to manage 23474 breaking changes.) 23475 23476 Note: this functionality is not currently available in 23477 the official 23478 23479 protobuf release, and it is not used for type URLs 23480 beginning with 23481 23482 type.googleapis.com. 23483 23484 23485 Schemes other than `http`, `https` (or the empty scheme) 23486 might be 23487 23488 used with implementation specific semantics. 23489 value: 23490 type: string 23491 format: byte 23492 description: >- 23493 Must be a valid serialized protocol buffer of the above 23494 specified type. 23495 description: >- 23496 `Any` contains an arbitrary serialized protocol buffer 23497 message along with a 23498 23499 URL that describes the type of the serialized message. 23500 23501 23502 Protobuf library provides support to pack/unpack Any values 23503 in the form 23504 23505 of utility functions or additional generated methods of the 23506 Any type. 23507 23508 23509 Example 1: Pack and unpack a message in C++. 23510 23511 Foo foo = ...; 23512 Any any; 23513 any.PackFrom(foo); 23514 ... 23515 if (any.UnpackTo(&foo)) { 23516 ... 23517 } 23518 23519 Example 2: Pack and unpack a message in Java. 23520 23521 Foo foo = ...; 23522 Any any = Any.pack(foo); 23523 ... 23524 if (any.is(Foo.class)) { 23525 foo = any.unpack(Foo.class); 23526 } 23527 // or ... 23528 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 23529 foo = any.unpack(Foo.getDefaultInstance()); 23530 } 23531 23532 Example 3: Pack and unpack a message in Python. 23533 23534 foo = Foo(...) 23535 any = Any() 23536 any.Pack(foo) 23537 ... 23538 if any.Is(Foo.DESCRIPTOR): 23539 any.Unpack(foo) 23540 ... 23541 23542 Example 4: Pack and unpack a message in Go 23543 23544 foo := &pb.Foo{...} 23545 any, err := anypb.New(foo) 23546 if err != nil { 23547 ... 23548 } 23549 ... 23550 foo := &pb.Foo{} 23551 if err := any.UnmarshalTo(foo); err != nil { 23552 ... 23553 } 23554 23555 The pack methods provided by protobuf library will by 23556 default use 23557 23558 'type.googleapis.com/full.type.name' as the type URL and the 23559 unpack 23560 23561 methods only use the fully qualified type name after the 23562 last '/' 23563 23564 in the type URL, for example "foo.bar.com/x/y.z" will yield 23565 type 23566 23567 name "y.z". 23568 23569 23570 JSON 23571 23572 23573 The JSON representation of an `Any` value uses the regular 23574 23575 representation of the deserialized, embedded message, with 23576 an 23577 23578 additional field `@type` which contains the type URL. 23579 Example: 23580 23581 package google.profile; 23582 message Person { 23583 string first_name = 1; 23584 string last_name = 2; 23585 } 23586 23587 { 23588 "@type": "type.googleapis.com/google.profile.Person", 23589 "firstName": <string>, 23590 "lastName": <string> 23591 } 23592 23593 If the embedded message type is well-known and has a custom 23594 JSON 23595 23596 representation, that representation will be embedded adding 23597 a field 23598 23599 `value` which holds the custom JSON in addition to the 23600 `@type` 23601 23602 field. Example (for message [google.protobuf.Duration][]): 23603 23604 { 23605 "@type": "type.googleapis.com/google.protobuf.Duration", 23606 "value": "1.212s" 23607 } 23608 parameters: 23609 - name: validator_addr 23610 description: validator_addr defines the validator address to query for. 23611 in: path 23612 required: true 23613 type: string 23614 - name: pagination.key 23615 description: |- 23616 key is a value returned in PageResponse.next_key to begin 23617 querying the next page most efficiently. Only one of offset or key 23618 should be set. 23619 in: query 23620 required: false 23621 type: string 23622 format: byte 23623 - name: pagination.offset 23624 description: >- 23625 offset is a numeric offset that can be used when key is unavailable. 23626 23627 It is less efficient than using key. Only one of offset or key 23628 should 23629 23630 be set. 23631 in: query 23632 required: false 23633 type: string 23634 format: uint64 23635 - name: pagination.limit 23636 description: >- 23637 limit is the total number of results to be returned in the result 23638 page. 23639 23640 If left empty it will default to a value to be set by each app. 23641 in: query 23642 required: false 23643 type: string 23644 format: uint64 23645 - name: pagination.count_total 23646 description: >- 23647 count_total is set to true to indicate that the result set should 23648 include 23649 23650 a count of the total number of items available for pagination in 23651 UIs. 23652 23653 count_total is only respected when offset is used. It is ignored 23654 when key 23655 23656 is set. 23657 in: query 23658 required: false 23659 type: boolean 23660 - name: pagination.reverse 23661 description: >- 23662 reverse is set to true if results are to be returned in the 23663 descending order. 23664 23665 23666 Since: cosmos-sdk 0.43 23667 in: query 23668 required: false 23669 type: boolean 23670 tags: 23671 - Query 23672 /cosmos/tx/v1beta1/decode: 23673 post: 23674 summary: TxDecode decodes the transaction. 23675 description: 'Since: cosmos-sdk 0.47' 23676 operationId: TxDecode 23677 responses: 23678 '200': 23679 description: A successful response. 23680 schema: 23681 $ref: '#/definitions/cosmos.tx.v1beta1.TxDecodeResponse' 23682 default: 23683 description: An unexpected error response. 23684 schema: 23685 type: object 23686 properties: 23687 error: 23688 type: string 23689 code: 23690 type: integer 23691 format: int32 23692 message: 23693 type: string 23694 details: 23695 type: array 23696 items: 23697 type: object 23698 properties: 23699 type_url: 23700 type: string 23701 description: >- 23702 A URL/resource name that uniquely identifies the type of 23703 the serialized 23704 23705 protocol buffer message. This string must contain at 23706 least 23707 23708 one "/" character. The last segment of the URL's path 23709 must represent 23710 23711 the fully qualified name of the type (as in 23712 23713 `path/google.protobuf.Duration`). The name should be in 23714 a canonical form 23715 23716 (e.g., leading "." is not accepted). 23717 23718 23719 In practice, teams usually precompile into the binary 23720 all types that they 23721 23722 expect it to use in the context of Any. However, for 23723 URLs which use the 23724 23725 scheme `http`, `https`, or no scheme, one can optionally 23726 set up a type 23727 23728 server that maps type URLs to message definitions as 23729 follows: 23730 23731 23732 * If no scheme is provided, `https` is assumed. 23733 23734 * An HTTP GET on the URL must yield a 23735 [google.protobuf.Type][] 23736 value in binary format, or produce an error. 23737 * Applications are allowed to cache lookup results based 23738 on the 23739 URL, or have them precompiled into a binary to avoid any 23740 lookup. Therefore, binary compatibility needs to be preserved 23741 on changes to types. (Use versioned type names to manage 23742 breaking changes.) 23743 23744 Note: this functionality is not currently available in 23745 the official 23746 23747 protobuf release, and it is not used for type URLs 23748 beginning with 23749 23750 type.googleapis.com. 23751 23752 23753 Schemes other than `http`, `https` (or the empty scheme) 23754 might be 23755 23756 used with implementation specific semantics. 23757 value: 23758 type: string 23759 format: byte 23760 description: >- 23761 Must be a valid serialized protocol buffer of the above 23762 specified type. 23763 description: >- 23764 `Any` contains an arbitrary serialized protocol buffer 23765 message along with a 23766 23767 URL that describes the type of the serialized message. 23768 23769 23770 Protobuf library provides support to pack/unpack Any values 23771 in the form 23772 23773 of utility functions or additional generated methods of the 23774 Any type. 23775 23776 23777 Example 1: Pack and unpack a message in C++. 23778 23779 Foo foo = ...; 23780 Any any; 23781 any.PackFrom(foo); 23782 ... 23783 if (any.UnpackTo(&foo)) { 23784 ... 23785 } 23786 23787 Example 2: Pack and unpack a message in Java. 23788 23789 Foo foo = ...; 23790 Any any = Any.pack(foo); 23791 ... 23792 if (any.is(Foo.class)) { 23793 foo = any.unpack(Foo.class); 23794 } 23795 // or ... 23796 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 23797 foo = any.unpack(Foo.getDefaultInstance()); 23798 } 23799 23800 Example 3: Pack and unpack a message in Python. 23801 23802 foo = Foo(...) 23803 any = Any() 23804 any.Pack(foo) 23805 ... 23806 if any.Is(Foo.DESCRIPTOR): 23807 any.Unpack(foo) 23808 ... 23809 23810 Example 4: Pack and unpack a message in Go 23811 23812 foo := &pb.Foo{...} 23813 any, err := anypb.New(foo) 23814 if err != nil { 23815 ... 23816 } 23817 ... 23818 foo := &pb.Foo{} 23819 if err := any.UnmarshalTo(foo); err != nil { 23820 ... 23821 } 23822 23823 The pack methods provided by protobuf library will by 23824 default use 23825 23826 'type.googleapis.com/full.type.name' as the type URL and the 23827 unpack 23828 23829 methods only use the fully qualified type name after the 23830 last '/' 23831 23832 in the type URL, for example "foo.bar.com/x/y.z" will yield 23833 type 23834 23835 name "y.z". 23836 23837 23838 JSON 23839 23840 23841 The JSON representation of an `Any` value uses the regular 23842 23843 representation of the deserialized, embedded message, with 23844 an 23845 23846 additional field `@type` which contains the type URL. 23847 Example: 23848 23849 package google.profile; 23850 message Person { 23851 string first_name = 1; 23852 string last_name = 2; 23853 } 23854 23855 { 23856 "@type": "type.googleapis.com/google.profile.Person", 23857 "firstName": <string>, 23858 "lastName": <string> 23859 } 23860 23861 If the embedded message type is well-known and has a custom 23862 JSON 23863 23864 representation, that representation will be embedded adding 23865 a field 23866 23867 `value` which holds the custom JSON in addition to the 23868 `@type` 23869 23870 field. Example (for message [google.protobuf.Duration][]): 23871 23872 { 23873 "@type": "type.googleapis.com/google.protobuf.Duration", 23874 "value": "1.212s" 23875 } 23876 parameters: 23877 - name: body 23878 in: body 23879 required: true 23880 schema: 23881 type: object 23882 properties: 23883 tx_bytes: 23884 type: string 23885 format: byte 23886 description: tx_bytes is the raw transaction. 23887 description: |- 23888 TxDecodeRequest is the request type for the Service.TxDecode 23889 RPC method. 23890 23891 Since: cosmos-sdk 0.47 23892 tags: 23893 - Service 23894 /cosmos/tx/v1beta1/decode/amino: 23895 post: 23896 summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. 23897 description: 'Since: cosmos-sdk 0.47' 23898 operationId: TxDecodeAmino 23899 responses: 23900 '200': 23901 description: A successful response. 23902 schema: 23903 type: object 23904 properties: 23905 amino_json: 23906 type: string 23907 description: >- 23908 TxDecodeAminoResponse is the response type for the 23909 Service.TxDecodeAmino 23910 23911 RPC method. 23912 23913 23914 Since: cosmos-sdk 0.47 23915 default: 23916 description: An unexpected error response. 23917 schema: 23918 type: object 23919 properties: 23920 error: 23921 type: string 23922 code: 23923 type: integer 23924 format: int32 23925 message: 23926 type: string 23927 details: 23928 type: array 23929 items: 23930 type: object 23931 properties: 23932 type_url: 23933 type: string 23934 description: >- 23935 A URL/resource name that uniquely identifies the type of 23936 the serialized 23937 23938 protocol buffer message. This string must contain at 23939 least 23940 23941 one "/" character. The last segment of the URL's path 23942 must represent 23943 23944 the fully qualified name of the type (as in 23945 23946 `path/google.protobuf.Duration`). The name should be in 23947 a canonical form 23948 23949 (e.g., leading "." is not accepted). 23950 23951 23952 In practice, teams usually precompile into the binary 23953 all types that they 23954 23955 expect it to use in the context of Any. However, for 23956 URLs which use the 23957 23958 scheme `http`, `https`, or no scheme, one can optionally 23959 set up a type 23960 23961 server that maps type URLs to message definitions as 23962 follows: 23963 23964 23965 * If no scheme is provided, `https` is assumed. 23966 23967 * An HTTP GET on the URL must yield a 23968 [google.protobuf.Type][] 23969 value in binary format, or produce an error. 23970 * Applications are allowed to cache lookup results based 23971 on the 23972 URL, or have them precompiled into a binary to avoid any 23973 lookup. Therefore, binary compatibility needs to be preserved 23974 on changes to types. (Use versioned type names to manage 23975 breaking changes.) 23976 23977 Note: this functionality is not currently available in 23978 the official 23979 23980 protobuf release, and it is not used for type URLs 23981 beginning with 23982 23983 type.googleapis.com. 23984 23985 23986 Schemes other than `http`, `https` (or the empty scheme) 23987 might be 23988 23989 used with implementation specific semantics. 23990 value: 23991 type: string 23992 format: byte 23993 description: >- 23994 Must be a valid serialized protocol buffer of the above 23995 specified type. 23996 description: >- 23997 `Any` contains an arbitrary serialized protocol buffer 23998 message along with a 23999 24000 URL that describes the type of the serialized message. 24001 24002 24003 Protobuf library provides support to pack/unpack Any values 24004 in the form 24005 24006 of utility functions or additional generated methods of the 24007 Any type. 24008 24009 24010 Example 1: Pack and unpack a message in C++. 24011 24012 Foo foo = ...; 24013 Any any; 24014 any.PackFrom(foo); 24015 ... 24016 if (any.UnpackTo(&foo)) { 24017 ... 24018 } 24019 24020 Example 2: Pack and unpack a message in Java. 24021 24022 Foo foo = ...; 24023 Any any = Any.pack(foo); 24024 ... 24025 if (any.is(Foo.class)) { 24026 foo = any.unpack(Foo.class); 24027 } 24028 // or ... 24029 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 24030 foo = any.unpack(Foo.getDefaultInstance()); 24031 } 24032 24033 Example 3: Pack and unpack a message in Python. 24034 24035 foo = Foo(...) 24036 any = Any() 24037 any.Pack(foo) 24038 ... 24039 if any.Is(Foo.DESCRIPTOR): 24040 any.Unpack(foo) 24041 ... 24042 24043 Example 4: Pack and unpack a message in Go 24044 24045 foo := &pb.Foo{...} 24046 any, err := anypb.New(foo) 24047 if err != nil { 24048 ... 24049 } 24050 ... 24051 foo := &pb.Foo{} 24052 if err := any.UnmarshalTo(foo); err != nil { 24053 ... 24054 } 24055 24056 The pack methods provided by protobuf library will by 24057 default use 24058 24059 'type.googleapis.com/full.type.name' as the type URL and the 24060 unpack 24061 24062 methods only use the fully qualified type name after the 24063 last '/' 24064 24065 in the type URL, for example "foo.bar.com/x/y.z" will yield 24066 type 24067 24068 name "y.z". 24069 24070 24071 JSON 24072 24073 24074 The JSON representation of an `Any` value uses the regular 24075 24076 representation of the deserialized, embedded message, with 24077 an 24078 24079 additional field `@type` which contains the type URL. 24080 Example: 24081 24082 package google.profile; 24083 message Person { 24084 string first_name = 1; 24085 string last_name = 2; 24086 } 24087 24088 { 24089 "@type": "type.googleapis.com/google.profile.Person", 24090 "firstName": <string>, 24091 "lastName": <string> 24092 } 24093 24094 If the embedded message type is well-known and has a custom 24095 JSON 24096 24097 representation, that representation will be embedded adding 24098 a field 24099 24100 `value` which holds the custom JSON in addition to the 24101 `@type` 24102 24103 field. Example (for message [google.protobuf.Duration][]): 24104 24105 { 24106 "@type": "type.googleapis.com/google.protobuf.Duration", 24107 "value": "1.212s" 24108 } 24109 parameters: 24110 - name: body 24111 in: body 24112 required: true 24113 schema: 24114 type: object 24115 properties: 24116 amino_binary: 24117 type: string 24118 format: byte 24119 description: >- 24120 TxDecodeAminoRequest is the request type for the 24121 Service.TxDecodeAmino 24122 24123 RPC method. 24124 24125 24126 Since: cosmos-sdk 0.47 24127 tags: 24128 - Service 24129 /cosmos/tx/v1beta1/encode: 24130 post: 24131 summary: TxEncode encodes the transaction. 24132 description: 'Since: cosmos-sdk 0.47' 24133 operationId: TxEncode 24134 responses: 24135 '200': 24136 description: A successful response. 24137 schema: 24138 type: object 24139 properties: 24140 tx_bytes: 24141 type: string 24142 format: byte 24143 description: tx_bytes is the encoded transaction bytes. 24144 description: |- 24145 TxEncodeResponse is the response type for the 24146 Service.TxEncode method. 24147 24148 Since: cosmos-sdk 0.47 24149 default: 24150 description: An unexpected error response. 24151 schema: 24152 type: object 24153 properties: 24154 error: 24155 type: string 24156 code: 24157 type: integer 24158 format: int32 24159 message: 24160 type: string 24161 details: 24162 type: array 24163 items: 24164 type: object 24165 properties: 24166 type_url: 24167 type: string 24168 description: >- 24169 A URL/resource name that uniquely identifies the type of 24170 the serialized 24171 24172 protocol buffer message. This string must contain at 24173 least 24174 24175 one "/" character. The last segment of the URL's path 24176 must represent 24177 24178 the fully qualified name of the type (as in 24179 24180 `path/google.protobuf.Duration`). The name should be in 24181 a canonical form 24182 24183 (e.g., leading "." is not accepted). 24184 24185 24186 In practice, teams usually precompile into the binary 24187 all types that they 24188 24189 expect it to use in the context of Any. However, for 24190 URLs which use the 24191 24192 scheme `http`, `https`, or no scheme, one can optionally 24193 set up a type 24194 24195 server that maps type URLs to message definitions as 24196 follows: 24197 24198 24199 * If no scheme is provided, `https` is assumed. 24200 24201 * An HTTP GET on the URL must yield a 24202 [google.protobuf.Type][] 24203 value in binary format, or produce an error. 24204 * Applications are allowed to cache lookup results based 24205 on the 24206 URL, or have them precompiled into a binary to avoid any 24207 lookup. Therefore, binary compatibility needs to be preserved 24208 on changes to types. (Use versioned type names to manage 24209 breaking changes.) 24210 24211 Note: this functionality is not currently available in 24212 the official 24213 24214 protobuf release, and it is not used for type URLs 24215 beginning with 24216 24217 type.googleapis.com. 24218 24219 24220 Schemes other than `http`, `https` (or the empty scheme) 24221 might be 24222 24223 used with implementation specific semantics. 24224 value: 24225 type: string 24226 format: byte 24227 description: >- 24228 Must be a valid serialized protocol buffer of the above 24229 specified type. 24230 description: >- 24231 `Any` contains an arbitrary serialized protocol buffer 24232 message along with a 24233 24234 URL that describes the type of the serialized message. 24235 24236 24237 Protobuf library provides support to pack/unpack Any values 24238 in the form 24239 24240 of utility functions or additional generated methods of the 24241 Any type. 24242 24243 24244 Example 1: Pack and unpack a message in C++. 24245 24246 Foo foo = ...; 24247 Any any; 24248 any.PackFrom(foo); 24249 ... 24250 if (any.UnpackTo(&foo)) { 24251 ... 24252 } 24253 24254 Example 2: Pack and unpack a message in Java. 24255 24256 Foo foo = ...; 24257 Any any = Any.pack(foo); 24258 ... 24259 if (any.is(Foo.class)) { 24260 foo = any.unpack(Foo.class); 24261 } 24262 // or ... 24263 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 24264 foo = any.unpack(Foo.getDefaultInstance()); 24265 } 24266 24267 Example 3: Pack and unpack a message in Python. 24268 24269 foo = Foo(...) 24270 any = Any() 24271 any.Pack(foo) 24272 ... 24273 if any.Is(Foo.DESCRIPTOR): 24274 any.Unpack(foo) 24275 ... 24276 24277 Example 4: Pack and unpack a message in Go 24278 24279 foo := &pb.Foo{...} 24280 any, err := anypb.New(foo) 24281 if err != nil { 24282 ... 24283 } 24284 ... 24285 foo := &pb.Foo{} 24286 if err := any.UnmarshalTo(foo); err != nil { 24287 ... 24288 } 24289 24290 The pack methods provided by protobuf library will by 24291 default use 24292 24293 'type.googleapis.com/full.type.name' as the type URL and the 24294 unpack 24295 24296 methods only use the fully qualified type name after the 24297 last '/' 24298 24299 in the type URL, for example "foo.bar.com/x/y.z" will yield 24300 type 24301 24302 name "y.z". 24303 24304 24305 JSON 24306 24307 24308 The JSON representation of an `Any` value uses the regular 24309 24310 representation of the deserialized, embedded message, with 24311 an 24312 24313 additional field `@type` which contains the type URL. 24314 Example: 24315 24316 package google.profile; 24317 message Person { 24318 string first_name = 1; 24319 string last_name = 2; 24320 } 24321 24322 { 24323 "@type": "type.googleapis.com/google.profile.Person", 24324 "firstName": <string>, 24325 "lastName": <string> 24326 } 24327 24328 If the embedded message type is well-known and has a custom 24329 JSON 24330 24331 representation, that representation will be embedded adding 24332 a field 24333 24334 `value` which holds the custom JSON in addition to the 24335 `@type` 24336 24337 field. Example (for message [google.protobuf.Duration][]): 24338 24339 { 24340 "@type": "type.googleapis.com/google.protobuf.Duration", 24341 "value": "1.212s" 24342 } 24343 parameters: 24344 - name: body 24345 in: body 24346 required: true 24347 schema: 24348 $ref: '#/definitions/cosmos.tx.v1beta1.TxEncodeRequest' 24349 tags: 24350 - Service 24351 /cosmos/tx/v1beta1/encode/amino: 24352 post: 24353 summary: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. 24354 description: 'Since: cosmos-sdk 0.47' 24355 operationId: TxEncodeAmino 24356 responses: 24357 '200': 24358 description: A successful response. 24359 schema: 24360 type: object 24361 properties: 24362 amino_binary: 24363 type: string 24364 format: byte 24365 description: >- 24366 TxEncodeAminoResponse is the response type for the 24367 Service.TxEncodeAmino 24368 24369 RPC method. 24370 24371 24372 Since: cosmos-sdk 0.47 24373 default: 24374 description: An unexpected error response. 24375 schema: 24376 type: object 24377 properties: 24378 error: 24379 type: string 24380 code: 24381 type: integer 24382 format: int32 24383 message: 24384 type: string 24385 details: 24386 type: array 24387 items: 24388 type: object 24389 properties: 24390 type_url: 24391 type: string 24392 description: >- 24393 A URL/resource name that uniquely identifies the type of 24394 the serialized 24395 24396 protocol buffer message. This string must contain at 24397 least 24398 24399 one "/" character. The last segment of the URL's path 24400 must represent 24401 24402 the fully qualified name of the type (as in 24403 24404 `path/google.protobuf.Duration`). The name should be in 24405 a canonical form 24406 24407 (e.g., leading "." is not accepted). 24408 24409 24410 In practice, teams usually precompile into the binary 24411 all types that they 24412 24413 expect it to use in the context of Any. However, for 24414 URLs which use the 24415 24416 scheme `http`, `https`, or no scheme, one can optionally 24417 set up a type 24418 24419 server that maps type URLs to message definitions as 24420 follows: 24421 24422 24423 * If no scheme is provided, `https` is assumed. 24424 24425 * An HTTP GET on the URL must yield a 24426 [google.protobuf.Type][] 24427 value in binary format, or produce an error. 24428 * Applications are allowed to cache lookup results based 24429 on the 24430 URL, or have them precompiled into a binary to avoid any 24431 lookup. Therefore, binary compatibility needs to be preserved 24432 on changes to types. (Use versioned type names to manage 24433 breaking changes.) 24434 24435 Note: this functionality is not currently available in 24436 the official 24437 24438 protobuf release, and it is not used for type URLs 24439 beginning with 24440 24441 type.googleapis.com. 24442 24443 24444 Schemes other than `http`, `https` (or the empty scheme) 24445 might be 24446 24447 used with implementation specific semantics. 24448 value: 24449 type: string 24450 format: byte 24451 description: >- 24452 Must be a valid serialized protocol buffer of the above 24453 specified type. 24454 description: >- 24455 `Any` contains an arbitrary serialized protocol buffer 24456 message along with a 24457 24458 URL that describes the type of the serialized message. 24459 24460 24461 Protobuf library provides support to pack/unpack Any values 24462 in the form 24463 24464 of utility functions or additional generated methods of the 24465 Any type. 24466 24467 24468 Example 1: Pack and unpack a message in C++. 24469 24470 Foo foo = ...; 24471 Any any; 24472 any.PackFrom(foo); 24473 ... 24474 if (any.UnpackTo(&foo)) { 24475 ... 24476 } 24477 24478 Example 2: Pack and unpack a message in Java. 24479 24480 Foo foo = ...; 24481 Any any = Any.pack(foo); 24482 ... 24483 if (any.is(Foo.class)) { 24484 foo = any.unpack(Foo.class); 24485 } 24486 // or ... 24487 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 24488 foo = any.unpack(Foo.getDefaultInstance()); 24489 } 24490 24491 Example 3: Pack and unpack a message in Python. 24492 24493 foo = Foo(...) 24494 any = Any() 24495 any.Pack(foo) 24496 ... 24497 if any.Is(Foo.DESCRIPTOR): 24498 any.Unpack(foo) 24499 ... 24500 24501 Example 4: Pack and unpack a message in Go 24502 24503 foo := &pb.Foo{...} 24504 any, err := anypb.New(foo) 24505 if err != nil { 24506 ... 24507 } 24508 ... 24509 foo := &pb.Foo{} 24510 if err := any.UnmarshalTo(foo); err != nil { 24511 ... 24512 } 24513 24514 The pack methods provided by protobuf library will by 24515 default use 24516 24517 'type.googleapis.com/full.type.name' as the type URL and the 24518 unpack 24519 24520 methods only use the fully qualified type name after the 24521 last '/' 24522 24523 in the type URL, for example "foo.bar.com/x/y.z" will yield 24524 type 24525 24526 name "y.z". 24527 24528 24529 JSON 24530 24531 24532 The JSON representation of an `Any` value uses the regular 24533 24534 representation of the deserialized, embedded message, with 24535 an 24536 24537 additional field `@type` which contains the type URL. 24538 Example: 24539 24540 package google.profile; 24541 message Person { 24542 string first_name = 1; 24543 string last_name = 2; 24544 } 24545 24546 { 24547 "@type": "type.googleapis.com/google.profile.Person", 24548 "firstName": <string>, 24549 "lastName": <string> 24550 } 24551 24552 If the embedded message type is well-known and has a custom 24553 JSON 24554 24555 representation, that representation will be embedded adding 24556 a field 24557 24558 `value` which holds the custom JSON in addition to the 24559 `@type` 24560 24561 field. Example (for message [google.protobuf.Duration][]): 24562 24563 { 24564 "@type": "type.googleapis.com/google.protobuf.Duration", 24565 "value": "1.212s" 24566 } 24567 parameters: 24568 - name: body 24569 in: body 24570 required: true 24571 schema: 24572 type: object 24573 properties: 24574 amino_json: 24575 type: string 24576 description: >- 24577 TxEncodeAminoRequest is the request type for the 24578 Service.TxEncodeAmino 24579 24580 RPC method. 24581 24582 24583 Since: cosmos-sdk 0.47 24584 tags: 24585 - Service 24586 /cosmos/tx/v1beta1/simulate: 24587 post: 24588 summary: Simulate simulates executing a transaction for estimating gas usage. 24589 operationId: Simulate 24590 responses: 24591 '200': 24592 description: A successful response. 24593 schema: 24594 type: object 24595 properties: 24596 gas_info: 24597 description: gas_info is the information about gas used in the simulation. 24598 type: object 24599 properties: 24600 gas_wanted: 24601 type: string 24602 format: uint64 24603 description: >- 24604 GasWanted is the maximum units of work we allow this tx to 24605 perform. 24606 gas_used: 24607 type: string 24608 format: uint64 24609 description: GasUsed is the amount of gas actually consumed. 24610 result: 24611 description: result is the result of the simulation. 24612 type: object 24613 properties: 24614 data: 24615 type: string 24616 format: byte 24617 description: >- 24618 Data is any data returned from message or handler 24619 execution. It MUST be 24620 24621 length prefixed in order to separate data from multiple 24622 message executions. 24623 24624 Deprecated. This field is still populated, but prefer 24625 msg_response instead 24626 24627 because it also contains the Msg response typeURL. 24628 log: 24629 type: string 24630 description: >- 24631 Log contains the log information from message or handler 24632 execution. 24633 events: 24634 type: array 24635 items: 24636 type: object 24637 properties: 24638 type: 24639 type: string 24640 attributes: 24641 type: array 24642 items: 24643 type: object 24644 properties: 24645 key: 24646 type: string 24647 value: 24648 type: string 24649 index: 24650 type: boolean 24651 description: >- 24652 EventAttribute is a single key-value pair, 24653 associated with an event. 24654 description: >- 24655 Event allows application developers to attach additional 24656 information to 24657 24658 ResponseFinalizeBlock and ResponseCheckTx. 24659 24660 Later, transactions may be queried using these events. 24661 description: >- 24662 Events contains a slice of Event objects that were emitted 24663 during message 24664 24665 or handler execution. 24666 msg_responses: 24667 type: array 24668 items: 24669 type: object 24670 properties: 24671 type_url: 24672 type: string 24673 description: >- 24674 A URL/resource name that uniquely identifies the 24675 type of the serialized 24676 24677 protocol buffer message. This string must contain at 24678 least 24679 24680 one "/" character. The last segment of the URL's 24681 path must represent 24682 24683 the fully qualified name of the type (as in 24684 24685 `path/google.protobuf.Duration`). The name should be 24686 in a canonical form 24687 24688 (e.g., leading "." is not accepted). 24689 24690 24691 In practice, teams usually precompile into the 24692 binary all types that they 24693 24694 expect it to use in the context of Any. However, for 24695 URLs which use the 24696 24697 scheme `http`, `https`, or no scheme, one can 24698 optionally set up a type 24699 24700 server that maps type URLs to message definitions as 24701 follows: 24702 24703 24704 * If no scheme is provided, `https` is assumed. 24705 24706 * An HTTP GET on the URL must yield a 24707 [google.protobuf.Type][] 24708 value in binary format, or produce an error. 24709 * Applications are allowed to cache lookup results 24710 based on the 24711 URL, or have them precompiled into a binary to avoid any 24712 lookup. Therefore, binary compatibility needs to be preserved 24713 on changes to types. (Use versioned type names to manage 24714 breaking changes.) 24715 24716 Note: this functionality is not currently available 24717 in the official 24718 24719 protobuf release, and it is not used for type URLs 24720 beginning with 24721 24722 type.googleapis.com. 24723 24724 24725 Schemes other than `http`, `https` (or the empty 24726 scheme) might be 24727 24728 used with implementation specific semantics. 24729 value: 24730 type: string 24731 format: byte 24732 description: >- 24733 Must be a valid serialized protocol buffer of the 24734 above specified type. 24735 description: >- 24736 `Any` contains an arbitrary serialized protocol buffer 24737 message along with a 24738 24739 URL that describes the type of the serialized message. 24740 24741 24742 Protobuf library provides support to pack/unpack Any 24743 values in the form 24744 24745 of utility functions or additional generated methods of 24746 the Any type. 24747 24748 24749 Example 1: Pack and unpack a message in C++. 24750 24751 Foo foo = ...; 24752 Any any; 24753 any.PackFrom(foo); 24754 ... 24755 if (any.UnpackTo(&foo)) { 24756 ... 24757 } 24758 24759 Example 2: Pack and unpack a message in Java. 24760 24761 Foo foo = ...; 24762 Any any = Any.pack(foo); 24763 ... 24764 if (any.is(Foo.class)) { 24765 foo = any.unpack(Foo.class); 24766 } 24767 // or ... 24768 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 24769 foo = any.unpack(Foo.getDefaultInstance()); 24770 } 24771 24772 Example 3: Pack and unpack a message in Python. 24773 24774 foo = Foo(...) 24775 any = Any() 24776 any.Pack(foo) 24777 ... 24778 if any.Is(Foo.DESCRIPTOR): 24779 any.Unpack(foo) 24780 ... 24781 24782 Example 4: Pack and unpack a message in Go 24783 24784 foo := &pb.Foo{...} 24785 any, err := anypb.New(foo) 24786 if err != nil { 24787 ... 24788 } 24789 ... 24790 foo := &pb.Foo{} 24791 if err := any.UnmarshalTo(foo); err != nil { 24792 ... 24793 } 24794 24795 The pack methods provided by protobuf library will by 24796 default use 24797 24798 'type.googleapis.com/full.type.name' as the type URL and 24799 the unpack 24800 24801 methods only use the fully qualified type name after the 24802 last '/' 24803 24804 in the type URL, for example "foo.bar.com/x/y.z" will 24805 yield type 24806 24807 name "y.z". 24808 24809 24810 JSON 24811 24812 24813 The JSON representation of an `Any` value uses the 24814 regular 24815 24816 representation of the deserialized, embedded message, 24817 with an 24818 24819 additional field `@type` which contains the type URL. 24820 Example: 24821 24822 package google.profile; 24823 message Person { 24824 string first_name = 1; 24825 string last_name = 2; 24826 } 24827 24828 { 24829 "@type": "type.googleapis.com/google.profile.Person", 24830 "firstName": <string>, 24831 "lastName": <string> 24832 } 24833 24834 If the embedded message type is well-known and has a 24835 custom JSON 24836 24837 representation, that representation will be embedded 24838 adding a field 24839 24840 `value` which holds the custom JSON in addition to the 24841 `@type` 24842 24843 field. Example (for message 24844 [google.protobuf.Duration][]): 24845 24846 { 24847 "@type": "type.googleapis.com/google.protobuf.Duration", 24848 "value": "1.212s" 24849 } 24850 description: >- 24851 msg_responses contains the Msg handler responses type 24852 packed in Anys. 24853 24854 24855 Since: cosmos-sdk 0.46 24856 description: |- 24857 SimulateResponse is the response type for the 24858 Service.SimulateRPC method. 24859 default: 24860 description: An unexpected error response. 24861 schema: 24862 type: object 24863 properties: 24864 error: 24865 type: string 24866 code: 24867 type: integer 24868 format: int32 24869 message: 24870 type: string 24871 details: 24872 type: array 24873 items: 24874 type: object 24875 properties: 24876 type_url: 24877 type: string 24878 description: >- 24879 A URL/resource name that uniquely identifies the type of 24880 the serialized 24881 24882 protocol buffer message. This string must contain at 24883 least 24884 24885 one "/" character. The last segment of the URL's path 24886 must represent 24887 24888 the fully qualified name of the type (as in 24889 24890 `path/google.protobuf.Duration`). The name should be in 24891 a canonical form 24892 24893 (e.g., leading "." is not accepted). 24894 24895 24896 In practice, teams usually precompile into the binary 24897 all types that they 24898 24899 expect it to use in the context of Any. However, for 24900 URLs which use the 24901 24902 scheme `http`, `https`, or no scheme, one can optionally 24903 set up a type 24904 24905 server that maps type URLs to message definitions as 24906 follows: 24907 24908 24909 * If no scheme is provided, `https` is assumed. 24910 24911 * An HTTP GET on the URL must yield a 24912 [google.protobuf.Type][] 24913 value in binary format, or produce an error. 24914 * Applications are allowed to cache lookup results based 24915 on the 24916 URL, or have them precompiled into a binary to avoid any 24917 lookup. Therefore, binary compatibility needs to be preserved 24918 on changes to types. (Use versioned type names to manage 24919 breaking changes.) 24920 24921 Note: this functionality is not currently available in 24922 the official 24923 24924 protobuf release, and it is not used for type URLs 24925 beginning with 24926 24927 type.googleapis.com. 24928 24929 24930 Schemes other than `http`, `https` (or the empty scheme) 24931 might be 24932 24933 used with implementation specific semantics. 24934 value: 24935 type: string 24936 format: byte 24937 description: >- 24938 Must be a valid serialized protocol buffer of the above 24939 specified type. 24940 description: >- 24941 `Any` contains an arbitrary serialized protocol buffer 24942 message along with a 24943 24944 URL that describes the type of the serialized message. 24945 24946 24947 Protobuf library provides support to pack/unpack Any values 24948 in the form 24949 24950 of utility functions or additional generated methods of the 24951 Any type. 24952 24953 24954 Example 1: Pack and unpack a message in C++. 24955 24956 Foo foo = ...; 24957 Any any; 24958 any.PackFrom(foo); 24959 ... 24960 if (any.UnpackTo(&foo)) { 24961 ... 24962 } 24963 24964 Example 2: Pack and unpack a message in Java. 24965 24966 Foo foo = ...; 24967 Any any = Any.pack(foo); 24968 ... 24969 if (any.is(Foo.class)) { 24970 foo = any.unpack(Foo.class); 24971 } 24972 // or ... 24973 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 24974 foo = any.unpack(Foo.getDefaultInstance()); 24975 } 24976 24977 Example 3: Pack and unpack a message in Python. 24978 24979 foo = Foo(...) 24980 any = Any() 24981 any.Pack(foo) 24982 ... 24983 if any.Is(Foo.DESCRIPTOR): 24984 any.Unpack(foo) 24985 ... 24986 24987 Example 4: Pack and unpack a message in Go 24988 24989 foo := &pb.Foo{...} 24990 any, err := anypb.New(foo) 24991 if err != nil { 24992 ... 24993 } 24994 ... 24995 foo := &pb.Foo{} 24996 if err := any.UnmarshalTo(foo); err != nil { 24997 ... 24998 } 24999 25000 The pack methods provided by protobuf library will by 25001 default use 25002 25003 'type.googleapis.com/full.type.name' as the type URL and the 25004 unpack 25005 25006 methods only use the fully qualified type name after the 25007 last '/' 25008 25009 in the type URL, for example "foo.bar.com/x/y.z" will yield 25010 type 25011 25012 name "y.z". 25013 25014 25015 JSON 25016 25017 25018 The JSON representation of an `Any` value uses the regular 25019 25020 representation of the deserialized, embedded message, with 25021 an 25022 25023 additional field `@type` which contains the type URL. 25024 Example: 25025 25026 package google.profile; 25027 message Person { 25028 string first_name = 1; 25029 string last_name = 2; 25030 } 25031 25032 { 25033 "@type": "type.googleapis.com/google.profile.Person", 25034 "firstName": <string>, 25035 "lastName": <string> 25036 } 25037 25038 If the embedded message type is well-known and has a custom 25039 JSON 25040 25041 representation, that representation will be embedded adding 25042 a field 25043 25044 `value` which holds the custom JSON in addition to the 25045 `@type` 25046 25047 field. Example (for message [google.protobuf.Duration][]): 25048 25049 { 25050 "@type": "type.googleapis.com/google.protobuf.Duration", 25051 "value": "1.212s" 25052 } 25053 parameters: 25054 - name: body 25055 in: body 25056 required: true 25057 schema: 25058 $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest' 25059 tags: 25060 - Service 25061 /cosmos/tx/v1beta1/txs: 25062 get: 25063 summary: GetTxsEvent fetches txs by event. 25064 operationId: GetTxsEvent 25065 responses: 25066 '200': 25067 description: A successful response. 25068 schema: 25069 $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse' 25070 default: 25071 description: An unexpected error response. 25072 schema: 25073 type: object 25074 properties: 25075 error: 25076 type: string 25077 code: 25078 type: integer 25079 format: int32 25080 message: 25081 type: string 25082 details: 25083 type: array 25084 items: 25085 type: object 25086 properties: 25087 type_url: 25088 type: string 25089 description: >- 25090 A URL/resource name that uniquely identifies the type of 25091 the serialized 25092 25093 protocol buffer message. This string must contain at 25094 least 25095 25096 one "/" character. The last segment of the URL's path 25097 must represent 25098 25099 the fully qualified name of the type (as in 25100 25101 `path/google.protobuf.Duration`). The name should be in 25102 a canonical form 25103 25104 (e.g., leading "." is not accepted). 25105 25106 25107 In practice, teams usually precompile into the binary 25108 all types that they 25109 25110 expect it to use in the context of Any. However, for 25111 URLs which use the 25112 25113 scheme `http`, `https`, or no scheme, one can optionally 25114 set up a type 25115 25116 server that maps type URLs to message definitions as 25117 follows: 25118 25119 25120 * If no scheme is provided, `https` is assumed. 25121 25122 * An HTTP GET on the URL must yield a 25123 [google.protobuf.Type][] 25124 value in binary format, or produce an error. 25125 * Applications are allowed to cache lookup results based 25126 on the 25127 URL, or have them precompiled into a binary to avoid any 25128 lookup. Therefore, binary compatibility needs to be preserved 25129 on changes to types. (Use versioned type names to manage 25130 breaking changes.) 25131 25132 Note: this functionality is not currently available in 25133 the official 25134 25135 protobuf release, and it is not used for type URLs 25136 beginning with 25137 25138 type.googleapis.com. 25139 25140 25141 Schemes other than `http`, `https` (or the empty scheme) 25142 might be 25143 25144 used with implementation specific semantics. 25145 value: 25146 type: string 25147 format: byte 25148 description: >- 25149 Must be a valid serialized protocol buffer of the above 25150 specified type. 25151 description: >- 25152 `Any` contains an arbitrary serialized protocol buffer 25153 message along with a 25154 25155 URL that describes the type of the serialized message. 25156 25157 25158 Protobuf library provides support to pack/unpack Any values 25159 in the form 25160 25161 of utility functions or additional generated methods of the 25162 Any type. 25163 25164 25165 Example 1: Pack and unpack a message in C++. 25166 25167 Foo foo = ...; 25168 Any any; 25169 any.PackFrom(foo); 25170 ... 25171 if (any.UnpackTo(&foo)) { 25172 ... 25173 } 25174 25175 Example 2: Pack and unpack a message in Java. 25176 25177 Foo foo = ...; 25178 Any any = Any.pack(foo); 25179 ... 25180 if (any.is(Foo.class)) { 25181 foo = any.unpack(Foo.class); 25182 } 25183 // or ... 25184 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 25185 foo = any.unpack(Foo.getDefaultInstance()); 25186 } 25187 25188 Example 3: Pack and unpack a message in Python. 25189 25190 foo = Foo(...) 25191 any = Any() 25192 any.Pack(foo) 25193 ... 25194 if any.Is(Foo.DESCRIPTOR): 25195 any.Unpack(foo) 25196 ... 25197 25198 Example 4: Pack and unpack a message in Go 25199 25200 foo := &pb.Foo{...} 25201 any, err := anypb.New(foo) 25202 if err != nil { 25203 ... 25204 } 25205 ... 25206 foo := &pb.Foo{} 25207 if err := any.UnmarshalTo(foo); err != nil { 25208 ... 25209 } 25210 25211 The pack methods provided by protobuf library will by 25212 default use 25213 25214 'type.googleapis.com/full.type.name' as the type URL and the 25215 unpack 25216 25217 methods only use the fully qualified type name after the 25218 last '/' 25219 25220 in the type URL, for example "foo.bar.com/x/y.z" will yield 25221 type 25222 25223 name "y.z". 25224 25225 25226 JSON 25227 25228 25229 The JSON representation of an `Any` value uses the regular 25230 25231 representation of the deserialized, embedded message, with 25232 an 25233 25234 additional field `@type` which contains the type URL. 25235 Example: 25236 25237 package google.profile; 25238 message Person { 25239 string first_name = 1; 25240 string last_name = 2; 25241 } 25242 25243 { 25244 "@type": "type.googleapis.com/google.profile.Person", 25245 "firstName": <string>, 25246 "lastName": <string> 25247 } 25248 25249 If the embedded message type is well-known and has a custom 25250 JSON 25251 25252 representation, that representation will be embedded adding 25253 a field 25254 25255 `value` which holds the custom JSON in addition to the 25256 `@type` 25257 25258 field. Example (for message [google.protobuf.Duration][]): 25259 25260 { 25261 "@type": "type.googleapis.com/google.protobuf.Duration", 25262 "value": "1.212s" 25263 } 25264 parameters: 25265 - name: events 25266 description: >- 25267 events is the list of transaction event type. 25268 25269 Deprecated post v0.47.x: use query instead, which should contain a 25270 valid 25271 25272 events query. 25273 in: query 25274 required: false 25275 type: array 25276 items: 25277 type: string 25278 collectionFormat: multi 25279 - name: pagination.key 25280 description: |- 25281 key is a value returned in PageResponse.next_key to begin 25282 querying the next page most efficiently. Only one of offset or key 25283 should be set. 25284 in: query 25285 required: false 25286 type: string 25287 format: byte 25288 - name: pagination.offset 25289 description: >- 25290 offset is a numeric offset that can be used when key is unavailable. 25291 25292 It is less efficient than using key. Only one of offset or key 25293 should 25294 25295 be set. 25296 in: query 25297 required: false 25298 type: string 25299 format: uint64 25300 - name: pagination.limit 25301 description: >- 25302 limit is the total number of results to be returned in the result 25303 page. 25304 25305 If left empty it will default to a value to be set by each app. 25306 in: query 25307 required: false 25308 type: string 25309 format: uint64 25310 - name: pagination.count_total 25311 description: >- 25312 count_total is set to true to indicate that the result set should 25313 include 25314 25315 a count of the total number of items available for pagination in 25316 UIs. 25317 25318 count_total is only respected when offset is used. It is ignored 25319 when key 25320 25321 is set. 25322 in: query 25323 required: false 25324 type: boolean 25325 - name: pagination.reverse 25326 description: >- 25327 reverse is set to true if results are to be returned in the 25328 descending order. 25329 25330 25331 Since: cosmos-sdk 0.43 25332 in: query 25333 required: false 25334 type: boolean 25335 - name: order_by 25336 description: |2- 25337 - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults 25338 to ASC in this case. 25339 - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order 25340 - ORDER_BY_DESC: ORDER_BY_DESC defines descending order 25341 in: query 25342 required: false 25343 type: string 25344 enum: 25345 - ORDER_BY_UNSPECIFIED 25346 - ORDER_BY_ASC 25347 - ORDER_BY_DESC 25348 default: ORDER_BY_UNSPECIFIED 25349 - name: page 25350 description: |- 25351 page is the page number to query, starts at 1. If not provided, will 25352 default to first page. 25353 in: query 25354 required: false 25355 type: string 25356 format: uint64 25357 - name: limit 25358 description: >- 25359 limit is the total number of results to be returned in the result 25360 page. 25361 25362 If left empty it will default to a value to be set by each app. 25363 in: query 25364 required: false 25365 type: string 25366 format: uint64 25367 - name: query 25368 description: >- 25369 query defines the transaction event query that is proxied to 25370 Tendermint's 25371 25372 TxSearch RPC method. The query must be valid. 25373 25374 25375 Since cosmos-sdk 0.50 25376 in: query 25377 required: false 25378 type: string 25379 tags: 25380 - Service 25381 post: 25382 summary: BroadcastTx broadcast transaction. 25383 operationId: BroadcastTx 25384 responses: 25385 '200': 25386 description: A successful response. 25387 schema: 25388 type: object 25389 properties: 25390 tx_response: 25391 type: object 25392 properties: 25393 height: 25394 type: string 25395 format: int64 25396 title: The block height 25397 txhash: 25398 type: string 25399 description: The transaction hash. 25400 codespace: 25401 type: string 25402 title: Namespace for the Code 25403 code: 25404 type: integer 25405 format: int64 25406 description: Response code. 25407 data: 25408 type: string 25409 description: Result bytes, if any. 25410 raw_log: 25411 type: string 25412 description: >- 25413 The output of the application's logger (raw string). May 25414 be 25415 25416 non-deterministic. 25417 logs: 25418 type: array 25419 items: 25420 type: object 25421 properties: 25422 msg_index: 25423 type: integer 25424 format: int64 25425 log: 25426 type: string 25427 events: 25428 type: array 25429 items: 25430 type: object 25431 properties: 25432 type: 25433 type: string 25434 attributes: 25435 type: array 25436 items: 25437 type: object 25438 properties: 25439 key: 25440 type: string 25441 value: 25442 type: string 25443 description: >- 25444 Attribute defines an attribute wrapper where 25445 the key and value are 25446 25447 strings instead of raw bytes. 25448 description: >- 25449 StringEvent defines en Event object wrapper where 25450 all the attributes 25451 25452 contain key/value pairs that are strings instead 25453 of raw bytes. 25454 description: >- 25455 Events contains a slice of Event objects that were 25456 emitted during some 25457 25458 execution. 25459 description: >- 25460 ABCIMessageLog defines a structure containing an indexed 25461 tx ABCI message log. 25462 description: >- 25463 The output of the application's logger (typed). May be 25464 non-deterministic. 25465 info: 25466 type: string 25467 description: Additional information. May be non-deterministic. 25468 gas_wanted: 25469 type: string 25470 format: int64 25471 description: Amount of gas requested for transaction. 25472 gas_used: 25473 type: string 25474 format: int64 25475 description: Amount of gas consumed by transaction. 25476 tx: 25477 type: object 25478 properties: 25479 type_url: 25480 type: string 25481 description: >- 25482 A URL/resource name that uniquely identifies the type 25483 of the serialized 25484 25485 protocol buffer message. This string must contain at 25486 least 25487 25488 one "/" character. The last segment of the URL's path 25489 must represent 25490 25491 the fully qualified name of the type (as in 25492 25493 `path/google.protobuf.Duration`). The name should be 25494 in a canonical form 25495 25496 (e.g., leading "." is not accepted). 25497 25498 25499 In practice, teams usually precompile into the binary 25500 all types that they 25501 25502 expect it to use in the context of Any. However, for 25503 URLs which use the 25504 25505 scheme `http`, `https`, or no scheme, one can 25506 optionally set up a type 25507 25508 server that maps type URLs to message definitions as 25509 follows: 25510 25511 25512 * If no scheme is provided, `https` is assumed. 25513 25514 * An HTTP GET on the URL must yield a 25515 [google.protobuf.Type][] 25516 value in binary format, or produce an error. 25517 * Applications are allowed to cache lookup results 25518 based on the 25519 URL, or have them precompiled into a binary to avoid any 25520 lookup. Therefore, binary compatibility needs to be preserved 25521 on changes to types. (Use versioned type names to manage 25522 breaking changes.) 25523 25524 Note: this functionality is not currently available in 25525 the official 25526 25527 protobuf release, and it is not used for type URLs 25528 beginning with 25529 25530 type.googleapis.com. 25531 25532 25533 Schemes other than `http`, `https` (or the empty 25534 scheme) might be 25535 25536 used with implementation specific semantics. 25537 value: 25538 type: string 25539 format: byte 25540 description: >- 25541 Must be a valid serialized protocol buffer of the 25542 above specified type. 25543 description: >- 25544 `Any` contains an arbitrary serialized protocol buffer 25545 message along with a 25546 25547 URL that describes the type of the serialized message. 25548 25549 25550 Protobuf library provides support to pack/unpack Any 25551 values in the form 25552 25553 of utility functions or additional generated methods of 25554 the Any type. 25555 25556 25557 Example 1: Pack and unpack a message in C++. 25558 25559 Foo foo = ...; 25560 Any any; 25561 any.PackFrom(foo); 25562 ... 25563 if (any.UnpackTo(&foo)) { 25564 ... 25565 } 25566 25567 Example 2: Pack and unpack a message in Java. 25568 25569 Foo foo = ...; 25570 Any any = Any.pack(foo); 25571 ... 25572 if (any.is(Foo.class)) { 25573 foo = any.unpack(Foo.class); 25574 } 25575 // or ... 25576 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 25577 foo = any.unpack(Foo.getDefaultInstance()); 25578 } 25579 25580 Example 3: Pack and unpack a message in Python. 25581 25582 foo = Foo(...) 25583 any = Any() 25584 any.Pack(foo) 25585 ... 25586 if any.Is(Foo.DESCRIPTOR): 25587 any.Unpack(foo) 25588 ... 25589 25590 Example 4: Pack and unpack a message in Go 25591 25592 foo := &pb.Foo{...} 25593 any, err := anypb.New(foo) 25594 if err != nil { 25595 ... 25596 } 25597 ... 25598 foo := &pb.Foo{} 25599 if err := any.UnmarshalTo(foo); err != nil { 25600 ... 25601 } 25602 25603 The pack methods provided by protobuf library will by 25604 default use 25605 25606 'type.googleapis.com/full.type.name' as the type URL and 25607 the unpack 25608 25609 methods only use the fully qualified type name after the 25610 last '/' 25611 25612 in the type URL, for example "foo.bar.com/x/y.z" will 25613 yield type 25614 25615 name "y.z". 25616 25617 25618 JSON 25619 25620 25621 The JSON representation of an `Any` value uses the regular 25622 25623 representation of the deserialized, embedded message, with 25624 an 25625 25626 additional field `@type` which contains the type URL. 25627 Example: 25628 25629 package google.profile; 25630 message Person { 25631 string first_name = 1; 25632 string last_name = 2; 25633 } 25634 25635 { 25636 "@type": "type.googleapis.com/google.profile.Person", 25637 "firstName": <string>, 25638 "lastName": <string> 25639 } 25640 25641 If the embedded message type is well-known and has a 25642 custom JSON 25643 25644 representation, that representation will be embedded 25645 adding a field 25646 25647 `value` which holds the custom JSON in addition to the 25648 `@type` 25649 25650 field. Example (for message [google.protobuf.Duration][]): 25651 25652 { 25653 "@type": "type.googleapis.com/google.protobuf.Duration", 25654 "value": "1.212s" 25655 } 25656 timestamp: 25657 type: string 25658 description: >- 25659 Time of the previous block. For heights > 1, it's the 25660 weighted median of 25661 25662 the timestamps of the valid votes in the block.LastCommit. 25663 For height == 1, 25664 25665 it's genesis time. 25666 events: 25667 type: array 25668 items: 25669 type: object 25670 properties: 25671 type: 25672 type: string 25673 attributes: 25674 type: array 25675 items: 25676 type: object 25677 properties: 25678 key: 25679 type: string 25680 value: 25681 type: string 25682 index: 25683 type: boolean 25684 description: >- 25685 EventAttribute is a single key-value pair, 25686 associated with an event. 25687 description: >- 25688 Event allows application developers to attach additional 25689 information to 25690 25691 ResponseFinalizeBlock and ResponseCheckTx. 25692 25693 Later, transactions may be queried using these events. 25694 description: >- 25695 Events defines all the events emitted by processing a 25696 transaction. Note, 25697 25698 these events include those emitted by processing all the 25699 messages and those 25700 25701 emitted from the ante. Whereas Logs contains the events, 25702 with 25703 25704 additional metadata, emitted only by processing the 25705 messages. 25706 25707 25708 Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 25709 description: >- 25710 TxResponse defines a structure containing relevant tx data and 25711 metadata. The 25712 25713 tags are stringified and the log is JSON decoded. 25714 description: |- 25715 BroadcastTxResponse is the response type for the 25716 Service.BroadcastTx method. 25717 default: 25718 description: An unexpected error response. 25719 schema: 25720 type: object 25721 properties: 25722 error: 25723 type: string 25724 code: 25725 type: integer 25726 format: int32 25727 message: 25728 type: string 25729 details: 25730 type: array 25731 items: 25732 type: object 25733 properties: 25734 type_url: 25735 type: string 25736 description: >- 25737 A URL/resource name that uniquely identifies the type of 25738 the serialized 25739 25740 protocol buffer message. This string must contain at 25741 least 25742 25743 one "/" character. The last segment of the URL's path 25744 must represent 25745 25746 the fully qualified name of the type (as in 25747 25748 `path/google.protobuf.Duration`). The name should be in 25749 a canonical form 25750 25751 (e.g., leading "." is not accepted). 25752 25753 25754 In practice, teams usually precompile into the binary 25755 all types that they 25756 25757 expect it to use in the context of Any. However, for 25758 URLs which use the 25759 25760 scheme `http`, `https`, or no scheme, one can optionally 25761 set up a type 25762 25763 server that maps type URLs to message definitions as 25764 follows: 25765 25766 25767 * If no scheme is provided, `https` is assumed. 25768 25769 * An HTTP GET on the URL must yield a 25770 [google.protobuf.Type][] 25771 value in binary format, or produce an error. 25772 * Applications are allowed to cache lookup results based 25773 on the 25774 URL, or have them precompiled into a binary to avoid any 25775 lookup. Therefore, binary compatibility needs to be preserved 25776 on changes to types. (Use versioned type names to manage 25777 breaking changes.) 25778 25779 Note: this functionality is not currently available in 25780 the official 25781 25782 protobuf release, and it is not used for type URLs 25783 beginning with 25784 25785 type.googleapis.com. 25786 25787 25788 Schemes other than `http`, `https` (or the empty scheme) 25789 might be 25790 25791 used with implementation specific semantics. 25792 value: 25793 type: string 25794 format: byte 25795 description: >- 25796 Must be a valid serialized protocol buffer of the above 25797 specified type. 25798 description: >- 25799 `Any` contains an arbitrary serialized protocol buffer 25800 message along with a 25801 25802 URL that describes the type of the serialized message. 25803 25804 25805 Protobuf library provides support to pack/unpack Any values 25806 in the form 25807 25808 of utility functions or additional generated methods of the 25809 Any type. 25810 25811 25812 Example 1: Pack and unpack a message in C++. 25813 25814 Foo foo = ...; 25815 Any any; 25816 any.PackFrom(foo); 25817 ... 25818 if (any.UnpackTo(&foo)) { 25819 ... 25820 } 25821 25822 Example 2: Pack and unpack a message in Java. 25823 25824 Foo foo = ...; 25825 Any any = Any.pack(foo); 25826 ... 25827 if (any.is(Foo.class)) { 25828 foo = any.unpack(Foo.class); 25829 } 25830 // or ... 25831 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 25832 foo = any.unpack(Foo.getDefaultInstance()); 25833 } 25834 25835 Example 3: Pack and unpack a message in Python. 25836 25837 foo = Foo(...) 25838 any = Any() 25839 any.Pack(foo) 25840 ... 25841 if any.Is(Foo.DESCRIPTOR): 25842 any.Unpack(foo) 25843 ... 25844 25845 Example 4: Pack and unpack a message in Go 25846 25847 foo := &pb.Foo{...} 25848 any, err := anypb.New(foo) 25849 if err != nil { 25850 ... 25851 } 25852 ... 25853 foo := &pb.Foo{} 25854 if err := any.UnmarshalTo(foo); err != nil { 25855 ... 25856 } 25857 25858 The pack methods provided by protobuf library will by 25859 default use 25860 25861 'type.googleapis.com/full.type.name' as the type URL and the 25862 unpack 25863 25864 methods only use the fully qualified type name after the 25865 last '/' 25866 25867 in the type URL, for example "foo.bar.com/x/y.z" will yield 25868 type 25869 25870 name "y.z". 25871 25872 25873 JSON 25874 25875 25876 The JSON representation of an `Any` value uses the regular 25877 25878 representation of the deserialized, embedded message, with 25879 an 25880 25881 additional field `@type` which contains the type URL. 25882 Example: 25883 25884 package google.profile; 25885 message Person { 25886 string first_name = 1; 25887 string last_name = 2; 25888 } 25889 25890 { 25891 "@type": "type.googleapis.com/google.profile.Person", 25892 "firstName": <string>, 25893 "lastName": <string> 25894 } 25895 25896 If the embedded message type is well-known and has a custom 25897 JSON 25898 25899 representation, that representation will be embedded adding 25900 a field 25901 25902 `value` which holds the custom JSON in addition to the 25903 `@type` 25904 25905 field. Example (for message [google.protobuf.Duration][]): 25906 25907 { 25908 "@type": "type.googleapis.com/google.protobuf.Duration", 25909 "value": "1.212s" 25910 } 25911 parameters: 25912 - name: body 25913 in: body 25914 required: true 25915 schema: 25916 type: object 25917 properties: 25918 tx_bytes: 25919 type: string 25920 format: byte 25921 description: tx_bytes is the raw transaction. 25922 mode: 25923 type: string 25924 enum: 25925 - BROADCAST_MODE_UNSPECIFIED 25926 - BROADCAST_MODE_BLOCK 25927 - BROADCAST_MODE_SYNC 25928 - BROADCAST_MODE_ASYNC 25929 default: BROADCAST_MODE_UNSPECIFIED 25930 description: >- 25931 BroadcastMode specifies the broadcast mode for the 25932 TxService.Broadcast RPC 25933 25934 method. 25935 25936 - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering 25937 - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, 25938 BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x 25939 onwards. 25940 - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits 25941 for a CheckTx execution response only. 25942 - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client 25943 returns immediately. 25944 description: >- 25945 BroadcastTxRequest is the request type for the 25946 Service.BroadcastTxRequest 25947 25948 RPC method. 25949 tags: 25950 - Service 25951 /cosmos/tx/v1beta1/txs/block/{height}: 25952 get: 25953 summary: GetBlockWithTxs fetches a block with decoded txs. 25954 description: 'Since: cosmos-sdk 0.45.2' 25955 operationId: GetBlockWithTxs 25956 responses: 25957 '200': 25958 description: A successful response. 25959 schema: 25960 $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse' 25961 default: 25962 description: An unexpected error response. 25963 schema: 25964 type: object 25965 properties: 25966 error: 25967 type: string 25968 code: 25969 type: integer 25970 format: int32 25971 message: 25972 type: string 25973 details: 25974 type: array 25975 items: 25976 type: object 25977 properties: 25978 type_url: 25979 type: string 25980 description: >- 25981 A URL/resource name that uniquely identifies the type of 25982 the serialized 25983 25984 protocol buffer message. This string must contain at 25985 least 25986 25987 one "/" character. The last segment of the URL's path 25988 must represent 25989 25990 the fully qualified name of the type (as in 25991 25992 `path/google.protobuf.Duration`). The name should be in 25993 a canonical form 25994 25995 (e.g., leading "." is not accepted). 25996 25997 25998 In practice, teams usually precompile into the binary 25999 all types that they 26000 26001 expect it to use in the context of Any. However, for 26002 URLs which use the 26003 26004 scheme `http`, `https`, or no scheme, one can optionally 26005 set up a type 26006 26007 server that maps type URLs to message definitions as 26008 follows: 26009 26010 26011 * If no scheme is provided, `https` is assumed. 26012 26013 * An HTTP GET on the URL must yield a 26014 [google.protobuf.Type][] 26015 value in binary format, or produce an error. 26016 * Applications are allowed to cache lookup results based 26017 on the 26018 URL, or have them precompiled into a binary to avoid any 26019 lookup. Therefore, binary compatibility needs to be preserved 26020 on changes to types. (Use versioned type names to manage 26021 breaking changes.) 26022 26023 Note: this functionality is not currently available in 26024 the official 26025 26026 protobuf release, and it is not used for type URLs 26027 beginning with 26028 26029 type.googleapis.com. 26030 26031 26032 Schemes other than `http`, `https` (or the empty scheme) 26033 might be 26034 26035 used with implementation specific semantics. 26036 value: 26037 type: string 26038 format: byte 26039 description: >- 26040 Must be a valid serialized protocol buffer of the above 26041 specified type. 26042 description: >- 26043 `Any` contains an arbitrary serialized protocol buffer 26044 message along with a 26045 26046 URL that describes the type of the serialized message. 26047 26048 26049 Protobuf library provides support to pack/unpack Any values 26050 in the form 26051 26052 of utility functions or additional generated methods of the 26053 Any type. 26054 26055 26056 Example 1: Pack and unpack a message in C++. 26057 26058 Foo foo = ...; 26059 Any any; 26060 any.PackFrom(foo); 26061 ... 26062 if (any.UnpackTo(&foo)) { 26063 ... 26064 } 26065 26066 Example 2: Pack and unpack a message in Java. 26067 26068 Foo foo = ...; 26069 Any any = Any.pack(foo); 26070 ... 26071 if (any.is(Foo.class)) { 26072 foo = any.unpack(Foo.class); 26073 } 26074 // or ... 26075 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 26076 foo = any.unpack(Foo.getDefaultInstance()); 26077 } 26078 26079 Example 3: Pack and unpack a message in Python. 26080 26081 foo = Foo(...) 26082 any = Any() 26083 any.Pack(foo) 26084 ... 26085 if any.Is(Foo.DESCRIPTOR): 26086 any.Unpack(foo) 26087 ... 26088 26089 Example 4: Pack and unpack a message in Go 26090 26091 foo := &pb.Foo{...} 26092 any, err := anypb.New(foo) 26093 if err != nil { 26094 ... 26095 } 26096 ... 26097 foo := &pb.Foo{} 26098 if err := any.UnmarshalTo(foo); err != nil { 26099 ... 26100 } 26101 26102 The pack methods provided by protobuf library will by 26103 default use 26104 26105 'type.googleapis.com/full.type.name' as the type URL and the 26106 unpack 26107 26108 methods only use the fully qualified type name after the 26109 last '/' 26110 26111 in the type URL, for example "foo.bar.com/x/y.z" will yield 26112 type 26113 26114 name "y.z". 26115 26116 26117 JSON 26118 26119 26120 The JSON representation of an `Any` value uses the regular 26121 26122 representation of the deserialized, embedded message, with 26123 an 26124 26125 additional field `@type` which contains the type URL. 26126 Example: 26127 26128 package google.profile; 26129 message Person { 26130 string first_name = 1; 26131 string last_name = 2; 26132 } 26133 26134 { 26135 "@type": "type.googleapis.com/google.profile.Person", 26136 "firstName": <string>, 26137 "lastName": <string> 26138 } 26139 26140 If the embedded message type is well-known and has a custom 26141 JSON 26142 26143 representation, that representation will be embedded adding 26144 a field 26145 26146 `value` which holds the custom JSON in addition to the 26147 `@type` 26148 26149 field. Example (for message [google.protobuf.Duration][]): 26150 26151 { 26152 "@type": "type.googleapis.com/google.protobuf.Duration", 26153 "value": "1.212s" 26154 } 26155 parameters: 26156 - name: height 26157 description: height is the height of the block to query. 26158 in: path 26159 required: true 26160 type: string 26161 format: int64 26162 - name: pagination.key 26163 description: |- 26164 key is a value returned in PageResponse.next_key to begin 26165 querying the next page most efficiently. Only one of offset or key 26166 should be set. 26167 in: query 26168 required: false 26169 type: string 26170 format: byte 26171 - name: pagination.offset 26172 description: >- 26173 offset is a numeric offset that can be used when key is unavailable. 26174 26175 It is less efficient than using key. Only one of offset or key 26176 should 26177 26178 be set. 26179 in: query 26180 required: false 26181 type: string 26182 format: uint64 26183 - name: pagination.limit 26184 description: >- 26185 limit is the total number of results to be returned in the result 26186 page. 26187 26188 If left empty it will default to a value to be set by each app. 26189 in: query 26190 required: false 26191 type: string 26192 format: uint64 26193 - name: pagination.count_total 26194 description: >- 26195 count_total is set to true to indicate that the result set should 26196 include 26197 26198 a count of the total number of items available for pagination in 26199 UIs. 26200 26201 count_total is only respected when offset is used. It is ignored 26202 when key 26203 26204 is set. 26205 in: query 26206 required: false 26207 type: boolean 26208 - name: pagination.reverse 26209 description: >- 26210 reverse is set to true if results are to be returned in the 26211 descending order. 26212 26213 26214 Since: cosmos-sdk 0.43 26215 in: query 26216 required: false 26217 type: boolean 26218 tags: 26219 - Service 26220 /cosmos/tx/v1beta1/txs/{hash}: 26221 get: 26222 summary: GetTx fetches a tx by hash. 26223 operationId: GetTx 26224 responses: 26225 '200': 26226 description: A successful response. 26227 schema: 26228 $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse' 26229 default: 26230 description: An unexpected error response. 26231 schema: 26232 type: object 26233 properties: 26234 error: 26235 type: string 26236 code: 26237 type: integer 26238 format: int32 26239 message: 26240 type: string 26241 details: 26242 type: array 26243 items: 26244 type: object 26245 properties: 26246 type_url: 26247 type: string 26248 description: >- 26249 A URL/resource name that uniquely identifies the type of 26250 the serialized 26251 26252 protocol buffer message. This string must contain at 26253 least 26254 26255 one "/" character. The last segment of the URL's path 26256 must represent 26257 26258 the fully qualified name of the type (as in 26259 26260 `path/google.protobuf.Duration`). The name should be in 26261 a canonical form 26262 26263 (e.g., leading "." is not accepted). 26264 26265 26266 In practice, teams usually precompile into the binary 26267 all types that they 26268 26269 expect it to use in the context of Any. However, for 26270 URLs which use the 26271 26272 scheme `http`, `https`, or no scheme, one can optionally 26273 set up a type 26274 26275 server that maps type URLs to message definitions as 26276 follows: 26277 26278 26279 * If no scheme is provided, `https` is assumed. 26280 26281 * An HTTP GET on the URL must yield a 26282 [google.protobuf.Type][] 26283 value in binary format, or produce an error. 26284 * Applications are allowed to cache lookup results based 26285 on the 26286 URL, or have them precompiled into a binary to avoid any 26287 lookup. Therefore, binary compatibility needs to be preserved 26288 on changes to types. (Use versioned type names to manage 26289 breaking changes.) 26290 26291 Note: this functionality is not currently available in 26292 the official 26293 26294 protobuf release, and it is not used for type URLs 26295 beginning with 26296 26297 type.googleapis.com. 26298 26299 26300 Schemes other than `http`, `https` (or the empty scheme) 26301 might be 26302 26303 used with implementation specific semantics. 26304 value: 26305 type: string 26306 format: byte 26307 description: >- 26308 Must be a valid serialized protocol buffer of the above 26309 specified type. 26310 description: >- 26311 `Any` contains an arbitrary serialized protocol buffer 26312 message along with a 26313 26314 URL that describes the type of the serialized message. 26315 26316 26317 Protobuf library provides support to pack/unpack Any values 26318 in the form 26319 26320 of utility functions or additional generated methods of the 26321 Any type. 26322 26323 26324 Example 1: Pack and unpack a message in C++. 26325 26326 Foo foo = ...; 26327 Any any; 26328 any.PackFrom(foo); 26329 ... 26330 if (any.UnpackTo(&foo)) { 26331 ... 26332 } 26333 26334 Example 2: Pack and unpack a message in Java. 26335 26336 Foo foo = ...; 26337 Any any = Any.pack(foo); 26338 ... 26339 if (any.is(Foo.class)) { 26340 foo = any.unpack(Foo.class); 26341 } 26342 // or ... 26343 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 26344 foo = any.unpack(Foo.getDefaultInstance()); 26345 } 26346 26347 Example 3: Pack and unpack a message in Python. 26348 26349 foo = Foo(...) 26350 any = Any() 26351 any.Pack(foo) 26352 ... 26353 if any.Is(Foo.DESCRIPTOR): 26354 any.Unpack(foo) 26355 ... 26356 26357 Example 4: Pack and unpack a message in Go 26358 26359 foo := &pb.Foo{...} 26360 any, err := anypb.New(foo) 26361 if err != nil { 26362 ... 26363 } 26364 ... 26365 foo := &pb.Foo{} 26366 if err := any.UnmarshalTo(foo); err != nil { 26367 ... 26368 } 26369 26370 The pack methods provided by protobuf library will by 26371 default use 26372 26373 'type.googleapis.com/full.type.name' as the type URL and the 26374 unpack 26375 26376 methods only use the fully qualified type name after the 26377 last '/' 26378 26379 in the type URL, for example "foo.bar.com/x/y.z" will yield 26380 type 26381 26382 name "y.z". 26383 26384 26385 JSON 26386 26387 26388 The JSON representation of an `Any` value uses the regular 26389 26390 representation of the deserialized, embedded message, with 26391 an 26392 26393 additional field `@type` which contains the type URL. 26394 Example: 26395 26396 package google.profile; 26397 message Person { 26398 string first_name = 1; 26399 string last_name = 2; 26400 } 26401 26402 { 26403 "@type": "type.googleapis.com/google.profile.Person", 26404 "firstName": <string>, 26405 "lastName": <string> 26406 } 26407 26408 If the embedded message type is well-known and has a custom 26409 JSON 26410 26411 representation, that representation will be embedded adding 26412 a field 26413 26414 `value` which holds the custom JSON in addition to the 26415 `@type` 26416 26417 field. Example (for message [google.protobuf.Duration][]): 26418 26419 { 26420 "@type": "type.googleapis.com/google.protobuf.Duration", 26421 "value": "1.212s" 26422 } 26423 parameters: 26424 - name: hash 26425 description: hash is the tx hash to query, encoded as a hex string. 26426 in: path 26427 required: true 26428 type: string 26429 tags: 26430 - Service 26431 /cosmos/upgrade/v1beta1/applied_plan/{name}: 26432 get: 26433 summary: AppliedPlan queries a previously applied upgrade plan by its name. 26434 operationId: AppliedPlan 26435 responses: 26436 '200': 26437 description: A successful response. 26438 schema: 26439 type: object 26440 properties: 26441 height: 26442 type: string 26443 format: int64 26444 description: height is the block height at which the plan was applied. 26445 description: >- 26446 QueryAppliedPlanResponse is the response type for the 26447 Query/AppliedPlan RPC 26448 26449 method. 26450 default: 26451 description: An unexpected error response. 26452 schema: 26453 type: object 26454 properties: 26455 error: 26456 type: string 26457 code: 26458 type: integer 26459 format: int32 26460 message: 26461 type: string 26462 details: 26463 type: array 26464 items: 26465 type: object 26466 properties: 26467 type_url: 26468 type: string 26469 description: >- 26470 A URL/resource name that uniquely identifies the type of 26471 the serialized 26472 26473 protocol buffer message. This string must contain at 26474 least 26475 26476 one "/" character. The last segment of the URL's path 26477 must represent 26478 26479 the fully qualified name of the type (as in 26480 26481 `path/google.protobuf.Duration`). The name should be in 26482 a canonical form 26483 26484 (e.g., leading "." is not accepted). 26485 26486 26487 In practice, teams usually precompile into the binary 26488 all types that they 26489 26490 expect it to use in the context of Any. However, for 26491 URLs which use the 26492 26493 scheme `http`, `https`, or no scheme, one can optionally 26494 set up a type 26495 26496 server that maps type URLs to message definitions as 26497 follows: 26498 26499 26500 * If no scheme is provided, `https` is assumed. 26501 26502 * An HTTP GET on the URL must yield a 26503 [google.protobuf.Type][] 26504 value in binary format, or produce an error. 26505 * Applications are allowed to cache lookup results based 26506 on the 26507 URL, or have them precompiled into a binary to avoid any 26508 lookup. Therefore, binary compatibility needs to be preserved 26509 on changes to types. (Use versioned type names to manage 26510 breaking changes.) 26511 26512 Note: this functionality is not currently available in 26513 the official 26514 26515 protobuf release, and it is not used for type URLs 26516 beginning with 26517 26518 type.googleapis.com. 26519 26520 26521 Schemes other than `http`, `https` (or the empty scheme) 26522 might be 26523 26524 used with implementation specific semantics. 26525 value: 26526 type: string 26527 format: byte 26528 description: >- 26529 Must be a valid serialized protocol buffer of the above 26530 specified type. 26531 description: >- 26532 `Any` contains an arbitrary serialized protocol buffer 26533 message along with a 26534 26535 URL that describes the type of the serialized message. 26536 26537 26538 Protobuf library provides support to pack/unpack Any values 26539 in the form 26540 26541 of utility functions or additional generated methods of the 26542 Any type. 26543 26544 26545 Example 1: Pack and unpack a message in C++. 26546 26547 Foo foo = ...; 26548 Any any; 26549 any.PackFrom(foo); 26550 ... 26551 if (any.UnpackTo(&foo)) { 26552 ... 26553 } 26554 26555 Example 2: Pack and unpack a message in Java. 26556 26557 Foo foo = ...; 26558 Any any = Any.pack(foo); 26559 ... 26560 if (any.is(Foo.class)) { 26561 foo = any.unpack(Foo.class); 26562 } 26563 // or ... 26564 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 26565 foo = any.unpack(Foo.getDefaultInstance()); 26566 } 26567 26568 Example 3: Pack and unpack a message in Python. 26569 26570 foo = Foo(...) 26571 any = Any() 26572 any.Pack(foo) 26573 ... 26574 if any.Is(Foo.DESCRIPTOR): 26575 any.Unpack(foo) 26576 ... 26577 26578 Example 4: Pack and unpack a message in Go 26579 26580 foo := &pb.Foo{...} 26581 any, err := anypb.New(foo) 26582 if err != nil { 26583 ... 26584 } 26585 ... 26586 foo := &pb.Foo{} 26587 if err := any.UnmarshalTo(foo); err != nil { 26588 ... 26589 } 26590 26591 The pack methods provided by protobuf library will by 26592 default use 26593 26594 'type.googleapis.com/full.type.name' as the type URL and the 26595 unpack 26596 26597 methods only use the fully qualified type name after the 26598 last '/' 26599 26600 in the type URL, for example "foo.bar.com/x/y.z" will yield 26601 type 26602 26603 name "y.z". 26604 26605 26606 JSON 26607 26608 26609 The JSON representation of an `Any` value uses the regular 26610 26611 representation of the deserialized, embedded message, with 26612 an 26613 26614 additional field `@type` which contains the type URL. 26615 Example: 26616 26617 package google.profile; 26618 message Person { 26619 string first_name = 1; 26620 string last_name = 2; 26621 } 26622 26623 { 26624 "@type": "type.googleapis.com/google.profile.Person", 26625 "firstName": <string>, 26626 "lastName": <string> 26627 } 26628 26629 If the embedded message type is well-known and has a custom 26630 JSON 26631 26632 representation, that representation will be embedded adding 26633 a field 26634 26635 `value` which holds the custom JSON in addition to the 26636 `@type` 26637 26638 field. Example (for message [google.protobuf.Duration][]): 26639 26640 { 26641 "@type": "type.googleapis.com/google.protobuf.Duration", 26642 "value": "1.212s" 26643 } 26644 parameters: 26645 - name: name 26646 description: name is the name of the applied plan to query for. 26647 in: path 26648 required: true 26649 type: string 26650 tags: 26651 - Query 26652 /cosmos/upgrade/v1beta1/authority: 26653 get: 26654 summary: Returns the account with authority to conduct upgrades 26655 description: 'Since: cosmos-sdk 0.46' 26656 operationId: Authority 26657 responses: 26658 '200': 26659 description: A successful response. 26660 schema: 26661 type: object 26662 properties: 26663 address: 26664 type: string 26665 description: 'Since: cosmos-sdk 0.46' 26666 title: QueryAuthorityResponse is the response type for Query/Authority 26667 default: 26668 description: An unexpected error response. 26669 schema: 26670 type: object 26671 properties: 26672 error: 26673 type: string 26674 code: 26675 type: integer 26676 format: int32 26677 message: 26678 type: string 26679 details: 26680 type: array 26681 items: 26682 type: object 26683 properties: 26684 type_url: 26685 type: string 26686 description: >- 26687 A URL/resource name that uniquely identifies the type of 26688 the serialized 26689 26690 protocol buffer message. This string must contain at 26691 least 26692 26693 one "/" character. The last segment of the URL's path 26694 must represent 26695 26696 the fully qualified name of the type (as in 26697 26698 `path/google.protobuf.Duration`). The name should be in 26699 a canonical form 26700 26701 (e.g., leading "." is not accepted). 26702 26703 26704 In practice, teams usually precompile into the binary 26705 all types that they 26706 26707 expect it to use in the context of Any. However, for 26708 URLs which use the 26709 26710 scheme `http`, `https`, or no scheme, one can optionally 26711 set up a type 26712 26713 server that maps type URLs to message definitions as 26714 follows: 26715 26716 26717 * If no scheme is provided, `https` is assumed. 26718 26719 * An HTTP GET on the URL must yield a 26720 [google.protobuf.Type][] 26721 value in binary format, or produce an error. 26722 * Applications are allowed to cache lookup results based 26723 on the 26724 URL, or have them precompiled into a binary to avoid any 26725 lookup. Therefore, binary compatibility needs to be preserved 26726 on changes to types. (Use versioned type names to manage 26727 breaking changes.) 26728 26729 Note: this functionality is not currently available in 26730 the official 26731 26732 protobuf release, and it is not used for type URLs 26733 beginning with 26734 26735 type.googleapis.com. 26736 26737 26738 Schemes other than `http`, `https` (or the empty scheme) 26739 might be 26740 26741 used with implementation specific semantics. 26742 value: 26743 type: string 26744 format: byte 26745 description: >- 26746 Must be a valid serialized protocol buffer of the above 26747 specified type. 26748 description: >- 26749 `Any` contains an arbitrary serialized protocol buffer 26750 message along with a 26751 26752 URL that describes the type of the serialized message. 26753 26754 26755 Protobuf library provides support to pack/unpack Any values 26756 in the form 26757 26758 of utility functions or additional generated methods of the 26759 Any type. 26760 26761 26762 Example 1: Pack and unpack a message in C++. 26763 26764 Foo foo = ...; 26765 Any any; 26766 any.PackFrom(foo); 26767 ... 26768 if (any.UnpackTo(&foo)) { 26769 ... 26770 } 26771 26772 Example 2: Pack and unpack a message in Java. 26773 26774 Foo foo = ...; 26775 Any any = Any.pack(foo); 26776 ... 26777 if (any.is(Foo.class)) { 26778 foo = any.unpack(Foo.class); 26779 } 26780 // or ... 26781 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 26782 foo = any.unpack(Foo.getDefaultInstance()); 26783 } 26784 26785 Example 3: Pack and unpack a message in Python. 26786 26787 foo = Foo(...) 26788 any = Any() 26789 any.Pack(foo) 26790 ... 26791 if any.Is(Foo.DESCRIPTOR): 26792 any.Unpack(foo) 26793 ... 26794 26795 Example 4: Pack and unpack a message in Go 26796 26797 foo := &pb.Foo{...} 26798 any, err := anypb.New(foo) 26799 if err != nil { 26800 ... 26801 } 26802 ... 26803 foo := &pb.Foo{} 26804 if err := any.UnmarshalTo(foo); err != nil { 26805 ... 26806 } 26807 26808 The pack methods provided by protobuf library will by 26809 default use 26810 26811 'type.googleapis.com/full.type.name' as the type URL and the 26812 unpack 26813 26814 methods only use the fully qualified type name after the 26815 last '/' 26816 26817 in the type URL, for example "foo.bar.com/x/y.z" will yield 26818 type 26819 26820 name "y.z". 26821 26822 26823 JSON 26824 26825 26826 The JSON representation of an `Any` value uses the regular 26827 26828 representation of the deserialized, embedded message, with 26829 an 26830 26831 additional field `@type` which contains the type URL. 26832 Example: 26833 26834 package google.profile; 26835 message Person { 26836 string first_name = 1; 26837 string last_name = 2; 26838 } 26839 26840 { 26841 "@type": "type.googleapis.com/google.profile.Person", 26842 "firstName": <string>, 26843 "lastName": <string> 26844 } 26845 26846 If the embedded message type is well-known and has a custom 26847 JSON 26848 26849 representation, that representation will be embedded adding 26850 a field 26851 26852 `value` which holds the custom JSON in addition to the 26853 `@type` 26854 26855 field. Example (for message [google.protobuf.Duration][]): 26856 26857 { 26858 "@type": "type.googleapis.com/google.protobuf.Duration", 26859 "value": "1.212s" 26860 } 26861 tags: 26862 - Query 26863 /cosmos/upgrade/v1beta1/current_plan: 26864 get: 26865 summary: CurrentPlan queries the current upgrade plan. 26866 operationId: CurrentPlan 26867 responses: 26868 '200': 26869 description: A successful response. 26870 schema: 26871 type: object 26872 properties: 26873 plan: 26874 description: plan is the current upgrade plan. 26875 type: object 26876 properties: 26877 name: 26878 type: string 26879 description: >- 26880 Sets the name for the upgrade. This name will be used by 26881 the upgraded 26882 26883 version of the software to apply any special "on-upgrade" 26884 commands during 26885 26886 the first BeginBlock method after the upgrade is applied. 26887 It is also used 26888 26889 to detect whether a software version can handle a given 26890 upgrade. If no 26891 26892 upgrade handler with this name has been set in the 26893 software, it will be 26894 26895 assumed that the software is out-of-date when the upgrade 26896 Time or Height is 26897 26898 reached and the software will exit. 26899 time: 26900 type: string 26901 format: date-time 26902 description: >- 26903 Deprecated: Time based upgrades have been deprecated. Time 26904 based upgrade logic 26905 26906 has been removed from the SDK. 26907 26908 If this field is not empty, an error will be thrown. 26909 height: 26910 type: string 26911 format: int64 26912 description: The height at which the upgrade must be performed. 26913 info: 26914 type: string 26915 title: >- 26916 Any application specific upgrade info to be included 26917 on-chain 26918 26919 such as a git commit that validators could automatically 26920 upgrade to 26921 upgraded_client_state: 26922 type: object 26923 properties: 26924 type_url: 26925 type: string 26926 description: >- 26927 A URL/resource name that uniquely identifies the type 26928 of the serialized 26929 26930 protocol buffer message. This string must contain at 26931 least 26932 26933 one "/" character. The last segment of the URL's path 26934 must represent 26935 26936 the fully qualified name of the type (as in 26937 26938 `path/google.protobuf.Duration`). The name should be 26939 in a canonical form 26940 26941 (e.g., leading "." is not accepted). 26942 26943 26944 In practice, teams usually precompile into the binary 26945 all types that they 26946 26947 expect it to use in the context of Any. However, for 26948 URLs which use the 26949 26950 scheme `http`, `https`, or no scheme, one can 26951 optionally set up a type 26952 26953 server that maps type URLs to message definitions as 26954 follows: 26955 26956 26957 * If no scheme is provided, `https` is assumed. 26958 26959 * An HTTP GET on the URL must yield a 26960 [google.protobuf.Type][] 26961 value in binary format, or produce an error. 26962 * Applications are allowed to cache lookup results 26963 based on the 26964 URL, or have them precompiled into a binary to avoid any 26965 lookup. Therefore, binary compatibility needs to be preserved 26966 on changes to types. (Use versioned type names to manage 26967 breaking changes.) 26968 26969 Note: this functionality is not currently available in 26970 the official 26971 26972 protobuf release, and it is not used for type URLs 26973 beginning with 26974 26975 type.googleapis.com. 26976 26977 26978 Schemes other than `http`, `https` (or the empty 26979 scheme) might be 26980 26981 used with implementation specific semantics. 26982 value: 26983 type: string 26984 format: byte 26985 description: >- 26986 Must be a valid serialized protocol buffer of the 26987 above specified type. 26988 description: >- 26989 `Any` contains an arbitrary serialized protocol buffer 26990 message along with a 26991 26992 URL that describes the type of the serialized message. 26993 26994 26995 Protobuf library provides support to pack/unpack Any 26996 values in the form 26997 26998 of utility functions or additional generated methods of 26999 the Any type. 27000 27001 27002 Example 1: Pack and unpack a message in C++. 27003 27004 Foo foo = ...; 27005 Any any; 27006 any.PackFrom(foo); 27007 ... 27008 if (any.UnpackTo(&foo)) { 27009 ... 27010 } 27011 27012 Example 2: Pack and unpack a message in Java. 27013 27014 Foo foo = ...; 27015 Any any = Any.pack(foo); 27016 ... 27017 if (any.is(Foo.class)) { 27018 foo = any.unpack(Foo.class); 27019 } 27020 // or ... 27021 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 27022 foo = any.unpack(Foo.getDefaultInstance()); 27023 } 27024 27025 Example 3: Pack and unpack a message in Python. 27026 27027 foo = Foo(...) 27028 any = Any() 27029 any.Pack(foo) 27030 ... 27031 if any.Is(Foo.DESCRIPTOR): 27032 any.Unpack(foo) 27033 ... 27034 27035 Example 4: Pack and unpack a message in Go 27036 27037 foo := &pb.Foo{...} 27038 any, err := anypb.New(foo) 27039 if err != nil { 27040 ... 27041 } 27042 ... 27043 foo := &pb.Foo{} 27044 if err := any.UnmarshalTo(foo); err != nil { 27045 ... 27046 } 27047 27048 The pack methods provided by protobuf library will by 27049 default use 27050 27051 'type.googleapis.com/full.type.name' as the type URL and 27052 the unpack 27053 27054 methods only use the fully qualified type name after the 27055 last '/' 27056 27057 in the type URL, for example "foo.bar.com/x/y.z" will 27058 yield type 27059 27060 name "y.z". 27061 27062 27063 JSON 27064 27065 27066 The JSON representation of an `Any` value uses the regular 27067 27068 representation of the deserialized, embedded message, with 27069 an 27070 27071 additional field `@type` which contains the type URL. 27072 Example: 27073 27074 package google.profile; 27075 message Person { 27076 string first_name = 1; 27077 string last_name = 2; 27078 } 27079 27080 { 27081 "@type": "type.googleapis.com/google.profile.Person", 27082 "firstName": <string>, 27083 "lastName": <string> 27084 } 27085 27086 If the embedded message type is well-known and has a 27087 custom JSON 27088 27089 representation, that representation will be embedded 27090 adding a field 27091 27092 `value` which holds the custom JSON in addition to the 27093 `@type` 27094 27095 field. Example (for message [google.protobuf.Duration][]): 27096 27097 { 27098 "@type": "type.googleapis.com/google.protobuf.Duration", 27099 "value": "1.212s" 27100 } 27101 description: >- 27102 QueryCurrentPlanResponse is the response type for the 27103 Query/CurrentPlan RPC 27104 27105 method. 27106 default: 27107 description: An unexpected error response. 27108 schema: 27109 type: object 27110 properties: 27111 error: 27112 type: string 27113 code: 27114 type: integer 27115 format: int32 27116 message: 27117 type: string 27118 details: 27119 type: array 27120 items: 27121 type: object 27122 properties: 27123 type_url: 27124 type: string 27125 description: >- 27126 A URL/resource name that uniquely identifies the type of 27127 the serialized 27128 27129 protocol buffer message. This string must contain at 27130 least 27131 27132 one "/" character. The last segment of the URL's path 27133 must represent 27134 27135 the fully qualified name of the type (as in 27136 27137 `path/google.protobuf.Duration`). The name should be in 27138 a canonical form 27139 27140 (e.g., leading "." is not accepted). 27141 27142 27143 In practice, teams usually precompile into the binary 27144 all types that they 27145 27146 expect it to use in the context of Any. However, for 27147 URLs which use the 27148 27149 scheme `http`, `https`, or no scheme, one can optionally 27150 set up a type 27151 27152 server that maps type URLs to message definitions as 27153 follows: 27154 27155 27156 * If no scheme is provided, `https` is assumed. 27157 27158 * An HTTP GET on the URL must yield a 27159 [google.protobuf.Type][] 27160 value in binary format, or produce an error. 27161 * Applications are allowed to cache lookup results based 27162 on the 27163 URL, or have them precompiled into a binary to avoid any 27164 lookup. Therefore, binary compatibility needs to be preserved 27165 on changes to types. (Use versioned type names to manage 27166 breaking changes.) 27167 27168 Note: this functionality is not currently available in 27169 the official 27170 27171 protobuf release, and it is not used for type URLs 27172 beginning with 27173 27174 type.googleapis.com. 27175 27176 27177 Schemes other than `http`, `https` (or the empty scheme) 27178 might be 27179 27180 used with implementation specific semantics. 27181 value: 27182 type: string 27183 format: byte 27184 description: >- 27185 Must be a valid serialized protocol buffer of the above 27186 specified type. 27187 description: >- 27188 `Any` contains an arbitrary serialized protocol buffer 27189 message along with a 27190 27191 URL that describes the type of the serialized message. 27192 27193 27194 Protobuf library provides support to pack/unpack Any values 27195 in the form 27196 27197 of utility functions or additional generated methods of the 27198 Any type. 27199 27200 27201 Example 1: Pack and unpack a message in C++. 27202 27203 Foo foo = ...; 27204 Any any; 27205 any.PackFrom(foo); 27206 ... 27207 if (any.UnpackTo(&foo)) { 27208 ... 27209 } 27210 27211 Example 2: Pack and unpack a message in Java. 27212 27213 Foo foo = ...; 27214 Any any = Any.pack(foo); 27215 ... 27216 if (any.is(Foo.class)) { 27217 foo = any.unpack(Foo.class); 27218 } 27219 // or ... 27220 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 27221 foo = any.unpack(Foo.getDefaultInstance()); 27222 } 27223 27224 Example 3: Pack and unpack a message in Python. 27225 27226 foo = Foo(...) 27227 any = Any() 27228 any.Pack(foo) 27229 ... 27230 if any.Is(Foo.DESCRIPTOR): 27231 any.Unpack(foo) 27232 ... 27233 27234 Example 4: Pack and unpack a message in Go 27235 27236 foo := &pb.Foo{...} 27237 any, err := anypb.New(foo) 27238 if err != nil { 27239 ... 27240 } 27241 ... 27242 foo := &pb.Foo{} 27243 if err := any.UnmarshalTo(foo); err != nil { 27244 ... 27245 } 27246 27247 The pack methods provided by protobuf library will by 27248 default use 27249 27250 'type.googleapis.com/full.type.name' as the type URL and the 27251 unpack 27252 27253 methods only use the fully qualified type name after the 27254 last '/' 27255 27256 in the type URL, for example "foo.bar.com/x/y.z" will yield 27257 type 27258 27259 name "y.z". 27260 27261 27262 JSON 27263 27264 27265 The JSON representation of an `Any` value uses the regular 27266 27267 representation of the deserialized, embedded message, with 27268 an 27269 27270 additional field `@type` which contains the type URL. 27271 Example: 27272 27273 package google.profile; 27274 message Person { 27275 string first_name = 1; 27276 string last_name = 2; 27277 } 27278 27279 { 27280 "@type": "type.googleapis.com/google.profile.Person", 27281 "firstName": <string>, 27282 "lastName": <string> 27283 } 27284 27285 If the embedded message type is well-known and has a custom 27286 JSON 27287 27288 representation, that representation will be embedded adding 27289 a field 27290 27291 `value` which holds the custom JSON in addition to the 27292 `@type` 27293 27294 field. Example (for message [google.protobuf.Duration][]): 27295 27296 { 27297 "@type": "type.googleapis.com/google.protobuf.Duration", 27298 "value": "1.212s" 27299 } 27300 tags: 27301 - Query 27302 /cosmos/upgrade/v1beta1/module_versions: 27303 get: 27304 summary: ModuleVersions queries the list of module versions from state. 27305 description: 'Since: cosmos-sdk 0.43' 27306 operationId: ModuleVersions 27307 responses: 27308 '200': 27309 description: A successful response. 27310 schema: 27311 type: object 27312 properties: 27313 module_versions: 27314 type: array 27315 items: 27316 type: object 27317 properties: 27318 name: 27319 type: string 27320 title: name of the app module 27321 version: 27322 type: string 27323 format: uint64 27324 title: consensus version of the app module 27325 description: |- 27326 ModuleVersion specifies a module and its consensus version. 27327 27328 Since: cosmos-sdk 0.43 27329 description: >- 27330 module_versions is a list of module names with their consensus 27331 versions. 27332 description: >- 27333 QueryModuleVersionsResponse is the response type for the 27334 Query/ModuleVersions 27335 27336 RPC method. 27337 27338 27339 Since: cosmos-sdk 0.43 27340 default: 27341 description: An unexpected error response. 27342 schema: 27343 type: object 27344 properties: 27345 error: 27346 type: string 27347 code: 27348 type: integer 27349 format: int32 27350 message: 27351 type: string 27352 details: 27353 type: array 27354 items: 27355 type: object 27356 properties: 27357 type_url: 27358 type: string 27359 description: >- 27360 A URL/resource name that uniquely identifies the type of 27361 the serialized 27362 27363 protocol buffer message. This string must contain at 27364 least 27365 27366 one "/" character. The last segment of the URL's path 27367 must represent 27368 27369 the fully qualified name of the type (as in 27370 27371 `path/google.protobuf.Duration`). The name should be in 27372 a canonical form 27373 27374 (e.g., leading "." is not accepted). 27375 27376 27377 In practice, teams usually precompile into the binary 27378 all types that they 27379 27380 expect it to use in the context of Any. However, for 27381 URLs which use the 27382 27383 scheme `http`, `https`, or no scheme, one can optionally 27384 set up a type 27385 27386 server that maps type URLs to message definitions as 27387 follows: 27388 27389 27390 * If no scheme is provided, `https` is assumed. 27391 27392 * An HTTP GET on the URL must yield a 27393 [google.protobuf.Type][] 27394 value in binary format, or produce an error. 27395 * Applications are allowed to cache lookup results based 27396 on the 27397 URL, or have them precompiled into a binary to avoid any 27398 lookup. Therefore, binary compatibility needs to be preserved 27399 on changes to types. (Use versioned type names to manage 27400 breaking changes.) 27401 27402 Note: this functionality is not currently available in 27403 the official 27404 27405 protobuf release, and it is not used for type URLs 27406 beginning with 27407 27408 type.googleapis.com. 27409 27410 27411 Schemes other than `http`, `https` (or the empty scheme) 27412 might be 27413 27414 used with implementation specific semantics. 27415 value: 27416 type: string 27417 format: byte 27418 description: >- 27419 Must be a valid serialized protocol buffer of the above 27420 specified type. 27421 description: >- 27422 `Any` contains an arbitrary serialized protocol buffer 27423 message along with a 27424 27425 URL that describes the type of the serialized message. 27426 27427 27428 Protobuf library provides support to pack/unpack Any values 27429 in the form 27430 27431 of utility functions or additional generated methods of the 27432 Any type. 27433 27434 27435 Example 1: Pack and unpack a message in C++. 27436 27437 Foo foo = ...; 27438 Any any; 27439 any.PackFrom(foo); 27440 ... 27441 if (any.UnpackTo(&foo)) { 27442 ... 27443 } 27444 27445 Example 2: Pack and unpack a message in Java. 27446 27447 Foo foo = ...; 27448 Any any = Any.pack(foo); 27449 ... 27450 if (any.is(Foo.class)) { 27451 foo = any.unpack(Foo.class); 27452 } 27453 // or ... 27454 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 27455 foo = any.unpack(Foo.getDefaultInstance()); 27456 } 27457 27458 Example 3: Pack and unpack a message in Python. 27459 27460 foo = Foo(...) 27461 any = Any() 27462 any.Pack(foo) 27463 ... 27464 if any.Is(Foo.DESCRIPTOR): 27465 any.Unpack(foo) 27466 ... 27467 27468 Example 4: Pack and unpack a message in Go 27469 27470 foo := &pb.Foo{...} 27471 any, err := anypb.New(foo) 27472 if err != nil { 27473 ... 27474 } 27475 ... 27476 foo := &pb.Foo{} 27477 if err := any.UnmarshalTo(foo); err != nil { 27478 ... 27479 } 27480 27481 The pack methods provided by protobuf library will by 27482 default use 27483 27484 'type.googleapis.com/full.type.name' as the type URL and the 27485 unpack 27486 27487 methods only use the fully qualified type name after the 27488 last '/' 27489 27490 in the type URL, for example "foo.bar.com/x/y.z" will yield 27491 type 27492 27493 name "y.z". 27494 27495 27496 JSON 27497 27498 27499 The JSON representation of an `Any` value uses the regular 27500 27501 representation of the deserialized, embedded message, with 27502 an 27503 27504 additional field `@type` which contains the type URL. 27505 Example: 27506 27507 package google.profile; 27508 message Person { 27509 string first_name = 1; 27510 string last_name = 2; 27511 } 27512 27513 { 27514 "@type": "type.googleapis.com/google.profile.Person", 27515 "firstName": <string>, 27516 "lastName": <string> 27517 } 27518 27519 If the embedded message type is well-known and has a custom 27520 JSON 27521 27522 representation, that representation will be embedded adding 27523 a field 27524 27525 `value` which holds the custom JSON in addition to the 27526 `@type` 27527 27528 field. Example (for message [google.protobuf.Duration][]): 27529 27530 { 27531 "@type": "type.googleapis.com/google.protobuf.Duration", 27532 "value": "1.212s" 27533 } 27534 parameters: 27535 - name: module_name 27536 description: |- 27537 module_name is a field to query a specific module 27538 consensus version from state. Leaving this empty will 27539 fetch the full list of module versions from state. 27540 in: query 27541 required: false 27542 type: string 27543 tags: 27544 - Query 27545 /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}: 27546 get: 27547 summary: >- 27548 UpgradedConsensusState queries the consensus state that will serve 27549 27550 as a trusted kernel for the next version of this chain. It will only be 27551 27552 stored at the last height of this chain. 27553 27554 UpgradedConsensusState RPC not supported with legacy querier 27555 27556 This rpc is deprecated now that IBC has its own replacement 27557 27558 (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) 27559 operationId: UpgradedConsensusState 27560 responses: 27561 '200': 27562 description: A successful response. 27563 schema: 27564 type: object 27565 properties: 27566 upgraded_consensus_state: 27567 type: string 27568 format: byte 27569 title: 'Since: cosmos-sdk 0.43' 27570 description: >- 27571 QueryUpgradedConsensusStateResponse is the response type for the 27572 Query/UpgradedConsensusState 27573 27574 RPC method. 27575 default: 27576 description: An unexpected error response. 27577 schema: 27578 type: object 27579 properties: 27580 error: 27581 type: string 27582 code: 27583 type: integer 27584 format: int32 27585 message: 27586 type: string 27587 details: 27588 type: array 27589 items: 27590 type: object 27591 properties: 27592 type_url: 27593 type: string 27594 description: >- 27595 A URL/resource name that uniquely identifies the type of 27596 the serialized 27597 27598 protocol buffer message. This string must contain at 27599 least 27600 27601 one "/" character. The last segment of the URL's path 27602 must represent 27603 27604 the fully qualified name of the type (as in 27605 27606 `path/google.protobuf.Duration`). The name should be in 27607 a canonical form 27608 27609 (e.g., leading "." is not accepted). 27610 27611 27612 In practice, teams usually precompile into the binary 27613 all types that they 27614 27615 expect it to use in the context of Any. However, for 27616 URLs which use the 27617 27618 scheme `http`, `https`, or no scheme, one can optionally 27619 set up a type 27620 27621 server that maps type URLs to message definitions as 27622 follows: 27623 27624 27625 * If no scheme is provided, `https` is assumed. 27626 27627 * An HTTP GET on the URL must yield a 27628 [google.protobuf.Type][] 27629 value in binary format, or produce an error. 27630 * Applications are allowed to cache lookup results based 27631 on the 27632 URL, or have them precompiled into a binary to avoid any 27633 lookup. Therefore, binary compatibility needs to be preserved 27634 on changes to types. (Use versioned type names to manage 27635 breaking changes.) 27636 27637 Note: this functionality is not currently available in 27638 the official 27639 27640 protobuf release, and it is not used for type URLs 27641 beginning with 27642 27643 type.googleapis.com. 27644 27645 27646 Schemes other than `http`, `https` (or the empty scheme) 27647 might be 27648 27649 used with implementation specific semantics. 27650 value: 27651 type: string 27652 format: byte 27653 description: >- 27654 Must be a valid serialized protocol buffer of the above 27655 specified type. 27656 description: >- 27657 `Any` contains an arbitrary serialized protocol buffer 27658 message along with a 27659 27660 URL that describes the type of the serialized message. 27661 27662 27663 Protobuf library provides support to pack/unpack Any values 27664 in the form 27665 27666 of utility functions or additional generated methods of the 27667 Any type. 27668 27669 27670 Example 1: Pack and unpack a message in C++. 27671 27672 Foo foo = ...; 27673 Any any; 27674 any.PackFrom(foo); 27675 ... 27676 if (any.UnpackTo(&foo)) { 27677 ... 27678 } 27679 27680 Example 2: Pack and unpack a message in Java. 27681 27682 Foo foo = ...; 27683 Any any = Any.pack(foo); 27684 ... 27685 if (any.is(Foo.class)) { 27686 foo = any.unpack(Foo.class); 27687 } 27688 // or ... 27689 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 27690 foo = any.unpack(Foo.getDefaultInstance()); 27691 } 27692 27693 Example 3: Pack and unpack a message in Python. 27694 27695 foo = Foo(...) 27696 any = Any() 27697 any.Pack(foo) 27698 ... 27699 if any.Is(Foo.DESCRIPTOR): 27700 any.Unpack(foo) 27701 ... 27702 27703 Example 4: Pack and unpack a message in Go 27704 27705 foo := &pb.Foo{...} 27706 any, err := anypb.New(foo) 27707 if err != nil { 27708 ... 27709 } 27710 ... 27711 foo := &pb.Foo{} 27712 if err := any.UnmarshalTo(foo); err != nil { 27713 ... 27714 } 27715 27716 The pack methods provided by protobuf library will by 27717 default use 27718 27719 'type.googleapis.com/full.type.name' as the type URL and the 27720 unpack 27721 27722 methods only use the fully qualified type name after the 27723 last '/' 27724 27725 in the type URL, for example "foo.bar.com/x/y.z" will yield 27726 type 27727 27728 name "y.z". 27729 27730 27731 JSON 27732 27733 27734 The JSON representation of an `Any` value uses the regular 27735 27736 representation of the deserialized, embedded message, with 27737 an 27738 27739 additional field `@type` which contains the type URL. 27740 Example: 27741 27742 package google.profile; 27743 message Person { 27744 string first_name = 1; 27745 string last_name = 2; 27746 } 27747 27748 { 27749 "@type": "type.googleapis.com/google.profile.Person", 27750 "firstName": <string>, 27751 "lastName": <string> 27752 } 27753 27754 If the embedded message type is well-known and has a custom 27755 JSON 27756 27757 representation, that representation will be embedded adding 27758 a field 27759 27760 `value` which holds the custom JSON in addition to the 27761 `@type` 27762 27763 field. Example (for message [google.protobuf.Duration][]): 27764 27765 { 27766 "@type": "type.googleapis.com/google.protobuf.Duration", 27767 "value": "1.212s" 27768 } 27769 parameters: 27770 - name: last_height 27771 description: |- 27772 last height of the current chain must be sent in request 27773 as this is the height under which next consensus state is stored 27774 in: path 27775 required: true 27776 type: string 27777 format: int64 27778 tags: 27779 - Query 27780 /cosmos/authz/v1beta1/grants: 27781 get: 27782 summary: Returns list of `Authorization`, granted to the grantee by the granter. 27783 operationId: Grants 27784 responses: 27785 '200': 27786 description: A successful response. 27787 schema: 27788 type: object 27789 properties: 27790 grants: 27791 type: array 27792 items: 27793 type: object 27794 properties: 27795 authorization: 27796 type: object 27797 properties: 27798 type_url: 27799 type: string 27800 description: >- 27801 A URL/resource name that uniquely identifies the 27802 type of the serialized 27803 27804 protocol buffer message. This string must contain at 27805 least 27806 27807 one "/" character. The last segment of the URL's 27808 path must represent 27809 27810 the fully qualified name of the type (as in 27811 27812 `path/google.protobuf.Duration`). The name should be 27813 in a canonical form 27814 27815 (e.g., leading "." is not accepted). 27816 27817 27818 In practice, teams usually precompile into the 27819 binary all types that they 27820 27821 expect it to use in the context of Any. However, for 27822 URLs which use the 27823 27824 scheme `http`, `https`, or no scheme, one can 27825 optionally set up a type 27826 27827 server that maps type URLs to message definitions as 27828 follows: 27829 27830 27831 * If no scheme is provided, `https` is assumed. 27832 27833 * An HTTP GET on the URL must yield a 27834 [google.protobuf.Type][] 27835 value in binary format, or produce an error. 27836 * Applications are allowed to cache lookup results 27837 based on the 27838 URL, or have them precompiled into a binary to avoid any 27839 lookup. Therefore, binary compatibility needs to be preserved 27840 on changes to types. (Use versioned type names to manage 27841 breaking changes.) 27842 27843 Note: this functionality is not currently available 27844 in the official 27845 27846 protobuf release, and it is not used for type URLs 27847 beginning with 27848 27849 type.googleapis.com. 27850 27851 27852 Schemes other than `http`, `https` (or the empty 27853 scheme) might be 27854 27855 used with implementation specific semantics. 27856 value: 27857 type: string 27858 format: byte 27859 description: >- 27860 Must be a valid serialized protocol buffer of the 27861 above specified type. 27862 description: >- 27863 `Any` contains an arbitrary serialized protocol buffer 27864 message along with a 27865 27866 URL that describes the type of the serialized message. 27867 27868 27869 Protobuf library provides support to pack/unpack Any 27870 values in the form 27871 27872 of utility functions or additional generated methods of 27873 the Any type. 27874 27875 27876 Example 1: Pack and unpack a message in C++. 27877 27878 Foo foo = ...; 27879 Any any; 27880 any.PackFrom(foo); 27881 ... 27882 if (any.UnpackTo(&foo)) { 27883 ... 27884 } 27885 27886 Example 2: Pack and unpack a message in Java. 27887 27888 Foo foo = ...; 27889 Any any = Any.pack(foo); 27890 ... 27891 if (any.is(Foo.class)) { 27892 foo = any.unpack(Foo.class); 27893 } 27894 // or ... 27895 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 27896 foo = any.unpack(Foo.getDefaultInstance()); 27897 } 27898 27899 Example 3: Pack and unpack a message in Python. 27900 27901 foo = Foo(...) 27902 any = Any() 27903 any.Pack(foo) 27904 ... 27905 if any.Is(Foo.DESCRIPTOR): 27906 any.Unpack(foo) 27907 ... 27908 27909 Example 4: Pack and unpack a message in Go 27910 27911 foo := &pb.Foo{...} 27912 any, err := anypb.New(foo) 27913 if err != nil { 27914 ... 27915 } 27916 ... 27917 foo := &pb.Foo{} 27918 if err := any.UnmarshalTo(foo); err != nil { 27919 ... 27920 } 27921 27922 The pack methods provided by protobuf library will by 27923 default use 27924 27925 'type.googleapis.com/full.type.name' as the type URL and 27926 the unpack 27927 27928 methods only use the fully qualified type name after the 27929 last '/' 27930 27931 in the type URL, for example "foo.bar.com/x/y.z" will 27932 yield type 27933 27934 name "y.z". 27935 27936 27937 JSON 27938 27939 27940 The JSON representation of an `Any` value uses the 27941 regular 27942 27943 representation of the deserialized, embedded message, 27944 with an 27945 27946 additional field `@type` which contains the type URL. 27947 Example: 27948 27949 package google.profile; 27950 message Person { 27951 string first_name = 1; 27952 string last_name = 2; 27953 } 27954 27955 { 27956 "@type": "type.googleapis.com/google.profile.Person", 27957 "firstName": <string>, 27958 "lastName": <string> 27959 } 27960 27961 If the embedded message type is well-known and has a 27962 custom JSON 27963 27964 representation, that representation will be embedded 27965 adding a field 27966 27967 `value` which holds the custom JSON in addition to the 27968 `@type` 27969 27970 field. Example (for message 27971 [google.protobuf.Duration][]): 27972 27973 { 27974 "@type": "type.googleapis.com/google.protobuf.Duration", 27975 "value": "1.212s" 27976 } 27977 expiration: 27978 type: string 27979 format: date-time 27980 title: >- 27981 time when the grant will expire and will be pruned. If 27982 null, then the grant 27983 27984 doesn't have a time expiration (other conditions in 27985 `authorization` 27986 27987 may apply to invalidate the grant) 27988 description: |- 27989 Grant gives permissions to execute 27990 the provide method with expiration time. 27991 description: >- 27992 authorizations is a list of grants granted for grantee by 27993 granter. 27994 pagination: 27995 description: pagination defines an pagination for the response. 27996 type: object 27997 properties: 27998 next_key: 27999 type: string 28000 format: byte 28001 description: |- 28002 next_key is the key to be passed to PageRequest.key to 28003 query the next page most efficiently. It will be empty if 28004 there are no more results. 28005 total: 28006 type: string 28007 format: uint64 28008 title: >- 28009 total is total number of results available if 28010 PageRequest.count_total 28011 28012 was set, its value is undefined otherwise 28013 description: >- 28014 QueryGrantsResponse is the response type for the 28015 Query/Authorizations RPC method. 28016 default: 28017 description: An unexpected error response. 28018 schema: 28019 type: object 28020 properties: 28021 error: 28022 type: string 28023 code: 28024 type: integer 28025 format: int32 28026 message: 28027 type: string 28028 details: 28029 type: array 28030 items: 28031 type: object 28032 properties: 28033 type_url: 28034 type: string 28035 description: >- 28036 A URL/resource name that uniquely identifies the type of 28037 the serialized 28038 28039 protocol buffer message. This string must contain at 28040 least 28041 28042 one "/" character. The last segment of the URL's path 28043 must represent 28044 28045 the fully qualified name of the type (as in 28046 28047 `path/google.protobuf.Duration`). The name should be in 28048 a canonical form 28049 28050 (e.g., leading "." is not accepted). 28051 28052 28053 In practice, teams usually precompile into the binary 28054 all types that they 28055 28056 expect it to use in the context of Any. However, for 28057 URLs which use the 28058 28059 scheme `http`, `https`, or no scheme, one can optionally 28060 set up a type 28061 28062 server that maps type URLs to message definitions as 28063 follows: 28064 28065 28066 * If no scheme is provided, `https` is assumed. 28067 28068 * An HTTP GET on the URL must yield a 28069 [google.protobuf.Type][] 28070 value in binary format, or produce an error. 28071 * Applications are allowed to cache lookup results based 28072 on the 28073 URL, or have them precompiled into a binary to avoid any 28074 lookup. Therefore, binary compatibility needs to be preserved 28075 on changes to types. (Use versioned type names to manage 28076 breaking changes.) 28077 28078 Note: this functionality is not currently available in 28079 the official 28080 28081 protobuf release, and it is not used for type URLs 28082 beginning with 28083 28084 type.googleapis.com. 28085 28086 28087 Schemes other than `http`, `https` (or the empty scheme) 28088 might be 28089 28090 used with implementation specific semantics. 28091 value: 28092 type: string 28093 format: byte 28094 description: >- 28095 Must be a valid serialized protocol buffer of the above 28096 specified type. 28097 description: >- 28098 `Any` contains an arbitrary serialized protocol buffer 28099 message along with a 28100 28101 URL that describes the type of the serialized message. 28102 28103 28104 Protobuf library provides support to pack/unpack Any values 28105 in the form 28106 28107 of utility functions or additional generated methods of the 28108 Any type. 28109 28110 28111 Example 1: Pack and unpack a message in C++. 28112 28113 Foo foo = ...; 28114 Any any; 28115 any.PackFrom(foo); 28116 ... 28117 if (any.UnpackTo(&foo)) { 28118 ... 28119 } 28120 28121 Example 2: Pack and unpack a message in Java. 28122 28123 Foo foo = ...; 28124 Any any = Any.pack(foo); 28125 ... 28126 if (any.is(Foo.class)) { 28127 foo = any.unpack(Foo.class); 28128 } 28129 // or ... 28130 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 28131 foo = any.unpack(Foo.getDefaultInstance()); 28132 } 28133 28134 Example 3: Pack and unpack a message in Python. 28135 28136 foo = Foo(...) 28137 any = Any() 28138 any.Pack(foo) 28139 ... 28140 if any.Is(Foo.DESCRIPTOR): 28141 any.Unpack(foo) 28142 ... 28143 28144 Example 4: Pack and unpack a message in Go 28145 28146 foo := &pb.Foo{...} 28147 any, err := anypb.New(foo) 28148 if err != nil { 28149 ... 28150 } 28151 ... 28152 foo := &pb.Foo{} 28153 if err := any.UnmarshalTo(foo); err != nil { 28154 ... 28155 } 28156 28157 The pack methods provided by protobuf library will by 28158 default use 28159 28160 'type.googleapis.com/full.type.name' as the type URL and the 28161 unpack 28162 28163 methods only use the fully qualified type name after the 28164 last '/' 28165 28166 in the type URL, for example "foo.bar.com/x/y.z" will yield 28167 type 28168 28169 name "y.z". 28170 28171 28172 JSON 28173 28174 28175 The JSON representation of an `Any` value uses the regular 28176 28177 representation of the deserialized, embedded message, with 28178 an 28179 28180 additional field `@type` which contains the type URL. 28181 Example: 28182 28183 package google.profile; 28184 message Person { 28185 string first_name = 1; 28186 string last_name = 2; 28187 } 28188 28189 { 28190 "@type": "type.googleapis.com/google.profile.Person", 28191 "firstName": <string>, 28192 "lastName": <string> 28193 } 28194 28195 If the embedded message type is well-known and has a custom 28196 JSON 28197 28198 representation, that representation will be embedded adding 28199 a field 28200 28201 `value` which holds the custom JSON in addition to the 28202 `@type` 28203 28204 field. Example (for message [google.protobuf.Duration][]): 28205 28206 { 28207 "@type": "type.googleapis.com/google.protobuf.Duration", 28208 "value": "1.212s" 28209 } 28210 parameters: 28211 - name: granter 28212 in: query 28213 required: false 28214 type: string 28215 - name: grantee 28216 in: query 28217 required: false 28218 type: string 28219 - name: msg_type_url 28220 description: >- 28221 Optional, msg_type_url, when set, will query only grants matching 28222 given msg type. 28223 in: query 28224 required: false 28225 type: string 28226 - name: pagination.key 28227 description: |- 28228 key is a value returned in PageResponse.next_key to begin 28229 querying the next page most efficiently. Only one of offset or key 28230 should be set. 28231 in: query 28232 required: false 28233 type: string 28234 format: byte 28235 - name: pagination.offset 28236 description: >- 28237 offset is a numeric offset that can be used when key is unavailable. 28238 28239 It is less efficient than using key. Only one of offset or key 28240 should 28241 28242 be set. 28243 in: query 28244 required: false 28245 type: string 28246 format: uint64 28247 - name: pagination.limit 28248 description: >- 28249 limit is the total number of results to be returned in the result 28250 page. 28251 28252 If left empty it will default to a value to be set by each app. 28253 in: query 28254 required: false 28255 type: string 28256 format: uint64 28257 - name: pagination.count_total 28258 description: >- 28259 count_total is set to true to indicate that the result set should 28260 include 28261 28262 a count of the total number of items available for pagination in 28263 UIs. 28264 28265 count_total is only respected when offset is used. It is ignored 28266 when key 28267 28268 is set. 28269 in: query 28270 required: false 28271 type: boolean 28272 - name: pagination.reverse 28273 description: >- 28274 reverse is set to true if results are to be returned in the 28275 descending order. 28276 28277 28278 Since: cosmos-sdk 0.43 28279 in: query 28280 required: false 28281 type: boolean 28282 tags: 28283 - Query 28284 /cosmos/authz/v1beta1/grants/grantee/{grantee}: 28285 get: 28286 summary: GranteeGrants returns a list of `GrantAuthorization` by grantee. 28287 description: 'Since: cosmos-sdk 0.46' 28288 operationId: GranteeGrants 28289 responses: 28290 '200': 28291 description: A successful response. 28292 schema: 28293 type: object 28294 properties: 28295 grants: 28296 type: array 28297 items: 28298 type: object 28299 properties: 28300 granter: 28301 type: string 28302 grantee: 28303 type: string 28304 authorization: 28305 type: object 28306 properties: 28307 type_url: 28308 type: string 28309 description: >- 28310 A URL/resource name that uniquely identifies the 28311 type of the serialized 28312 28313 protocol buffer message. This string must contain at 28314 least 28315 28316 one "/" character. The last segment of the URL's 28317 path must represent 28318 28319 the fully qualified name of the type (as in 28320 28321 `path/google.protobuf.Duration`). The name should be 28322 in a canonical form 28323 28324 (e.g., leading "." is not accepted). 28325 28326 28327 In practice, teams usually precompile into the 28328 binary all types that they 28329 28330 expect it to use in the context of Any. However, for 28331 URLs which use the 28332 28333 scheme `http`, `https`, or no scheme, one can 28334 optionally set up a type 28335 28336 server that maps type URLs to message definitions as 28337 follows: 28338 28339 28340 * If no scheme is provided, `https` is assumed. 28341 28342 * An HTTP GET on the URL must yield a 28343 [google.protobuf.Type][] 28344 value in binary format, or produce an error. 28345 * Applications are allowed to cache lookup results 28346 based on the 28347 URL, or have them precompiled into a binary to avoid any 28348 lookup. Therefore, binary compatibility needs to be preserved 28349 on changes to types. (Use versioned type names to manage 28350 breaking changes.) 28351 28352 Note: this functionality is not currently available 28353 in the official 28354 28355 protobuf release, and it is not used for type URLs 28356 beginning with 28357 28358 type.googleapis.com. 28359 28360 28361 Schemes other than `http`, `https` (or the empty 28362 scheme) might be 28363 28364 used with implementation specific semantics. 28365 value: 28366 type: string 28367 format: byte 28368 description: >- 28369 Must be a valid serialized protocol buffer of the 28370 above specified type. 28371 description: >- 28372 `Any` contains an arbitrary serialized protocol buffer 28373 message along with a 28374 28375 URL that describes the type of the serialized message. 28376 28377 28378 Protobuf library provides support to pack/unpack Any 28379 values in the form 28380 28381 of utility functions or additional generated methods of 28382 the Any type. 28383 28384 28385 Example 1: Pack and unpack a message in C++. 28386 28387 Foo foo = ...; 28388 Any any; 28389 any.PackFrom(foo); 28390 ... 28391 if (any.UnpackTo(&foo)) { 28392 ... 28393 } 28394 28395 Example 2: Pack and unpack a message in Java. 28396 28397 Foo foo = ...; 28398 Any any = Any.pack(foo); 28399 ... 28400 if (any.is(Foo.class)) { 28401 foo = any.unpack(Foo.class); 28402 } 28403 // or ... 28404 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 28405 foo = any.unpack(Foo.getDefaultInstance()); 28406 } 28407 28408 Example 3: Pack and unpack a message in Python. 28409 28410 foo = Foo(...) 28411 any = Any() 28412 any.Pack(foo) 28413 ... 28414 if any.Is(Foo.DESCRIPTOR): 28415 any.Unpack(foo) 28416 ... 28417 28418 Example 4: Pack and unpack a message in Go 28419 28420 foo := &pb.Foo{...} 28421 any, err := anypb.New(foo) 28422 if err != nil { 28423 ... 28424 } 28425 ... 28426 foo := &pb.Foo{} 28427 if err := any.UnmarshalTo(foo); err != nil { 28428 ... 28429 } 28430 28431 The pack methods provided by protobuf library will by 28432 default use 28433 28434 'type.googleapis.com/full.type.name' as the type URL and 28435 the unpack 28436 28437 methods only use the fully qualified type name after the 28438 last '/' 28439 28440 in the type URL, for example "foo.bar.com/x/y.z" will 28441 yield type 28442 28443 name "y.z". 28444 28445 28446 JSON 28447 28448 28449 The JSON representation of an `Any` value uses the 28450 regular 28451 28452 representation of the deserialized, embedded message, 28453 with an 28454 28455 additional field `@type` which contains the type URL. 28456 Example: 28457 28458 package google.profile; 28459 message Person { 28460 string first_name = 1; 28461 string last_name = 2; 28462 } 28463 28464 { 28465 "@type": "type.googleapis.com/google.profile.Person", 28466 "firstName": <string>, 28467 "lastName": <string> 28468 } 28469 28470 If the embedded message type is well-known and has a 28471 custom JSON 28472 28473 representation, that representation will be embedded 28474 adding a field 28475 28476 `value` which holds the custom JSON in addition to the 28477 `@type` 28478 28479 field. Example (for message 28480 [google.protobuf.Duration][]): 28481 28482 { 28483 "@type": "type.googleapis.com/google.protobuf.Duration", 28484 "value": "1.212s" 28485 } 28486 expiration: 28487 type: string 28488 format: date-time 28489 title: >- 28490 GrantAuthorization extends a grant with both the addresses 28491 of the grantee and granter. 28492 28493 It is used in genesis.proto and query.proto 28494 description: grants is a list of grants granted to the grantee. 28495 pagination: 28496 description: pagination defines an pagination for the response. 28497 type: object 28498 properties: 28499 next_key: 28500 type: string 28501 format: byte 28502 description: |- 28503 next_key is the key to be passed to PageRequest.key to 28504 query the next page most efficiently. It will be empty if 28505 there are no more results. 28506 total: 28507 type: string 28508 format: uint64 28509 title: >- 28510 total is total number of results available if 28511 PageRequest.count_total 28512 28513 was set, its value is undefined otherwise 28514 description: >- 28515 QueryGranteeGrantsResponse is the response type for the 28516 Query/GranteeGrants RPC method. 28517 default: 28518 description: An unexpected error response. 28519 schema: 28520 type: object 28521 properties: 28522 error: 28523 type: string 28524 code: 28525 type: integer 28526 format: int32 28527 message: 28528 type: string 28529 details: 28530 type: array 28531 items: 28532 type: object 28533 properties: 28534 type_url: 28535 type: string 28536 description: >- 28537 A URL/resource name that uniquely identifies the type of 28538 the serialized 28539 28540 protocol buffer message. This string must contain at 28541 least 28542 28543 one "/" character. The last segment of the URL's path 28544 must represent 28545 28546 the fully qualified name of the type (as in 28547 28548 `path/google.protobuf.Duration`). The name should be in 28549 a canonical form 28550 28551 (e.g., leading "." is not accepted). 28552 28553 28554 In practice, teams usually precompile into the binary 28555 all types that they 28556 28557 expect it to use in the context of Any. However, for 28558 URLs which use the 28559 28560 scheme `http`, `https`, or no scheme, one can optionally 28561 set up a type 28562 28563 server that maps type URLs to message definitions as 28564 follows: 28565 28566 28567 * If no scheme is provided, `https` is assumed. 28568 28569 * An HTTP GET on the URL must yield a 28570 [google.protobuf.Type][] 28571 value in binary format, or produce an error. 28572 * Applications are allowed to cache lookup results based 28573 on the 28574 URL, or have them precompiled into a binary to avoid any 28575 lookup. Therefore, binary compatibility needs to be preserved 28576 on changes to types. (Use versioned type names to manage 28577 breaking changes.) 28578 28579 Note: this functionality is not currently available in 28580 the official 28581 28582 protobuf release, and it is not used for type URLs 28583 beginning with 28584 28585 type.googleapis.com. 28586 28587 28588 Schemes other than `http`, `https` (or the empty scheme) 28589 might be 28590 28591 used with implementation specific semantics. 28592 value: 28593 type: string 28594 format: byte 28595 description: >- 28596 Must be a valid serialized protocol buffer of the above 28597 specified type. 28598 description: >- 28599 `Any` contains an arbitrary serialized protocol buffer 28600 message along with a 28601 28602 URL that describes the type of the serialized message. 28603 28604 28605 Protobuf library provides support to pack/unpack Any values 28606 in the form 28607 28608 of utility functions or additional generated methods of the 28609 Any type. 28610 28611 28612 Example 1: Pack and unpack a message in C++. 28613 28614 Foo foo = ...; 28615 Any any; 28616 any.PackFrom(foo); 28617 ... 28618 if (any.UnpackTo(&foo)) { 28619 ... 28620 } 28621 28622 Example 2: Pack and unpack a message in Java. 28623 28624 Foo foo = ...; 28625 Any any = Any.pack(foo); 28626 ... 28627 if (any.is(Foo.class)) { 28628 foo = any.unpack(Foo.class); 28629 } 28630 // or ... 28631 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 28632 foo = any.unpack(Foo.getDefaultInstance()); 28633 } 28634 28635 Example 3: Pack and unpack a message in Python. 28636 28637 foo = Foo(...) 28638 any = Any() 28639 any.Pack(foo) 28640 ... 28641 if any.Is(Foo.DESCRIPTOR): 28642 any.Unpack(foo) 28643 ... 28644 28645 Example 4: Pack and unpack a message in Go 28646 28647 foo := &pb.Foo{...} 28648 any, err := anypb.New(foo) 28649 if err != nil { 28650 ... 28651 } 28652 ... 28653 foo := &pb.Foo{} 28654 if err := any.UnmarshalTo(foo); err != nil { 28655 ... 28656 } 28657 28658 The pack methods provided by protobuf library will by 28659 default use 28660 28661 'type.googleapis.com/full.type.name' as the type URL and the 28662 unpack 28663 28664 methods only use the fully qualified type name after the 28665 last '/' 28666 28667 in the type URL, for example "foo.bar.com/x/y.z" will yield 28668 type 28669 28670 name "y.z". 28671 28672 28673 JSON 28674 28675 28676 The JSON representation of an `Any` value uses the regular 28677 28678 representation of the deserialized, embedded message, with 28679 an 28680 28681 additional field `@type` which contains the type URL. 28682 Example: 28683 28684 package google.profile; 28685 message Person { 28686 string first_name = 1; 28687 string last_name = 2; 28688 } 28689 28690 { 28691 "@type": "type.googleapis.com/google.profile.Person", 28692 "firstName": <string>, 28693 "lastName": <string> 28694 } 28695 28696 If the embedded message type is well-known and has a custom 28697 JSON 28698 28699 representation, that representation will be embedded adding 28700 a field 28701 28702 `value` which holds the custom JSON in addition to the 28703 `@type` 28704 28705 field. Example (for message [google.protobuf.Duration][]): 28706 28707 { 28708 "@type": "type.googleapis.com/google.protobuf.Duration", 28709 "value": "1.212s" 28710 } 28711 parameters: 28712 - name: grantee 28713 in: path 28714 required: true 28715 type: string 28716 - name: pagination.key 28717 description: |- 28718 key is a value returned in PageResponse.next_key to begin 28719 querying the next page most efficiently. Only one of offset or key 28720 should be set. 28721 in: query 28722 required: false 28723 type: string 28724 format: byte 28725 - name: pagination.offset 28726 description: >- 28727 offset is a numeric offset that can be used when key is unavailable. 28728 28729 It is less efficient than using key. Only one of offset or key 28730 should 28731 28732 be set. 28733 in: query 28734 required: false 28735 type: string 28736 format: uint64 28737 - name: pagination.limit 28738 description: >- 28739 limit is the total number of results to be returned in the result 28740 page. 28741 28742 If left empty it will default to a value to be set by each app. 28743 in: query 28744 required: false 28745 type: string 28746 format: uint64 28747 - name: pagination.count_total 28748 description: >- 28749 count_total is set to true to indicate that the result set should 28750 include 28751 28752 a count of the total number of items available for pagination in 28753 UIs. 28754 28755 count_total is only respected when offset is used. It is ignored 28756 when key 28757 28758 is set. 28759 in: query 28760 required: false 28761 type: boolean 28762 - name: pagination.reverse 28763 description: >- 28764 reverse is set to true if results are to be returned in the 28765 descending order. 28766 28767 28768 Since: cosmos-sdk 0.43 28769 in: query 28770 required: false 28771 type: boolean 28772 tags: 28773 - Query 28774 /cosmos/authz/v1beta1/grants/granter/{granter}: 28775 get: 28776 summary: GranterGrants returns list of `GrantAuthorization`, granted by granter. 28777 description: 'Since: cosmos-sdk 0.46' 28778 operationId: GranterGrants 28779 responses: 28780 '200': 28781 description: A successful response. 28782 schema: 28783 type: object 28784 properties: 28785 grants: 28786 type: array 28787 items: 28788 type: object 28789 properties: 28790 granter: 28791 type: string 28792 grantee: 28793 type: string 28794 authorization: 28795 type: object 28796 properties: 28797 type_url: 28798 type: string 28799 description: >- 28800 A URL/resource name that uniquely identifies the 28801 type of the serialized 28802 28803 protocol buffer message. This string must contain at 28804 least 28805 28806 one "/" character. The last segment of the URL's 28807 path must represent 28808 28809 the fully qualified name of the type (as in 28810 28811 `path/google.protobuf.Duration`). The name should be 28812 in a canonical form 28813 28814 (e.g., leading "." is not accepted). 28815 28816 28817 In practice, teams usually precompile into the 28818 binary all types that they 28819 28820 expect it to use in the context of Any. However, for 28821 URLs which use the 28822 28823 scheme `http`, `https`, or no scheme, one can 28824 optionally set up a type 28825 28826 server that maps type URLs to message definitions as 28827 follows: 28828 28829 28830 * If no scheme is provided, `https` is assumed. 28831 28832 * An HTTP GET on the URL must yield a 28833 [google.protobuf.Type][] 28834 value in binary format, or produce an error. 28835 * Applications are allowed to cache lookup results 28836 based on the 28837 URL, or have them precompiled into a binary to avoid any 28838 lookup. Therefore, binary compatibility needs to be preserved 28839 on changes to types. (Use versioned type names to manage 28840 breaking changes.) 28841 28842 Note: this functionality is not currently available 28843 in the official 28844 28845 protobuf release, and it is not used for type URLs 28846 beginning with 28847 28848 type.googleapis.com. 28849 28850 28851 Schemes other than `http`, `https` (or the empty 28852 scheme) might be 28853 28854 used with implementation specific semantics. 28855 value: 28856 type: string 28857 format: byte 28858 description: >- 28859 Must be a valid serialized protocol buffer of the 28860 above specified type. 28861 description: >- 28862 `Any` contains an arbitrary serialized protocol buffer 28863 message along with a 28864 28865 URL that describes the type of the serialized message. 28866 28867 28868 Protobuf library provides support to pack/unpack Any 28869 values in the form 28870 28871 of utility functions or additional generated methods of 28872 the Any type. 28873 28874 28875 Example 1: Pack and unpack a message in C++. 28876 28877 Foo foo = ...; 28878 Any any; 28879 any.PackFrom(foo); 28880 ... 28881 if (any.UnpackTo(&foo)) { 28882 ... 28883 } 28884 28885 Example 2: Pack and unpack a message in Java. 28886 28887 Foo foo = ...; 28888 Any any = Any.pack(foo); 28889 ... 28890 if (any.is(Foo.class)) { 28891 foo = any.unpack(Foo.class); 28892 } 28893 // or ... 28894 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 28895 foo = any.unpack(Foo.getDefaultInstance()); 28896 } 28897 28898 Example 3: Pack and unpack a message in Python. 28899 28900 foo = Foo(...) 28901 any = Any() 28902 any.Pack(foo) 28903 ... 28904 if any.Is(Foo.DESCRIPTOR): 28905 any.Unpack(foo) 28906 ... 28907 28908 Example 4: Pack and unpack a message in Go 28909 28910 foo := &pb.Foo{...} 28911 any, err := anypb.New(foo) 28912 if err != nil { 28913 ... 28914 } 28915 ... 28916 foo := &pb.Foo{} 28917 if err := any.UnmarshalTo(foo); err != nil { 28918 ... 28919 } 28920 28921 The pack methods provided by protobuf library will by 28922 default use 28923 28924 'type.googleapis.com/full.type.name' as the type URL and 28925 the unpack 28926 28927 methods only use the fully qualified type name after the 28928 last '/' 28929 28930 in the type URL, for example "foo.bar.com/x/y.z" will 28931 yield type 28932 28933 name "y.z". 28934 28935 28936 JSON 28937 28938 28939 The JSON representation of an `Any` value uses the 28940 regular 28941 28942 representation of the deserialized, embedded message, 28943 with an 28944 28945 additional field `@type` which contains the type URL. 28946 Example: 28947 28948 package google.profile; 28949 message Person { 28950 string first_name = 1; 28951 string last_name = 2; 28952 } 28953 28954 { 28955 "@type": "type.googleapis.com/google.profile.Person", 28956 "firstName": <string>, 28957 "lastName": <string> 28958 } 28959 28960 If the embedded message type is well-known and has a 28961 custom JSON 28962 28963 representation, that representation will be embedded 28964 adding a field 28965 28966 `value` which holds the custom JSON in addition to the 28967 `@type` 28968 28969 field. Example (for message 28970 [google.protobuf.Duration][]): 28971 28972 { 28973 "@type": "type.googleapis.com/google.protobuf.Duration", 28974 "value": "1.212s" 28975 } 28976 expiration: 28977 type: string 28978 format: date-time 28979 title: >- 28980 GrantAuthorization extends a grant with both the addresses 28981 of the grantee and granter. 28982 28983 It is used in genesis.proto and query.proto 28984 description: grants is a list of grants granted by the granter. 28985 pagination: 28986 description: pagination defines an pagination for the response. 28987 type: object 28988 properties: 28989 next_key: 28990 type: string 28991 format: byte 28992 description: |- 28993 next_key is the key to be passed to PageRequest.key to 28994 query the next page most efficiently. It will be empty if 28995 there are no more results. 28996 total: 28997 type: string 28998 format: uint64 28999 title: >- 29000 total is total number of results available if 29001 PageRequest.count_total 29002 29003 was set, its value is undefined otherwise 29004 description: >- 29005 QueryGranterGrantsResponse is the response type for the 29006 Query/GranterGrants RPC method. 29007 default: 29008 description: An unexpected error response. 29009 schema: 29010 type: object 29011 properties: 29012 error: 29013 type: string 29014 code: 29015 type: integer 29016 format: int32 29017 message: 29018 type: string 29019 details: 29020 type: array 29021 items: 29022 type: object 29023 properties: 29024 type_url: 29025 type: string 29026 description: >- 29027 A URL/resource name that uniquely identifies the type of 29028 the serialized 29029 29030 protocol buffer message. This string must contain at 29031 least 29032 29033 one "/" character. The last segment of the URL's path 29034 must represent 29035 29036 the fully qualified name of the type (as in 29037 29038 `path/google.protobuf.Duration`). The name should be in 29039 a canonical form 29040 29041 (e.g., leading "." is not accepted). 29042 29043 29044 In practice, teams usually precompile into the binary 29045 all types that they 29046 29047 expect it to use in the context of Any. However, for 29048 URLs which use the 29049 29050 scheme `http`, `https`, or no scheme, one can optionally 29051 set up a type 29052 29053 server that maps type URLs to message definitions as 29054 follows: 29055 29056 29057 * If no scheme is provided, `https` is assumed. 29058 29059 * An HTTP GET on the URL must yield a 29060 [google.protobuf.Type][] 29061 value in binary format, or produce an error. 29062 * Applications are allowed to cache lookup results based 29063 on the 29064 URL, or have them precompiled into a binary to avoid any 29065 lookup. Therefore, binary compatibility needs to be preserved 29066 on changes to types. (Use versioned type names to manage 29067 breaking changes.) 29068 29069 Note: this functionality is not currently available in 29070 the official 29071 29072 protobuf release, and it is not used for type URLs 29073 beginning with 29074 29075 type.googleapis.com. 29076 29077 29078 Schemes other than `http`, `https` (or the empty scheme) 29079 might be 29080 29081 used with implementation specific semantics. 29082 value: 29083 type: string 29084 format: byte 29085 description: >- 29086 Must be a valid serialized protocol buffer of the above 29087 specified type. 29088 description: >- 29089 `Any` contains an arbitrary serialized protocol buffer 29090 message along with a 29091 29092 URL that describes the type of the serialized message. 29093 29094 29095 Protobuf library provides support to pack/unpack Any values 29096 in the form 29097 29098 of utility functions or additional generated methods of the 29099 Any type. 29100 29101 29102 Example 1: Pack and unpack a message in C++. 29103 29104 Foo foo = ...; 29105 Any any; 29106 any.PackFrom(foo); 29107 ... 29108 if (any.UnpackTo(&foo)) { 29109 ... 29110 } 29111 29112 Example 2: Pack and unpack a message in Java. 29113 29114 Foo foo = ...; 29115 Any any = Any.pack(foo); 29116 ... 29117 if (any.is(Foo.class)) { 29118 foo = any.unpack(Foo.class); 29119 } 29120 // or ... 29121 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 29122 foo = any.unpack(Foo.getDefaultInstance()); 29123 } 29124 29125 Example 3: Pack and unpack a message in Python. 29126 29127 foo = Foo(...) 29128 any = Any() 29129 any.Pack(foo) 29130 ... 29131 if any.Is(Foo.DESCRIPTOR): 29132 any.Unpack(foo) 29133 ... 29134 29135 Example 4: Pack and unpack a message in Go 29136 29137 foo := &pb.Foo{...} 29138 any, err := anypb.New(foo) 29139 if err != nil { 29140 ... 29141 } 29142 ... 29143 foo := &pb.Foo{} 29144 if err := any.UnmarshalTo(foo); err != nil { 29145 ... 29146 } 29147 29148 The pack methods provided by protobuf library will by 29149 default use 29150 29151 'type.googleapis.com/full.type.name' as the type URL and the 29152 unpack 29153 29154 methods only use the fully qualified type name after the 29155 last '/' 29156 29157 in the type URL, for example "foo.bar.com/x/y.z" will yield 29158 type 29159 29160 name "y.z". 29161 29162 29163 JSON 29164 29165 29166 The JSON representation of an `Any` value uses the regular 29167 29168 representation of the deserialized, embedded message, with 29169 an 29170 29171 additional field `@type` which contains the type URL. 29172 Example: 29173 29174 package google.profile; 29175 message Person { 29176 string first_name = 1; 29177 string last_name = 2; 29178 } 29179 29180 { 29181 "@type": "type.googleapis.com/google.profile.Person", 29182 "firstName": <string>, 29183 "lastName": <string> 29184 } 29185 29186 If the embedded message type is well-known and has a custom 29187 JSON 29188 29189 representation, that representation will be embedded adding 29190 a field 29191 29192 `value` which holds the custom JSON in addition to the 29193 `@type` 29194 29195 field. Example (for message [google.protobuf.Duration][]): 29196 29197 { 29198 "@type": "type.googleapis.com/google.protobuf.Duration", 29199 "value": "1.212s" 29200 } 29201 parameters: 29202 - name: granter 29203 in: path 29204 required: true 29205 type: string 29206 - name: pagination.key 29207 description: |- 29208 key is a value returned in PageResponse.next_key to begin 29209 querying the next page most efficiently. Only one of offset or key 29210 should be set. 29211 in: query 29212 required: false 29213 type: string 29214 format: byte 29215 - name: pagination.offset 29216 description: >- 29217 offset is a numeric offset that can be used when key is unavailable. 29218 29219 It is less efficient than using key. Only one of offset or key 29220 should 29221 29222 be set. 29223 in: query 29224 required: false 29225 type: string 29226 format: uint64 29227 - name: pagination.limit 29228 description: >- 29229 limit is the total number of results to be returned in the result 29230 page. 29231 29232 If left empty it will default to a value to be set by each app. 29233 in: query 29234 required: false 29235 type: string 29236 format: uint64 29237 - name: pagination.count_total 29238 description: >- 29239 count_total is set to true to indicate that the result set should 29240 include 29241 29242 a count of the total number of items available for pagination in 29243 UIs. 29244 29245 count_total is only respected when offset is used. It is ignored 29246 when key 29247 29248 is set. 29249 in: query 29250 required: false 29251 type: boolean 29252 - name: pagination.reverse 29253 description: >- 29254 reverse is set to true if results are to be returned in the 29255 descending order. 29256 29257 29258 Since: cosmos-sdk 0.43 29259 in: query 29260 required: false 29261 type: boolean 29262 tags: 29263 - Query 29264 /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: 29265 get: 29266 summary: Allowance returns granted allwance to the grantee by the granter. 29267 operationId: Allowance 29268 responses: 29269 '200': 29270 description: A successful response. 29271 schema: 29272 type: object 29273 properties: 29274 allowance: 29275 description: allowance is a allowance granted for grantee by granter. 29276 type: object 29277 properties: 29278 granter: 29279 type: string 29280 description: >- 29281 granter is the address of the user granting an allowance 29282 of their funds. 29283 grantee: 29284 type: string 29285 description: >- 29286 grantee is the address of the user being granted an 29287 allowance of another user's funds. 29288 allowance: 29289 description: >- 29290 allowance can be any of basic, periodic, allowed fee 29291 allowance. 29292 type: object 29293 properties: 29294 type_url: 29295 type: string 29296 description: >- 29297 A URL/resource name that uniquely identifies the type 29298 of the serialized 29299 29300 protocol buffer message. This string must contain at 29301 least 29302 29303 one "/" character. The last segment of the URL's path 29304 must represent 29305 29306 the fully qualified name of the type (as in 29307 29308 `path/google.protobuf.Duration`). The name should be 29309 in a canonical form 29310 29311 (e.g., leading "." is not accepted). 29312 29313 29314 In practice, teams usually precompile into the binary 29315 all types that they 29316 29317 expect it to use in the context of Any. However, for 29318 URLs which use the 29319 29320 scheme `http`, `https`, or no scheme, one can 29321 optionally set up a type 29322 29323 server that maps type URLs to message definitions as 29324 follows: 29325 29326 29327 * If no scheme is provided, `https` is assumed. 29328 29329 * An HTTP GET on the URL must yield a 29330 [google.protobuf.Type][] 29331 value in binary format, or produce an error. 29332 * Applications are allowed to cache lookup results 29333 based on the 29334 URL, or have them precompiled into a binary to avoid any 29335 lookup. Therefore, binary compatibility needs to be preserved 29336 on changes to types. (Use versioned type names to manage 29337 breaking changes.) 29338 29339 Note: this functionality is not currently available in 29340 the official 29341 29342 protobuf release, and it is not used for type URLs 29343 beginning with 29344 29345 type.googleapis.com. 29346 29347 29348 Schemes other than `http`, `https` (or the empty 29349 scheme) might be 29350 29351 used with implementation specific semantics. 29352 value: 29353 type: string 29354 format: byte 29355 description: >- 29356 Must be a valid serialized protocol buffer of the 29357 above specified type. 29358 title: >- 29359 Grant is stored in the KVStore to record a grant with full 29360 context 29361 description: >- 29362 QueryAllowanceResponse is the response type for the 29363 Query/Allowance RPC method. 29364 default: 29365 description: An unexpected error response. 29366 schema: 29367 type: object 29368 properties: 29369 error: 29370 type: string 29371 code: 29372 type: integer 29373 format: int32 29374 message: 29375 type: string 29376 details: 29377 type: array 29378 items: 29379 type: object 29380 properties: 29381 type_url: 29382 type: string 29383 description: >- 29384 A URL/resource name that uniquely identifies the type of 29385 the serialized 29386 29387 protocol buffer message. This string must contain at 29388 least 29389 29390 one "/" character. The last segment of the URL's path 29391 must represent 29392 29393 the fully qualified name of the type (as in 29394 29395 `path/google.protobuf.Duration`). The name should be in 29396 a canonical form 29397 29398 (e.g., leading "." is not accepted). 29399 29400 29401 In practice, teams usually precompile into the binary 29402 all types that they 29403 29404 expect it to use in the context of Any. However, for 29405 URLs which use the 29406 29407 scheme `http`, `https`, or no scheme, one can optionally 29408 set up a type 29409 29410 server that maps type URLs to message definitions as 29411 follows: 29412 29413 29414 * If no scheme is provided, `https` is assumed. 29415 29416 * An HTTP GET on the URL must yield a 29417 [google.protobuf.Type][] 29418 value in binary format, or produce an error. 29419 * Applications are allowed to cache lookup results based 29420 on the 29421 URL, or have them precompiled into a binary to avoid any 29422 lookup. Therefore, binary compatibility needs to be preserved 29423 on changes to types. (Use versioned type names to manage 29424 breaking changes.) 29425 29426 Note: this functionality is not currently available in 29427 the official 29428 29429 protobuf release, and it is not used for type URLs 29430 beginning with 29431 29432 type.googleapis.com. 29433 29434 29435 Schemes other than `http`, `https` (or the empty scheme) 29436 might be 29437 29438 used with implementation specific semantics. 29439 value: 29440 type: string 29441 format: byte 29442 description: >- 29443 Must be a valid serialized protocol buffer of the above 29444 specified type. 29445 description: >- 29446 `Any` contains an arbitrary serialized protocol buffer 29447 message along with a 29448 29449 URL that describes the type of the serialized message. 29450 29451 29452 Protobuf library provides support to pack/unpack Any values 29453 in the form 29454 29455 of utility functions or additional generated methods of the 29456 Any type. 29457 29458 29459 Example 1: Pack and unpack a message in C++. 29460 29461 Foo foo = ...; 29462 Any any; 29463 any.PackFrom(foo); 29464 ... 29465 if (any.UnpackTo(&foo)) { 29466 ... 29467 } 29468 29469 Example 2: Pack and unpack a message in Java. 29470 29471 Foo foo = ...; 29472 Any any = Any.pack(foo); 29473 ... 29474 if (any.is(Foo.class)) { 29475 foo = any.unpack(Foo.class); 29476 } 29477 // or ... 29478 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 29479 foo = any.unpack(Foo.getDefaultInstance()); 29480 } 29481 29482 Example 3: Pack and unpack a message in Python. 29483 29484 foo = Foo(...) 29485 any = Any() 29486 any.Pack(foo) 29487 ... 29488 if any.Is(Foo.DESCRIPTOR): 29489 any.Unpack(foo) 29490 ... 29491 29492 Example 4: Pack and unpack a message in Go 29493 29494 foo := &pb.Foo{...} 29495 any, err := anypb.New(foo) 29496 if err != nil { 29497 ... 29498 } 29499 ... 29500 foo := &pb.Foo{} 29501 if err := any.UnmarshalTo(foo); err != nil { 29502 ... 29503 } 29504 29505 The pack methods provided by protobuf library will by 29506 default use 29507 29508 'type.googleapis.com/full.type.name' as the type URL and the 29509 unpack 29510 29511 methods only use the fully qualified type name after the 29512 last '/' 29513 29514 in the type URL, for example "foo.bar.com/x/y.z" will yield 29515 type 29516 29517 name "y.z". 29518 29519 29520 JSON 29521 29522 29523 The JSON representation of an `Any` value uses the regular 29524 29525 representation of the deserialized, embedded message, with 29526 an 29527 29528 additional field `@type` which contains the type URL. 29529 Example: 29530 29531 package google.profile; 29532 message Person { 29533 string first_name = 1; 29534 string last_name = 2; 29535 } 29536 29537 { 29538 "@type": "type.googleapis.com/google.profile.Person", 29539 "firstName": <string>, 29540 "lastName": <string> 29541 } 29542 29543 If the embedded message type is well-known and has a custom 29544 JSON 29545 29546 representation, that representation will be embedded adding 29547 a field 29548 29549 `value` which holds the custom JSON in addition to the 29550 `@type` 29551 29552 field. Example (for message [google.protobuf.Duration][]): 29553 29554 { 29555 "@type": "type.googleapis.com/google.protobuf.Duration", 29556 "value": "1.212s" 29557 } 29558 parameters: 29559 - name: granter 29560 description: >- 29561 granter is the address of the user granting an allowance of their 29562 funds. 29563 in: path 29564 required: true 29565 type: string 29566 - name: grantee 29567 description: >- 29568 grantee is the address of the user being granted an allowance of 29569 another user's funds. 29570 in: path 29571 required: true 29572 type: string 29573 tags: 29574 - Query 29575 /cosmos/feegrant/v1beta1/allowances/{grantee}: 29576 get: 29577 summary: Allowances returns all the grants for the given grantee address. 29578 operationId: Allowances 29579 responses: 29580 '200': 29581 description: A successful response. 29582 schema: 29583 type: object 29584 properties: 29585 allowances: 29586 type: array 29587 items: 29588 type: object 29589 properties: 29590 granter: 29591 type: string 29592 description: >- 29593 granter is the address of the user granting an allowance 29594 of their funds. 29595 grantee: 29596 type: string 29597 description: >- 29598 grantee is the address of the user being granted an 29599 allowance of another user's funds. 29600 allowance: 29601 description: >- 29602 allowance can be any of basic, periodic, allowed fee 29603 allowance. 29604 type: object 29605 properties: 29606 type_url: 29607 type: string 29608 description: >- 29609 A URL/resource name that uniquely identifies the 29610 type of the serialized 29611 29612 protocol buffer message. This string must contain at 29613 least 29614 29615 one "/" character. The last segment of the URL's 29616 path must represent 29617 29618 the fully qualified name of the type (as in 29619 29620 `path/google.protobuf.Duration`). The name should be 29621 in a canonical form 29622 29623 (e.g., leading "." is not accepted). 29624 29625 29626 In practice, teams usually precompile into the 29627 binary all types that they 29628 29629 expect it to use in the context of Any. However, for 29630 URLs which use the 29631 29632 scheme `http`, `https`, or no scheme, one can 29633 optionally set up a type 29634 29635 server that maps type URLs to message definitions as 29636 follows: 29637 29638 29639 * If no scheme is provided, `https` is assumed. 29640 29641 * An HTTP GET on the URL must yield a 29642 [google.protobuf.Type][] 29643 value in binary format, or produce an error. 29644 * Applications are allowed to cache lookup results 29645 based on the 29646 URL, or have them precompiled into a binary to avoid any 29647 lookup. Therefore, binary compatibility needs to be preserved 29648 on changes to types. (Use versioned type names to manage 29649 breaking changes.) 29650 29651 Note: this functionality is not currently available 29652 in the official 29653 29654 protobuf release, and it is not used for type URLs 29655 beginning with 29656 29657 type.googleapis.com. 29658 29659 29660 Schemes other than `http`, `https` (or the empty 29661 scheme) might be 29662 29663 used with implementation specific semantics. 29664 value: 29665 type: string 29666 format: byte 29667 description: >- 29668 Must be a valid serialized protocol buffer of the 29669 above specified type. 29670 title: >- 29671 Grant is stored in the KVStore to record a grant with full 29672 context 29673 description: allowances are allowance's granted for grantee by granter. 29674 pagination: 29675 description: pagination defines an pagination for the response. 29676 type: object 29677 properties: 29678 next_key: 29679 type: string 29680 format: byte 29681 description: |- 29682 next_key is the key to be passed to PageRequest.key to 29683 query the next page most efficiently. It will be empty if 29684 there are no more results. 29685 total: 29686 type: string 29687 format: uint64 29688 title: >- 29689 total is total number of results available if 29690 PageRequest.count_total 29691 29692 was set, its value is undefined otherwise 29693 description: >- 29694 QueryAllowancesResponse is the response type for the 29695 Query/Allowances RPC method. 29696 default: 29697 description: An unexpected error response. 29698 schema: 29699 type: object 29700 properties: 29701 error: 29702 type: string 29703 code: 29704 type: integer 29705 format: int32 29706 message: 29707 type: string 29708 details: 29709 type: array 29710 items: 29711 type: object 29712 properties: 29713 type_url: 29714 type: string 29715 description: >- 29716 A URL/resource name that uniquely identifies the type of 29717 the serialized 29718 29719 protocol buffer message. This string must contain at 29720 least 29721 29722 one "/" character. The last segment of the URL's path 29723 must represent 29724 29725 the fully qualified name of the type (as in 29726 29727 `path/google.protobuf.Duration`). The name should be in 29728 a canonical form 29729 29730 (e.g., leading "." is not accepted). 29731 29732 29733 In practice, teams usually precompile into the binary 29734 all types that they 29735 29736 expect it to use in the context of Any. However, for 29737 URLs which use the 29738 29739 scheme `http`, `https`, or no scheme, one can optionally 29740 set up a type 29741 29742 server that maps type URLs to message definitions as 29743 follows: 29744 29745 29746 * If no scheme is provided, `https` is assumed. 29747 29748 * An HTTP GET on the URL must yield a 29749 [google.protobuf.Type][] 29750 value in binary format, or produce an error. 29751 * Applications are allowed to cache lookup results based 29752 on the 29753 URL, or have them precompiled into a binary to avoid any 29754 lookup. Therefore, binary compatibility needs to be preserved 29755 on changes to types. (Use versioned type names to manage 29756 breaking changes.) 29757 29758 Note: this functionality is not currently available in 29759 the official 29760 29761 protobuf release, and it is not used for type URLs 29762 beginning with 29763 29764 type.googleapis.com. 29765 29766 29767 Schemes other than `http`, `https` (or the empty scheme) 29768 might be 29769 29770 used with implementation specific semantics. 29771 value: 29772 type: string 29773 format: byte 29774 description: >- 29775 Must be a valid serialized protocol buffer of the above 29776 specified type. 29777 description: >- 29778 `Any` contains an arbitrary serialized protocol buffer 29779 message along with a 29780 29781 URL that describes the type of the serialized message. 29782 29783 29784 Protobuf library provides support to pack/unpack Any values 29785 in the form 29786 29787 of utility functions or additional generated methods of the 29788 Any type. 29789 29790 29791 Example 1: Pack and unpack a message in C++. 29792 29793 Foo foo = ...; 29794 Any any; 29795 any.PackFrom(foo); 29796 ... 29797 if (any.UnpackTo(&foo)) { 29798 ... 29799 } 29800 29801 Example 2: Pack and unpack a message in Java. 29802 29803 Foo foo = ...; 29804 Any any = Any.pack(foo); 29805 ... 29806 if (any.is(Foo.class)) { 29807 foo = any.unpack(Foo.class); 29808 } 29809 // or ... 29810 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 29811 foo = any.unpack(Foo.getDefaultInstance()); 29812 } 29813 29814 Example 3: Pack and unpack a message in Python. 29815 29816 foo = Foo(...) 29817 any = Any() 29818 any.Pack(foo) 29819 ... 29820 if any.Is(Foo.DESCRIPTOR): 29821 any.Unpack(foo) 29822 ... 29823 29824 Example 4: Pack and unpack a message in Go 29825 29826 foo := &pb.Foo{...} 29827 any, err := anypb.New(foo) 29828 if err != nil { 29829 ... 29830 } 29831 ... 29832 foo := &pb.Foo{} 29833 if err := any.UnmarshalTo(foo); err != nil { 29834 ... 29835 } 29836 29837 The pack methods provided by protobuf library will by 29838 default use 29839 29840 'type.googleapis.com/full.type.name' as the type URL and the 29841 unpack 29842 29843 methods only use the fully qualified type name after the 29844 last '/' 29845 29846 in the type URL, for example "foo.bar.com/x/y.z" will yield 29847 type 29848 29849 name "y.z". 29850 29851 29852 JSON 29853 29854 29855 The JSON representation of an `Any` value uses the regular 29856 29857 representation of the deserialized, embedded message, with 29858 an 29859 29860 additional field `@type` which contains the type URL. 29861 Example: 29862 29863 package google.profile; 29864 message Person { 29865 string first_name = 1; 29866 string last_name = 2; 29867 } 29868 29869 { 29870 "@type": "type.googleapis.com/google.profile.Person", 29871 "firstName": <string>, 29872 "lastName": <string> 29873 } 29874 29875 If the embedded message type is well-known and has a custom 29876 JSON 29877 29878 representation, that representation will be embedded adding 29879 a field 29880 29881 `value` which holds the custom JSON in addition to the 29882 `@type` 29883 29884 field. Example (for message [google.protobuf.Duration][]): 29885 29886 { 29887 "@type": "type.googleapis.com/google.protobuf.Duration", 29888 "value": "1.212s" 29889 } 29890 parameters: 29891 - name: grantee 29892 in: path 29893 required: true 29894 type: string 29895 - name: pagination.key 29896 description: |- 29897 key is a value returned in PageResponse.next_key to begin 29898 querying the next page most efficiently. Only one of offset or key 29899 should be set. 29900 in: query 29901 required: false 29902 type: string 29903 format: byte 29904 - name: pagination.offset 29905 description: >- 29906 offset is a numeric offset that can be used when key is unavailable. 29907 29908 It is less efficient than using key. Only one of offset or key 29909 should 29910 29911 be set. 29912 in: query 29913 required: false 29914 type: string 29915 format: uint64 29916 - name: pagination.limit 29917 description: >- 29918 limit is the total number of results to be returned in the result 29919 page. 29920 29921 If left empty it will default to a value to be set by each app. 29922 in: query 29923 required: false 29924 type: string 29925 format: uint64 29926 - name: pagination.count_total 29927 description: >- 29928 count_total is set to true to indicate that the result set should 29929 include 29930 29931 a count of the total number of items available for pagination in 29932 UIs. 29933 29934 count_total is only respected when offset is used. It is ignored 29935 when key 29936 29937 is set. 29938 in: query 29939 required: false 29940 type: boolean 29941 - name: pagination.reverse 29942 description: >- 29943 reverse is set to true if results are to be returned in the 29944 descending order. 29945 29946 29947 Since: cosmos-sdk 0.43 29948 in: query 29949 required: false 29950 type: boolean 29951 tags: 29952 - Query 29953 /cosmos/feegrant/v1beta1/issued/{granter}: 29954 get: 29955 summary: AllowancesByGranter returns all the grants given by an address 29956 description: 'Since: cosmos-sdk 0.46' 29957 operationId: AllowancesByGranter 29958 responses: 29959 '200': 29960 description: A successful response. 29961 schema: 29962 type: object 29963 properties: 29964 allowances: 29965 type: array 29966 items: 29967 type: object 29968 properties: 29969 granter: 29970 type: string 29971 description: >- 29972 granter is the address of the user granting an allowance 29973 of their funds. 29974 grantee: 29975 type: string 29976 description: >- 29977 grantee is the address of the user being granted an 29978 allowance of another user's funds. 29979 allowance: 29980 description: >- 29981 allowance can be any of basic, periodic, allowed fee 29982 allowance. 29983 type: object 29984 properties: 29985 type_url: 29986 type: string 29987 description: >- 29988 A URL/resource name that uniquely identifies the 29989 type of the serialized 29990 29991 protocol buffer message. This string must contain at 29992 least 29993 29994 one "/" character. The last segment of the URL's 29995 path must represent 29996 29997 the fully qualified name of the type (as in 29998 29999 `path/google.protobuf.Duration`). The name should be 30000 in a canonical form 30001 30002 (e.g., leading "." is not accepted). 30003 30004 30005 In practice, teams usually precompile into the 30006 binary all types that they 30007 30008 expect it to use in the context of Any. However, for 30009 URLs which use the 30010 30011 scheme `http`, `https`, or no scheme, one can 30012 optionally set up a type 30013 30014 server that maps type URLs to message definitions as 30015 follows: 30016 30017 30018 * If no scheme is provided, `https` is assumed. 30019 30020 * An HTTP GET on the URL must yield a 30021 [google.protobuf.Type][] 30022 value in binary format, or produce an error. 30023 * Applications are allowed to cache lookup results 30024 based on the 30025 URL, or have them precompiled into a binary to avoid any 30026 lookup. Therefore, binary compatibility needs to be preserved 30027 on changes to types. (Use versioned type names to manage 30028 breaking changes.) 30029 30030 Note: this functionality is not currently available 30031 in the official 30032 30033 protobuf release, and it is not used for type URLs 30034 beginning with 30035 30036 type.googleapis.com. 30037 30038 30039 Schemes other than `http`, `https` (or the empty 30040 scheme) might be 30041 30042 used with implementation specific semantics. 30043 value: 30044 type: string 30045 format: byte 30046 description: >- 30047 Must be a valid serialized protocol buffer of the 30048 above specified type. 30049 title: >- 30050 Grant is stored in the KVStore to record a grant with full 30051 context 30052 description: allowances that have been issued by the granter. 30053 pagination: 30054 description: pagination defines an pagination for the response. 30055 type: object 30056 properties: 30057 next_key: 30058 type: string 30059 format: byte 30060 description: |- 30061 next_key is the key to be passed to PageRequest.key to 30062 query the next page most efficiently. It will be empty if 30063 there are no more results. 30064 total: 30065 type: string 30066 format: uint64 30067 title: >- 30068 total is total number of results available if 30069 PageRequest.count_total 30070 30071 was set, its value is undefined otherwise 30072 description: >- 30073 QueryAllowancesByGranterResponse is the response type for the 30074 Query/AllowancesByGranter RPC method. 30075 30076 30077 Since: cosmos-sdk 0.46 30078 default: 30079 description: An unexpected error response. 30080 schema: 30081 type: object 30082 properties: 30083 error: 30084 type: string 30085 code: 30086 type: integer 30087 format: int32 30088 message: 30089 type: string 30090 details: 30091 type: array 30092 items: 30093 type: object 30094 properties: 30095 type_url: 30096 type: string 30097 description: >- 30098 A URL/resource name that uniquely identifies the type of 30099 the serialized 30100 30101 protocol buffer message. This string must contain at 30102 least 30103 30104 one "/" character. The last segment of the URL's path 30105 must represent 30106 30107 the fully qualified name of the type (as in 30108 30109 `path/google.protobuf.Duration`). The name should be in 30110 a canonical form 30111 30112 (e.g., leading "." is not accepted). 30113 30114 30115 In practice, teams usually precompile into the binary 30116 all types that they 30117 30118 expect it to use in the context of Any. However, for 30119 URLs which use the 30120 30121 scheme `http`, `https`, or no scheme, one can optionally 30122 set up a type 30123 30124 server that maps type URLs to message definitions as 30125 follows: 30126 30127 30128 * If no scheme is provided, `https` is assumed. 30129 30130 * An HTTP GET on the URL must yield a 30131 [google.protobuf.Type][] 30132 value in binary format, or produce an error. 30133 * Applications are allowed to cache lookup results based 30134 on the 30135 URL, or have them precompiled into a binary to avoid any 30136 lookup. Therefore, binary compatibility needs to be preserved 30137 on changes to types. (Use versioned type names to manage 30138 breaking changes.) 30139 30140 Note: this functionality is not currently available in 30141 the official 30142 30143 protobuf release, and it is not used for type URLs 30144 beginning with 30145 30146 type.googleapis.com. 30147 30148 30149 Schemes other than `http`, `https` (or the empty scheme) 30150 might be 30151 30152 used with implementation specific semantics. 30153 value: 30154 type: string 30155 format: byte 30156 description: >- 30157 Must be a valid serialized protocol buffer of the above 30158 specified type. 30159 description: >- 30160 `Any` contains an arbitrary serialized protocol buffer 30161 message along with a 30162 30163 URL that describes the type of the serialized message. 30164 30165 30166 Protobuf library provides support to pack/unpack Any values 30167 in the form 30168 30169 of utility functions or additional generated methods of the 30170 Any type. 30171 30172 30173 Example 1: Pack and unpack a message in C++. 30174 30175 Foo foo = ...; 30176 Any any; 30177 any.PackFrom(foo); 30178 ... 30179 if (any.UnpackTo(&foo)) { 30180 ... 30181 } 30182 30183 Example 2: Pack and unpack a message in Java. 30184 30185 Foo foo = ...; 30186 Any any = Any.pack(foo); 30187 ... 30188 if (any.is(Foo.class)) { 30189 foo = any.unpack(Foo.class); 30190 } 30191 // or ... 30192 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 30193 foo = any.unpack(Foo.getDefaultInstance()); 30194 } 30195 30196 Example 3: Pack and unpack a message in Python. 30197 30198 foo = Foo(...) 30199 any = Any() 30200 any.Pack(foo) 30201 ... 30202 if any.Is(Foo.DESCRIPTOR): 30203 any.Unpack(foo) 30204 ... 30205 30206 Example 4: Pack and unpack a message in Go 30207 30208 foo := &pb.Foo{...} 30209 any, err := anypb.New(foo) 30210 if err != nil { 30211 ... 30212 } 30213 ... 30214 foo := &pb.Foo{} 30215 if err := any.UnmarshalTo(foo); err != nil { 30216 ... 30217 } 30218 30219 The pack methods provided by protobuf library will by 30220 default use 30221 30222 'type.googleapis.com/full.type.name' as the type URL and the 30223 unpack 30224 30225 methods only use the fully qualified type name after the 30226 last '/' 30227 30228 in the type URL, for example "foo.bar.com/x/y.z" will yield 30229 type 30230 30231 name "y.z". 30232 30233 30234 JSON 30235 30236 30237 The JSON representation of an `Any` value uses the regular 30238 30239 representation of the deserialized, embedded message, with 30240 an 30241 30242 additional field `@type` which contains the type URL. 30243 Example: 30244 30245 package google.profile; 30246 message Person { 30247 string first_name = 1; 30248 string last_name = 2; 30249 } 30250 30251 { 30252 "@type": "type.googleapis.com/google.profile.Person", 30253 "firstName": <string>, 30254 "lastName": <string> 30255 } 30256 30257 If the embedded message type is well-known and has a custom 30258 JSON 30259 30260 representation, that representation will be embedded adding 30261 a field 30262 30263 `value` which holds the custom JSON in addition to the 30264 `@type` 30265 30266 field. Example (for message [google.protobuf.Duration][]): 30267 30268 { 30269 "@type": "type.googleapis.com/google.protobuf.Duration", 30270 "value": "1.212s" 30271 } 30272 parameters: 30273 - name: granter 30274 in: path 30275 required: true 30276 type: string 30277 - name: pagination.key 30278 description: |- 30279 key is a value returned in PageResponse.next_key to begin 30280 querying the next page most efficiently. Only one of offset or key 30281 should be set. 30282 in: query 30283 required: false 30284 type: string 30285 format: byte 30286 - name: pagination.offset 30287 description: >- 30288 offset is a numeric offset that can be used when key is unavailable. 30289 30290 It is less efficient than using key. Only one of offset or key 30291 should 30292 30293 be set. 30294 in: query 30295 required: false 30296 type: string 30297 format: uint64 30298 - name: pagination.limit 30299 description: >- 30300 limit is the total number of results to be returned in the result 30301 page. 30302 30303 If left empty it will default to a value to be set by each app. 30304 in: query 30305 required: false 30306 type: string 30307 format: uint64 30308 - name: pagination.count_total 30309 description: >- 30310 count_total is set to true to indicate that the result set should 30311 include 30312 30313 a count of the total number of items available for pagination in 30314 UIs. 30315 30316 count_total is only respected when offset is used. It is ignored 30317 when key 30318 30319 is set. 30320 in: query 30321 required: false 30322 type: boolean 30323 - name: pagination.reverse 30324 description: >- 30325 reverse is set to true if results are to be returned in the 30326 descending order. 30327 30328 30329 Since: cosmos-sdk 0.43 30330 in: query 30331 required: false 30332 type: boolean 30333 tags: 30334 - Query 30335 /cosmos/nft/v1beta1/balance/{owner}/{class_id}: 30336 get: 30337 summary: >- 30338 Balance queries the number of NFTs of a given class owned by the owner, 30339 same as balanceOf in ERC721 30340 operationId: NftBalance 30341 responses: 30342 '200': 30343 description: A successful response. 30344 schema: 30345 type: object 30346 properties: 30347 amount: 30348 type: string 30349 format: uint64 30350 title: >- 30351 amount is the number of all NFTs of a given class owned by the 30352 owner 30353 title: >- 30354 QueryBalanceResponse is the response type for the Query/Balance 30355 RPC method 30356 default: 30357 description: An unexpected error response. 30358 schema: 30359 type: object 30360 properties: 30361 error: 30362 type: string 30363 code: 30364 type: integer 30365 format: int32 30366 message: 30367 type: string 30368 details: 30369 type: array 30370 items: 30371 type: object 30372 properties: 30373 type_url: 30374 type: string 30375 description: >- 30376 A URL/resource name that uniquely identifies the type of 30377 the serialized 30378 30379 protocol buffer message. This string must contain at 30380 least 30381 30382 one "/" character. The last segment of the URL's path 30383 must represent 30384 30385 the fully qualified name of the type (as in 30386 30387 `path/google.protobuf.Duration`). The name should be in 30388 a canonical form 30389 30390 (e.g., leading "." is not accepted). 30391 30392 30393 In practice, teams usually precompile into the binary 30394 all types that they 30395 30396 expect it to use in the context of Any. However, for 30397 URLs which use the 30398 30399 scheme `http`, `https`, or no scheme, one can optionally 30400 set up a type 30401 30402 server that maps type URLs to message definitions as 30403 follows: 30404 30405 30406 * If no scheme is provided, `https` is assumed. 30407 30408 * An HTTP GET on the URL must yield a 30409 [google.protobuf.Type][] 30410 value in binary format, or produce an error. 30411 * Applications are allowed to cache lookup results based 30412 on the 30413 URL, or have them precompiled into a binary to avoid any 30414 lookup. Therefore, binary compatibility needs to be preserved 30415 on changes to types. (Use versioned type names to manage 30416 breaking changes.) 30417 30418 Note: this functionality is not currently available in 30419 the official 30420 30421 protobuf release, and it is not used for type URLs 30422 beginning with 30423 30424 type.googleapis.com. 30425 30426 30427 Schemes other than `http`, `https` (or the empty scheme) 30428 might be 30429 30430 used with implementation specific semantics. 30431 value: 30432 type: string 30433 format: byte 30434 description: >- 30435 Must be a valid serialized protocol buffer of the above 30436 specified type. 30437 description: >- 30438 `Any` contains an arbitrary serialized protocol buffer 30439 message along with a 30440 30441 URL that describes the type of the serialized message. 30442 30443 30444 Protobuf library provides support to pack/unpack Any values 30445 in the form 30446 30447 of utility functions or additional generated methods of the 30448 Any type. 30449 30450 30451 Example 1: Pack and unpack a message in C++. 30452 30453 Foo foo = ...; 30454 Any any; 30455 any.PackFrom(foo); 30456 ... 30457 if (any.UnpackTo(&foo)) { 30458 ... 30459 } 30460 30461 Example 2: Pack and unpack a message in Java. 30462 30463 Foo foo = ...; 30464 Any any = Any.pack(foo); 30465 ... 30466 if (any.is(Foo.class)) { 30467 foo = any.unpack(Foo.class); 30468 } 30469 // or ... 30470 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 30471 foo = any.unpack(Foo.getDefaultInstance()); 30472 } 30473 30474 Example 3: Pack and unpack a message in Python. 30475 30476 foo = Foo(...) 30477 any = Any() 30478 any.Pack(foo) 30479 ... 30480 if any.Is(Foo.DESCRIPTOR): 30481 any.Unpack(foo) 30482 ... 30483 30484 Example 4: Pack and unpack a message in Go 30485 30486 foo := &pb.Foo{...} 30487 any, err := anypb.New(foo) 30488 if err != nil { 30489 ... 30490 } 30491 ... 30492 foo := &pb.Foo{} 30493 if err := any.UnmarshalTo(foo); err != nil { 30494 ... 30495 } 30496 30497 The pack methods provided by protobuf library will by 30498 default use 30499 30500 'type.googleapis.com/full.type.name' as the type URL and the 30501 unpack 30502 30503 methods only use the fully qualified type name after the 30504 last '/' 30505 30506 in the type URL, for example "foo.bar.com/x/y.z" will yield 30507 type 30508 30509 name "y.z". 30510 30511 30512 JSON 30513 30514 30515 The JSON representation of an `Any` value uses the regular 30516 30517 representation of the deserialized, embedded message, with 30518 an 30519 30520 additional field `@type` which contains the type URL. 30521 Example: 30522 30523 package google.profile; 30524 message Person { 30525 string first_name = 1; 30526 string last_name = 2; 30527 } 30528 30529 { 30530 "@type": "type.googleapis.com/google.profile.Person", 30531 "firstName": <string>, 30532 "lastName": <string> 30533 } 30534 30535 If the embedded message type is well-known and has a custom 30536 JSON 30537 30538 representation, that representation will be embedded adding 30539 a field 30540 30541 `value` which holds the custom JSON in addition to the 30542 `@type` 30543 30544 field. Example (for message [google.protobuf.Duration][]): 30545 30546 { 30547 "@type": "type.googleapis.com/google.protobuf.Duration", 30548 "value": "1.212s" 30549 } 30550 parameters: 30551 - name: owner 30552 description: owner is the owner address of the nft 30553 in: path 30554 required: true 30555 type: string 30556 - name: class_id 30557 description: class_id associated with the nft 30558 in: path 30559 required: true 30560 type: string 30561 tags: 30562 - Query 30563 /cosmos/nft/v1beta1/classes: 30564 get: 30565 summary: Classes queries all NFT classes 30566 operationId: Classes 30567 responses: 30568 '200': 30569 description: A successful response. 30570 schema: 30571 type: object 30572 properties: 30573 classes: 30574 type: array 30575 items: 30576 type: object 30577 properties: 30578 id: 30579 type: string 30580 title: >- 30581 id defines the unique identifier of the NFT 30582 classification, similar to the contract address of 30583 ERC721 30584 name: 30585 type: string 30586 title: >- 30587 name defines the human-readable name of the NFT 30588 classification. Optional 30589 symbol: 30590 type: string 30591 title: >- 30592 symbol is an abbreviated name for nft classification. 30593 Optional 30594 description: 30595 type: string 30596 title: >- 30597 description is a brief description of nft 30598 classification. Optional 30599 uri: 30600 type: string 30601 title: >- 30602 uri for the class metadata stored off chain. It can 30603 define schema for Class and NFT `Data` attributes. 30604 Optional 30605 uri_hash: 30606 type: string 30607 title: >- 30608 uri_hash is a hash of the document pointed by uri. 30609 Optional 30610 data: 30611 type: object 30612 properties: 30613 type_url: 30614 type: string 30615 description: >- 30616 A URL/resource name that uniquely identifies the 30617 type of the serialized 30618 30619 protocol buffer message. This string must contain at 30620 least 30621 30622 one "/" character. The last segment of the URL's 30623 path must represent 30624 30625 the fully qualified name of the type (as in 30626 30627 `path/google.protobuf.Duration`). The name should be 30628 in a canonical form 30629 30630 (e.g., leading "." is not accepted). 30631 30632 30633 In practice, teams usually precompile into the 30634 binary all types that they 30635 30636 expect it to use in the context of Any. However, for 30637 URLs which use the 30638 30639 scheme `http`, `https`, or no scheme, one can 30640 optionally set up a type 30641 30642 server that maps type URLs to message definitions as 30643 follows: 30644 30645 30646 * If no scheme is provided, `https` is assumed. 30647 30648 * An HTTP GET on the URL must yield a 30649 [google.protobuf.Type][] 30650 value in binary format, or produce an error. 30651 * Applications are allowed to cache lookup results 30652 based on the 30653 URL, or have them precompiled into a binary to avoid any 30654 lookup. Therefore, binary compatibility needs to be preserved 30655 on changes to types. (Use versioned type names to manage 30656 breaking changes.) 30657 30658 Note: this functionality is not currently available 30659 in the official 30660 30661 protobuf release, and it is not used for type URLs 30662 beginning with 30663 30664 type.googleapis.com. 30665 30666 30667 Schemes other than `http`, `https` (or the empty 30668 scheme) might be 30669 30670 used with implementation specific semantics. 30671 value: 30672 type: string 30673 format: byte 30674 description: >- 30675 Must be a valid serialized protocol buffer of the 30676 above specified type. 30677 description: >- 30678 `Any` contains an arbitrary serialized protocol buffer 30679 message along with a 30680 30681 URL that describes the type of the serialized message. 30682 30683 30684 Protobuf library provides support to pack/unpack Any 30685 values in the form 30686 30687 of utility functions or additional generated methods of 30688 the Any type. 30689 30690 30691 Example 1: Pack and unpack a message in C++. 30692 30693 Foo foo = ...; 30694 Any any; 30695 any.PackFrom(foo); 30696 ... 30697 if (any.UnpackTo(&foo)) { 30698 ... 30699 } 30700 30701 Example 2: Pack and unpack a message in Java. 30702 30703 Foo foo = ...; 30704 Any any = Any.pack(foo); 30705 ... 30706 if (any.is(Foo.class)) { 30707 foo = any.unpack(Foo.class); 30708 } 30709 // or ... 30710 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 30711 foo = any.unpack(Foo.getDefaultInstance()); 30712 } 30713 30714 Example 3: Pack and unpack a message in Python. 30715 30716 foo = Foo(...) 30717 any = Any() 30718 any.Pack(foo) 30719 ... 30720 if any.Is(Foo.DESCRIPTOR): 30721 any.Unpack(foo) 30722 ... 30723 30724 Example 4: Pack and unpack a message in Go 30725 30726 foo := &pb.Foo{...} 30727 any, err := anypb.New(foo) 30728 if err != nil { 30729 ... 30730 } 30731 ... 30732 foo := &pb.Foo{} 30733 if err := any.UnmarshalTo(foo); err != nil { 30734 ... 30735 } 30736 30737 The pack methods provided by protobuf library will by 30738 default use 30739 30740 'type.googleapis.com/full.type.name' as the type URL and 30741 the unpack 30742 30743 methods only use the fully qualified type name after the 30744 last '/' 30745 30746 in the type URL, for example "foo.bar.com/x/y.z" will 30747 yield type 30748 30749 name "y.z". 30750 30751 30752 JSON 30753 30754 30755 The JSON representation of an `Any` value uses the 30756 regular 30757 30758 representation of the deserialized, embedded message, 30759 with an 30760 30761 additional field `@type` which contains the type URL. 30762 Example: 30763 30764 package google.profile; 30765 message Person { 30766 string first_name = 1; 30767 string last_name = 2; 30768 } 30769 30770 { 30771 "@type": "type.googleapis.com/google.profile.Person", 30772 "firstName": <string>, 30773 "lastName": <string> 30774 } 30775 30776 If the embedded message type is well-known and has a 30777 custom JSON 30778 30779 representation, that representation will be embedded 30780 adding a field 30781 30782 `value` which holds the custom JSON in addition to the 30783 `@type` 30784 30785 field. Example (for message 30786 [google.protobuf.Duration][]): 30787 30788 { 30789 "@type": "type.googleapis.com/google.protobuf.Duration", 30790 "value": "1.212s" 30791 } 30792 title: >- 30793 data is the app specific metadata of the NFT class. 30794 Optional 30795 description: Class defines the class of the nft type. 30796 description: class defines the class of the nft type. 30797 pagination: 30798 description: pagination defines the pagination in the response. 30799 type: object 30800 properties: 30801 next_key: 30802 type: string 30803 format: byte 30804 description: |- 30805 next_key is the key to be passed to PageRequest.key to 30806 query the next page most efficiently. It will be empty if 30807 there are no more results. 30808 total: 30809 type: string 30810 format: uint64 30811 title: >- 30812 total is total number of results available if 30813 PageRequest.count_total 30814 30815 was set, its value is undefined otherwise 30816 title: >- 30817 QueryClassesResponse is the response type for the Query/Classes 30818 RPC method 30819 default: 30820 description: An unexpected error response. 30821 schema: 30822 type: object 30823 properties: 30824 error: 30825 type: string 30826 code: 30827 type: integer 30828 format: int32 30829 message: 30830 type: string 30831 details: 30832 type: array 30833 items: 30834 type: object 30835 properties: 30836 type_url: 30837 type: string 30838 description: >- 30839 A URL/resource name that uniquely identifies the type of 30840 the serialized 30841 30842 protocol buffer message. This string must contain at 30843 least 30844 30845 one "/" character. The last segment of the URL's path 30846 must represent 30847 30848 the fully qualified name of the type (as in 30849 30850 `path/google.protobuf.Duration`). The name should be in 30851 a canonical form 30852 30853 (e.g., leading "." is not accepted). 30854 30855 30856 In practice, teams usually precompile into the binary 30857 all types that they 30858 30859 expect it to use in the context of Any. However, for 30860 URLs which use the 30861 30862 scheme `http`, `https`, or no scheme, one can optionally 30863 set up a type 30864 30865 server that maps type URLs to message definitions as 30866 follows: 30867 30868 30869 * If no scheme is provided, `https` is assumed. 30870 30871 * An HTTP GET on the URL must yield a 30872 [google.protobuf.Type][] 30873 value in binary format, or produce an error. 30874 * Applications are allowed to cache lookup results based 30875 on the 30876 URL, or have them precompiled into a binary to avoid any 30877 lookup. Therefore, binary compatibility needs to be preserved 30878 on changes to types. (Use versioned type names to manage 30879 breaking changes.) 30880 30881 Note: this functionality is not currently available in 30882 the official 30883 30884 protobuf release, and it is not used for type URLs 30885 beginning with 30886 30887 type.googleapis.com. 30888 30889 30890 Schemes other than `http`, `https` (or the empty scheme) 30891 might be 30892 30893 used with implementation specific semantics. 30894 value: 30895 type: string 30896 format: byte 30897 description: >- 30898 Must be a valid serialized protocol buffer of the above 30899 specified type. 30900 description: >- 30901 `Any` contains an arbitrary serialized protocol buffer 30902 message along with a 30903 30904 URL that describes the type of the serialized message. 30905 30906 30907 Protobuf library provides support to pack/unpack Any values 30908 in the form 30909 30910 of utility functions or additional generated methods of the 30911 Any type. 30912 30913 30914 Example 1: Pack and unpack a message in C++. 30915 30916 Foo foo = ...; 30917 Any any; 30918 any.PackFrom(foo); 30919 ... 30920 if (any.UnpackTo(&foo)) { 30921 ... 30922 } 30923 30924 Example 2: Pack and unpack a message in Java. 30925 30926 Foo foo = ...; 30927 Any any = Any.pack(foo); 30928 ... 30929 if (any.is(Foo.class)) { 30930 foo = any.unpack(Foo.class); 30931 } 30932 // or ... 30933 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 30934 foo = any.unpack(Foo.getDefaultInstance()); 30935 } 30936 30937 Example 3: Pack and unpack a message in Python. 30938 30939 foo = Foo(...) 30940 any = Any() 30941 any.Pack(foo) 30942 ... 30943 if any.Is(Foo.DESCRIPTOR): 30944 any.Unpack(foo) 30945 ... 30946 30947 Example 4: Pack and unpack a message in Go 30948 30949 foo := &pb.Foo{...} 30950 any, err := anypb.New(foo) 30951 if err != nil { 30952 ... 30953 } 30954 ... 30955 foo := &pb.Foo{} 30956 if err := any.UnmarshalTo(foo); err != nil { 30957 ... 30958 } 30959 30960 The pack methods provided by protobuf library will by 30961 default use 30962 30963 'type.googleapis.com/full.type.name' as the type URL and the 30964 unpack 30965 30966 methods only use the fully qualified type name after the 30967 last '/' 30968 30969 in the type URL, for example "foo.bar.com/x/y.z" will yield 30970 type 30971 30972 name "y.z". 30973 30974 30975 JSON 30976 30977 30978 The JSON representation of an `Any` value uses the regular 30979 30980 representation of the deserialized, embedded message, with 30981 an 30982 30983 additional field `@type` which contains the type URL. 30984 Example: 30985 30986 package google.profile; 30987 message Person { 30988 string first_name = 1; 30989 string last_name = 2; 30990 } 30991 30992 { 30993 "@type": "type.googleapis.com/google.profile.Person", 30994 "firstName": <string>, 30995 "lastName": <string> 30996 } 30997 30998 If the embedded message type is well-known and has a custom 30999 JSON 31000 31001 representation, that representation will be embedded adding 31002 a field 31003 31004 `value` which holds the custom JSON in addition to the 31005 `@type` 31006 31007 field. Example (for message [google.protobuf.Duration][]): 31008 31009 { 31010 "@type": "type.googleapis.com/google.protobuf.Duration", 31011 "value": "1.212s" 31012 } 31013 parameters: 31014 - name: pagination.key 31015 description: |- 31016 key is a value returned in PageResponse.next_key to begin 31017 querying the next page most efficiently. Only one of offset or key 31018 should be set. 31019 in: query 31020 required: false 31021 type: string 31022 format: byte 31023 - name: pagination.offset 31024 description: >- 31025 offset is a numeric offset that can be used when key is unavailable. 31026 31027 It is less efficient than using key. Only one of offset or key 31028 should 31029 31030 be set. 31031 in: query 31032 required: false 31033 type: string 31034 format: uint64 31035 - name: pagination.limit 31036 description: >- 31037 limit is the total number of results to be returned in the result 31038 page. 31039 31040 If left empty it will default to a value to be set by each app. 31041 in: query 31042 required: false 31043 type: string 31044 format: uint64 31045 - name: pagination.count_total 31046 description: >- 31047 count_total is set to true to indicate that the result set should 31048 include 31049 31050 a count of the total number of items available for pagination in 31051 UIs. 31052 31053 count_total is only respected when offset is used. It is ignored 31054 when key 31055 31056 is set. 31057 in: query 31058 required: false 31059 type: boolean 31060 - name: pagination.reverse 31061 description: >- 31062 reverse is set to true if results are to be returned in the 31063 descending order. 31064 31065 31066 Since: cosmos-sdk 0.43 31067 in: query 31068 required: false 31069 type: boolean 31070 tags: 31071 - Query 31072 /cosmos/nft/v1beta1/classes/{class_id}: 31073 get: 31074 summary: Class queries an NFT class based on its id 31075 operationId: Class 31076 responses: 31077 '200': 31078 description: A successful response. 31079 schema: 31080 type: object 31081 properties: 31082 class: 31083 type: object 31084 properties: 31085 id: 31086 type: string 31087 title: >- 31088 id defines the unique identifier of the NFT 31089 classification, similar to the contract address of ERC721 31090 name: 31091 type: string 31092 title: >- 31093 name defines the human-readable name of the NFT 31094 classification. Optional 31095 symbol: 31096 type: string 31097 title: >- 31098 symbol is an abbreviated name for nft classification. 31099 Optional 31100 description: 31101 type: string 31102 title: >- 31103 description is a brief description of nft classification. 31104 Optional 31105 uri: 31106 type: string 31107 title: >- 31108 uri for the class metadata stored off chain. It can define 31109 schema for Class and NFT `Data` attributes. Optional 31110 uri_hash: 31111 type: string 31112 title: >- 31113 uri_hash is a hash of the document pointed by uri. 31114 Optional 31115 data: 31116 type: object 31117 properties: 31118 type_url: 31119 type: string 31120 description: >- 31121 A URL/resource name that uniquely identifies the type 31122 of the serialized 31123 31124 protocol buffer message. This string must contain at 31125 least 31126 31127 one "/" character. The last segment of the URL's path 31128 must represent 31129 31130 the fully qualified name of the type (as in 31131 31132 `path/google.protobuf.Duration`). The name should be 31133 in a canonical form 31134 31135 (e.g., leading "." is not accepted). 31136 31137 31138 In practice, teams usually precompile into the binary 31139 all types that they 31140 31141 expect it to use in the context of Any. However, for 31142 URLs which use the 31143 31144 scheme `http`, `https`, or no scheme, one can 31145 optionally set up a type 31146 31147 server that maps type URLs to message definitions as 31148 follows: 31149 31150 31151 * If no scheme is provided, `https` is assumed. 31152 31153 * An HTTP GET on the URL must yield a 31154 [google.protobuf.Type][] 31155 value in binary format, or produce an error. 31156 * Applications are allowed to cache lookup results 31157 based on the 31158 URL, or have them precompiled into a binary to avoid any 31159 lookup. Therefore, binary compatibility needs to be preserved 31160 on changes to types. (Use versioned type names to manage 31161 breaking changes.) 31162 31163 Note: this functionality is not currently available in 31164 the official 31165 31166 protobuf release, and it is not used for type URLs 31167 beginning with 31168 31169 type.googleapis.com. 31170 31171 31172 Schemes other than `http`, `https` (or the empty 31173 scheme) might be 31174 31175 used with implementation specific semantics. 31176 value: 31177 type: string 31178 format: byte 31179 description: >- 31180 Must be a valid serialized protocol buffer of the 31181 above specified type. 31182 description: >- 31183 `Any` contains an arbitrary serialized protocol buffer 31184 message along with a 31185 31186 URL that describes the type of the serialized message. 31187 31188 31189 Protobuf library provides support to pack/unpack Any 31190 values in the form 31191 31192 of utility functions or additional generated methods of 31193 the Any type. 31194 31195 31196 Example 1: Pack and unpack a message in C++. 31197 31198 Foo foo = ...; 31199 Any any; 31200 any.PackFrom(foo); 31201 ... 31202 if (any.UnpackTo(&foo)) { 31203 ... 31204 } 31205 31206 Example 2: Pack and unpack a message in Java. 31207 31208 Foo foo = ...; 31209 Any any = Any.pack(foo); 31210 ... 31211 if (any.is(Foo.class)) { 31212 foo = any.unpack(Foo.class); 31213 } 31214 // or ... 31215 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 31216 foo = any.unpack(Foo.getDefaultInstance()); 31217 } 31218 31219 Example 3: Pack and unpack a message in Python. 31220 31221 foo = Foo(...) 31222 any = Any() 31223 any.Pack(foo) 31224 ... 31225 if any.Is(Foo.DESCRIPTOR): 31226 any.Unpack(foo) 31227 ... 31228 31229 Example 4: Pack and unpack a message in Go 31230 31231 foo := &pb.Foo{...} 31232 any, err := anypb.New(foo) 31233 if err != nil { 31234 ... 31235 } 31236 ... 31237 foo := &pb.Foo{} 31238 if err := any.UnmarshalTo(foo); err != nil { 31239 ... 31240 } 31241 31242 The pack methods provided by protobuf library will by 31243 default use 31244 31245 'type.googleapis.com/full.type.name' as the type URL and 31246 the unpack 31247 31248 methods only use the fully qualified type name after the 31249 last '/' 31250 31251 in the type URL, for example "foo.bar.com/x/y.z" will 31252 yield type 31253 31254 name "y.z". 31255 31256 31257 JSON 31258 31259 31260 The JSON representation of an `Any` value uses the regular 31261 31262 representation of the deserialized, embedded message, with 31263 an 31264 31265 additional field `@type` which contains the type URL. 31266 Example: 31267 31268 package google.profile; 31269 message Person { 31270 string first_name = 1; 31271 string last_name = 2; 31272 } 31273 31274 { 31275 "@type": "type.googleapis.com/google.profile.Person", 31276 "firstName": <string>, 31277 "lastName": <string> 31278 } 31279 31280 If the embedded message type is well-known and has a 31281 custom JSON 31282 31283 representation, that representation will be embedded 31284 adding a field 31285 31286 `value` which holds the custom JSON in addition to the 31287 `@type` 31288 31289 field. Example (for message [google.protobuf.Duration][]): 31290 31291 { 31292 "@type": "type.googleapis.com/google.protobuf.Duration", 31293 "value": "1.212s" 31294 } 31295 title: >- 31296 data is the app specific metadata of the NFT class. 31297 Optional 31298 description: Class defines the class of the nft type. 31299 title: >- 31300 QueryClassResponse is the response type for the Query/Class RPC 31301 method 31302 default: 31303 description: An unexpected error response. 31304 schema: 31305 type: object 31306 properties: 31307 error: 31308 type: string 31309 code: 31310 type: integer 31311 format: int32 31312 message: 31313 type: string 31314 details: 31315 type: array 31316 items: 31317 type: object 31318 properties: 31319 type_url: 31320 type: string 31321 description: >- 31322 A URL/resource name that uniquely identifies the type of 31323 the serialized 31324 31325 protocol buffer message. This string must contain at 31326 least 31327 31328 one "/" character. The last segment of the URL's path 31329 must represent 31330 31331 the fully qualified name of the type (as in 31332 31333 `path/google.protobuf.Duration`). The name should be in 31334 a canonical form 31335 31336 (e.g., leading "." is not accepted). 31337 31338 31339 In practice, teams usually precompile into the binary 31340 all types that they 31341 31342 expect it to use in the context of Any. However, for 31343 URLs which use the 31344 31345 scheme `http`, `https`, or no scheme, one can optionally 31346 set up a type 31347 31348 server that maps type URLs to message definitions as 31349 follows: 31350 31351 31352 * If no scheme is provided, `https` is assumed. 31353 31354 * An HTTP GET on the URL must yield a 31355 [google.protobuf.Type][] 31356 value in binary format, or produce an error. 31357 * Applications are allowed to cache lookup results based 31358 on the 31359 URL, or have them precompiled into a binary to avoid any 31360 lookup. Therefore, binary compatibility needs to be preserved 31361 on changes to types. (Use versioned type names to manage 31362 breaking changes.) 31363 31364 Note: this functionality is not currently available in 31365 the official 31366 31367 protobuf release, and it is not used for type URLs 31368 beginning with 31369 31370 type.googleapis.com. 31371 31372 31373 Schemes other than `http`, `https` (or the empty scheme) 31374 might be 31375 31376 used with implementation specific semantics. 31377 value: 31378 type: string 31379 format: byte 31380 description: >- 31381 Must be a valid serialized protocol buffer of the above 31382 specified type. 31383 description: >- 31384 `Any` contains an arbitrary serialized protocol buffer 31385 message along with a 31386 31387 URL that describes the type of the serialized message. 31388 31389 31390 Protobuf library provides support to pack/unpack Any values 31391 in the form 31392 31393 of utility functions or additional generated methods of the 31394 Any type. 31395 31396 31397 Example 1: Pack and unpack a message in C++. 31398 31399 Foo foo = ...; 31400 Any any; 31401 any.PackFrom(foo); 31402 ... 31403 if (any.UnpackTo(&foo)) { 31404 ... 31405 } 31406 31407 Example 2: Pack and unpack a message in Java. 31408 31409 Foo foo = ...; 31410 Any any = Any.pack(foo); 31411 ... 31412 if (any.is(Foo.class)) { 31413 foo = any.unpack(Foo.class); 31414 } 31415 // or ... 31416 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 31417 foo = any.unpack(Foo.getDefaultInstance()); 31418 } 31419 31420 Example 3: Pack and unpack a message in Python. 31421 31422 foo = Foo(...) 31423 any = Any() 31424 any.Pack(foo) 31425 ... 31426 if any.Is(Foo.DESCRIPTOR): 31427 any.Unpack(foo) 31428 ... 31429 31430 Example 4: Pack and unpack a message in Go 31431 31432 foo := &pb.Foo{...} 31433 any, err := anypb.New(foo) 31434 if err != nil { 31435 ... 31436 } 31437 ... 31438 foo := &pb.Foo{} 31439 if err := any.UnmarshalTo(foo); err != nil { 31440 ... 31441 } 31442 31443 The pack methods provided by protobuf library will by 31444 default use 31445 31446 'type.googleapis.com/full.type.name' as the type URL and the 31447 unpack 31448 31449 methods only use the fully qualified type name after the 31450 last '/' 31451 31452 in the type URL, for example "foo.bar.com/x/y.z" will yield 31453 type 31454 31455 name "y.z". 31456 31457 31458 JSON 31459 31460 31461 The JSON representation of an `Any` value uses the regular 31462 31463 representation of the deserialized, embedded message, with 31464 an 31465 31466 additional field `@type` which contains the type URL. 31467 Example: 31468 31469 package google.profile; 31470 message Person { 31471 string first_name = 1; 31472 string last_name = 2; 31473 } 31474 31475 { 31476 "@type": "type.googleapis.com/google.profile.Person", 31477 "firstName": <string>, 31478 "lastName": <string> 31479 } 31480 31481 If the embedded message type is well-known and has a custom 31482 JSON 31483 31484 representation, that representation will be embedded adding 31485 a field 31486 31487 `value` which holds the custom JSON in addition to the 31488 `@type` 31489 31490 field. Example (for message [google.protobuf.Duration][]): 31491 31492 { 31493 "@type": "type.googleapis.com/google.protobuf.Duration", 31494 "value": "1.212s" 31495 } 31496 parameters: 31497 - name: class_id 31498 description: class_id associated with the nft 31499 in: path 31500 required: true 31501 type: string 31502 tags: 31503 - Query 31504 /cosmos/nft/v1beta1/nfts: 31505 get: 31506 summary: >- 31507 NFTs queries all NFTs of a given class or owner,choose at least one of 31508 the two, similar to tokenByIndex in 31509 31510 ERC721Enumerable 31511 operationId: NFTs 31512 responses: 31513 '200': 31514 description: A successful response. 31515 schema: 31516 type: object 31517 properties: 31518 nfts: 31519 type: array 31520 items: 31521 type: object 31522 properties: 31523 class_id: 31524 type: string 31525 title: >- 31526 class_id associated with the NFT, similar to the 31527 contract address of ERC721 31528 id: 31529 type: string 31530 title: id is a unique identifier of the NFT 31531 uri: 31532 type: string 31533 title: uri for the NFT metadata stored off chain 31534 uri_hash: 31535 type: string 31536 title: uri_hash is a hash of the document pointed by uri 31537 data: 31538 type: object 31539 properties: 31540 type_url: 31541 type: string 31542 description: >- 31543 A URL/resource name that uniquely identifies the 31544 type of the serialized 31545 31546 protocol buffer message. This string must contain at 31547 least 31548 31549 one "/" character. The last segment of the URL's 31550 path must represent 31551 31552 the fully qualified name of the type (as in 31553 31554 `path/google.protobuf.Duration`). The name should be 31555 in a canonical form 31556 31557 (e.g., leading "." is not accepted). 31558 31559 31560 In practice, teams usually precompile into the 31561 binary all types that they 31562 31563 expect it to use in the context of Any. However, for 31564 URLs which use the 31565 31566 scheme `http`, `https`, or no scheme, one can 31567 optionally set up a type 31568 31569 server that maps type URLs to message definitions as 31570 follows: 31571 31572 31573 * If no scheme is provided, `https` is assumed. 31574 31575 * An HTTP GET on the URL must yield a 31576 [google.protobuf.Type][] 31577 value in binary format, or produce an error. 31578 * Applications are allowed to cache lookup results 31579 based on the 31580 URL, or have them precompiled into a binary to avoid any 31581 lookup. Therefore, binary compatibility needs to be preserved 31582 on changes to types. (Use versioned type names to manage 31583 breaking changes.) 31584 31585 Note: this functionality is not currently available 31586 in the official 31587 31588 protobuf release, and it is not used for type URLs 31589 beginning with 31590 31591 type.googleapis.com. 31592 31593 31594 Schemes other than `http`, `https` (or the empty 31595 scheme) might be 31596 31597 used with implementation specific semantics. 31598 value: 31599 type: string 31600 format: byte 31601 description: >- 31602 Must be a valid serialized protocol buffer of the 31603 above specified type. 31604 description: >- 31605 `Any` contains an arbitrary serialized protocol buffer 31606 message along with a 31607 31608 URL that describes the type of the serialized message. 31609 31610 31611 Protobuf library provides support to pack/unpack Any 31612 values in the form 31613 31614 of utility functions or additional generated methods of 31615 the Any type. 31616 31617 31618 Example 1: Pack and unpack a message in C++. 31619 31620 Foo foo = ...; 31621 Any any; 31622 any.PackFrom(foo); 31623 ... 31624 if (any.UnpackTo(&foo)) { 31625 ... 31626 } 31627 31628 Example 2: Pack and unpack a message in Java. 31629 31630 Foo foo = ...; 31631 Any any = Any.pack(foo); 31632 ... 31633 if (any.is(Foo.class)) { 31634 foo = any.unpack(Foo.class); 31635 } 31636 // or ... 31637 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 31638 foo = any.unpack(Foo.getDefaultInstance()); 31639 } 31640 31641 Example 3: Pack and unpack a message in Python. 31642 31643 foo = Foo(...) 31644 any = Any() 31645 any.Pack(foo) 31646 ... 31647 if any.Is(Foo.DESCRIPTOR): 31648 any.Unpack(foo) 31649 ... 31650 31651 Example 4: Pack and unpack a message in Go 31652 31653 foo := &pb.Foo{...} 31654 any, err := anypb.New(foo) 31655 if err != nil { 31656 ... 31657 } 31658 ... 31659 foo := &pb.Foo{} 31660 if err := any.UnmarshalTo(foo); err != nil { 31661 ... 31662 } 31663 31664 The pack methods provided by protobuf library will by 31665 default use 31666 31667 'type.googleapis.com/full.type.name' as the type URL and 31668 the unpack 31669 31670 methods only use the fully qualified type name after the 31671 last '/' 31672 31673 in the type URL, for example "foo.bar.com/x/y.z" will 31674 yield type 31675 31676 name "y.z". 31677 31678 31679 JSON 31680 31681 31682 The JSON representation of an `Any` value uses the 31683 regular 31684 31685 representation of the deserialized, embedded message, 31686 with an 31687 31688 additional field `@type` which contains the type URL. 31689 Example: 31690 31691 package google.profile; 31692 message Person { 31693 string first_name = 1; 31694 string last_name = 2; 31695 } 31696 31697 { 31698 "@type": "type.googleapis.com/google.profile.Person", 31699 "firstName": <string>, 31700 "lastName": <string> 31701 } 31702 31703 If the embedded message type is well-known and has a 31704 custom JSON 31705 31706 representation, that representation will be embedded 31707 adding a field 31708 31709 `value` which holds the custom JSON in addition to the 31710 `@type` 31711 31712 field. Example (for message 31713 [google.protobuf.Duration][]): 31714 31715 { 31716 "@type": "type.googleapis.com/google.protobuf.Duration", 31717 "value": "1.212s" 31718 } 31719 title: data is an app specific data of the NFT. Optional 31720 description: NFT defines the NFT. 31721 title: NFT defines the NFT 31722 pagination: 31723 description: pagination defines the pagination in the response. 31724 type: object 31725 properties: 31726 next_key: 31727 type: string 31728 format: byte 31729 description: |- 31730 next_key is the key to be passed to PageRequest.key to 31731 query the next page most efficiently. It will be empty if 31732 there are no more results. 31733 total: 31734 type: string 31735 format: uint64 31736 title: >- 31737 total is total number of results available if 31738 PageRequest.count_total 31739 31740 was set, its value is undefined otherwise 31741 title: >- 31742 QueryNFTsResponse is the response type for the Query/NFTs RPC 31743 methods 31744 default: 31745 description: An unexpected error response. 31746 schema: 31747 type: object 31748 properties: 31749 error: 31750 type: string 31751 code: 31752 type: integer 31753 format: int32 31754 message: 31755 type: string 31756 details: 31757 type: array 31758 items: 31759 type: object 31760 properties: 31761 type_url: 31762 type: string 31763 description: >- 31764 A URL/resource name that uniquely identifies the type of 31765 the serialized 31766 31767 protocol buffer message. This string must contain at 31768 least 31769 31770 one "/" character. The last segment of the URL's path 31771 must represent 31772 31773 the fully qualified name of the type (as in 31774 31775 `path/google.protobuf.Duration`). The name should be in 31776 a canonical form 31777 31778 (e.g., leading "." is not accepted). 31779 31780 31781 In practice, teams usually precompile into the binary 31782 all types that they 31783 31784 expect it to use in the context of Any. However, for 31785 URLs which use the 31786 31787 scheme `http`, `https`, or no scheme, one can optionally 31788 set up a type 31789 31790 server that maps type URLs to message definitions as 31791 follows: 31792 31793 31794 * If no scheme is provided, `https` is assumed. 31795 31796 * An HTTP GET on the URL must yield a 31797 [google.protobuf.Type][] 31798 value in binary format, or produce an error. 31799 * Applications are allowed to cache lookup results based 31800 on the 31801 URL, or have them precompiled into a binary to avoid any 31802 lookup. Therefore, binary compatibility needs to be preserved 31803 on changes to types. (Use versioned type names to manage 31804 breaking changes.) 31805 31806 Note: this functionality is not currently available in 31807 the official 31808 31809 protobuf release, and it is not used for type URLs 31810 beginning with 31811 31812 type.googleapis.com. 31813 31814 31815 Schemes other than `http`, `https` (or the empty scheme) 31816 might be 31817 31818 used with implementation specific semantics. 31819 value: 31820 type: string 31821 format: byte 31822 description: >- 31823 Must be a valid serialized protocol buffer of the above 31824 specified type. 31825 description: >- 31826 `Any` contains an arbitrary serialized protocol buffer 31827 message along with a 31828 31829 URL that describes the type of the serialized message. 31830 31831 31832 Protobuf library provides support to pack/unpack Any values 31833 in the form 31834 31835 of utility functions or additional generated methods of the 31836 Any type. 31837 31838 31839 Example 1: Pack and unpack a message in C++. 31840 31841 Foo foo = ...; 31842 Any any; 31843 any.PackFrom(foo); 31844 ... 31845 if (any.UnpackTo(&foo)) { 31846 ... 31847 } 31848 31849 Example 2: Pack and unpack a message in Java. 31850 31851 Foo foo = ...; 31852 Any any = Any.pack(foo); 31853 ... 31854 if (any.is(Foo.class)) { 31855 foo = any.unpack(Foo.class); 31856 } 31857 // or ... 31858 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 31859 foo = any.unpack(Foo.getDefaultInstance()); 31860 } 31861 31862 Example 3: Pack and unpack a message in Python. 31863 31864 foo = Foo(...) 31865 any = Any() 31866 any.Pack(foo) 31867 ... 31868 if any.Is(Foo.DESCRIPTOR): 31869 any.Unpack(foo) 31870 ... 31871 31872 Example 4: Pack and unpack a message in Go 31873 31874 foo := &pb.Foo{...} 31875 any, err := anypb.New(foo) 31876 if err != nil { 31877 ... 31878 } 31879 ... 31880 foo := &pb.Foo{} 31881 if err := any.UnmarshalTo(foo); err != nil { 31882 ... 31883 } 31884 31885 The pack methods provided by protobuf library will by 31886 default use 31887 31888 'type.googleapis.com/full.type.name' as the type URL and the 31889 unpack 31890 31891 methods only use the fully qualified type name after the 31892 last '/' 31893 31894 in the type URL, for example "foo.bar.com/x/y.z" will yield 31895 type 31896 31897 name "y.z". 31898 31899 31900 JSON 31901 31902 31903 The JSON representation of an `Any` value uses the regular 31904 31905 representation of the deserialized, embedded message, with 31906 an 31907 31908 additional field `@type` which contains the type URL. 31909 Example: 31910 31911 package google.profile; 31912 message Person { 31913 string first_name = 1; 31914 string last_name = 2; 31915 } 31916 31917 { 31918 "@type": "type.googleapis.com/google.profile.Person", 31919 "firstName": <string>, 31920 "lastName": <string> 31921 } 31922 31923 If the embedded message type is well-known and has a custom 31924 JSON 31925 31926 representation, that representation will be embedded adding 31927 a field 31928 31929 `value` which holds the custom JSON in addition to the 31930 `@type` 31931 31932 field. Example (for message [google.protobuf.Duration][]): 31933 31934 { 31935 "@type": "type.googleapis.com/google.protobuf.Duration", 31936 "value": "1.212s" 31937 } 31938 parameters: 31939 - name: class_id 31940 description: class_id associated with the nft. 31941 in: query 31942 required: false 31943 type: string 31944 - name: owner 31945 description: owner is the owner address of the nft. 31946 in: query 31947 required: false 31948 type: string 31949 - name: pagination.key 31950 description: |- 31951 key is a value returned in PageResponse.next_key to begin 31952 querying the next page most efficiently. Only one of offset or key 31953 should be set. 31954 in: query 31955 required: false 31956 type: string 31957 format: byte 31958 - name: pagination.offset 31959 description: >- 31960 offset is a numeric offset that can be used when key is unavailable. 31961 31962 It is less efficient than using key. Only one of offset or key 31963 should 31964 31965 be set. 31966 in: query 31967 required: false 31968 type: string 31969 format: uint64 31970 - name: pagination.limit 31971 description: >- 31972 limit is the total number of results to be returned in the result 31973 page. 31974 31975 If left empty it will default to a value to be set by each app. 31976 in: query 31977 required: false 31978 type: string 31979 format: uint64 31980 - name: pagination.count_total 31981 description: >- 31982 count_total is set to true to indicate that the result set should 31983 include 31984 31985 a count of the total number of items available for pagination in 31986 UIs. 31987 31988 count_total is only respected when offset is used. It is ignored 31989 when key 31990 31991 is set. 31992 in: query 31993 required: false 31994 type: boolean 31995 - name: pagination.reverse 31996 description: >- 31997 reverse is set to true if results are to be returned in the 31998 descending order. 31999 32000 32001 Since: cosmos-sdk 0.43 32002 in: query 32003 required: false 32004 type: boolean 32005 tags: 32006 - Query 32007 /cosmos/nft/v1beta1/nfts/{class_id}/{id}: 32008 get: 32009 summary: NFT queries an NFT based on its class and id. 32010 operationId: NFT 32011 responses: 32012 '200': 32013 description: A successful response. 32014 schema: 32015 type: object 32016 properties: 32017 nft: 32018 type: object 32019 properties: 32020 class_id: 32021 type: string 32022 title: >- 32023 class_id associated with the NFT, similar to the contract 32024 address of ERC721 32025 id: 32026 type: string 32027 title: id is a unique identifier of the NFT 32028 uri: 32029 type: string 32030 title: uri for the NFT metadata stored off chain 32031 uri_hash: 32032 type: string 32033 title: uri_hash is a hash of the document pointed by uri 32034 data: 32035 type: object 32036 properties: 32037 type_url: 32038 type: string 32039 description: >- 32040 A URL/resource name that uniquely identifies the type 32041 of the serialized 32042 32043 protocol buffer message. This string must contain at 32044 least 32045 32046 one "/" character. The last segment of the URL's path 32047 must represent 32048 32049 the fully qualified name of the type (as in 32050 32051 `path/google.protobuf.Duration`). The name should be 32052 in a canonical form 32053 32054 (e.g., leading "." is not accepted). 32055 32056 32057 In practice, teams usually precompile into the binary 32058 all types that they 32059 32060 expect it to use in the context of Any. However, for 32061 URLs which use the 32062 32063 scheme `http`, `https`, or no scheme, one can 32064 optionally set up a type 32065 32066 server that maps type URLs to message definitions as 32067 follows: 32068 32069 32070 * If no scheme is provided, `https` is assumed. 32071 32072 * An HTTP GET on the URL must yield a 32073 [google.protobuf.Type][] 32074 value in binary format, or produce an error. 32075 * Applications are allowed to cache lookup results 32076 based on the 32077 URL, or have them precompiled into a binary to avoid any 32078 lookup. Therefore, binary compatibility needs to be preserved 32079 on changes to types. (Use versioned type names to manage 32080 breaking changes.) 32081 32082 Note: this functionality is not currently available in 32083 the official 32084 32085 protobuf release, and it is not used for type URLs 32086 beginning with 32087 32088 type.googleapis.com. 32089 32090 32091 Schemes other than `http`, `https` (or the empty 32092 scheme) might be 32093 32094 used with implementation specific semantics. 32095 value: 32096 type: string 32097 format: byte 32098 description: >- 32099 Must be a valid serialized protocol buffer of the 32100 above specified type. 32101 description: >- 32102 `Any` contains an arbitrary serialized protocol buffer 32103 message along with a 32104 32105 URL that describes the type of the serialized message. 32106 32107 32108 Protobuf library provides support to pack/unpack Any 32109 values in the form 32110 32111 of utility functions or additional generated methods of 32112 the Any type. 32113 32114 32115 Example 1: Pack and unpack a message in C++. 32116 32117 Foo foo = ...; 32118 Any any; 32119 any.PackFrom(foo); 32120 ... 32121 if (any.UnpackTo(&foo)) { 32122 ... 32123 } 32124 32125 Example 2: Pack and unpack a message in Java. 32126 32127 Foo foo = ...; 32128 Any any = Any.pack(foo); 32129 ... 32130 if (any.is(Foo.class)) { 32131 foo = any.unpack(Foo.class); 32132 } 32133 // or ... 32134 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 32135 foo = any.unpack(Foo.getDefaultInstance()); 32136 } 32137 32138 Example 3: Pack and unpack a message in Python. 32139 32140 foo = Foo(...) 32141 any = Any() 32142 any.Pack(foo) 32143 ... 32144 if any.Is(Foo.DESCRIPTOR): 32145 any.Unpack(foo) 32146 ... 32147 32148 Example 4: Pack and unpack a message in Go 32149 32150 foo := &pb.Foo{...} 32151 any, err := anypb.New(foo) 32152 if err != nil { 32153 ... 32154 } 32155 ... 32156 foo := &pb.Foo{} 32157 if err := any.UnmarshalTo(foo); err != nil { 32158 ... 32159 } 32160 32161 The pack methods provided by protobuf library will by 32162 default use 32163 32164 'type.googleapis.com/full.type.name' as the type URL and 32165 the unpack 32166 32167 methods only use the fully qualified type name after the 32168 last '/' 32169 32170 in the type URL, for example "foo.bar.com/x/y.z" will 32171 yield type 32172 32173 name "y.z". 32174 32175 32176 JSON 32177 32178 32179 The JSON representation of an `Any` value uses the regular 32180 32181 representation of the deserialized, embedded message, with 32182 an 32183 32184 additional field `@type` which contains the type URL. 32185 Example: 32186 32187 package google.profile; 32188 message Person { 32189 string first_name = 1; 32190 string last_name = 2; 32191 } 32192 32193 { 32194 "@type": "type.googleapis.com/google.profile.Person", 32195 "firstName": <string>, 32196 "lastName": <string> 32197 } 32198 32199 If the embedded message type is well-known and has a 32200 custom JSON 32201 32202 representation, that representation will be embedded 32203 adding a field 32204 32205 `value` which holds the custom JSON in addition to the 32206 `@type` 32207 32208 field. Example (for message [google.protobuf.Duration][]): 32209 32210 { 32211 "@type": "type.googleapis.com/google.protobuf.Duration", 32212 "value": "1.212s" 32213 } 32214 title: data is an app specific data of the NFT. Optional 32215 description: NFT defines the NFT. 32216 title: owner is the owner address of the nft 32217 title: QueryNFTResponse is the response type for the Query/NFT RPC method 32218 default: 32219 description: An unexpected error response. 32220 schema: 32221 type: object 32222 properties: 32223 error: 32224 type: string 32225 code: 32226 type: integer 32227 format: int32 32228 message: 32229 type: string 32230 details: 32231 type: array 32232 items: 32233 type: object 32234 properties: 32235 type_url: 32236 type: string 32237 description: >- 32238 A URL/resource name that uniquely identifies the type of 32239 the serialized 32240 32241 protocol buffer message. This string must contain at 32242 least 32243 32244 one "/" character. The last segment of the URL's path 32245 must represent 32246 32247 the fully qualified name of the type (as in 32248 32249 `path/google.protobuf.Duration`). The name should be in 32250 a canonical form 32251 32252 (e.g., leading "." is not accepted). 32253 32254 32255 In practice, teams usually precompile into the binary 32256 all types that they 32257 32258 expect it to use in the context of Any. However, for 32259 URLs which use the 32260 32261 scheme `http`, `https`, or no scheme, one can optionally 32262 set up a type 32263 32264 server that maps type URLs to message definitions as 32265 follows: 32266 32267 32268 * If no scheme is provided, `https` is assumed. 32269 32270 * An HTTP GET on the URL must yield a 32271 [google.protobuf.Type][] 32272 value in binary format, or produce an error. 32273 * Applications are allowed to cache lookup results based 32274 on the 32275 URL, or have them precompiled into a binary to avoid any 32276 lookup. Therefore, binary compatibility needs to be preserved 32277 on changes to types. (Use versioned type names to manage 32278 breaking changes.) 32279 32280 Note: this functionality is not currently available in 32281 the official 32282 32283 protobuf release, and it is not used for type URLs 32284 beginning with 32285 32286 type.googleapis.com. 32287 32288 32289 Schemes other than `http`, `https` (or the empty scheme) 32290 might be 32291 32292 used with implementation specific semantics. 32293 value: 32294 type: string 32295 format: byte 32296 description: >- 32297 Must be a valid serialized protocol buffer of the above 32298 specified type. 32299 description: >- 32300 `Any` contains an arbitrary serialized protocol buffer 32301 message along with a 32302 32303 URL that describes the type of the serialized message. 32304 32305 32306 Protobuf library provides support to pack/unpack Any values 32307 in the form 32308 32309 of utility functions or additional generated methods of the 32310 Any type. 32311 32312 32313 Example 1: Pack and unpack a message in C++. 32314 32315 Foo foo = ...; 32316 Any any; 32317 any.PackFrom(foo); 32318 ... 32319 if (any.UnpackTo(&foo)) { 32320 ... 32321 } 32322 32323 Example 2: Pack and unpack a message in Java. 32324 32325 Foo foo = ...; 32326 Any any = Any.pack(foo); 32327 ... 32328 if (any.is(Foo.class)) { 32329 foo = any.unpack(Foo.class); 32330 } 32331 // or ... 32332 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 32333 foo = any.unpack(Foo.getDefaultInstance()); 32334 } 32335 32336 Example 3: Pack and unpack a message in Python. 32337 32338 foo = Foo(...) 32339 any = Any() 32340 any.Pack(foo) 32341 ... 32342 if any.Is(Foo.DESCRIPTOR): 32343 any.Unpack(foo) 32344 ... 32345 32346 Example 4: Pack and unpack a message in Go 32347 32348 foo := &pb.Foo{...} 32349 any, err := anypb.New(foo) 32350 if err != nil { 32351 ... 32352 } 32353 ... 32354 foo := &pb.Foo{} 32355 if err := any.UnmarshalTo(foo); err != nil { 32356 ... 32357 } 32358 32359 The pack methods provided by protobuf library will by 32360 default use 32361 32362 'type.googleapis.com/full.type.name' as the type URL and the 32363 unpack 32364 32365 methods only use the fully qualified type name after the 32366 last '/' 32367 32368 in the type URL, for example "foo.bar.com/x/y.z" will yield 32369 type 32370 32371 name "y.z". 32372 32373 32374 JSON 32375 32376 32377 The JSON representation of an `Any` value uses the regular 32378 32379 representation of the deserialized, embedded message, with 32380 an 32381 32382 additional field `@type` which contains the type URL. 32383 Example: 32384 32385 package google.profile; 32386 message Person { 32387 string first_name = 1; 32388 string last_name = 2; 32389 } 32390 32391 { 32392 "@type": "type.googleapis.com/google.profile.Person", 32393 "firstName": <string>, 32394 "lastName": <string> 32395 } 32396 32397 If the embedded message type is well-known and has a custom 32398 JSON 32399 32400 representation, that representation will be embedded adding 32401 a field 32402 32403 `value` which holds the custom JSON in addition to the 32404 `@type` 32405 32406 field. Example (for message [google.protobuf.Duration][]): 32407 32408 { 32409 "@type": "type.googleapis.com/google.protobuf.Duration", 32410 "value": "1.212s" 32411 } 32412 parameters: 32413 - name: class_id 32414 description: class_id associated with the nft 32415 in: path 32416 required: true 32417 type: string 32418 - name: id 32419 description: id is a unique identifier of the NFT 32420 in: path 32421 required: true 32422 type: string 32423 tags: 32424 - Query 32425 /cosmos/nft/v1beta1/owner/{class_id}/{id}: 32426 get: 32427 summary: >- 32428 Owner queries the owner of the NFT based on its class and id, same as 32429 ownerOf in ERC721 32430 operationId: Owner 32431 responses: 32432 '200': 32433 description: A successful response. 32434 schema: 32435 type: object 32436 properties: 32437 owner: 32438 type: string 32439 title: owner is the owner address of the nft 32440 title: >- 32441 QueryOwnerResponse is the response type for the Query/Owner RPC 32442 method 32443 default: 32444 description: An unexpected error response. 32445 schema: 32446 type: object 32447 properties: 32448 error: 32449 type: string 32450 code: 32451 type: integer 32452 format: int32 32453 message: 32454 type: string 32455 details: 32456 type: array 32457 items: 32458 type: object 32459 properties: 32460 type_url: 32461 type: string 32462 description: >- 32463 A URL/resource name that uniquely identifies the type of 32464 the serialized 32465 32466 protocol buffer message. This string must contain at 32467 least 32468 32469 one "/" character. The last segment of the URL's path 32470 must represent 32471 32472 the fully qualified name of the type (as in 32473 32474 `path/google.protobuf.Duration`). The name should be in 32475 a canonical form 32476 32477 (e.g., leading "." is not accepted). 32478 32479 32480 In practice, teams usually precompile into the binary 32481 all types that they 32482 32483 expect it to use in the context of Any. However, for 32484 URLs which use the 32485 32486 scheme `http`, `https`, or no scheme, one can optionally 32487 set up a type 32488 32489 server that maps type URLs to message definitions as 32490 follows: 32491 32492 32493 * If no scheme is provided, `https` is assumed. 32494 32495 * An HTTP GET on the URL must yield a 32496 [google.protobuf.Type][] 32497 value in binary format, or produce an error. 32498 * Applications are allowed to cache lookup results based 32499 on the 32500 URL, or have them precompiled into a binary to avoid any 32501 lookup. Therefore, binary compatibility needs to be preserved 32502 on changes to types. (Use versioned type names to manage 32503 breaking changes.) 32504 32505 Note: this functionality is not currently available in 32506 the official 32507 32508 protobuf release, and it is not used for type URLs 32509 beginning with 32510 32511 type.googleapis.com. 32512 32513 32514 Schemes other than `http`, `https` (or the empty scheme) 32515 might be 32516 32517 used with implementation specific semantics. 32518 value: 32519 type: string 32520 format: byte 32521 description: >- 32522 Must be a valid serialized protocol buffer of the above 32523 specified type. 32524 description: >- 32525 `Any` contains an arbitrary serialized protocol buffer 32526 message along with a 32527 32528 URL that describes the type of the serialized message. 32529 32530 32531 Protobuf library provides support to pack/unpack Any values 32532 in the form 32533 32534 of utility functions or additional generated methods of the 32535 Any type. 32536 32537 32538 Example 1: Pack and unpack a message in C++. 32539 32540 Foo foo = ...; 32541 Any any; 32542 any.PackFrom(foo); 32543 ... 32544 if (any.UnpackTo(&foo)) { 32545 ... 32546 } 32547 32548 Example 2: Pack and unpack a message in Java. 32549 32550 Foo foo = ...; 32551 Any any = Any.pack(foo); 32552 ... 32553 if (any.is(Foo.class)) { 32554 foo = any.unpack(Foo.class); 32555 } 32556 // or ... 32557 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 32558 foo = any.unpack(Foo.getDefaultInstance()); 32559 } 32560 32561 Example 3: Pack and unpack a message in Python. 32562 32563 foo = Foo(...) 32564 any = Any() 32565 any.Pack(foo) 32566 ... 32567 if any.Is(Foo.DESCRIPTOR): 32568 any.Unpack(foo) 32569 ... 32570 32571 Example 4: Pack and unpack a message in Go 32572 32573 foo := &pb.Foo{...} 32574 any, err := anypb.New(foo) 32575 if err != nil { 32576 ... 32577 } 32578 ... 32579 foo := &pb.Foo{} 32580 if err := any.UnmarshalTo(foo); err != nil { 32581 ... 32582 } 32583 32584 The pack methods provided by protobuf library will by 32585 default use 32586 32587 'type.googleapis.com/full.type.name' as the type URL and the 32588 unpack 32589 32590 methods only use the fully qualified type name after the 32591 last '/' 32592 32593 in the type URL, for example "foo.bar.com/x/y.z" will yield 32594 type 32595 32596 name "y.z". 32597 32598 32599 JSON 32600 32601 32602 The JSON representation of an `Any` value uses the regular 32603 32604 representation of the deserialized, embedded message, with 32605 an 32606 32607 additional field `@type` which contains the type URL. 32608 Example: 32609 32610 package google.profile; 32611 message Person { 32612 string first_name = 1; 32613 string last_name = 2; 32614 } 32615 32616 { 32617 "@type": "type.googleapis.com/google.profile.Person", 32618 "firstName": <string>, 32619 "lastName": <string> 32620 } 32621 32622 If the embedded message type is well-known and has a custom 32623 JSON 32624 32625 representation, that representation will be embedded adding 32626 a field 32627 32628 `value` which holds the custom JSON in addition to the 32629 `@type` 32630 32631 field. Example (for message [google.protobuf.Duration][]): 32632 32633 { 32634 "@type": "type.googleapis.com/google.protobuf.Duration", 32635 "value": "1.212s" 32636 } 32637 parameters: 32638 - name: class_id 32639 description: class_id associated with the nft 32640 in: path 32641 required: true 32642 type: string 32643 - name: id 32644 description: id is a unique identifier of the NFT 32645 in: path 32646 required: true 32647 type: string 32648 tags: 32649 - Query 32650 /cosmos/nft/v1beta1/supply/{class_id}: 32651 get: 32652 summary: >- 32653 Supply queries the number of NFTs from the given class, same as 32654 totalSupply of ERC721. 32655 operationId: Supply 32656 responses: 32657 '200': 32658 description: A successful response. 32659 schema: 32660 type: object 32661 properties: 32662 amount: 32663 type: string 32664 format: uint64 32665 title: amount is the number of all NFTs from the given class 32666 title: >- 32667 QuerySupplyResponse is the response type for the Query/Supply RPC 32668 method 32669 default: 32670 description: An unexpected error response. 32671 schema: 32672 type: object 32673 properties: 32674 error: 32675 type: string 32676 code: 32677 type: integer 32678 format: int32 32679 message: 32680 type: string 32681 details: 32682 type: array 32683 items: 32684 type: object 32685 properties: 32686 type_url: 32687 type: string 32688 description: >- 32689 A URL/resource name that uniquely identifies the type of 32690 the serialized 32691 32692 protocol buffer message. This string must contain at 32693 least 32694 32695 one "/" character. The last segment of the URL's path 32696 must represent 32697 32698 the fully qualified name of the type (as in 32699 32700 `path/google.protobuf.Duration`). The name should be in 32701 a canonical form 32702 32703 (e.g., leading "." is not accepted). 32704 32705 32706 In practice, teams usually precompile into the binary 32707 all types that they 32708 32709 expect it to use in the context of Any. However, for 32710 URLs which use the 32711 32712 scheme `http`, `https`, or no scheme, one can optionally 32713 set up a type 32714 32715 server that maps type URLs to message definitions as 32716 follows: 32717 32718 32719 * If no scheme is provided, `https` is assumed. 32720 32721 * An HTTP GET on the URL must yield a 32722 [google.protobuf.Type][] 32723 value in binary format, or produce an error. 32724 * Applications are allowed to cache lookup results based 32725 on the 32726 URL, or have them precompiled into a binary to avoid any 32727 lookup. Therefore, binary compatibility needs to be preserved 32728 on changes to types. (Use versioned type names to manage 32729 breaking changes.) 32730 32731 Note: this functionality is not currently available in 32732 the official 32733 32734 protobuf release, and it is not used for type URLs 32735 beginning with 32736 32737 type.googleapis.com. 32738 32739 32740 Schemes other than `http`, `https` (or the empty scheme) 32741 might be 32742 32743 used with implementation specific semantics. 32744 value: 32745 type: string 32746 format: byte 32747 description: >- 32748 Must be a valid serialized protocol buffer of the above 32749 specified type. 32750 description: >- 32751 `Any` contains an arbitrary serialized protocol buffer 32752 message along with a 32753 32754 URL that describes the type of the serialized message. 32755 32756 32757 Protobuf library provides support to pack/unpack Any values 32758 in the form 32759 32760 of utility functions or additional generated methods of the 32761 Any type. 32762 32763 32764 Example 1: Pack and unpack a message in C++. 32765 32766 Foo foo = ...; 32767 Any any; 32768 any.PackFrom(foo); 32769 ... 32770 if (any.UnpackTo(&foo)) { 32771 ... 32772 } 32773 32774 Example 2: Pack and unpack a message in Java. 32775 32776 Foo foo = ...; 32777 Any any = Any.pack(foo); 32778 ... 32779 if (any.is(Foo.class)) { 32780 foo = any.unpack(Foo.class); 32781 } 32782 // or ... 32783 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 32784 foo = any.unpack(Foo.getDefaultInstance()); 32785 } 32786 32787 Example 3: Pack and unpack a message in Python. 32788 32789 foo = Foo(...) 32790 any = Any() 32791 any.Pack(foo) 32792 ... 32793 if any.Is(Foo.DESCRIPTOR): 32794 any.Unpack(foo) 32795 ... 32796 32797 Example 4: Pack and unpack a message in Go 32798 32799 foo := &pb.Foo{...} 32800 any, err := anypb.New(foo) 32801 if err != nil { 32802 ... 32803 } 32804 ... 32805 foo := &pb.Foo{} 32806 if err := any.UnmarshalTo(foo); err != nil { 32807 ... 32808 } 32809 32810 The pack methods provided by protobuf library will by 32811 default use 32812 32813 'type.googleapis.com/full.type.name' as the type URL and the 32814 unpack 32815 32816 methods only use the fully qualified type name after the 32817 last '/' 32818 32819 in the type URL, for example "foo.bar.com/x/y.z" will yield 32820 type 32821 32822 name "y.z". 32823 32824 32825 JSON 32826 32827 32828 The JSON representation of an `Any` value uses the regular 32829 32830 representation of the deserialized, embedded message, with 32831 an 32832 32833 additional field `@type` which contains the type URL. 32834 Example: 32835 32836 package google.profile; 32837 message Person { 32838 string first_name = 1; 32839 string last_name = 2; 32840 } 32841 32842 { 32843 "@type": "type.googleapis.com/google.profile.Person", 32844 "firstName": <string>, 32845 "lastName": <string> 32846 } 32847 32848 If the embedded message type is well-known and has a custom 32849 JSON 32850 32851 representation, that representation will be embedded adding 32852 a field 32853 32854 `value` which holds the custom JSON in addition to the 32855 `@type` 32856 32857 field. Example (for message [google.protobuf.Duration][]): 32858 32859 { 32860 "@type": "type.googleapis.com/google.protobuf.Duration", 32861 "value": "1.212s" 32862 } 32863 parameters: 32864 - name: class_id 32865 description: class_id associated with the nft 32866 in: path 32867 required: true 32868 type: string 32869 tags: 32870 - Query 32871 /cosmos/group/v1/group_info/{group_id}: 32872 get: 32873 summary: GroupInfo queries group info based on group id. 32874 operationId: GroupInfo 32875 responses: 32876 '200': 32877 description: A successful response. 32878 schema: 32879 type: object 32880 properties: 32881 info: 32882 description: info is the GroupInfo of the group. 32883 type: object 32884 properties: 32885 id: 32886 type: string 32887 format: uint64 32888 description: id is the unique ID of the group. 32889 admin: 32890 type: string 32891 description: admin is the account address of the group's admin. 32892 metadata: 32893 type: string 32894 title: >- 32895 metadata is any arbitrary metadata to attached to the 32896 group. 32897 32898 the recommended format of the metadata is to be found 32899 here: 32900 https://docs.cosmos.network/v0.47/modules/group#group-1 32901 version: 32902 type: string 32903 format: uint64 32904 title: >- 32905 version is used to track changes to a group's membership 32906 structure that 32907 32908 would break existing proposals. Whenever any members 32909 weight is changed, 32910 32911 or any member is added or removed this version is 32912 incremented and will 32913 32914 cause proposals based on older versions of this group to 32915 fail 32916 total_weight: 32917 type: string 32918 description: total_weight is the sum of the group members' weights. 32919 created_at: 32920 type: string 32921 format: date-time 32922 description: >- 32923 created_at is a timestamp specifying when a group was 32924 created. 32925 description: QueryGroupInfoResponse is the Query/GroupInfo response type. 32926 default: 32927 description: An unexpected error response. 32928 schema: 32929 type: object 32930 properties: 32931 error: 32932 type: string 32933 code: 32934 type: integer 32935 format: int32 32936 message: 32937 type: string 32938 details: 32939 type: array 32940 items: 32941 type: object 32942 properties: 32943 type_url: 32944 type: string 32945 description: >- 32946 A URL/resource name that uniquely identifies the type of 32947 the serialized 32948 32949 protocol buffer message. This string must contain at 32950 least 32951 32952 one "/" character. The last segment of the URL's path 32953 must represent 32954 32955 the fully qualified name of the type (as in 32956 32957 `path/google.protobuf.Duration`). The name should be in 32958 a canonical form 32959 32960 (e.g., leading "." is not accepted). 32961 32962 32963 In practice, teams usually precompile into the binary 32964 all types that they 32965 32966 expect it to use in the context of Any. However, for 32967 URLs which use the 32968 32969 scheme `http`, `https`, or no scheme, one can optionally 32970 set up a type 32971 32972 server that maps type URLs to message definitions as 32973 follows: 32974 32975 32976 * If no scheme is provided, `https` is assumed. 32977 32978 * An HTTP GET on the URL must yield a 32979 [google.protobuf.Type][] 32980 value in binary format, or produce an error. 32981 * Applications are allowed to cache lookup results based 32982 on the 32983 URL, or have them precompiled into a binary to avoid any 32984 lookup. Therefore, binary compatibility needs to be preserved 32985 on changes to types. (Use versioned type names to manage 32986 breaking changes.) 32987 32988 Note: this functionality is not currently available in 32989 the official 32990 32991 protobuf release, and it is not used for type URLs 32992 beginning with 32993 32994 type.googleapis.com. 32995 32996 32997 Schemes other than `http`, `https` (or the empty scheme) 32998 might be 32999 33000 used with implementation specific semantics. 33001 value: 33002 type: string 33003 format: byte 33004 description: >- 33005 Must be a valid serialized protocol buffer of the above 33006 specified type. 33007 description: >- 33008 `Any` contains an arbitrary serialized protocol buffer 33009 message along with a 33010 33011 URL that describes the type of the serialized message. 33012 33013 33014 Protobuf library provides support to pack/unpack Any values 33015 in the form 33016 33017 of utility functions or additional generated methods of the 33018 Any type. 33019 33020 33021 Example 1: Pack and unpack a message in C++. 33022 33023 Foo foo = ...; 33024 Any any; 33025 any.PackFrom(foo); 33026 ... 33027 if (any.UnpackTo(&foo)) { 33028 ... 33029 } 33030 33031 Example 2: Pack and unpack a message in Java. 33032 33033 Foo foo = ...; 33034 Any any = Any.pack(foo); 33035 ... 33036 if (any.is(Foo.class)) { 33037 foo = any.unpack(Foo.class); 33038 } 33039 // or ... 33040 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 33041 foo = any.unpack(Foo.getDefaultInstance()); 33042 } 33043 33044 Example 3: Pack and unpack a message in Python. 33045 33046 foo = Foo(...) 33047 any = Any() 33048 any.Pack(foo) 33049 ... 33050 if any.Is(Foo.DESCRIPTOR): 33051 any.Unpack(foo) 33052 ... 33053 33054 Example 4: Pack and unpack a message in Go 33055 33056 foo := &pb.Foo{...} 33057 any, err := anypb.New(foo) 33058 if err != nil { 33059 ... 33060 } 33061 ... 33062 foo := &pb.Foo{} 33063 if err := any.UnmarshalTo(foo); err != nil { 33064 ... 33065 } 33066 33067 The pack methods provided by protobuf library will by 33068 default use 33069 33070 'type.googleapis.com/full.type.name' as the type URL and the 33071 unpack 33072 33073 methods only use the fully qualified type name after the 33074 last '/' 33075 33076 in the type URL, for example "foo.bar.com/x/y.z" will yield 33077 type 33078 33079 name "y.z". 33080 33081 33082 JSON 33083 33084 33085 The JSON representation of an `Any` value uses the regular 33086 33087 representation of the deserialized, embedded message, with 33088 an 33089 33090 additional field `@type` which contains the type URL. 33091 Example: 33092 33093 package google.profile; 33094 message Person { 33095 string first_name = 1; 33096 string last_name = 2; 33097 } 33098 33099 { 33100 "@type": "type.googleapis.com/google.profile.Person", 33101 "firstName": <string>, 33102 "lastName": <string> 33103 } 33104 33105 If the embedded message type is well-known and has a custom 33106 JSON 33107 33108 representation, that representation will be embedded adding 33109 a field 33110 33111 `value` which holds the custom JSON in addition to the 33112 `@type` 33113 33114 field. Example (for message [google.protobuf.Duration][]): 33115 33116 { 33117 "@type": "type.googleapis.com/google.protobuf.Duration", 33118 "value": "1.212s" 33119 } 33120 parameters: 33121 - name: group_id 33122 description: group_id is the unique ID of the group. 33123 in: path 33124 required: true 33125 type: string 33126 format: uint64 33127 tags: 33128 - Query 33129 /cosmos/group/v1/group_members/{group_id}: 33130 get: 33131 summary: GroupMembers queries members of a group by group id. 33132 operationId: GroupMembers 33133 responses: 33134 '200': 33135 description: A successful response. 33136 schema: 33137 type: object 33138 properties: 33139 members: 33140 type: array 33141 items: 33142 type: object 33143 properties: 33144 group_id: 33145 type: string 33146 format: uint64 33147 description: group_id is the unique ID of the group. 33148 member: 33149 description: member is the member data. 33150 type: object 33151 properties: 33152 address: 33153 type: string 33154 description: address is the member's account address. 33155 weight: 33156 type: string 33157 description: >- 33158 weight is the member's voting weight that should be 33159 greater than 0. 33160 metadata: 33161 type: string 33162 description: >- 33163 metadata is any arbitrary metadata attached to the 33164 member. 33165 added_at: 33166 type: string 33167 format: date-time 33168 description: >- 33169 added_at is a timestamp specifying when a member was 33170 added. 33171 description: >- 33172 GroupMember represents the relationship between a group and 33173 a member. 33174 description: members are the members of the group with given group_id. 33175 pagination: 33176 description: pagination defines the pagination in the response. 33177 type: object 33178 properties: 33179 next_key: 33180 type: string 33181 format: byte 33182 description: |- 33183 next_key is the key to be passed to PageRequest.key to 33184 query the next page most efficiently. It will be empty if 33185 there are no more results. 33186 total: 33187 type: string 33188 format: uint64 33189 title: >- 33190 total is total number of results available if 33191 PageRequest.count_total 33192 33193 was set, its value is undefined otherwise 33194 description: >- 33195 QueryGroupMembersResponse is the Query/GroupMembersResponse 33196 response type. 33197 default: 33198 description: An unexpected error response. 33199 schema: 33200 type: object 33201 properties: 33202 error: 33203 type: string 33204 code: 33205 type: integer 33206 format: int32 33207 message: 33208 type: string 33209 details: 33210 type: array 33211 items: 33212 type: object 33213 properties: 33214 type_url: 33215 type: string 33216 description: >- 33217 A URL/resource name that uniquely identifies the type of 33218 the serialized 33219 33220 protocol buffer message. This string must contain at 33221 least 33222 33223 one "/" character. The last segment of the URL's path 33224 must represent 33225 33226 the fully qualified name of the type (as in 33227 33228 `path/google.protobuf.Duration`). The name should be in 33229 a canonical form 33230 33231 (e.g., leading "." is not accepted). 33232 33233 33234 In practice, teams usually precompile into the binary 33235 all types that they 33236 33237 expect it to use in the context of Any. However, for 33238 URLs which use the 33239 33240 scheme `http`, `https`, or no scheme, one can optionally 33241 set up a type 33242 33243 server that maps type URLs to message definitions as 33244 follows: 33245 33246 33247 * If no scheme is provided, `https` is assumed. 33248 33249 * An HTTP GET on the URL must yield a 33250 [google.protobuf.Type][] 33251 value in binary format, or produce an error. 33252 * Applications are allowed to cache lookup results based 33253 on the 33254 URL, or have them precompiled into a binary to avoid any 33255 lookup. Therefore, binary compatibility needs to be preserved 33256 on changes to types. (Use versioned type names to manage 33257 breaking changes.) 33258 33259 Note: this functionality is not currently available in 33260 the official 33261 33262 protobuf release, and it is not used for type URLs 33263 beginning with 33264 33265 type.googleapis.com. 33266 33267 33268 Schemes other than `http`, `https` (or the empty scheme) 33269 might be 33270 33271 used with implementation specific semantics. 33272 value: 33273 type: string 33274 format: byte 33275 description: >- 33276 Must be a valid serialized protocol buffer of the above 33277 specified type. 33278 description: >- 33279 `Any` contains an arbitrary serialized protocol buffer 33280 message along with a 33281 33282 URL that describes the type of the serialized message. 33283 33284 33285 Protobuf library provides support to pack/unpack Any values 33286 in the form 33287 33288 of utility functions or additional generated methods of the 33289 Any type. 33290 33291 33292 Example 1: Pack and unpack a message in C++. 33293 33294 Foo foo = ...; 33295 Any any; 33296 any.PackFrom(foo); 33297 ... 33298 if (any.UnpackTo(&foo)) { 33299 ... 33300 } 33301 33302 Example 2: Pack and unpack a message in Java. 33303 33304 Foo foo = ...; 33305 Any any = Any.pack(foo); 33306 ... 33307 if (any.is(Foo.class)) { 33308 foo = any.unpack(Foo.class); 33309 } 33310 // or ... 33311 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 33312 foo = any.unpack(Foo.getDefaultInstance()); 33313 } 33314 33315 Example 3: Pack and unpack a message in Python. 33316 33317 foo = Foo(...) 33318 any = Any() 33319 any.Pack(foo) 33320 ... 33321 if any.Is(Foo.DESCRIPTOR): 33322 any.Unpack(foo) 33323 ... 33324 33325 Example 4: Pack and unpack a message in Go 33326 33327 foo := &pb.Foo{...} 33328 any, err := anypb.New(foo) 33329 if err != nil { 33330 ... 33331 } 33332 ... 33333 foo := &pb.Foo{} 33334 if err := any.UnmarshalTo(foo); err != nil { 33335 ... 33336 } 33337 33338 The pack methods provided by protobuf library will by 33339 default use 33340 33341 'type.googleapis.com/full.type.name' as the type URL and the 33342 unpack 33343 33344 methods only use the fully qualified type name after the 33345 last '/' 33346 33347 in the type URL, for example "foo.bar.com/x/y.z" will yield 33348 type 33349 33350 name "y.z". 33351 33352 33353 JSON 33354 33355 33356 The JSON representation of an `Any` value uses the regular 33357 33358 representation of the deserialized, embedded message, with 33359 an 33360 33361 additional field `@type` which contains the type URL. 33362 Example: 33363 33364 package google.profile; 33365 message Person { 33366 string first_name = 1; 33367 string last_name = 2; 33368 } 33369 33370 { 33371 "@type": "type.googleapis.com/google.profile.Person", 33372 "firstName": <string>, 33373 "lastName": <string> 33374 } 33375 33376 If the embedded message type is well-known and has a custom 33377 JSON 33378 33379 representation, that representation will be embedded adding 33380 a field 33381 33382 `value` which holds the custom JSON in addition to the 33383 `@type` 33384 33385 field. Example (for message [google.protobuf.Duration][]): 33386 33387 { 33388 "@type": "type.googleapis.com/google.protobuf.Duration", 33389 "value": "1.212s" 33390 } 33391 parameters: 33392 - name: group_id 33393 description: group_id is the unique ID of the group. 33394 in: path 33395 required: true 33396 type: string 33397 format: uint64 33398 - name: pagination.key 33399 description: |- 33400 key is a value returned in PageResponse.next_key to begin 33401 querying the next page most efficiently. Only one of offset or key 33402 should be set. 33403 in: query 33404 required: false 33405 type: string 33406 format: byte 33407 - name: pagination.offset 33408 description: >- 33409 offset is a numeric offset that can be used when key is unavailable. 33410 33411 It is less efficient than using key. Only one of offset or key 33412 should 33413 33414 be set. 33415 in: query 33416 required: false 33417 type: string 33418 format: uint64 33419 - name: pagination.limit 33420 description: >- 33421 limit is the total number of results to be returned in the result 33422 page. 33423 33424 If left empty it will default to a value to be set by each app. 33425 in: query 33426 required: false 33427 type: string 33428 format: uint64 33429 - name: pagination.count_total 33430 description: >- 33431 count_total is set to true to indicate that the result set should 33432 include 33433 33434 a count of the total number of items available for pagination in 33435 UIs. 33436 33437 count_total is only respected when offset is used. It is ignored 33438 when key 33439 33440 is set. 33441 in: query 33442 required: false 33443 type: boolean 33444 - name: pagination.reverse 33445 description: >- 33446 reverse is set to true if results are to be returned in the 33447 descending order. 33448 33449 33450 Since: cosmos-sdk 0.43 33451 in: query 33452 required: false 33453 type: boolean 33454 tags: 33455 - Query 33456 /cosmos/group/v1/group_policies_by_admin/{admin}: 33457 get: 33458 summary: GroupPoliciesByAdmin queries group policies by admin address. 33459 operationId: GroupPoliciesByAdmin 33460 responses: 33461 '200': 33462 description: A successful response. 33463 schema: 33464 type: object 33465 properties: 33466 group_policies: 33467 type: array 33468 items: 33469 type: object 33470 properties: 33471 address: 33472 type: string 33473 description: address is the account address of group policy. 33474 group_id: 33475 type: string 33476 format: uint64 33477 description: group_id is the unique ID of the group. 33478 admin: 33479 type: string 33480 description: admin is the account address of the group admin. 33481 metadata: 33482 type: string 33483 title: >- 33484 metadata is any arbitrary metadata attached to the group 33485 policy. 33486 33487 the recommended format of the metadata is to be found 33488 here: 33489 33490 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 33491 version: 33492 type: string 33493 format: uint64 33494 description: >- 33495 version is used to track changes to a group's 33496 GroupPolicyInfo structure that 33497 33498 would create a different result on a running proposal. 33499 decision_policy: 33500 type: object 33501 properties: 33502 type_url: 33503 type: string 33504 description: >- 33505 A URL/resource name that uniquely identifies the 33506 type of the serialized 33507 33508 protocol buffer message. This string must contain at 33509 least 33510 33511 one "/" character. The last segment of the URL's 33512 path must represent 33513 33514 the fully qualified name of the type (as in 33515 33516 `path/google.protobuf.Duration`). The name should be 33517 in a canonical form 33518 33519 (e.g., leading "." is not accepted). 33520 33521 33522 In practice, teams usually precompile into the 33523 binary all types that they 33524 33525 expect it to use in the context of Any. However, for 33526 URLs which use the 33527 33528 scheme `http`, `https`, or no scheme, one can 33529 optionally set up a type 33530 33531 server that maps type URLs to message definitions as 33532 follows: 33533 33534 33535 * If no scheme is provided, `https` is assumed. 33536 33537 * An HTTP GET on the URL must yield a 33538 [google.protobuf.Type][] 33539 value in binary format, or produce an error. 33540 * Applications are allowed to cache lookup results 33541 based on the 33542 URL, or have them precompiled into a binary to avoid any 33543 lookup. Therefore, binary compatibility needs to be preserved 33544 on changes to types. (Use versioned type names to manage 33545 breaking changes.) 33546 33547 Note: this functionality is not currently available 33548 in the official 33549 33550 protobuf release, and it is not used for type URLs 33551 beginning with 33552 33553 type.googleapis.com. 33554 33555 33556 Schemes other than `http`, `https` (or the empty 33557 scheme) might be 33558 33559 used with implementation specific semantics. 33560 value: 33561 type: string 33562 format: byte 33563 description: >- 33564 Must be a valid serialized protocol buffer of the 33565 above specified type. 33566 description: >- 33567 `Any` contains an arbitrary serialized protocol buffer 33568 message along with a 33569 33570 URL that describes the type of the serialized message. 33571 33572 33573 Protobuf library provides support to pack/unpack Any 33574 values in the form 33575 33576 of utility functions or additional generated methods of 33577 the Any type. 33578 33579 33580 Example 1: Pack and unpack a message in C++. 33581 33582 Foo foo = ...; 33583 Any any; 33584 any.PackFrom(foo); 33585 ... 33586 if (any.UnpackTo(&foo)) { 33587 ... 33588 } 33589 33590 Example 2: Pack and unpack a message in Java. 33591 33592 Foo foo = ...; 33593 Any any = Any.pack(foo); 33594 ... 33595 if (any.is(Foo.class)) { 33596 foo = any.unpack(Foo.class); 33597 } 33598 // or ... 33599 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 33600 foo = any.unpack(Foo.getDefaultInstance()); 33601 } 33602 33603 Example 3: Pack and unpack a message in Python. 33604 33605 foo = Foo(...) 33606 any = Any() 33607 any.Pack(foo) 33608 ... 33609 if any.Is(Foo.DESCRIPTOR): 33610 any.Unpack(foo) 33611 ... 33612 33613 Example 4: Pack and unpack a message in Go 33614 33615 foo := &pb.Foo{...} 33616 any, err := anypb.New(foo) 33617 if err != nil { 33618 ... 33619 } 33620 ... 33621 foo := &pb.Foo{} 33622 if err := any.UnmarshalTo(foo); err != nil { 33623 ... 33624 } 33625 33626 The pack methods provided by protobuf library will by 33627 default use 33628 33629 'type.googleapis.com/full.type.name' as the type URL and 33630 the unpack 33631 33632 methods only use the fully qualified type name after the 33633 last '/' 33634 33635 in the type URL, for example "foo.bar.com/x/y.z" will 33636 yield type 33637 33638 name "y.z". 33639 33640 33641 JSON 33642 33643 33644 The JSON representation of an `Any` value uses the 33645 regular 33646 33647 representation of the deserialized, embedded message, 33648 with an 33649 33650 additional field `@type` which contains the type URL. 33651 Example: 33652 33653 package google.profile; 33654 message Person { 33655 string first_name = 1; 33656 string last_name = 2; 33657 } 33658 33659 { 33660 "@type": "type.googleapis.com/google.profile.Person", 33661 "firstName": <string>, 33662 "lastName": <string> 33663 } 33664 33665 If the embedded message type is well-known and has a 33666 custom JSON 33667 33668 representation, that representation will be embedded 33669 adding a field 33670 33671 `value` which holds the custom JSON in addition to the 33672 `@type` 33673 33674 field. Example (for message 33675 [google.protobuf.Duration][]): 33676 33677 { 33678 "@type": "type.googleapis.com/google.protobuf.Duration", 33679 "value": "1.212s" 33680 } 33681 created_at: 33682 type: string 33683 format: date-time 33684 description: >- 33685 created_at is a timestamp specifying when a group policy 33686 was created. 33687 description: >- 33688 GroupPolicyInfo represents the high-level on-chain 33689 information for a group policy. 33690 description: >- 33691 group_policies are the group policies info with provided 33692 admin. 33693 pagination: 33694 description: pagination defines the pagination in the response. 33695 type: object 33696 properties: 33697 next_key: 33698 type: string 33699 format: byte 33700 description: |- 33701 next_key is the key to be passed to PageRequest.key to 33702 query the next page most efficiently. It will be empty if 33703 there are no more results. 33704 total: 33705 type: string 33706 format: uint64 33707 title: >- 33708 total is total number of results available if 33709 PageRequest.count_total 33710 33711 was set, its value is undefined otherwise 33712 description: >- 33713 QueryGroupPoliciesByAdminResponse is the 33714 Query/GroupPoliciesByAdmin response type. 33715 default: 33716 description: An unexpected error response. 33717 schema: 33718 type: object 33719 properties: 33720 error: 33721 type: string 33722 code: 33723 type: integer 33724 format: int32 33725 message: 33726 type: string 33727 details: 33728 type: array 33729 items: 33730 type: object 33731 properties: 33732 type_url: 33733 type: string 33734 description: >- 33735 A URL/resource name that uniquely identifies the type of 33736 the serialized 33737 33738 protocol buffer message. This string must contain at 33739 least 33740 33741 one "/" character. The last segment of the URL's path 33742 must represent 33743 33744 the fully qualified name of the type (as in 33745 33746 `path/google.protobuf.Duration`). The name should be in 33747 a canonical form 33748 33749 (e.g., leading "." is not accepted). 33750 33751 33752 In practice, teams usually precompile into the binary 33753 all types that they 33754 33755 expect it to use in the context of Any. However, for 33756 URLs which use the 33757 33758 scheme `http`, `https`, or no scheme, one can optionally 33759 set up a type 33760 33761 server that maps type URLs to message definitions as 33762 follows: 33763 33764 33765 * If no scheme is provided, `https` is assumed. 33766 33767 * An HTTP GET on the URL must yield a 33768 [google.protobuf.Type][] 33769 value in binary format, or produce an error. 33770 * Applications are allowed to cache lookup results based 33771 on the 33772 URL, or have them precompiled into a binary to avoid any 33773 lookup. Therefore, binary compatibility needs to be preserved 33774 on changes to types. (Use versioned type names to manage 33775 breaking changes.) 33776 33777 Note: this functionality is not currently available in 33778 the official 33779 33780 protobuf release, and it is not used for type URLs 33781 beginning with 33782 33783 type.googleapis.com. 33784 33785 33786 Schemes other than `http`, `https` (or the empty scheme) 33787 might be 33788 33789 used with implementation specific semantics. 33790 value: 33791 type: string 33792 format: byte 33793 description: >- 33794 Must be a valid serialized protocol buffer of the above 33795 specified type. 33796 description: >- 33797 `Any` contains an arbitrary serialized protocol buffer 33798 message along with a 33799 33800 URL that describes the type of the serialized message. 33801 33802 33803 Protobuf library provides support to pack/unpack Any values 33804 in the form 33805 33806 of utility functions or additional generated methods of the 33807 Any type. 33808 33809 33810 Example 1: Pack and unpack a message in C++. 33811 33812 Foo foo = ...; 33813 Any any; 33814 any.PackFrom(foo); 33815 ... 33816 if (any.UnpackTo(&foo)) { 33817 ... 33818 } 33819 33820 Example 2: Pack and unpack a message in Java. 33821 33822 Foo foo = ...; 33823 Any any = Any.pack(foo); 33824 ... 33825 if (any.is(Foo.class)) { 33826 foo = any.unpack(Foo.class); 33827 } 33828 // or ... 33829 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 33830 foo = any.unpack(Foo.getDefaultInstance()); 33831 } 33832 33833 Example 3: Pack and unpack a message in Python. 33834 33835 foo = Foo(...) 33836 any = Any() 33837 any.Pack(foo) 33838 ... 33839 if any.Is(Foo.DESCRIPTOR): 33840 any.Unpack(foo) 33841 ... 33842 33843 Example 4: Pack and unpack a message in Go 33844 33845 foo := &pb.Foo{...} 33846 any, err := anypb.New(foo) 33847 if err != nil { 33848 ... 33849 } 33850 ... 33851 foo := &pb.Foo{} 33852 if err := any.UnmarshalTo(foo); err != nil { 33853 ... 33854 } 33855 33856 The pack methods provided by protobuf library will by 33857 default use 33858 33859 'type.googleapis.com/full.type.name' as the type URL and the 33860 unpack 33861 33862 methods only use the fully qualified type name after the 33863 last '/' 33864 33865 in the type URL, for example "foo.bar.com/x/y.z" will yield 33866 type 33867 33868 name "y.z". 33869 33870 33871 JSON 33872 33873 33874 The JSON representation of an `Any` value uses the regular 33875 33876 representation of the deserialized, embedded message, with 33877 an 33878 33879 additional field `@type` which contains the type URL. 33880 Example: 33881 33882 package google.profile; 33883 message Person { 33884 string first_name = 1; 33885 string last_name = 2; 33886 } 33887 33888 { 33889 "@type": "type.googleapis.com/google.profile.Person", 33890 "firstName": <string>, 33891 "lastName": <string> 33892 } 33893 33894 If the embedded message type is well-known and has a custom 33895 JSON 33896 33897 representation, that representation will be embedded adding 33898 a field 33899 33900 `value` which holds the custom JSON in addition to the 33901 `@type` 33902 33903 field. Example (for message [google.protobuf.Duration][]): 33904 33905 { 33906 "@type": "type.googleapis.com/google.protobuf.Duration", 33907 "value": "1.212s" 33908 } 33909 parameters: 33910 - name: admin 33911 description: admin is the admin address of the group policy. 33912 in: path 33913 required: true 33914 type: string 33915 - name: pagination.key 33916 description: |- 33917 key is a value returned in PageResponse.next_key to begin 33918 querying the next page most efficiently. Only one of offset or key 33919 should be set. 33920 in: query 33921 required: false 33922 type: string 33923 format: byte 33924 - name: pagination.offset 33925 description: >- 33926 offset is a numeric offset that can be used when key is unavailable. 33927 33928 It is less efficient than using key. Only one of offset or key 33929 should 33930 33931 be set. 33932 in: query 33933 required: false 33934 type: string 33935 format: uint64 33936 - name: pagination.limit 33937 description: >- 33938 limit is the total number of results to be returned in the result 33939 page. 33940 33941 If left empty it will default to a value to be set by each app. 33942 in: query 33943 required: false 33944 type: string 33945 format: uint64 33946 - name: pagination.count_total 33947 description: >- 33948 count_total is set to true to indicate that the result set should 33949 include 33950 33951 a count of the total number of items available for pagination in 33952 UIs. 33953 33954 count_total is only respected when offset is used. It is ignored 33955 when key 33956 33957 is set. 33958 in: query 33959 required: false 33960 type: boolean 33961 - name: pagination.reverse 33962 description: >- 33963 reverse is set to true if results are to be returned in the 33964 descending order. 33965 33966 33967 Since: cosmos-sdk 0.43 33968 in: query 33969 required: false 33970 type: boolean 33971 tags: 33972 - Query 33973 /cosmos/group/v1/group_policies_by_group/{group_id}: 33974 get: 33975 summary: GroupPoliciesByGroup queries group policies by group id. 33976 operationId: GroupPoliciesByGroup 33977 responses: 33978 '200': 33979 description: A successful response. 33980 schema: 33981 type: object 33982 properties: 33983 group_policies: 33984 type: array 33985 items: 33986 type: object 33987 properties: 33988 address: 33989 type: string 33990 description: address is the account address of group policy. 33991 group_id: 33992 type: string 33993 format: uint64 33994 description: group_id is the unique ID of the group. 33995 admin: 33996 type: string 33997 description: admin is the account address of the group admin. 33998 metadata: 33999 type: string 34000 title: >- 34001 metadata is any arbitrary metadata attached to the group 34002 policy. 34003 34004 the recommended format of the metadata is to be found 34005 here: 34006 34007 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 34008 version: 34009 type: string 34010 format: uint64 34011 description: >- 34012 version is used to track changes to a group's 34013 GroupPolicyInfo structure that 34014 34015 would create a different result on a running proposal. 34016 decision_policy: 34017 type: object 34018 properties: 34019 type_url: 34020 type: string 34021 description: >- 34022 A URL/resource name that uniquely identifies the 34023 type of the serialized 34024 34025 protocol buffer message. This string must contain at 34026 least 34027 34028 one "/" character. The last segment of the URL's 34029 path must represent 34030 34031 the fully qualified name of the type (as in 34032 34033 `path/google.protobuf.Duration`). The name should be 34034 in a canonical form 34035 34036 (e.g., leading "." is not accepted). 34037 34038 34039 In practice, teams usually precompile into the 34040 binary all types that they 34041 34042 expect it to use in the context of Any. However, for 34043 URLs which use the 34044 34045 scheme `http`, `https`, or no scheme, one can 34046 optionally set up a type 34047 34048 server that maps type URLs to message definitions as 34049 follows: 34050 34051 34052 * If no scheme is provided, `https` is assumed. 34053 34054 * An HTTP GET on the URL must yield a 34055 [google.protobuf.Type][] 34056 value in binary format, or produce an error. 34057 * Applications are allowed to cache lookup results 34058 based on the 34059 URL, or have them precompiled into a binary to avoid any 34060 lookup. Therefore, binary compatibility needs to be preserved 34061 on changes to types. (Use versioned type names to manage 34062 breaking changes.) 34063 34064 Note: this functionality is not currently available 34065 in the official 34066 34067 protobuf release, and it is not used for type URLs 34068 beginning with 34069 34070 type.googleapis.com. 34071 34072 34073 Schemes other than `http`, `https` (or the empty 34074 scheme) might be 34075 34076 used with implementation specific semantics. 34077 value: 34078 type: string 34079 format: byte 34080 description: >- 34081 Must be a valid serialized protocol buffer of the 34082 above specified type. 34083 description: >- 34084 `Any` contains an arbitrary serialized protocol buffer 34085 message along with a 34086 34087 URL that describes the type of the serialized message. 34088 34089 34090 Protobuf library provides support to pack/unpack Any 34091 values in the form 34092 34093 of utility functions or additional generated methods of 34094 the Any type. 34095 34096 34097 Example 1: Pack and unpack a message in C++. 34098 34099 Foo foo = ...; 34100 Any any; 34101 any.PackFrom(foo); 34102 ... 34103 if (any.UnpackTo(&foo)) { 34104 ... 34105 } 34106 34107 Example 2: Pack and unpack a message in Java. 34108 34109 Foo foo = ...; 34110 Any any = Any.pack(foo); 34111 ... 34112 if (any.is(Foo.class)) { 34113 foo = any.unpack(Foo.class); 34114 } 34115 // or ... 34116 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 34117 foo = any.unpack(Foo.getDefaultInstance()); 34118 } 34119 34120 Example 3: Pack and unpack a message in Python. 34121 34122 foo = Foo(...) 34123 any = Any() 34124 any.Pack(foo) 34125 ... 34126 if any.Is(Foo.DESCRIPTOR): 34127 any.Unpack(foo) 34128 ... 34129 34130 Example 4: Pack and unpack a message in Go 34131 34132 foo := &pb.Foo{...} 34133 any, err := anypb.New(foo) 34134 if err != nil { 34135 ... 34136 } 34137 ... 34138 foo := &pb.Foo{} 34139 if err := any.UnmarshalTo(foo); err != nil { 34140 ... 34141 } 34142 34143 The pack methods provided by protobuf library will by 34144 default use 34145 34146 'type.googleapis.com/full.type.name' as the type URL and 34147 the unpack 34148 34149 methods only use the fully qualified type name after the 34150 last '/' 34151 34152 in the type URL, for example "foo.bar.com/x/y.z" will 34153 yield type 34154 34155 name "y.z". 34156 34157 34158 JSON 34159 34160 34161 The JSON representation of an `Any` value uses the 34162 regular 34163 34164 representation of the deserialized, embedded message, 34165 with an 34166 34167 additional field `@type` which contains the type URL. 34168 Example: 34169 34170 package google.profile; 34171 message Person { 34172 string first_name = 1; 34173 string last_name = 2; 34174 } 34175 34176 { 34177 "@type": "type.googleapis.com/google.profile.Person", 34178 "firstName": <string>, 34179 "lastName": <string> 34180 } 34181 34182 If the embedded message type is well-known and has a 34183 custom JSON 34184 34185 representation, that representation will be embedded 34186 adding a field 34187 34188 `value` which holds the custom JSON in addition to the 34189 `@type` 34190 34191 field. Example (for message 34192 [google.protobuf.Duration][]): 34193 34194 { 34195 "@type": "type.googleapis.com/google.protobuf.Duration", 34196 "value": "1.212s" 34197 } 34198 created_at: 34199 type: string 34200 format: date-time 34201 description: >- 34202 created_at is a timestamp specifying when a group policy 34203 was created. 34204 description: >- 34205 GroupPolicyInfo represents the high-level on-chain 34206 information for a group policy. 34207 description: >- 34208 group_policies are the group policies info associated with the 34209 provided group. 34210 pagination: 34211 description: pagination defines the pagination in the response. 34212 type: object 34213 properties: 34214 next_key: 34215 type: string 34216 format: byte 34217 description: |- 34218 next_key is the key to be passed to PageRequest.key to 34219 query the next page most efficiently. It will be empty if 34220 there are no more results. 34221 total: 34222 type: string 34223 format: uint64 34224 title: >- 34225 total is total number of results available if 34226 PageRequest.count_total 34227 34228 was set, its value is undefined otherwise 34229 description: >- 34230 QueryGroupPoliciesByGroupResponse is the 34231 Query/GroupPoliciesByGroup response type. 34232 default: 34233 description: An unexpected error response. 34234 schema: 34235 type: object 34236 properties: 34237 error: 34238 type: string 34239 code: 34240 type: integer 34241 format: int32 34242 message: 34243 type: string 34244 details: 34245 type: array 34246 items: 34247 type: object 34248 properties: 34249 type_url: 34250 type: string 34251 description: >- 34252 A URL/resource name that uniquely identifies the type of 34253 the serialized 34254 34255 protocol buffer message. This string must contain at 34256 least 34257 34258 one "/" character. The last segment of the URL's path 34259 must represent 34260 34261 the fully qualified name of the type (as in 34262 34263 `path/google.protobuf.Duration`). The name should be in 34264 a canonical form 34265 34266 (e.g., leading "." is not accepted). 34267 34268 34269 In practice, teams usually precompile into the binary 34270 all types that they 34271 34272 expect it to use in the context of Any. However, for 34273 URLs which use the 34274 34275 scheme `http`, `https`, or no scheme, one can optionally 34276 set up a type 34277 34278 server that maps type URLs to message definitions as 34279 follows: 34280 34281 34282 * If no scheme is provided, `https` is assumed. 34283 34284 * An HTTP GET on the URL must yield a 34285 [google.protobuf.Type][] 34286 value in binary format, or produce an error. 34287 * Applications are allowed to cache lookup results based 34288 on the 34289 URL, or have them precompiled into a binary to avoid any 34290 lookup. Therefore, binary compatibility needs to be preserved 34291 on changes to types. (Use versioned type names to manage 34292 breaking changes.) 34293 34294 Note: this functionality is not currently available in 34295 the official 34296 34297 protobuf release, and it is not used for type URLs 34298 beginning with 34299 34300 type.googleapis.com. 34301 34302 34303 Schemes other than `http`, `https` (or the empty scheme) 34304 might be 34305 34306 used with implementation specific semantics. 34307 value: 34308 type: string 34309 format: byte 34310 description: >- 34311 Must be a valid serialized protocol buffer of the above 34312 specified type. 34313 description: >- 34314 `Any` contains an arbitrary serialized protocol buffer 34315 message along with a 34316 34317 URL that describes the type of the serialized message. 34318 34319 34320 Protobuf library provides support to pack/unpack Any values 34321 in the form 34322 34323 of utility functions or additional generated methods of the 34324 Any type. 34325 34326 34327 Example 1: Pack and unpack a message in C++. 34328 34329 Foo foo = ...; 34330 Any any; 34331 any.PackFrom(foo); 34332 ... 34333 if (any.UnpackTo(&foo)) { 34334 ... 34335 } 34336 34337 Example 2: Pack and unpack a message in Java. 34338 34339 Foo foo = ...; 34340 Any any = Any.pack(foo); 34341 ... 34342 if (any.is(Foo.class)) { 34343 foo = any.unpack(Foo.class); 34344 } 34345 // or ... 34346 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 34347 foo = any.unpack(Foo.getDefaultInstance()); 34348 } 34349 34350 Example 3: Pack and unpack a message in Python. 34351 34352 foo = Foo(...) 34353 any = Any() 34354 any.Pack(foo) 34355 ... 34356 if any.Is(Foo.DESCRIPTOR): 34357 any.Unpack(foo) 34358 ... 34359 34360 Example 4: Pack and unpack a message in Go 34361 34362 foo := &pb.Foo{...} 34363 any, err := anypb.New(foo) 34364 if err != nil { 34365 ... 34366 } 34367 ... 34368 foo := &pb.Foo{} 34369 if err := any.UnmarshalTo(foo); err != nil { 34370 ... 34371 } 34372 34373 The pack methods provided by protobuf library will by 34374 default use 34375 34376 'type.googleapis.com/full.type.name' as the type URL and the 34377 unpack 34378 34379 methods only use the fully qualified type name after the 34380 last '/' 34381 34382 in the type URL, for example "foo.bar.com/x/y.z" will yield 34383 type 34384 34385 name "y.z". 34386 34387 34388 JSON 34389 34390 34391 The JSON representation of an `Any` value uses the regular 34392 34393 representation of the deserialized, embedded message, with 34394 an 34395 34396 additional field `@type` which contains the type URL. 34397 Example: 34398 34399 package google.profile; 34400 message Person { 34401 string first_name = 1; 34402 string last_name = 2; 34403 } 34404 34405 { 34406 "@type": "type.googleapis.com/google.profile.Person", 34407 "firstName": <string>, 34408 "lastName": <string> 34409 } 34410 34411 If the embedded message type is well-known and has a custom 34412 JSON 34413 34414 representation, that representation will be embedded adding 34415 a field 34416 34417 `value` which holds the custom JSON in addition to the 34418 `@type` 34419 34420 field. Example (for message [google.protobuf.Duration][]): 34421 34422 { 34423 "@type": "type.googleapis.com/google.protobuf.Duration", 34424 "value": "1.212s" 34425 } 34426 parameters: 34427 - name: group_id 34428 description: group_id is the unique ID of the group policy's group. 34429 in: path 34430 required: true 34431 type: string 34432 format: uint64 34433 - name: pagination.key 34434 description: |- 34435 key is a value returned in PageResponse.next_key to begin 34436 querying the next page most efficiently. Only one of offset or key 34437 should be set. 34438 in: query 34439 required: false 34440 type: string 34441 format: byte 34442 - name: pagination.offset 34443 description: >- 34444 offset is a numeric offset that can be used when key is unavailable. 34445 34446 It is less efficient than using key. Only one of offset or key 34447 should 34448 34449 be set. 34450 in: query 34451 required: false 34452 type: string 34453 format: uint64 34454 - name: pagination.limit 34455 description: >- 34456 limit is the total number of results to be returned in the result 34457 page. 34458 34459 If left empty it will default to a value to be set by each app. 34460 in: query 34461 required: false 34462 type: string 34463 format: uint64 34464 - name: pagination.count_total 34465 description: >- 34466 count_total is set to true to indicate that the result set should 34467 include 34468 34469 a count of the total number of items available for pagination in 34470 UIs. 34471 34472 count_total is only respected when offset is used. It is ignored 34473 when key 34474 34475 is set. 34476 in: query 34477 required: false 34478 type: boolean 34479 - name: pagination.reverse 34480 description: >- 34481 reverse is set to true if results are to be returned in the 34482 descending order. 34483 34484 34485 Since: cosmos-sdk 0.43 34486 in: query 34487 required: false 34488 type: boolean 34489 tags: 34490 - Query 34491 /cosmos/group/v1/group_policy_info/{address}: 34492 get: 34493 summary: >- 34494 GroupPolicyInfo queries group policy info based on account address of 34495 group policy. 34496 operationId: GroupPolicyInfo 34497 responses: 34498 '200': 34499 description: A successful response. 34500 schema: 34501 type: object 34502 properties: 34503 info: 34504 type: object 34505 properties: 34506 address: 34507 type: string 34508 description: address is the account address of group policy. 34509 group_id: 34510 type: string 34511 format: uint64 34512 description: group_id is the unique ID of the group. 34513 admin: 34514 type: string 34515 description: admin is the account address of the group admin. 34516 metadata: 34517 type: string 34518 title: >- 34519 metadata is any arbitrary metadata attached to the group 34520 policy. 34521 34522 the recommended format of the metadata is to be found 34523 here: 34524 34525 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 34526 version: 34527 type: string 34528 format: uint64 34529 description: >- 34530 version is used to track changes to a group's 34531 GroupPolicyInfo structure that 34532 34533 would create a different result on a running proposal. 34534 decision_policy: 34535 type: object 34536 properties: 34537 type_url: 34538 type: string 34539 description: >- 34540 A URL/resource name that uniquely identifies the type 34541 of the serialized 34542 34543 protocol buffer message. This string must contain at 34544 least 34545 34546 one "/" character. The last segment of the URL's path 34547 must represent 34548 34549 the fully qualified name of the type (as in 34550 34551 `path/google.protobuf.Duration`). The name should be 34552 in a canonical form 34553 34554 (e.g., leading "." is not accepted). 34555 34556 34557 In practice, teams usually precompile into the binary 34558 all types that they 34559 34560 expect it to use in the context of Any. However, for 34561 URLs which use the 34562 34563 scheme `http`, `https`, or no scheme, one can 34564 optionally set up a type 34565 34566 server that maps type URLs to message definitions as 34567 follows: 34568 34569 34570 * If no scheme is provided, `https` is assumed. 34571 34572 * An HTTP GET on the URL must yield a 34573 [google.protobuf.Type][] 34574 value in binary format, or produce an error. 34575 * Applications are allowed to cache lookup results 34576 based on the 34577 URL, or have them precompiled into a binary to avoid any 34578 lookup. Therefore, binary compatibility needs to be preserved 34579 on changes to types. (Use versioned type names to manage 34580 breaking changes.) 34581 34582 Note: this functionality is not currently available in 34583 the official 34584 34585 protobuf release, and it is not used for type URLs 34586 beginning with 34587 34588 type.googleapis.com. 34589 34590 34591 Schemes other than `http`, `https` (or the empty 34592 scheme) might be 34593 34594 used with implementation specific semantics. 34595 value: 34596 type: string 34597 format: byte 34598 description: >- 34599 Must be a valid serialized protocol buffer of the 34600 above specified type. 34601 description: >- 34602 `Any` contains an arbitrary serialized protocol buffer 34603 message along with a 34604 34605 URL that describes the type of the serialized message. 34606 34607 34608 Protobuf library provides support to pack/unpack Any 34609 values in the form 34610 34611 of utility functions or additional generated methods of 34612 the Any type. 34613 34614 34615 Example 1: Pack and unpack a message in C++. 34616 34617 Foo foo = ...; 34618 Any any; 34619 any.PackFrom(foo); 34620 ... 34621 if (any.UnpackTo(&foo)) { 34622 ... 34623 } 34624 34625 Example 2: Pack and unpack a message in Java. 34626 34627 Foo foo = ...; 34628 Any any = Any.pack(foo); 34629 ... 34630 if (any.is(Foo.class)) { 34631 foo = any.unpack(Foo.class); 34632 } 34633 // or ... 34634 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 34635 foo = any.unpack(Foo.getDefaultInstance()); 34636 } 34637 34638 Example 3: Pack and unpack a message in Python. 34639 34640 foo = Foo(...) 34641 any = Any() 34642 any.Pack(foo) 34643 ... 34644 if any.Is(Foo.DESCRIPTOR): 34645 any.Unpack(foo) 34646 ... 34647 34648 Example 4: Pack and unpack a message in Go 34649 34650 foo := &pb.Foo{...} 34651 any, err := anypb.New(foo) 34652 if err != nil { 34653 ... 34654 } 34655 ... 34656 foo := &pb.Foo{} 34657 if err := any.UnmarshalTo(foo); err != nil { 34658 ... 34659 } 34660 34661 The pack methods provided by protobuf library will by 34662 default use 34663 34664 'type.googleapis.com/full.type.name' as the type URL and 34665 the unpack 34666 34667 methods only use the fully qualified type name after the 34668 last '/' 34669 34670 in the type URL, for example "foo.bar.com/x/y.z" will 34671 yield type 34672 34673 name "y.z". 34674 34675 34676 JSON 34677 34678 34679 The JSON representation of an `Any` value uses the regular 34680 34681 representation of the deserialized, embedded message, with 34682 an 34683 34684 additional field `@type` which contains the type URL. 34685 Example: 34686 34687 package google.profile; 34688 message Person { 34689 string first_name = 1; 34690 string last_name = 2; 34691 } 34692 34693 { 34694 "@type": "type.googleapis.com/google.profile.Person", 34695 "firstName": <string>, 34696 "lastName": <string> 34697 } 34698 34699 If the embedded message type is well-known and has a 34700 custom JSON 34701 34702 representation, that representation will be embedded 34703 adding a field 34704 34705 `value` which holds the custom JSON in addition to the 34706 `@type` 34707 34708 field. Example (for message [google.protobuf.Duration][]): 34709 34710 { 34711 "@type": "type.googleapis.com/google.protobuf.Duration", 34712 "value": "1.212s" 34713 } 34714 created_at: 34715 type: string 34716 format: date-time 34717 description: >- 34718 created_at is a timestamp specifying when a group policy 34719 was created. 34720 description: >- 34721 GroupPolicyInfo represents the high-level on-chain information 34722 for a group policy. 34723 description: >- 34724 QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response 34725 type. 34726 default: 34727 description: An unexpected error response. 34728 schema: 34729 type: object 34730 properties: 34731 error: 34732 type: string 34733 code: 34734 type: integer 34735 format: int32 34736 message: 34737 type: string 34738 details: 34739 type: array 34740 items: 34741 type: object 34742 properties: 34743 type_url: 34744 type: string 34745 description: >- 34746 A URL/resource name that uniquely identifies the type of 34747 the serialized 34748 34749 protocol buffer message. This string must contain at 34750 least 34751 34752 one "/" character. The last segment of the URL's path 34753 must represent 34754 34755 the fully qualified name of the type (as in 34756 34757 `path/google.protobuf.Duration`). The name should be in 34758 a canonical form 34759 34760 (e.g., leading "." is not accepted). 34761 34762 34763 In practice, teams usually precompile into the binary 34764 all types that they 34765 34766 expect it to use in the context of Any. However, for 34767 URLs which use the 34768 34769 scheme `http`, `https`, or no scheme, one can optionally 34770 set up a type 34771 34772 server that maps type URLs to message definitions as 34773 follows: 34774 34775 34776 * If no scheme is provided, `https` is assumed. 34777 34778 * An HTTP GET on the URL must yield a 34779 [google.protobuf.Type][] 34780 value in binary format, or produce an error. 34781 * Applications are allowed to cache lookup results based 34782 on the 34783 URL, or have them precompiled into a binary to avoid any 34784 lookup. Therefore, binary compatibility needs to be preserved 34785 on changes to types. (Use versioned type names to manage 34786 breaking changes.) 34787 34788 Note: this functionality is not currently available in 34789 the official 34790 34791 protobuf release, and it is not used for type URLs 34792 beginning with 34793 34794 type.googleapis.com. 34795 34796 34797 Schemes other than `http`, `https` (or the empty scheme) 34798 might be 34799 34800 used with implementation specific semantics. 34801 value: 34802 type: string 34803 format: byte 34804 description: >- 34805 Must be a valid serialized protocol buffer of the above 34806 specified type. 34807 description: >- 34808 `Any` contains an arbitrary serialized protocol buffer 34809 message along with a 34810 34811 URL that describes the type of the serialized message. 34812 34813 34814 Protobuf library provides support to pack/unpack Any values 34815 in the form 34816 34817 of utility functions or additional generated methods of the 34818 Any type. 34819 34820 34821 Example 1: Pack and unpack a message in C++. 34822 34823 Foo foo = ...; 34824 Any any; 34825 any.PackFrom(foo); 34826 ... 34827 if (any.UnpackTo(&foo)) { 34828 ... 34829 } 34830 34831 Example 2: Pack and unpack a message in Java. 34832 34833 Foo foo = ...; 34834 Any any = Any.pack(foo); 34835 ... 34836 if (any.is(Foo.class)) { 34837 foo = any.unpack(Foo.class); 34838 } 34839 // or ... 34840 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 34841 foo = any.unpack(Foo.getDefaultInstance()); 34842 } 34843 34844 Example 3: Pack and unpack a message in Python. 34845 34846 foo = Foo(...) 34847 any = Any() 34848 any.Pack(foo) 34849 ... 34850 if any.Is(Foo.DESCRIPTOR): 34851 any.Unpack(foo) 34852 ... 34853 34854 Example 4: Pack and unpack a message in Go 34855 34856 foo := &pb.Foo{...} 34857 any, err := anypb.New(foo) 34858 if err != nil { 34859 ... 34860 } 34861 ... 34862 foo := &pb.Foo{} 34863 if err := any.UnmarshalTo(foo); err != nil { 34864 ... 34865 } 34866 34867 The pack methods provided by protobuf library will by 34868 default use 34869 34870 'type.googleapis.com/full.type.name' as the type URL and the 34871 unpack 34872 34873 methods only use the fully qualified type name after the 34874 last '/' 34875 34876 in the type URL, for example "foo.bar.com/x/y.z" will yield 34877 type 34878 34879 name "y.z". 34880 34881 34882 JSON 34883 34884 34885 The JSON representation of an `Any` value uses the regular 34886 34887 representation of the deserialized, embedded message, with 34888 an 34889 34890 additional field `@type` which contains the type URL. 34891 Example: 34892 34893 package google.profile; 34894 message Person { 34895 string first_name = 1; 34896 string last_name = 2; 34897 } 34898 34899 { 34900 "@type": "type.googleapis.com/google.profile.Person", 34901 "firstName": <string>, 34902 "lastName": <string> 34903 } 34904 34905 If the embedded message type is well-known and has a custom 34906 JSON 34907 34908 representation, that representation will be embedded adding 34909 a field 34910 34911 `value` which holds the custom JSON in addition to the 34912 `@type` 34913 34914 field. Example (for message [google.protobuf.Duration][]): 34915 34916 { 34917 "@type": "type.googleapis.com/google.protobuf.Duration", 34918 "value": "1.212s" 34919 } 34920 parameters: 34921 - name: address 34922 description: address is the account address of the group policy. 34923 in: path 34924 required: true 34925 type: string 34926 tags: 34927 - Query 34928 /cosmos/group/v1/groups: 34929 get: 34930 summary: Groups queries all groups in state. 34931 description: 'Since: cosmos-sdk 0.47.1' 34932 operationId: Groups 34933 responses: 34934 '200': 34935 description: A successful response. 34936 schema: 34937 type: object 34938 properties: 34939 groups: 34940 type: array 34941 items: 34942 type: object 34943 properties: 34944 id: 34945 type: string 34946 format: uint64 34947 description: id is the unique ID of the group. 34948 admin: 34949 type: string 34950 description: admin is the account address of the group's admin. 34951 metadata: 34952 type: string 34953 title: >- 34954 metadata is any arbitrary metadata to attached to the 34955 group. 34956 34957 the recommended format of the metadata is to be found 34958 here: 34959 https://docs.cosmos.network/v0.47/modules/group#group-1 34960 version: 34961 type: string 34962 format: uint64 34963 title: >- 34964 version is used to track changes to a group's membership 34965 structure that 34966 34967 would break existing proposals. Whenever any members 34968 weight is changed, 34969 34970 or any member is added or removed this version is 34971 incremented and will 34972 34973 cause proposals based on older versions of this group to 34974 fail 34975 total_weight: 34976 type: string 34977 description: total_weight is the sum of the group members' weights. 34978 created_at: 34979 type: string 34980 format: date-time 34981 description: >- 34982 created_at is a timestamp specifying when a group was 34983 created. 34984 description: >- 34985 GroupInfo represents the high-level on-chain information for 34986 a group. 34987 description: '`groups` is all the groups present in state.' 34988 pagination: 34989 description: pagination defines the pagination in the response. 34990 type: object 34991 properties: 34992 next_key: 34993 type: string 34994 format: byte 34995 description: |- 34996 next_key is the key to be passed to PageRequest.key to 34997 query the next page most efficiently. It will be empty if 34998 there are no more results. 34999 total: 35000 type: string 35001 format: uint64 35002 title: >- 35003 total is total number of results available if 35004 PageRequest.count_total 35005 35006 was set, its value is undefined otherwise 35007 description: |- 35008 QueryGroupsResponse is the Query/Groups response type. 35009 35010 Since: cosmos-sdk 0.47.1 35011 default: 35012 description: An unexpected error response. 35013 schema: 35014 type: object 35015 properties: 35016 error: 35017 type: string 35018 code: 35019 type: integer 35020 format: int32 35021 message: 35022 type: string 35023 details: 35024 type: array 35025 items: 35026 type: object 35027 properties: 35028 type_url: 35029 type: string 35030 description: >- 35031 A URL/resource name that uniquely identifies the type of 35032 the serialized 35033 35034 protocol buffer message. This string must contain at 35035 least 35036 35037 one "/" character. The last segment of the URL's path 35038 must represent 35039 35040 the fully qualified name of the type (as in 35041 35042 `path/google.protobuf.Duration`). The name should be in 35043 a canonical form 35044 35045 (e.g., leading "." is not accepted). 35046 35047 35048 In practice, teams usually precompile into the binary 35049 all types that they 35050 35051 expect it to use in the context of Any. However, for 35052 URLs which use the 35053 35054 scheme `http`, `https`, or no scheme, one can optionally 35055 set up a type 35056 35057 server that maps type URLs to message definitions as 35058 follows: 35059 35060 35061 * If no scheme is provided, `https` is assumed. 35062 35063 * An HTTP GET on the URL must yield a 35064 [google.protobuf.Type][] 35065 value in binary format, or produce an error. 35066 * Applications are allowed to cache lookup results based 35067 on the 35068 URL, or have them precompiled into a binary to avoid any 35069 lookup. Therefore, binary compatibility needs to be preserved 35070 on changes to types. (Use versioned type names to manage 35071 breaking changes.) 35072 35073 Note: this functionality is not currently available in 35074 the official 35075 35076 protobuf release, and it is not used for type URLs 35077 beginning with 35078 35079 type.googleapis.com. 35080 35081 35082 Schemes other than `http`, `https` (or the empty scheme) 35083 might be 35084 35085 used with implementation specific semantics. 35086 value: 35087 type: string 35088 format: byte 35089 description: >- 35090 Must be a valid serialized protocol buffer of the above 35091 specified type. 35092 description: >- 35093 `Any` contains an arbitrary serialized protocol buffer 35094 message along with a 35095 35096 URL that describes the type of the serialized message. 35097 35098 35099 Protobuf library provides support to pack/unpack Any values 35100 in the form 35101 35102 of utility functions or additional generated methods of the 35103 Any type. 35104 35105 35106 Example 1: Pack and unpack a message in C++. 35107 35108 Foo foo = ...; 35109 Any any; 35110 any.PackFrom(foo); 35111 ... 35112 if (any.UnpackTo(&foo)) { 35113 ... 35114 } 35115 35116 Example 2: Pack and unpack a message in Java. 35117 35118 Foo foo = ...; 35119 Any any = Any.pack(foo); 35120 ... 35121 if (any.is(Foo.class)) { 35122 foo = any.unpack(Foo.class); 35123 } 35124 // or ... 35125 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 35126 foo = any.unpack(Foo.getDefaultInstance()); 35127 } 35128 35129 Example 3: Pack and unpack a message in Python. 35130 35131 foo = Foo(...) 35132 any = Any() 35133 any.Pack(foo) 35134 ... 35135 if any.Is(Foo.DESCRIPTOR): 35136 any.Unpack(foo) 35137 ... 35138 35139 Example 4: Pack and unpack a message in Go 35140 35141 foo := &pb.Foo{...} 35142 any, err := anypb.New(foo) 35143 if err != nil { 35144 ... 35145 } 35146 ... 35147 foo := &pb.Foo{} 35148 if err := any.UnmarshalTo(foo); err != nil { 35149 ... 35150 } 35151 35152 The pack methods provided by protobuf library will by 35153 default use 35154 35155 'type.googleapis.com/full.type.name' as the type URL and the 35156 unpack 35157 35158 methods only use the fully qualified type name after the 35159 last '/' 35160 35161 in the type URL, for example "foo.bar.com/x/y.z" will yield 35162 type 35163 35164 name "y.z". 35165 35166 35167 JSON 35168 35169 35170 The JSON representation of an `Any` value uses the regular 35171 35172 representation of the deserialized, embedded message, with 35173 an 35174 35175 additional field `@type` which contains the type URL. 35176 Example: 35177 35178 package google.profile; 35179 message Person { 35180 string first_name = 1; 35181 string last_name = 2; 35182 } 35183 35184 { 35185 "@type": "type.googleapis.com/google.profile.Person", 35186 "firstName": <string>, 35187 "lastName": <string> 35188 } 35189 35190 If the embedded message type is well-known and has a custom 35191 JSON 35192 35193 representation, that representation will be embedded adding 35194 a field 35195 35196 `value` which holds the custom JSON in addition to the 35197 `@type` 35198 35199 field. Example (for message [google.protobuf.Duration][]): 35200 35201 { 35202 "@type": "type.googleapis.com/google.protobuf.Duration", 35203 "value": "1.212s" 35204 } 35205 parameters: 35206 - name: pagination.key 35207 description: |- 35208 key is a value returned in PageResponse.next_key to begin 35209 querying the next page most efficiently. Only one of offset or key 35210 should be set. 35211 in: query 35212 required: false 35213 type: string 35214 format: byte 35215 - name: pagination.offset 35216 description: >- 35217 offset is a numeric offset that can be used when key is unavailable. 35218 35219 It is less efficient than using key. Only one of offset or key 35220 should 35221 35222 be set. 35223 in: query 35224 required: false 35225 type: string 35226 format: uint64 35227 - name: pagination.limit 35228 description: >- 35229 limit is the total number of results to be returned in the result 35230 page. 35231 35232 If left empty it will default to a value to be set by each app. 35233 in: query 35234 required: false 35235 type: string 35236 format: uint64 35237 - name: pagination.count_total 35238 description: >- 35239 count_total is set to true to indicate that the result set should 35240 include 35241 35242 a count of the total number of items available for pagination in 35243 UIs. 35244 35245 count_total is only respected when offset is used. It is ignored 35246 when key 35247 35248 is set. 35249 in: query 35250 required: false 35251 type: boolean 35252 - name: pagination.reverse 35253 description: >- 35254 reverse is set to true if results are to be returned in the 35255 descending order. 35256 35257 35258 Since: cosmos-sdk 0.43 35259 in: query 35260 required: false 35261 type: boolean 35262 tags: 35263 - Query 35264 /cosmos/group/v1/groups_by_admin/{admin}: 35265 get: 35266 summary: GroupsByAdmin queries groups by admin address. 35267 operationId: GroupsByAdmin 35268 responses: 35269 '200': 35270 description: A successful response. 35271 schema: 35272 type: object 35273 properties: 35274 groups: 35275 type: array 35276 items: 35277 type: object 35278 properties: 35279 id: 35280 type: string 35281 format: uint64 35282 description: id is the unique ID of the group. 35283 admin: 35284 type: string 35285 description: admin is the account address of the group's admin. 35286 metadata: 35287 type: string 35288 title: >- 35289 metadata is any arbitrary metadata to attached to the 35290 group. 35291 35292 the recommended format of the metadata is to be found 35293 here: 35294 https://docs.cosmos.network/v0.47/modules/group#group-1 35295 version: 35296 type: string 35297 format: uint64 35298 title: >- 35299 version is used to track changes to a group's membership 35300 structure that 35301 35302 would break existing proposals. Whenever any members 35303 weight is changed, 35304 35305 or any member is added or removed this version is 35306 incremented and will 35307 35308 cause proposals based on older versions of this group to 35309 fail 35310 total_weight: 35311 type: string 35312 description: total_weight is the sum of the group members' weights. 35313 created_at: 35314 type: string 35315 format: date-time 35316 description: >- 35317 created_at is a timestamp specifying when a group was 35318 created. 35319 description: >- 35320 GroupInfo represents the high-level on-chain information for 35321 a group. 35322 description: groups are the groups info with the provided admin. 35323 pagination: 35324 description: pagination defines the pagination in the response. 35325 type: object 35326 properties: 35327 next_key: 35328 type: string 35329 format: byte 35330 description: |- 35331 next_key is the key to be passed to PageRequest.key to 35332 query the next page most efficiently. It will be empty if 35333 there are no more results. 35334 total: 35335 type: string 35336 format: uint64 35337 title: >- 35338 total is total number of results available if 35339 PageRequest.count_total 35340 35341 was set, its value is undefined otherwise 35342 description: >- 35343 QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse 35344 response type. 35345 default: 35346 description: An unexpected error response. 35347 schema: 35348 type: object 35349 properties: 35350 error: 35351 type: string 35352 code: 35353 type: integer 35354 format: int32 35355 message: 35356 type: string 35357 details: 35358 type: array 35359 items: 35360 type: object 35361 properties: 35362 type_url: 35363 type: string 35364 description: >- 35365 A URL/resource name that uniquely identifies the type of 35366 the serialized 35367 35368 protocol buffer message. This string must contain at 35369 least 35370 35371 one "/" character. The last segment of the URL's path 35372 must represent 35373 35374 the fully qualified name of the type (as in 35375 35376 `path/google.protobuf.Duration`). The name should be in 35377 a canonical form 35378 35379 (e.g., leading "." is not accepted). 35380 35381 35382 In practice, teams usually precompile into the binary 35383 all types that they 35384 35385 expect it to use in the context of Any. However, for 35386 URLs which use the 35387 35388 scheme `http`, `https`, or no scheme, one can optionally 35389 set up a type 35390 35391 server that maps type URLs to message definitions as 35392 follows: 35393 35394 35395 * If no scheme is provided, `https` is assumed. 35396 35397 * An HTTP GET on the URL must yield a 35398 [google.protobuf.Type][] 35399 value in binary format, or produce an error. 35400 * Applications are allowed to cache lookup results based 35401 on the 35402 URL, or have them precompiled into a binary to avoid any 35403 lookup. Therefore, binary compatibility needs to be preserved 35404 on changes to types. (Use versioned type names to manage 35405 breaking changes.) 35406 35407 Note: this functionality is not currently available in 35408 the official 35409 35410 protobuf release, and it is not used for type URLs 35411 beginning with 35412 35413 type.googleapis.com. 35414 35415 35416 Schemes other than `http`, `https` (or the empty scheme) 35417 might be 35418 35419 used with implementation specific semantics. 35420 value: 35421 type: string 35422 format: byte 35423 description: >- 35424 Must be a valid serialized protocol buffer of the above 35425 specified type. 35426 description: >- 35427 `Any` contains an arbitrary serialized protocol buffer 35428 message along with a 35429 35430 URL that describes the type of the serialized message. 35431 35432 35433 Protobuf library provides support to pack/unpack Any values 35434 in the form 35435 35436 of utility functions or additional generated methods of the 35437 Any type. 35438 35439 35440 Example 1: Pack and unpack a message in C++. 35441 35442 Foo foo = ...; 35443 Any any; 35444 any.PackFrom(foo); 35445 ... 35446 if (any.UnpackTo(&foo)) { 35447 ... 35448 } 35449 35450 Example 2: Pack and unpack a message in Java. 35451 35452 Foo foo = ...; 35453 Any any = Any.pack(foo); 35454 ... 35455 if (any.is(Foo.class)) { 35456 foo = any.unpack(Foo.class); 35457 } 35458 // or ... 35459 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 35460 foo = any.unpack(Foo.getDefaultInstance()); 35461 } 35462 35463 Example 3: Pack and unpack a message in Python. 35464 35465 foo = Foo(...) 35466 any = Any() 35467 any.Pack(foo) 35468 ... 35469 if any.Is(Foo.DESCRIPTOR): 35470 any.Unpack(foo) 35471 ... 35472 35473 Example 4: Pack and unpack a message in Go 35474 35475 foo := &pb.Foo{...} 35476 any, err := anypb.New(foo) 35477 if err != nil { 35478 ... 35479 } 35480 ... 35481 foo := &pb.Foo{} 35482 if err := any.UnmarshalTo(foo); err != nil { 35483 ... 35484 } 35485 35486 The pack methods provided by protobuf library will by 35487 default use 35488 35489 'type.googleapis.com/full.type.name' as the type URL and the 35490 unpack 35491 35492 methods only use the fully qualified type name after the 35493 last '/' 35494 35495 in the type URL, for example "foo.bar.com/x/y.z" will yield 35496 type 35497 35498 name "y.z". 35499 35500 35501 JSON 35502 35503 35504 The JSON representation of an `Any` value uses the regular 35505 35506 representation of the deserialized, embedded message, with 35507 an 35508 35509 additional field `@type` which contains the type URL. 35510 Example: 35511 35512 package google.profile; 35513 message Person { 35514 string first_name = 1; 35515 string last_name = 2; 35516 } 35517 35518 { 35519 "@type": "type.googleapis.com/google.profile.Person", 35520 "firstName": <string>, 35521 "lastName": <string> 35522 } 35523 35524 If the embedded message type is well-known and has a custom 35525 JSON 35526 35527 representation, that representation will be embedded adding 35528 a field 35529 35530 `value` which holds the custom JSON in addition to the 35531 `@type` 35532 35533 field. Example (for message [google.protobuf.Duration][]): 35534 35535 { 35536 "@type": "type.googleapis.com/google.protobuf.Duration", 35537 "value": "1.212s" 35538 } 35539 parameters: 35540 - name: admin 35541 description: admin is the account address of a group's admin. 35542 in: path 35543 required: true 35544 type: string 35545 - name: pagination.key 35546 description: |- 35547 key is a value returned in PageResponse.next_key to begin 35548 querying the next page most efficiently. Only one of offset or key 35549 should be set. 35550 in: query 35551 required: false 35552 type: string 35553 format: byte 35554 - name: pagination.offset 35555 description: >- 35556 offset is a numeric offset that can be used when key is unavailable. 35557 35558 It is less efficient than using key. Only one of offset or key 35559 should 35560 35561 be set. 35562 in: query 35563 required: false 35564 type: string 35565 format: uint64 35566 - name: pagination.limit 35567 description: >- 35568 limit is the total number of results to be returned in the result 35569 page. 35570 35571 If left empty it will default to a value to be set by each app. 35572 in: query 35573 required: false 35574 type: string 35575 format: uint64 35576 - name: pagination.count_total 35577 description: >- 35578 count_total is set to true to indicate that the result set should 35579 include 35580 35581 a count of the total number of items available for pagination in 35582 UIs. 35583 35584 count_total is only respected when offset is used. It is ignored 35585 when key 35586 35587 is set. 35588 in: query 35589 required: false 35590 type: boolean 35591 - name: pagination.reverse 35592 description: >- 35593 reverse is set to true if results are to be returned in the 35594 descending order. 35595 35596 35597 Since: cosmos-sdk 0.43 35598 in: query 35599 required: false 35600 type: boolean 35601 tags: 35602 - Query 35603 /cosmos/group/v1/groups_by_member/{address}: 35604 get: 35605 summary: GroupsByMember queries groups by member address. 35606 operationId: GroupsByMember 35607 responses: 35608 '200': 35609 description: A successful response. 35610 schema: 35611 type: object 35612 properties: 35613 groups: 35614 type: array 35615 items: 35616 type: object 35617 properties: 35618 id: 35619 type: string 35620 format: uint64 35621 description: id is the unique ID of the group. 35622 admin: 35623 type: string 35624 description: admin is the account address of the group's admin. 35625 metadata: 35626 type: string 35627 title: >- 35628 metadata is any arbitrary metadata to attached to the 35629 group. 35630 35631 the recommended format of the metadata is to be found 35632 here: 35633 https://docs.cosmos.network/v0.47/modules/group#group-1 35634 version: 35635 type: string 35636 format: uint64 35637 title: >- 35638 version is used to track changes to a group's membership 35639 structure that 35640 35641 would break existing proposals. Whenever any members 35642 weight is changed, 35643 35644 or any member is added or removed this version is 35645 incremented and will 35646 35647 cause proposals based on older versions of this group to 35648 fail 35649 total_weight: 35650 type: string 35651 description: total_weight is the sum of the group members' weights. 35652 created_at: 35653 type: string 35654 format: date-time 35655 description: >- 35656 created_at is a timestamp specifying when a group was 35657 created. 35658 description: >- 35659 GroupInfo represents the high-level on-chain information for 35660 a group. 35661 description: groups are the groups info with the provided group member. 35662 pagination: 35663 description: pagination defines the pagination in the response. 35664 type: object 35665 properties: 35666 next_key: 35667 type: string 35668 format: byte 35669 description: |- 35670 next_key is the key to be passed to PageRequest.key to 35671 query the next page most efficiently. It will be empty if 35672 there are no more results. 35673 total: 35674 type: string 35675 format: uint64 35676 title: >- 35677 total is total number of results available if 35678 PageRequest.count_total 35679 35680 was set, its value is undefined otherwise 35681 description: >- 35682 QueryGroupsByMemberResponse is the Query/GroupsByMember response 35683 type. 35684 default: 35685 description: An unexpected error response. 35686 schema: 35687 type: object 35688 properties: 35689 error: 35690 type: string 35691 code: 35692 type: integer 35693 format: int32 35694 message: 35695 type: string 35696 details: 35697 type: array 35698 items: 35699 type: object 35700 properties: 35701 type_url: 35702 type: string 35703 description: >- 35704 A URL/resource name that uniquely identifies the type of 35705 the serialized 35706 35707 protocol buffer message. This string must contain at 35708 least 35709 35710 one "/" character. The last segment of the URL's path 35711 must represent 35712 35713 the fully qualified name of the type (as in 35714 35715 `path/google.protobuf.Duration`). The name should be in 35716 a canonical form 35717 35718 (e.g., leading "." is not accepted). 35719 35720 35721 In practice, teams usually precompile into the binary 35722 all types that they 35723 35724 expect it to use in the context of Any. However, for 35725 URLs which use the 35726 35727 scheme `http`, `https`, or no scheme, one can optionally 35728 set up a type 35729 35730 server that maps type URLs to message definitions as 35731 follows: 35732 35733 35734 * If no scheme is provided, `https` is assumed. 35735 35736 * An HTTP GET on the URL must yield a 35737 [google.protobuf.Type][] 35738 value in binary format, or produce an error. 35739 * Applications are allowed to cache lookup results based 35740 on the 35741 URL, or have them precompiled into a binary to avoid any 35742 lookup. Therefore, binary compatibility needs to be preserved 35743 on changes to types. (Use versioned type names to manage 35744 breaking changes.) 35745 35746 Note: this functionality is not currently available in 35747 the official 35748 35749 protobuf release, and it is not used for type URLs 35750 beginning with 35751 35752 type.googleapis.com. 35753 35754 35755 Schemes other than `http`, `https` (or the empty scheme) 35756 might be 35757 35758 used with implementation specific semantics. 35759 value: 35760 type: string 35761 format: byte 35762 description: >- 35763 Must be a valid serialized protocol buffer of the above 35764 specified type. 35765 description: >- 35766 `Any` contains an arbitrary serialized protocol buffer 35767 message along with a 35768 35769 URL that describes the type of the serialized message. 35770 35771 35772 Protobuf library provides support to pack/unpack Any values 35773 in the form 35774 35775 of utility functions or additional generated methods of the 35776 Any type. 35777 35778 35779 Example 1: Pack and unpack a message in C++. 35780 35781 Foo foo = ...; 35782 Any any; 35783 any.PackFrom(foo); 35784 ... 35785 if (any.UnpackTo(&foo)) { 35786 ... 35787 } 35788 35789 Example 2: Pack and unpack a message in Java. 35790 35791 Foo foo = ...; 35792 Any any = Any.pack(foo); 35793 ... 35794 if (any.is(Foo.class)) { 35795 foo = any.unpack(Foo.class); 35796 } 35797 // or ... 35798 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 35799 foo = any.unpack(Foo.getDefaultInstance()); 35800 } 35801 35802 Example 3: Pack and unpack a message in Python. 35803 35804 foo = Foo(...) 35805 any = Any() 35806 any.Pack(foo) 35807 ... 35808 if any.Is(Foo.DESCRIPTOR): 35809 any.Unpack(foo) 35810 ... 35811 35812 Example 4: Pack and unpack a message in Go 35813 35814 foo := &pb.Foo{...} 35815 any, err := anypb.New(foo) 35816 if err != nil { 35817 ... 35818 } 35819 ... 35820 foo := &pb.Foo{} 35821 if err := any.UnmarshalTo(foo); err != nil { 35822 ... 35823 } 35824 35825 The pack methods provided by protobuf library will by 35826 default use 35827 35828 'type.googleapis.com/full.type.name' as the type URL and the 35829 unpack 35830 35831 methods only use the fully qualified type name after the 35832 last '/' 35833 35834 in the type URL, for example "foo.bar.com/x/y.z" will yield 35835 type 35836 35837 name "y.z". 35838 35839 35840 JSON 35841 35842 35843 The JSON representation of an `Any` value uses the regular 35844 35845 representation of the deserialized, embedded message, with 35846 an 35847 35848 additional field `@type` which contains the type URL. 35849 Example: 35850 35851 package google.profile; 35852 message Person { 35853 string first_name = 1; 35854 string last_name = 2; 35855 } 35856 35857 { 35858 "@type": "type.googleapis.com/google.profile.Person", 35859 "firstName": <string>, 35860 "lastName": <string> 35861 } 35862 35863 If the embedded message type is well-known and has a custom 35864 JSON 35865 35866 representation, that representation will be embedded adding 35867 a field 35868 35869 `value` which holds the custom JSON in addition to the 35870 `@type` 35871 35872 field. Example (for message [google.protobuf.Duration][]): 35873 35874 { 35875 "@type": "type.googleapis.com/google.protobuf.Duration", 35876 "value": "1.212s" 35877 } 35878 parameters: 35879 - name: address 35880 description: address is the group member address. 35881 in: path 35882 required: true 35883 type: string 35884 - name: pagination.key 35885 description: |- 35886 key is a value returned in PageResponse.next_key to begin 35887 querying the next page most efficiently. Only one of offset or key 35888 should be set. 35889 in: query 35890 required: false 35891 type: string 35892 format: byte 35893 - name: pagination.offset 35894 description: >- 35895 offset is a numeric offset that can be used when key is unavailable. 35896 35897 It is less efficient than using key. Only one of offset or key 35898 should 35899 35900 be set. 35901 in: query 35902 required: false 35903 type: string 35904 format: uint64 35905 - name: pagination.limit 35906 description: >- 35907 limit is the total number of results to be returned in the result 35908 page. 35909 35910 If left empty it will default to a value to be set by each app. 35911 in: query 35912 required: false 35913 type: string 35914 format: uint64 35915 - name: pagination.count_total 35916 description: >- 35917 count_total is set to true to indicate that the result set should 35918 include 35919 35920 a count of the total number of items available for pagination in 35921 UIs. 35922 35923 count_total is only respected when offset is used. It is ignored 35924 when key 35925 35926 is set. 35927 in: query 35928 required: false 35929 type: boolean 35930 - name: pagination.reverse 35931 description: >- 35932 reverse is set to true if results are to be returned in the 35933 descending order. 35934 35935 35936 Since: cosmos-sdk 0.43 35937 in: query 35938 required: false 35939 type: boolean 35940 tags: 35941 - Query 35942 /cosmos/group/v1/proposal/{proposal_id}: 35943 get: 35944 summary: Proposal queries a proposal based on proposal id. 35945 operationId: GroupProposal 35946 responses: 35947 '200': 35948 description: A successful response. 35949 schema: 35950 type: object 35951 properties: 35952 proposal: 35953 description: proposal is the proposal info. 35954 type: object 35955 properties: 35956 id: 35957 type: string 35958 format: uint64 35959 description: id is the unique id of the proposal. 35960 group_policy_address: 35961 type: string 35962 description: >- 35963 group_policy_address is the account address of group 35964 policy. 35965 metadata: 35966 type: string 35967 title: >- 35968 metadata is any arbitrary metadata attached to the 35969 proposal. 35970 35971 the recommended format of the metadata is to be found 35972 here: 35973 35974 https://docs.cosmos.network/v0.47/modules/group#proposal-4 35975 proposers: 35976 type: array 35977 items: 35978 type: string 35979 description: proposers are the account addresses of the proposers. 35980 submit_time: 35981 type: string 35982 format: date-time 35983 description: >- 35984 submit_time is a timestamp specifying when a proposal was 35985 submitted. 35986 group_version: 35987 type: string 35988 format: uint64 35989 description: >- 35990 group_version tracks the version of the group at proposal 35991 submission. 35992 35993 This field is here for informational purposes only. 35994 group_policy_version: 35995 type: string 35996 format: uint64 35997 description: >- 35998 group_policy_version tracks the version of the group 35999 policy at proposal submission. 36000 36001 When a decision policy is changed, existing proposals from 36002 previous policy 36003 36004 versions will become invalid with the `ABORTED` status. 36005 36006 This field is here for informational purposes only. 36007 status: 36008 description: >- 36009 status represents the high level position in the life 36010 cycle of the proposal. Initial value is Submitted. 36011 type: string 36012 enum: 36013 - PROPOSAL_STATUS_UNSPECIFIED 36014 - PROPOSAL_STATUS_SUBMITTED 36015 - PROPOSAL_STATUS_ACCEPTED 36016 - PROPOSAL_STATUS_REJECTED 36017 - PROPOSAL_STATUS_ABORTED 36018 - PROPOSAL_STATUS_WITHDRAWN 36019 default: PROPOSAL_STATUS_UNSPECIFIED 36020 final_tally_result: 36021 description: >- 36022 final_tally_result contains the sums of all weighted votes 36023 for this 36024 36025 proposal for each vote option. It is empty at submission, 36026 and only 36027 36028 populated after tallying, at voting period end or at 36029 proposal execution, 36030 36031 whichever happens first. 36032 type: object 36033 properties: 36034 yes_count: 36035 type: string 36036 description: yes_count is the weighted sum of yes votes. 36037 abstain_count: 36038 type: string 36039 description: abstain_count is the weighted sum of abstainers. 36040 no_count: 36041 type: string 36042 description: no_count is the weighted sum of no votes. 36043 no_with_veto_count: 36044 type: string 36045 description: no_with_veto_count is the weighted sum of veto. 36046 voting_period_end: 36047 type: string 36048 format: date-time 36049 description: >- 36050 voting_period_end is the timestamp before which voting 36051 must be done. 36052 36053 Unless a successful MsgExec is called before (to execute a 36054 proposal whose 36055 36056 tally is successful before the voting period ends), 36057 tallying will be done 36058 36059 at this point, and the `final_tally_result`and `status` 36060 fields will be 36061 36062 accordingly updated. 36063 executor_result: 36064 description: >- 36065 executor_result is the final result of the proposal 36066 execution. Initial value is NotRun. 36067 type: string 36068 enum: 36069 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 36070 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN 36071 - PROPOSAL_EXECUTOR_RESULT_SUCCESS 36072 - PROPOSAL_EXECUTOR_RESULT_FAILURE 36073 default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 36074 messages: 36075 type: array 36076 items: 36077 type: object 36078 properties: 36079 type_url: 36080 type: string 36081 description: >- 36082 A URL/resource name that uniquely identifies the 36083 type of the serialized 36084 36085 protocol buffer message. This string must contain at 36086 least 36087 36088 one "/" character. The last segment of the URL's 36089 path must represent 36090 36091 the fully qualified name of the type (as in 36092 36093 `path/google.protobuf.Duration`). The name should be 36094 in a canonical form 36095 36096 (e.g., leading "." is not accepted). 36097 36098 36099 In practice, teams usually precompile into the 36100 binary all types that they 36101 36102 expect it to use in the context of Any. However, for 36103 URLs which use the 36104 36105 scheme `http`, `https`, or no scheme, one can 36106 optionally set up a type 36107 36108 server that maps type URLs to message definitions as 36109 follows: 36110 36111 36112 * If no scheme is provided, `https` is assumed. 36113 36114 * An HTTP GET on the URL must yield a 36115 [google.protobuf.Type][] 36116 value in binary format, or produce an error. 36117 * Applications are allowed to cache lookup results 36118 based on the 36119 URL, or have them precompiled into a binary to avoid any 36120 lookup. Therefore, binary compatibility needs to be preserved 36121 on changes to types. (Use versioned type names to manage 36122 breaking changes.) 36123 36124 Note: this functionality is not currently available 36125 in the official 36126 36127 protobuf release, and it is not used for type URLs 36128 beginning with 36129 36130 type.googleapis.com. 36131 36132 36133 Schemes other than `http`, `https` (or the empty 36134 scheme) might be 36135 36136 used with implementation specific semantics. 36137 value: 36138 type: string 36139 format: byte 36140 description: >- 36141 Must be a valid serialized protocol buffer of the 36142 above specified type. 36143 description: >- 36144 `Any` contains an arbitrary serialized protocol buffer 36145 message along with a 36146 36147 URL that describes the type of the serialized message. 36148 36149 36150 Protobuf library provides support to pack/unpack Any 36151 values in the form 36152 36153 of utility functions or additional generated methods of 36154 the Any type. 36155 36156 36157 Example 1: Pack and unpack a message in C++. 36158 36159 Foo foo = ...; 36160 Any any; 36161 any.PackFrom(foo); 36162 ... 36163 if (any.UnpackTo(&foo)) { 36164 ... 36165 } 36166 36167 Example 2: Pack and unpack a message in Java. 36168 36169 Foo foo = ...; 36170 Any any = Any.pack(foo); 36171 ... 36172 if (any.is(Foo.class)) { 36173 foo = any.unpack(Foo.class); 36174 } 36175 // or ... 36176 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 36177 foo = any.unpack(Foo.getDefaultInstance()); 36178 } 36179 36180 Example 3: Pack and unpack a message in Python. 36181 36182 foo = Foo(...) 36183 any = Any() 36184 any.Pack(foo) 36185 ... 36186 if any.Is(Foo.DESCRIPTOR): 36187 any.Unpack(foo) 36188 ... 36189 36190 Example 4: Pack and unpack a message in Go 36191 36192 foo := &pb.Foo{...} 36193 any, err := anypb.New(foo) 36194 if err != nil { 36195 ... 36196 } 36197 ... 36198 foo := &pb.Foo{} 36199 if err := any.UnmarshalTo(foo); err != nil { 36200 ... 36201 } 36202 36203 The pack methods provided by protobuf library will by 36204 default use 36205 36206 'type.googleapis.com/full.type.name' as the type URL and 36207 the unpack 36208 36209 methods only use the fully qualified type name after the 36210 last '/' 36211 36212 in the type URL, for example "foo.bar.com/x/y.z" will 36213 yield type 36214 36215 name "y.z". 36216 36217 36218 JSON 36219 36220 36221 The JSON representation of an `Any` value uses the 36222 regular 36223 36224 representation of the deserialized, embedded message, 36225 with an 36226 36227 additional field `@type` which contains the type URL. 36228 Example: 36229 36230 package google.profile; 36231 message Person { 36232 string first_name = 1; 36233 string last_name = 2; 36234 } 36235 36236 { 36237 "@type": "type.googleapis.com/google.profile.Person", 36238 "firstName": <string>, 36239 "lastName": <string> 36240 } 36241 36242 If the embedded message type is well-known and has a 36243 custom JSON 36244 36245 representation, that representation will be embedded 36246 adding a field 36247 36248 `value` which holds the custom JSON in addition to the 36249 `@type` 36250 36251 field. Example (for message 36252 [google.protobuf.Duration][]): 36253 36254 { 36255 "@type": "type.googleapis.com/google.protobuf.Duration", 36256 "value": "1.212s" 36257 } 36258 description: >- 36259 messages is a list of `sdk.Msg`s that will be executed if 36260 the proposal passes. 36261 title: 36262 type: string 36263 description: 'Since: cosmos-sdk 0.47' 36264 title: title is the title of the proposal 36265 summary: 36266 type: string 36267 description: 'Since: cosmos-sdk 0.47' 36268 title: summary is a short summary of the proposal 36269 description: QueryProposalResponse is the Query/Proposal response type. 36270 default: 36271 description: An unexpected error response. 36272 schema: 36273 type: object 36274 properties: 36275 error: 36276 type: string 36277 code: 36278 type: integer 36279 format: int32 36280 message: 36281 type: string 36282 details: 36283 type: array 36284 items: 36285 type: object 36286 properties: 36287 type_url: 36288 type: string 36289 description: >- 36290 A URL/resource name that uniquely identifies the type of 36291 the serialized 36292 36293 protocol buffer message. This string must contain at 36294 least 36295 36296 one "/" character. The last segment of the URL's path 36297 must represent 36298 36299 the fully qualified name of the type (as in 36300 36301 `path/google.protobuf.Duration`). The name should be in 36302 a canonical form 36303 36304 (e.g., leading "." is not accepted). 36305 36306 36307 In practice, teams usually precompile into the binary 36308 all types that they 36309 36310 expect it to use in the context of Any. However, for 36311 URLs which use the 36312 36313 scheme `http`, `https`, or no scheme, one can optionally 36314 set up a type 36315 36316 server that maps type URLs to message definitions as 36317 follows: 36318 36319 36320 * If no scheme is provided, `https` is assumed. 36321 36322 * An HTTP GET on the URL must yield a 36323 [google.protobuf.Type][] 36324 value in binary format, or produce an error. 36325 * Applications are allowed to cache lookup results based 36326 on the 36327 URL, or have them precompiled into a binary to avoid any 36328 lookup. Therefore, binary compatibility needs to be preserved 36329 on changes to types. (Use versioned type names to manage 36330 breaking changes.) 36331 36332 Note: this functionality is not currently available in 36333 the official 36334 36335 protobuf release, and it is not used for type URLs 36336 beginning with 36337 36338 type.googleapis.com. 36339 36340 36341 Schemes other than `http`, `https` (or the empty scheme) 36342 might be 36343 36344 used with implementation specific semantics. 36345 value: 36346 type: string 36347 format: byte 36348 description: >- 36349 Must be a valid serialized protocol buffer of the above 36350 specified type. 36351 description: >- 36352 `Any` contains an arbitrary serialized protocol buffer 36353 message along with a 36354 36355 URL that describes the type of the serialized message. 36356 36357 36358 Protobuf library provides support to pack/unpack Any values 36359 in the form 36360 36361 of utility functions or additional generated methods of the 36362 Any type. 36363 36364 36365 Example 1: Pack and unpack a message in C++. 36366 36367 Foo foo = ...; 36368 Any any; 36369 any.PackFrom(foo); 36370 ... 36371 if (any.UnpackTo(&foo)) { 36372 ... 36373 } 36374 36375 Example 2: Pack and unpack a message in Java. 36376 36377 Foo foo = ...; 36378 Any any = Any.pack(foo); 36379 ... 36380 if (any.is(Foo.class)) { 36381 foo = any.unpack(Foo.class); 36382 } 36383 // or ... 36384 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 36385 foo = any.unpack(Foo.getDefaultInstance()); 36386 } 36387 36388 Example 3: Pack and unpack a message in Python. 36389 36390 foo = Foo(...) 36391 any = Any() 36392 any.Pack(foo) 36393 ... 36394 if any.Is(Foo.DESCRIPTOR): 36395 any.Unpack(foo) 36396 ... 36397 36398 Example 4: Pack and unpack a message in Go 36399 36400 foo := &pb.Foo{...} 36401 any, err := anypb.New(foo) 36402 if err != nil { 36403 ... 36404 } 36405 ... 36406 foo := &pb.Foo{} 36407 if err := any.UnmarshalTo(foo); err != nil { 36408 ... 36409 } 36410 36411 The pack methods provided by protobuf library will by 36412 default use 36413 36414 'type.googleapis.com/full.type.name' as the type URL and the 36415 unpack 36416 36417 methods only use the fully qualified type name after the 36418 last '/' 36419 36420 in the type URL, for example "foo.bar.com/x/y.z" will yield 36421 type 36422 36423 name "y.z". 36424 36425 36426 JSON 36427 36428 36429 The JSON representation of an `Any` value uses the regular 36430 36431 representation of the deserialized, embedded message, with 36432 an 36433 36434 additional field `@type` which contains the type URL. 36435 Example: 36436 36437 package google.profile; 36438 message Person { 36439 string first_name = 1; 36440 string last_name = 2; 36441 } 36442 36443 { 36444 "@type": "type.googleapis.com/google.profile.Person", 36445 "firstName": <string>, 36446 "lastName": <string> 36447 } 36448 36449 If the embedded message type is well-known and has a custom 36450 JSON 36451 36452 representation, that representation will be embedded adding 36453 a field 36454 36455 `value` which holds the custom JSON in addition to the 36456 `@type` 36457 36458 field. Example (for message [google.protobuf.Duration][]): 36459 36460 { 36461 "@type": "type.googleapis.com/google.protobuf.Duration", 36462 "value": "1.212s" 36463 } 36464 parameters: 36465 - name: proposal_id 36466 description: proposal_id is the unique ID of a proposal. 36467 in: path 36468 required: true 36469 type: string 36470 format: uint64 36471 tags: 36472 - Query 36473 /cosmos/group/v1/proposals/{proposal_id}/tally: 36474 get: 36475 summary: >- 36476 TallyResult returns the tally result of a proposal. If the proposal is 36477 36478 still in voting period, then this query computes the current tally 36479 state, 36480 36481 which might not be final. On the other hand, if the proposal is final, 36482 36483 then it simply returns the `final_tally_result` state stored in the 36484 36485 proposal itself. 36486 operationId: GroupTallyResult 36487 responses: 36488 '200': 36489 description: A successful response. 36490 schema: 36491 type: object 36492 properties: 36493 tally: 36494 description: tally defines the requested tally. 36495 type: object 36496 properties: 36497 yes_count: 36498 type: string 36499 description: yes_count is the weighted sum of yes votes. 36500 abstain_count: 36501 type: string 36502 description: abstain_count is the weighted sum of abstainers. 36503 no_count: 36504 type: string 36505 description: no_count is the weighted sum of no votes. 36506 no_with_veto_count: 36507 type: string 36508 description: no_with_veto_count is the weighted sum of veto. 36509 description: QueryTallyResultResponse is the Query/TallyResult response type. 36510 default: 36511 description: An unexpected error response. 36512 schema: 36513 type: object 36514 properties: 36515 error: 36516 type: string 36517 code: 36518 type: integer 36519 format: int32 36520 message: 36521 type: string 36522 details: 36523 type: array 36524 items: 36525 type: object 36526 properties: 36527 type_url: 36528 type: string 36529 description: >- 36530 A URL/resource name that uniquely identifies the type of 36531 the serialized 36532 36533 protocol buffer message. This string must contain at 36534 least 36535 36536 one "/" character. The last segment of the URL's path 36537 must represent 36538 36539 the fully qualified name of the type (as in 36540 36541 `path/google.protobuf.Duration`). The name should be in 36542 a canonical form 36543 36544 (e.g., leading "." is not accepted). 36545 36546 36547 In practice, teams usually precompile into the binary 36548 all types that they 36549 36550 expect it to use in the context of Any. However, for 36551 URLs which use the 36552 36553 scheme `http`, `https`, or no scheme, one can optionally 36554 set up a type 36555 36556 server that maps type URLs to message definitions as 36557 follows: 36558 36559 36560 * If no scheme is provided, `https` is assumed. 36561 36562 * An HTTP GET on the URL must yield a 36563 [google.protobuf.Type][] 36564 value in binary format, or produce an error. 36565 * Applications are allowed to cache lookup results based 36566 on the 36567 URL, or have them precompiled into a binary to avoid any 36568 lookup. Therefore, binary compatibility needs to be preserved 36569 on changes to types. (Use versioned type names to manage 36570 breaking changes.) 36571 36572 Note: this functionality is not currently available in 36573 the official 36574 36575 protobuf release, and it is not used for type URLs 36576 beginning with 36577 36578 type.googleapis.com. 36579 36580 36581 Schemes other than `http`, `https` (or the empty scheme) 36582 might be 36583 36584 used with implementation specific semantics. 36585 value: 36586 type: string 36587 format: byte 36588 description: >- 36589 Must be a valid serialized protocol buffer of the above 36590 specified type. 36591 description: >- 36592 `Any` contains an arbitrary serialized protocol buffer 36593 message along with a 36594 36595 URL that describes the type of the serialized message. 36596 36597 36598 Protobuf library provides support to pack/unpack Any values 36599 in the form 36600 36601 of utility functions or additional generated methods of the 36602 Any type. 36603 36604 36605 Example 1: Pack and unpack a message in C++. 36606 36607 Foo foo = ...; 36608 Any any; 36609 any.PackFrom(foo); 36610 ... 36611 if (any.UnpackTo(&foo)) { 36612 ... 36613 } 36614 36615 Example 2: Pack and unpack a message in Java. 36616 36617 Foo foo = ...; 36618 Any any = Any.pack(foo); 36619 ... 36620 if (any.is(Foo.class)) { 36621 foo = any.unpack(Foo.class); 36622 } 36623 // or ... 36624 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 36625 foo = any.unpack(Foo.getDefaultInstance()); 36626 } 36627 36628 Example 3: Pack and unpack a message in Python. 36629 36630 foo = Foo(...) 36631 any = Any() 36632 any.Pack(foo) 36633 ... 36634 if any.Is(Foo.DESCRIPTOR): 36635 any.Unpack(foo) 36636 ... 36637 36638 Example 4: Pack and unpack a message in Go 36639 36640 foo := &pb.Foo{...} 36641 any, err := anypb.New(foo) 36642 if err != nil { 36643 ... 36644 } 36645 ... 36646 foo := &pb.Foo{} 36647 if err := any.UnmarshalTo(foo); err != nil { 36648 ... 36649 } 36650 36651 The pack methods provided by protobuf library will by 36652 default use 36653 36654 'type.googleapis.com/full.type.name' as the type URL and the 36655 unpack 36656 36657 methods only use the fully qualified type name after the 36658 last '/' 36659 36660 in the type URL, for example "foo.bar.com/x/y.z" will yield 36661 type 36662 36663 name "y.z". 36664 36665 36666 JSON 36667 36668 36669 The JSON representation of an `Any` value uses the regular 36670 36671 representation of the deserialized, embedded message, with 36672 an 36673 36674 additional field `@type` which contains the type URL. 36675 Example: 36676 36677 package google.profile; 36678 message Person { 36679 string first_name = 1; 36680 string last_name = 2; 36681 } 36682 36683 { 36684 "@type": "type.googleapis.com/google.profile.Person", 36685 "firstName": <string>, 36686 "lastName": <string> 36687 } 36688 36689 If the embedded message type is well-known and has a custom 36690 JSON 36691 36692 representation, that representation will be embedded adding 36693 a field 36694 36695 `value` which holds the custom JSON in addition to the 36696 `@type` 36697 36698 field. Example (for message [google.protobuf.Duration][]): 36699 36700 { 36701 "@type": "type.googleapis.com/google.protobuf.Duration", 36702 "value": "1.212s" 36703 } 36704 parameters: 36705 - name: proposal_id 36706 description: proposal_id is the unique id of a proposal. 36707 in: path 36708 required: true 36709 type: string 36710 format: uint64 36711 tags: 36712 - Query 36713 /cosmos/group/v1/proposals_by_group_policy/{address}: 36714 get: 36715 summary: >- 36716 ProposalsByGroupPolicy queries proposals based on account address of 36717 group policy. 36718 operationId: ProposalsByGroupPolicy 36719 responses: 36720 '200': 36721 description: A successful response. 36722 schema: 36723 type: object 36724 properties: 36725 proposals: 36726 type: array 36727 items: 36728 type: object 36729 properties: 36730 id: 36731 type: string 36732 format: uint64 36733 description: id is the unique id of the proposal. 36734 group_policy_address: 36735 type: string 36736 description: >- 36737 group_policy_address is the account address of group 36738 policy. 36739 metadata: 36740 type: string 36741 title: >- 36742 metadata is any arbitrary metadata attached to the 36743 proposal. 36744 36745 the recommended format of the metadata is to be found 36746 here: 36747 36748 https://docs.cosmos.network/v0.47/modules/group#proposal-4 36749 proposers: 36750 type: array 36751 items: 36752 type: string 36753 description: proposers are the account addresses of the proposers. 36754 submit_time: 36755 type: string 36756 format: date-time 36757 description: >- 36758 submit_time is a timestamp specifying when a proposal 36759 was submitted. 36760 group_version: 36761 type: string 36762 format: uint64 36763 description: >- 36764 group_version tracks the version of the group at 36765 proposal submission. 36766 36767 This field is here for informational purposes only. 36768 group_policy_version: 36769 type: string 36770 format: uint64 36771 description: >- 36772 group_policy_version tracks the version of the group 36773 policy at proposal submission. 36774 36775 When a decision policy is changed, existing proposals 36776 from previous policy 36777 36778 versions will become invalid with the `ABORTED` status. 36779 36780 This field is here for informational purposes only. 36781 status: 36782 description: >- 36783 status represents the high level position in the life 36784 cycle of the proposal. Initial value is Submitted. 36785 type: string 36786 enum: 36787 - PROPOSAL_STATUS_UNSPECIFIED 36788 - PROPOSAL_STATUS_SUBMITTED 36789 - PROPOSAL_STATUS_ACCEPTED 36790 - PROPOSAL_STATUS_REJECTED 36791 - PROPOSAL_STATUS_ABORTED 36792 - PROPOSAL_STATUS_WITHDRAWN 36793 default: PROPOSAL_STATUS_UNSPECIFIED 36794 final_tally_result: 36795 description: >- 36796 final_tally_result contains the sums of all weighted 36797 votes for this 36798 36799 proposal for each vote option. It is empty at 36800 submission, and only 36801 36802 populated after tallying, at voting period end or at 36803 proposal execution, 36804 36805 whichever happens first. 36806 type: object 36807 properties: 36808 yes_count: 36809 type: string 36810 description: yes_count is the weighted sum of yes votes. 36811 abstain_count: 36812 type: string 36813 description: abstain_count is the weighted sum of abstainers. 36814 no_count: 36815 type: string 36816 description: no_count is the weighted sum of no votes. 36817 no_with_veto_count: 36818 type: string 36819 description: no_with_veto_count is the weighted sum of veto. 36820 voting_period_end: 36821 type: string 36822 format: date-time 36823 description: >- 36824 voting_period_end is the timestamp before which voting 36825 must be done. 36826 36827 Unless a successful MsgExec is called before (to execute 36828 a proposal whose 36829 36830 tally is successful before the voting period ends), 36831 tallying will be done 36832 36833 at this point, and the `final_tally_result`and `status` 36834 fields will be 36835 36836 accordingly updated. 36837 executor_result: 36838 description: >- 36839 executor_result is the final result of the proposal 36840 execution. Initial value is NotRun. 36841 type: string 36842 enum: 36843 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 36844 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN 36845 - PROPOSAL_EXECUTOR_RESULT_SUCCESS 36846 - PROPOSAL_EXECUTOR_RESULT_FAILURE 36847 default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 36848 messages: 36849 type: array 36850 items: 36851 type: object 36852 properties: 36853 type_url: 36854 type: string 36855 description: >- 36856 A URL/resource name that uniquely identifies the 36857 type of the serialized 36858 36859 protocol buffer message. This string must contain 36860 at least 36861 36862 one "/" character. The last segment of the URL's 36863 path must represent 36864 36865 the fully qualified name of the type (as in 36866 36867 `path/google.protobuf.Duration`). The name should 36868 be in a canonical form 36869 36870 (e.g., leading "." is not accepted). 36871 36872 36873 In practice, teams usually precompile into the 36874 binary all types that they 36875 36876 expect it to use in the context of Any. However, 36877 for URLs which use the 36878 36879 scheme `http`, `https`, or no scheme, one can 36880 optionally set up a type 36881 36882 server that maps type URLs to message definitions 36883 as follows: 36884 36885 36886 * If no scheme is provided, `https` is assumed. 36887 36888 * An HTTP GET on the URL must yield a 36889 [google.protobuf.Type][] 36890 value in binary format, or produce an error. 36891 * Applications are allowed to cache lookup results 36892 based on the 36893 URL, or have them precompiled into a binary to avoid any 36894 lookup. Therefore, binary compatibility needs to be preserved 36895 on changes to types. (Use versioned type names to manage 36896 breaking changes.) 36897 36898 Note: this functionality is not currently 36899 available in the official 36900 36901 protobuf release, and it is not used for type URLs 36902 beginning with 36903 36904 type.googleapis.com. 36905 36906 36907 Schemes other than `http`, `https` (or the empty 36908 scheme) might be 36909 36910 used with implementation specific semantics. 36911 value: 36912 type: string 36913 format: byte 36914 description: >- 36915 Must be a valid serialized protocol buffer of the 36916 above specified type. 36917 description: >- 36918 `Any` contains an arbitrary serialized protocol buffer 36919 message along with a 36920 36921 URL that describes the type of the serialized message. 36922 36923 36924 Protobuf library provides support to pack/unpack Any 36925 values in the form 36926 36927 of utility functions or additional generated methods 36928 of the Any type. 36929 36930 36931 Example 1: Pack and unpack a message in C++. 36932 36933 Foo foo = ...; 36934 Any any; 36935 any.PackFrom(foo); 36936 ... 36937 if (any.UnpackTo(&foo)) { 36938 ... 36939 } 36940 36941 Example 2: Pack and unpack a message in Java. 36942 36943 Foo foo = ...; 36944 Any any = Any.pack(foo); 36945 ... 36946 if (any.is(Foo.class)) { 36947 foo = any.unpack(Foo.class); 36948 } 36949 // or ... 36950 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 36951 foo = any.unpack(Foo.getDefaultInstance()); 36952 } 36953 36954 Example 3: Pack and unpack a message in Python. 36955 36956 foo = Foo(...) 36957 any = Any() 36958 any.Pack(foo) 36959 ... 36960 if any.Is(Foo.DESCRIPTOR): 36961 any.Unpack(foo) 36962 ... 36963 36964 Example 4: Pack and unpack a message in Go 36965 36966 foo := &pb.Foo{...} 36967 any, err := anypb.New(foo) 36968 if err != nil { 36969 ... 36970 } 36971 ... 36972 foo := &pb.Foo{} 36973 if err := any.UnmarshalTo(foo); err != nil { 36974 ... 36975 } 36976 36977 The pack methods provided by protobuf library will by 36978 default use 36979 36980 'type.googleapis.com/full.type.name' as the type URL 36981 and the unpack 36982 36983 methods only use the fully qualified type name after 36984 the last '/' 36985 36986 in the type URL, for example "foo.bar.com/x/y.z" will 36987 yield type 36988 36989 name "y.z". 36990 36991 36992 JSON 36993 36994 36995 The JSON representation of an `Any` value uses the 36996 regular 36997 36998 representation of the deserialized, embedded message, 36999 with an 37000 37001 additional field `@type` which contains the type URL. 37002 Example: 37003 37004 package google.profile; 37005 message Person { 37006 string first_name = 1; 37007 string last_name = 2; 37008 } 37009 37010 { 37011 "@type": "type.googleapis.com/google.profile.Person", 37012 "firstName": <string>, 37013 "lastName": <string> 37014 } 37015 37016 If the embedded message type is well-known and has a 37017 custom JSON 37018 37019 representation, that representation will be embedded 37020 adding a field 37021 37022 `value` which holds the custom JSON in addition to the 37023 `@type` 37024 37025 field. Example (for message 37026 [google.protobuf.Duration][]): 37027 37028 { 37029 "@type": "type.googleapis.com/google.protobuf.Duration", 37030 "value": "1.212s" 37031 } 37032 description: >- 37033 messages is a list of `sdk.Msg`s that will be executed 37034 if the proposal passes. 37035 title: 37036 type: string 37037 description: 'Since: cosmos-sdk 0.47' 37038 title: title is the title of the proposal 37039 summary: 37040 type: string 37041 description: 'Since: cosmos-sdk 0.47' 37042 title: summary is a short summary of the proposal 37043 description: >- 37044 Proposal defines a group proposal. Any member of a group can 37045 submit a proposal 37046 37047 for a group policy to decide upon. 37048 37049 A proposal consists of a set of `sdk.Msg`s that will be 37050 executed if the proposal 37051 37052 passes as well as some optional metadata associated with the 37053 proposal. 37054 description: proposals are the proposals with given group policy. 37055 pagination: 37056 description: pagination defines the pagination in the response. 37057 type: object 37058 properties: 37059 next_key: 37060 type: string 37061 format: byte 37062 description: |- 37063 next_key is the key to be passed to PageRequest.key to 37064 query the next page most efficiently. It will be empty if 37065 there are no more results. 37066 total: 37067 type: string 37068 format: uint64 37069 title: >- 37070 total is total number of results available if 37071 PageRequest.count_total 37072 37073 was set, its value is undefined otherwise 37074 description: >- 37075 QueryProposalsByGroupPolicyResponse is the 37076 Query/ProposalByGroupPolicy response type. 37077 default: 37078 description: An unexpected error response. 37079 schema: 37080 type: object 37081 properties: 37082 error: 37083 type: string 37084 code: 37085 type: integer 37086 format: int32 37087 message: 37088 type: string 37089 details: 37090 type: array 37091 items: 37092 type: object 37093 properties: 37094 type_url: 37095 type: string 37096 description: >- 37097 A URL/resource name that uniquely identifies the type of 37098 the serialized 37099 37100 protocol buffer message. This string must contain at 37101 least 37102 37103 one "/" character. The last segment of the URL's path 37104 must represent 37105 37106 the fully qualified name of the type (as in 37107 37108 `path/google.protobuf.Duration`). The name should be in 37109 a canonical form 37110 37111 (e.g., leading "." is not accepted). 37112 37113 37114 In practice, teams usually precompile into the binary 37115 all types that they 37116 37117 expect it to use in the context of Any. However, for 37118 URLs which use the 37119 37120 scheme `http`, `https`, or no scheme, one can optionally 37121 set up a type 37122 37123 server that maps type URLs to message definitions as 37124 follows: 37125 37126 37127 * If no scheme is provided, `https` is assumed. 37128 37129 * An HTTP GET on the URL must yield a 37130 [google.protobuf.Type][] 37131 value in binary format, or produce an error. 37132 * Applications are allowed to cache lookup results based 37133 on the 37134 URL, or have them precompiled into a binary to avoid any 37135 lookup. Therefore, binary compatibility needs to be preserved 37136 on changes to types. (Use versioned type names to manage 37137 breaking changes.) 37138 37139 Note: this functionality is not currently available in 37140 the official 37141 37142 protobuf release, and it is not used for type URLs 37143 beginning with 37144 37145 type.googleapis.com. 37146 37147 37148 Schemes other than `http`, `https` (or the empty scheme) 37149 might be 37150 37151 used with implementation specific semantics. 37152 value: 37153 type: string 37154 format: byte 37155 description: >- 37156 Must be a valid serialized protocol buffer of the above 37157 specified type. 37158 description: >- 37159 `Any` contains an arbitrary serialized protocol buffer 37160 message along with a 37161 37162 URL that describes the type of the serialized message. 37163 37164 37165 Protobuf library provides support to pack/unpack Any values 37166 in the form 37167 37168 of utility functions or additional generated methods of the 37169 Any type. 37170 37171 37172 Example 1: Pack and unpack a message in C++. 37173 37174 Foo foo = ...; 37175 Any any; 37176 any.PackFrom(foo); 37177 ... 37178 if (any.UnpackTo(&foo)) { 37179 ... 37180 } 37181 37182 Example 2: Pack and unpack a message in Java. 37183 37184 Foo foo = ...; 37185 Any any = Any.pack(foo); 37186 ... 37187 if (any.is(Foo.class)) { 37188 foo = any.unpack(Foo.class); 37189 } 37190 // or ... 37191 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 37192 foo = any.unpack(Foo.getDefaultInstance()); 37193 } 37194 37195 Example 3: Pack and unpack a message in Python. 37196 37197 foo = Foo(...) 37198 any = Any() 37199 any.Pack(foo) 37200 ... 37201 if any.Is(Foo.DESCRIPTOR): 37202 any.Unpack(foo) 37203 ... 37204 37205 Example 4: Pack and unpack a message in Go 37206 37207 foo := &pb.Foo{...} 37208 any, err := anypb.New(foo) 37209 if err != nil { 37210 ... 37211 } 37212 ... 37213 foo := &pb.Foo{} 37214 if err := any.UnmarshalTo(foo); err != nil { 37215 ... 37216 } 37217 37218 The pack methods provided by protobuf library will by 37219 default use 37220 37221 'type.googleapis.com/full.type.name' as the type URL and the 37222 unpack 37223 37224 methods only use the fully qualified type name after the 37225 last '/' 37226 37227 in the type URL, for example "foo.bar.com/x/y.z" will yield 37228 type 37229 37230 name "y.z". 37231 37232 37233 JSON 37234 37235 37236 The JSON representation of an `Any` value uses the regular 37237 37238 representation of the deserialized, embedded message, with 37239 an 37240 37241 additional field `@type` which contains the type URL. 37242 Example: 37243 37244 package google.profile; 37245 message Person { 37246 string first_name = 1; 37247 string last_name = 2; 37248 } 37249 37250 { 37251 "@type": "type.googleapis.com/google.profile.Person", 37252 "firstName": <string>, 37253 "lastName": <string> 37254 } 37255 37256 If the embedded message type is well-known and has a custom 37257 JSON 37258 37259 representation, that representation will be embedded adding 37260 a field 37261 37262 `value` which holds the custom JSON in addition to the 37263 `@type` 37264 37265 field. Example (for message [google.protobuf.Duration][]): 37266 37267 { 37268 "@type": "type.googleapis.com/google.protobuf.Duration", 37269 "value": "1.212s" 37270 } 37271 parameters: 37272 - name: address 37273 description: >- 37274 address is the account address of the group policy related to 37275 proposals. 37276 in: path 37277 required: true 37278 type: string 37279 - name: pagination.key 37280 description: |- 37281 key is a value returned in PageResponse.next_key to begin 37282 querying the next page most efficiently. Only one of offset or key 37283 should be set. 37284 in: query 37285 required: false 37286 type: string 37287 format: byte 37288 - name: pagination.offset 37289 description: >- 37290 offset is a numeric offset that can be used when key is unavailable. 37291 37292 It is less efficient than using key. Only one of offset or key 37293 should 37294 37295 be set. 37296 in: query 37297 required: false 37298 type: string 37299 format: uint64 37300 - name: pagination.limit 37301 description: >- 37302 limit is the total number of results to be returned in the result 37303 page. 37304 37305 If left empty it will default to a value to be set by each app. 37306 in: query 37307 required: false 37308 type: string 37309 format: uint64 37310 - name: pagination.count_total 37311 description: >- 37312 count_total is set to true to indicate that the result set should 37313 include 37314 37315 a count of the total number of items available for pagination in 37316 UIs. 37317 37318 count_total is only respected when offset is used. It is ignored 37319 when key 37320 37321 is set. 37322 in: query 37323 required: false 37324 type: boolean 37325 - name: pagination.reverse 37326 description: >- 37327 reverse is set to true if results are to be returned in the 37328 descending order. 37329 37330 37331 Since: cosmos-sdk 0.43 37332 in: query 37333 required: false 37334 type: boolean 37335 tags: 37336 - Query 37337 /cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}: 37338 get: 37339 summary: VoteByProposalVoter queries a vote by proposal id and voter. 37340 operationId: VoteByProposalVoter 37341 responses: 37342 '200': 37343 description: A successful response. 37344 schema: 37345 type: object 37346 properties: 37347 vote: 37348 description: vote is the vote with given proposal_id and voter. 37349 type: object 37350 properties: 37351 proposal_id: 37352 type: string 37353 format: uint64 37354 description: proposal is the unique ID of the proposal. 37355 voter: 37356 type: string 37357 description: voter is the account address of the voter. 37358 option: 37359 description: option is the voter's choice on the proposal. 37360 type: string 37361 enum: 37362 - VOTE_OPTION_UNSPECIFIED 37363 - VOTE_OPTION_YES 37364 - VOTE_OPTION_ABSTAIN 37365 - VOTE_OPTION_NO 37366 - VOTE_OPTION_NO_WITH_VETO 37367 default: VOTE_OPTION_UNSPECIFIED 37368 metadata: 37369 type: string 37370 title: >- 37371 metadata is any arbitrary metadata attached to the vote. 37372 37373 the recommended format of the metadata is to be found 37374 here: 37375 https://docs.cosmos.network/v0.47/modules/group#vote-2 37376 submit_time: 37377 type: string 37378 format: date-time 37379 description: submit_time is the timestamp when the vote was submitted. 37380 title: Vote represents a vote for a proposal.string metadata 37381 description: >- 37382 QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter 37383 response type. 37384 default: 37385 description: An unexpected error response. 37386 schema: 37387 type: object 37388 properties: 37389 error: 37390 type: string 37391 code: 37392 type: integer 37393 format: int32 37394 message: 37395 type: string 37396 details: 37397 type: array 37398 items: 37399 type: object 37400 properties: 37401 type_url: 37402 type: string 37403 description: >- 37404 A URL/resource name that uniquely identifies the type of 37405 the serialized 37406 37407 protocol buffer message. This string must contain at 37408 least 37409 37410 one "/" character. The last segment of the URL's path 37411 must represent 37412 37413 the fully qualified name of the type (as in 37414 37415 `path/google.protobuf.Duration`). The name should be in 37416 a canonical form 37417 37418 (e.g., leading "." is not accepted). 37419 37420 37421 In practice, teams usually precompile into the binary 37422 all types that they 37423 37424 expect it to use in the context of Any. However, for 37425 URLs which use the 37426 37427 scheme `http`, `https`, or no scheme, one can optionally 37428 set up a type 37429 37430 server that maps type URLs to message definitions as 37431 follows: 37432 37433 37434 * If no scheme is provided, `https` is assumed. 37435 37436 * An HTTP GET on the URL must yield a 37437 [google.protobuf.Type][] 37438 value in binary format, or produce an error. 37439 * Applications are allowed to cache lookup results based 37440 on the 37441 URL, or have them precompiled into a binary to avoid any 37442 lookup. Therefore, binary compatibility needs to be preserved 37443 on changes to types. (Use versioned type names to manage 37444 breaking changes.) 37445 37446 Note: this functionality is not currently available in 37447 the official 37448 37449 protobuf release, and it is not used for type URLs 37450 beginning with 37451 37452 type.googleapis.com. 37453 37454 37455 Schemes other than `http`, `https` (or the empty scheme) 37456 might be 37457 37458 used with implementation specific semantics. 37459 value: 37460 type: string 37461 format: byte 37462 description: >- 37463 Must be a valid serialized protocol buffer of the above 37464 specified type. 37465 description: >- 37466 `Any` contains an arbitrary serialized protocol buffer 37467 message along with a 37468 37469 URL that describes the type of the serialized message. 37470 37471 37472 Protobuf library provides support to pack/unpack Any values 37473 in the form 37474 37475 of utility functions or additional generated methods of the 37476 Any type. 37477 37478 37479 Example 1: Pack and unpack a message in C++. 37480 37481 Foo foo = ...; 37482 Any any; 37483 any.PackFrom(foo); 37484 ... 37485 if (any.UnpackTo(&foo)) { 37486 ... 37487 } 37488 37489 Example 2: Pack and unpack a message in Java. 37490 37491 Foo foo = ...; 37492 Any any = Any.pack(foo); 37493 ... 37494 if (any.is(Foo.class)) { 37495 foo = any.unpack(Foo.class); 37496 } 37497 // or ... 37498 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 37499 foo = any.unpack(Foo.getDefaultInstance()); 37500 } 37501 37502 Example 3: Pack and unpack a message in Python. 37503 37504 foo = Foo(...) 37505 any = Any() 37506 any.Pack(foo) 37507 ... 37508 if any.Is(Foo.DESCRIPTOR): 37509 any.Unpack(foo) 37510 ... 37511 37512 Example 4: Pack and unpack a message in Go 37513 37514 foo := &pb.Foo{...} 37515 any, err := anypb.New(foo) 37516 if err != nil { 37517 ... 37518 } 37519 ... 37520 foo := &pb.Foo{} 37521 if err := any.UnmarshalTo(foo); err != nil { 37522 ... 37523 } 37524 37525 The pack methods provided by protobuf library will by 37526 default use 37527 37528 'type.googleapis.com/full.type.name' as the type URL and the 37529 unpack 37530 37531 methods only use the fully qualified type name after the 37532 last '/' 37533 37534 in the type URL, for example "foo.bar.com/x/y.z" will yield 37535 type 37536 37537 name "y.z". 37538 37539 37540 JSON 37541 37542 37543 The JSON representation of an `Any` value uses the regular 37544 37545 representation of the deserialized, embedded message, with 37546 an 37547 37548 additional field `@type` which contains the type URL. 37549 Example: 37550 37551 package google.profile; 37552 message Person { 37553 string first_name = 1; 37554 string last_name = 2; 37555 } 37556 37557 { 37558 "@type": "type.googleapis.com/google.profile.Person", 37559 "firstName": <string>, 37560 "lastName": <string> 37561 } 37562 37563 If the embedded message type is well-known and has a custom 37564 JSON 37565 37566 representation, that representation will be embedded adding 37567 a field 37568 37569 `value` which holds the custom JSON in addition to the 37570 `@type` 37571 37572 field. Example (for message [google.protobuf.Duration][]): 37573 37574 { 37575 "@type": "type.googleapis.com/google.protobuf.Duration", 37576 "value": "1.212s" 37577 } 37578 parameters: 37579 - name: proposal_id 37580 description: proposal_id is the unique ID of a proposal. 37581 in: path 37582 required: true 37583 type: string 37584 format: uint64 37585 - name: voter 37586 description: voter is a proposal voter account address. 37587 in: path 37588 required: true 37589 type: string 37590 tags: 37591 - Query 37592 /cosmos/group/v1/votes_by_proposal/{proposal_id}: 37593 get: 37594 summary: VotesByProposal queries a vote by proposal id. 37595 operationId: VotesByProposal 37596 responses: 37597 '200': 37598 description: A successful response. 37599 schema: 37600 type: object 37601 properties: 37602 votes: 37603 type: array 37604 items: 37605 type: object 37606 properties: 37607 proposal_id: 37608 type: string 37609 format: uint64 37610 description: proposal is the unique ID of the proposal. 37611 voter: 37612 type: string 37613 description: voter is the account address of the voter. 37614 option: 37615 description: option is the voter's choice on the proposal. 37616 type: string 37617 enum: 37618 - VOTE_OPTION_UNSPECIFIED 37619 - VOTE_OPTION_YES 37620 - VOTE_OPTION_ABSTAIN 37621 - VOTE_OPTION_NO 37622 - VOTE_OPTION_NO_WITH_VETO 37623 default: VOTE_OPTION_UNSPECIFIED 37624 metadata: 37625 type: string 37626 title: >- 37627 metadata is any arbitrary metadata attached to the vote. 37628 37629 the recommended format of the metadata is to be found 37630 here: 37631 https://docs.cosmos.network/v0.47/modules/group#vote-2 37632 submit_time: 37633 type: string 37634 format: date-time 37635 description: >- 37636 submit_time is the timestamp when the vote was 37637 submitted. 37638 title: Vote represents a vote for a proposal.string metadata 37639 description: votes are the list of votes for given proposal_id. 37640 pagination: 37641 description: pagination defines the pagination in the response. 37642 type: object 37643 properties: 37644 next_key: 37645 type: string 37646 format: byte 37647 description: |- 37648 next_key is the key to be passed to PageRequest.key to 37649 query the next page most efficiently. It will be empty if 37650 there are no more results. 37651 total: 37652 type: string 37653 format: uint64 37654 title: >- 37655 total is total number of results available if 37656 PageRequest.count_total 37657 37658 was set, its value is undefined otherwise 37659 description: >- 37660 QueryVotesByProposalResponse is the Query/VotesByProposal response 37661 type. 37662 default: 37663 description: An unexpected error response. 37664 schema: 37665 type: object 37666 properties: 37667 error: 37668 type: string 37669 code: 37670 type: integer 37671 format: int32 37672 message: 37673 type: string 37674 details: 37675 type: array 37676 items: 37677 type: object 37678 properties: 37679 type_url: 37680 type: string 37681 description: >- 37682 A URL/resource name that uniquely identifies the type of 37683 the serialized 37684 37685 protocol buffer message. This string must contain at 37686 least 37687 37688 one "/" character. The last segment of the URL's path 37689 must represent 37690 37691 the fully qualified name of the type (as in 37692 37693 `path/google.protobuf.Duration`). The name should be in 37694 a canonical form 37695 37696 (e.g., leading "." is not accepted). 37697 37698 37699 In practice, teams usually precompile into the binary 37700 all types that they 37701 37702 expect it to use in the context of Any. However, for 37703 URLs which use the 37704 37705 scheme `http`, `https`, or no scheme, one can optionally 37706 set up a type 37707 37708 server that maps type URLs to message definitions as 37709 follows: 37710 37711 37712 * If no scheme is provided, `https` is assumed. 37713 37714 * An HTTP GET on the URL must yield a 37715 [google.protobuf.Type][] 37716 value in binary format, or produce an error. 37717 * Applications are allowed to cache lookup results based 37718 on the 37719 URL, or have them precompiled into a binary to avoid any 37720 lookup. Therefore, binary compatibility needs to be preserved 37721 on changes to types. (Use versioned type names to manage 37722 breaking changes.) 37723 37724 Note: this functionality is not currently available in 37725 the official 37726 37727 protobuf release, and it is not used for type URLs 37728 beginning with 37729 37730 type.googleapis.com. 37731 37732 37733 Schemes other than `http`, `https` (or the empty scheme) 37734 might be 37735 37736 used with implementation specific semantics. 37737 value: 37738 type: string 37739 format: byte 37740 description: >- 37741 Must be a valid serialized protocol buffer of the above 37742 specified type. 37743 description: >- 37744 `Any` contains an arbitrary serialized protocol buffer 37745 message along with a 37746 37747 URL that describes the type of the serialized message. 37748 37749 37750 Protobuf library provides support to pack/unpack Any values 37751 in the form 37752 37753 of utility functions or additional generated methods of the 37754 Any type. 37755 37756 37757 Example 1: Pack and unpack a message in C++. 37758 37759 Foo foo = ...; 37760 Any any; 37761 any.PackFrom(foo); 37762 ... 37763 if (any.UnpackTo(&foo)) { 37764 ... 37765 } 37766 37767 Example 2: Pack and unpack a message in Java. 37768 37769 Foo foo = ...; 37770 Any any = Any.pack(foo); 37771 ... 37772 if (any.is(Foo.class)) { 37773 foo = any.unpack(Foo.class); 37774 } 37775 // or ... 37776 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 37777 foo = any.unpack(Foo.getDefaultInstance()); 37778 } 37779 37780 Example 3: Pack and unpack a message in Python. 37781 37782 foo = Foo(...) 37783 any = Any() 37784 any.Pack(foo) 37785 ... 37786 if any.Is(Foo.DESCRIPTOR): 37787 any.Unpack(foo) 37788 ... 37789 37790 Example 4: Pack and unpack a message in Go 37791 37792 foo := &pb.Foo{...} 37793 any, err := anypb.New(foo) 37794 if err != nil { 37795 ... 37796 } 37797 ... 37798 foo := &pb.Foo{} 37799 if err := any.UnmarshalTo(foo); err != nil { 37800 ... 37801 } 37802 37803 The pack methods provided by protobuf library will by 37804 default use 37805 37806 'type.googleapis.com/full.type.name' as the type URL and the 37807 unpack 37808 37809 methods only use the fully qualified type name after the 37810 last '/' 37811 37812 in the type URL, for example "foo.bar.com/x/y.z" will yield 37813 type 37814 37815 name "y.z". 37816 37817 37818 JSON 37819 37820 37821 The JSON representation of an `Any` value uses the regular 37822 37823 representation of the deserialized, embedded message, with 37824 an 37825 37826 additional field `@type` which contains the type URL. 37827 Example: 37828 37829 package google.profile; 37830 message Person { 37831 string first_name = 1; 37832 string last_name = 2; 37833 } 37834 37835 { 37836 "@type": "type.googleapis.com/google.profile.Person", 37837 "firstName": <string>, 37838 "lastName": <string> 37839 } 37840 37841 If the embedded message type is well-known and has a custom 37842 JSON 37843 37844 representation, that representation will be embedded adding 37845 a field 37846 37847 `value` which holds the custom JSON in addition to the 37848 `@type` 37849 37850 field. Example (for message [google.protobuf.Duration][]): 37851 37852 { 37853 "@type": "type.googleapis.com/google.protobuf.Duration", 37854 "value": "1.212s" 37855 } 37856 parameters: 37857 - name: proposal_id 37858 description: proposal_id is the unique ID of a proposal. 37859 in: path 37860 required: true 37861 type: string 37862 format: uint64 37863 - name: pagination.key 37864 description: |- 37865 key is a value returned in PageResponse.next_key to begin 37866 querying the next page most efficiently. Only one of offset or key 37867 should be set. 37868 in: query 37869 required: false 37870 type: string 37871 format: byte 37872 - name: pagination.offset 37873 description: >- 37874 offset is a numeric offset that can be used when key is unavailable. 37875 37876 It is less efficient than using key. Only one of offset or key 37877 should 37878 37879 be set. 37880 in: query 37881 required: false 37882 type: string 37883 format: uint64 37884 - name: pagination.limit 37885 description: >- 37886 limit is the total number of results to be returned in the result 37887 page. 37888 37889 If left empty it will default to a value to be set by each app. 37890 in: query 37891 required: false 37892 type: string 37893 format: uint64 37894 - name: pagination.count_total 37895 description: >- 37896 count_total is set to true to indicate that the result set should 37897 include 37898 37899 a count of the total number of items available for pagination in 37900 UIs. 37901 37902 count_total is only respected when offset is used. It is ignored 37903 when key 37904 37905 is set. 37906 in: query 37907 required: false 37908 type: boolean 37909 - name: pagination.reverse 37910 description: >- 37911 reverse is set to true if results are to be returned in the 37912 descending order. 37913 37914 37915 Since: cosmos-sdk 0.43 37916 in: query 37917 required: false 37918 type: boolean 37919 tags: 37920 - Query 37921 /cosmos/group/v1/votes_by_voter/{voter}: 37922 get: 37923 summary: VotesByVoter queries a vote by voter. 37924 operationId: VotesByVoter 37925 responses: 37926 '200': 37927 description: A successful response. 37928 schema: 37929 type: object 37930 properties: 37931 votes: 37932 type: array 37933 items: 37934 type: object 37935 properties: 37936 proposal_id: 37937 type: string 37938 format: uint64 37939 description: proposal is the unique ID of the proposal. 37940 voter: 37941 type: string 37942 description: voter is the account address of the voter. 37943 option: 37944 description: option is the voter's choice on the proposal. 37945 type: string 37946 enum: 37947 - VOTE_OPTION_UNSPECIFIED 37948 - VOTE_OPTION_YES 37949 - VOTE_OPTION_ABSTAIN 37950 - VOTE_OPTION_NO 37951 - VOTE_OPTION_NO_WITH_VETO 37952 default: VOTE_OPTION_UNSPECIFIED 37953 metadata: 37954 type: string 37955 title: >- 37956 metadata is any arbitrary metadata attached to the vote. 37957 37958 the recommended format of the metadata is to be found 37959 here: 37960 https://docs.cosmos.network/v0.47/modules/group#vote-2 37961 submit_time: 37962 type: string 37963 format: date-time 37964 description: >- 37965 submit_time is the timestamp when the vote was 37966 submitted. 37967 title: Vote represents a vote for a proposal.string metadata 37968 description: votes are the list of votes by given voter. 37969 pagination: 37970 description: pagination defines the pagination in the response. 37971 type: object 37972 properties: 37973 next_key: 37974 type: string 37975 format: byte 37976 description: |- 37977 next_key is the key to be passed to PageRequest.key to 37978 query the next page most efficiently. It will be empty if 37979 there are no more results. 37980 total: 37981 type: string 37982 format: uint64 37983 title: >- 37984 total is total number of results available if 37985 PageRequest.count_total 37986 37987 was set, its value is undefined otherwise 37988 description: QueryVotesByVoterResponse is the Query/VotesByVoter response type. 37989 default: 37990 description: An unexpected error response. 37991 schema: 37992 type: object 37993 properties: 37994 error: 37995 type: string 37996 code: 37997 type: integer 37998 format: int32 37999 message: 38000 type: string 38001 details: 38002 type: array 38003 items: 38004 type: object 38005 properties: 38006 type_url: 38007 type: string 38008 description: >- 38009 A URL/resource name that uniquely identifies the type of 38010 the serialized 38011 38012 protocol buffer message. This string must contain at 38013 least 38014 38015 one "/" character. The last segment of the URL's path 38016 must represent 38017 38018 the fully qualified name of the type (as in 38019 38020 `path/google.protobuf.Duration`). The name should be in 38021 a canonical form 38022 38023 (e.g., leading "." is not accepted). 38024 38025 38026 In practice, teams usually precompile into the binary 38027 all types that they 38028 38029 expect it to use in the context of Any. However, for 38030 URLs which use the 38031 38032 scheme `http`, `https`, or no scheme, one can optionally 38033 set up a type 38034 38035 server that maps type URLs to message definitions as 38036 follows: 38037 38038 38039 * If no scheme is provided, `https` is assumed. 38040 38041 * An HTTP GET on the URL must yield a 38042 [google.protobuf.Type][] 38043 value in binary format, or produce an error. 38044 * Applications are allowed to cache lookup results based 38045 on the 38046 URL, or have them precompiled into a binary to avoid any 38047 lookup. Therefore, binary compatibility needs to be preserved 38048 on changes to types. (Use versioned type names to manage 38049 breaking changes.) 38050 38051 Note: this functionality is not currently available in 38052 the official 38053 38054 protobuf release, and it is not used for type URLs 38055 beginning with 38056 38057 type.googleapis.com. 38058 38059 38060 Schemes other than `http`, `https` (or the empty scheme) 38061 might be 38062 38063 used with implementation specific semantics. 38064 value: 38065 type: string 38066 format: byte 38067 description: >- 38068 Must be a valid serialized protocol buffer of the above 38069 specified type. 38070 description: >- 38071 `Any` contains an arbitrary serialized protocol buffer 38072 message along with a 38073 38074 URL that describes the type of the serialized message. 38075 38076 38077 Protobuf library provides support to pack/unpack Any values 38078 in the form 38079 38080 of utility functions or additional generated methods of the 38081 Any type. 38082 38083 38084 Example 1: Pack and unpack a message in C++. 38085 38086 Foo foo = ...; 38087 Any any; 38088 any.PackFrom(foo); 38089 ... 38090 if (any.UnpackTo(&foo)) { 38091 ... 38092 } 38093 38094 Example 2: Pack and unpack a message in Java. 38095 38096 Foo foo = ...; 38097 Any any = Any.pack(foo); 38098 ... 38099 if (any.is(Foo.class)) { 38100 foo = any.unpack(Foo.class); 38101 } 38102 // or ... 38103 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 38104 foo = any.unpack(Foo.getDefaultInstance()); 38105 } 38106 38107 Example 3: Pack and unpack a message in Python. 38108 38109 foo = Foo(...) 38110 any = Any() 38111 any.Pack(foo) 38112 ... 38113 if any.Is(Foo.DESCRIPTOR): 38114 any.Unpack(foo) 38115 ... 38116 38117 Example 4: Pack and unpack a message in Go 38118 38119 foo := &pb.Foo{...} 38120 any, err := anypb.New(foo) 38121 if err != nil { 38122 ... 38123 } 38124 ... 38125 foo := &pb.Foo{} 38126 if err := any.UnmarshalTo(foo); err != nil { 38127 ... 38128 } 38129 38130 The pack methods provided by protobuf library will by 38131 default use 38132 38133 'type.googleapis.com/full.type.name' as the type URL and the 38134 unpack 38135 38136 methods only use the fully qualified type name after the 38137 last '/' 38138 38139 in the type URL, for example "foo.bar.com/x/y.z" will yield 38140 type 38141 38142 name "y.z". 38143 38144 38145 JSON 38146 38147 38148 The JSON representation of an `Any` value uses the regular 38149 38150 representation of the deserialized, embedded message, with 38151 an 38152 38153 additional field `@type` which contains the type URL. 38154 Example: 38155 38156 package google.profile; 38157 message Person { 38158 string first_name = 1; 38159 string last_name = 2; 38160 } 38161 38162 { 38163 "@type": "type.googleapis.com/google.profile.Person", 38164 "firstName": <string>, 38165 "lastName": <string> 38166 } 38167 38168 If the embedded message type is well-known and has a custom 38169 JSON 38170 38171 representation, that representation will be embedded adding 38172 a field 38173 38174 `value` which holds the custom JSON in addition to the 38175 `@type` 38176 38177 field. Example (for message [google.protobuf.Duration][]): 38178 38179 { 38180 "@type": "type.googleapis.com/google.protobuf.Duration", 38181 "value": "1.212s" 38182 } 38183 parameters: 38184 - name: voter 38185 description: voter is a proposal voter account address. 38186 in: path 38187 required: true 38188 type: string 38189 - name: pagination.key 38190 description: |- 38191 key is a value returned in PageResponse.next_key to begin 38192 querying the next page most efficiently. Only one of offset or key 38193 should be set. 38194 in: query 38195 required: false 38196 type: string 38197 format: byte 38198 - name: pagination.offset 38199 description: >- 38200 offset is a numeric offset that can be used when key is unavailable. 38201 38202 It is less efficient than using key. Only one of offset or key 38203 should 38204 38205 be set. 38206 in: query 38207 required: false 38208 type: string 38209 format: uint64 38210 - name: pagination.limit 38211 description: >- 38212 limit is the total number of results to be returned in the result 38213 page. 38214 38215 If left empty it will default to a value to be set by each app. 38216 in: query 38217 required: false 38218 type: string 38219 format: uint64 38220 - name: pagination.count_total 38221 description: >- 38222 count_total is set to true to indicate that the result set should 38223 include 38224 38225 a count of the total number of items available for pagination in 38226 UIs. 38227 38228 count_total is only respected when offset is used. It is ignored 38229 when key 38230 38231 is set. 38232 in: query 38233 required: false 38234 type: boolean 38235 - name: pagination.reverse 38236 description: >- 38237 reverse is set to true if results are to be returned in the 38238 descending order. 38239 38240 38241 Since: cosmos-sdk 0.43 38242 in: query 38243 required: false 38244 type: boolean 38245 tags: 38246 - Query 38247 /cosmos/circuit/v1/accounts: 38248 get: 38249 summary: Account returns account permissions. 38250 operationId: CircuitAccounts 38251 responses: 38252 '200': 38253 description: A successful response. 38254 schema: 38255 type: object 38256 properties: 38257 accounts: 38258 type: array 38259 items: 38260 type: object 38261 properties: 38262 address: 38263 type: string 38264 permissions: 38265 type: object 38266 properties: 38267 level: 38268 description: >- 38269 level is the level of permissions granted to this 38270 account. 38271 type: string 38272 enum: 38273 - LEVEL_NONE_UNSPECIFIED 38274 - LEVEL_SOME_MSGS 38275 - LEVEL_ALL_MSGS 38276 - LEVEL_SUPER_ADMIN 38277 default: LEVEL_NONE_UNSPECIFIED 38278 limit_type_urls: 38279 type: array 38280 items: 38281 type: string 38282 description: >- 38283 limit_type_urls is used with LEVEL_SOME_MSGS to 38284 limit the lists of Msg type 38285 38286 URLs that the account can trip. It is an error to 38287 use limit_type_urls with 38288 38289 a level other than LEVEL_SOME_MSGS. 38290 description: >- 38291 Permissions are the permissions that an account has to 38292 trip 38293 38294 or reset the circuit breaker. 38295 title: >- 38296 GenesisAccountPermissions is the account permissions for the 38297 circuit breaker in genesis 38298 pagination: 38299 description: pagination defines the pagination in the response. 38300 type: object 38301 properties: 38302 next_key: 38303 type: string 38304 format: byte 38305 description: |- 38306 next_key is the key to be passed to PageRequest.key to 38307 query the next page most efficiently. It will be empty if 38308 there are no more results. 38309 total: 38310 type: string 38311 format: uint64 38312 title: >- 38313 total is total number of results available if 38314 PageRequest.count_total 38315 38316 was set, its value is undefined otherwise 38317 description: >- 38318 AccountsResponse is the response type for the Query/Accounts RPC 38319 method. 38320 default: 38321 description: An unexpected error response. 38322 schema: 38323 type: object 38324 properties: 38325 error: 38326 type: string 38327 code: 38328 type: integer 38329 format: int32 38330 message: 38331 type: string 38332 details: 38333 type: array 38334 items: 38335 type: object 38336 properties: 38337 type_url: 38338 type: string 38339 value: 38340 type: string 38341 format: byte 38342 parameters: 38343 - name: pagination.key 38344 description: |- 38345 key is a value returned in PageResponse.next_key to begin 38346 querying the next page most efficiently. Only one of offset or key 38347 should be set. 38348 in: query 38349 required: false 38350 type: string 38351 format: byte 38352 - name: pagination.offset 38353 description: >- 38354 offset is a numeric offset that can be used when key is unavailable. 38355 38356 It is less efficient than using key. Only one of offset or key 38357 should 38358 38359 be set. 38360 in: query 38361 required: false 38362 type: string 38363 format: uint64 38364 - name: pagination.limit 38365 description: >- 38366 limit is the total number of results to be returned in the result 38367 page. 38368 38369 If left empty it will default to a value to be set by each app. 38370 in: query 38371 required: false 38372 type: string 38373 format: uint64 38374 - name: pagination.count_total 38375 description: >- 38376 count_total is set to true to indicate that the result set should 38377 include 38378 38379 a count of the total number of items available for pagination in 38380 UIs. 38381 38382 count_total is only respected when offset is used. It is ignored 38383 when key 38384 38385 is set. 38386 in: query 38387 required: false 38388 type: boolean 38389 - name: pagination.reverse 38390 description: >- 38391 reverse is set to true if results are to be returned in the 38392 descending order. 38393 38394 38395 Since: cosmos-sdk 0.43 38396 in: query 38397 required: false 38398 type: boolean 38399 tags: 38400 - Query 38401 /cosmos/circuit/v1/accounts/{address}: 38402 get: 38403 summary: Account returns account permissions. 38404 operationId: CircuitAccount 38405 responses: 38406 '200': 38407 description: A successful response. 38408 schema: 38409 type: object 38410 properties: 38411 permission: 38412 type: object 38413 properties: 38414 level: 38415 description: level is the level of permissions granted to this account. 38416 type: string 38417 enum: 38418 - LEVEL_NONE_UNSPECIFIED 38419 - LEVEL_SOME_MSGS 38420 - LEVEL_ALL_MSGS 38421 - LEVEL_SUPER_ADMIN 38422 default: LEVEL_NONE_UNSPECIFIED 38423 limit_type_urls: 38424 type: array 38425 items: 38426 type: string 38427 description: >- 38428 limit_type_urls is used with LEVEL_SOME_MSGS to limit the 38429 lists of Msg type 38430 38431 URLs that the account can trip. It is an error to use 38432 limit_type_urls with 38433 38434 a level other than LEVEL_SOME_MSGS. 38435 description: |- 38436 Permissions are the permissions that an account has to trip 38437 or reset the circuit breaker. 38438 description: >- 38439 AccountResponse is the response type for the Query/Account RPC 38440 method. 38441 default: 38442 description: An unexpected error response. 38443 schema: 38444 type: object 38445 properties: 38446 error: 38447 type: string 38448 code: 38449 type: integer 38450 format: int32 38451 message: 38452 type: string 38453 details: 38454 type: array 38455 items: 38456 type: object 38457 properties: 38458 type_url: 38459 type: string 38460 value: 38461 type: string 38462 format: byte 38463 parameters: 38464 - name: address 38465 in: path 38466 required: true 38467 type: string 38468 tags: 38469 - Query 38470 /cosmos/circuit/v1/disable_list: 38471 get: 38472 summary: DisabledList returns a list of disabled message urls 38473 operationId: DisabledList 38474 responses: 38475 '200': 38476 description: A successful response. 38477 schema: 38478 type: object 38479 properties: 38480 disabled_list: 38481 type: array 38482 items: 38483 type: string 38484 description: >- 38485 DisabledListResponse is the response type for the 38486 Query/DisabledList RPC method. 38487 default: 38488 description: An unexpected error response. 38489 schema: 38490 type: object 38491 properties: 38492 error: 38493 type: string 38494 code: 38495 type: integer 38496 format: int32 38497 message: 38498 type: string 38499 details: 38500 type: array 38501 items: 38502 type: object 38503 properties: 38504 type_url: 38505 type: string 38506 value: 38507 type: string 38508 format: byte 38509 tags: 38510 - Query 38511 /cosmos/consensus/v1/params: 38512 get: 38513 summary: Params queries the parameters of x/consensus module. 38514 operationId: ConsensusParams 38515 responses: 38516 '200': 38517 description: A successful response. 38518 schema: 38519 type: object 38520 properties: 38521 params: 38522 description: >- 38523 params are the tendermint consensus params stored in the 38524 consensus module. 38525 38526 Please note that `params.version` is not populated in this 38527 response, it is 38528 38529 tracked separately in the x/upgrade module. 38530 type: object 38531 properties: 38532 block: 38533 type: object 38534 properties: 38535 max_bytes: 38536 type: string 38537 format: int64 38538 title: |- 38539 Max block size, in bytes. 38540 Note: must be greater than 0 38541 max_gas: 38542 type: string 38543 format: int64 38544 title: |- 38545 Max gas per block. 38546 Note: must be greater or equal to -1 38547 description: BlockParams contains limits on the block size. 38548 evidence: 38549 type: object 38550 properties: 38551 max_age_num_blocks: 38552 type: string 38553 format: int64 38554 description: >- 38555 Max age of evidence, in blocks. 38556 38557 38558 The basic formula for calculating this is: 38559 MaxAgeDuration / {average block 38560 38561 time}. 38562 max_age_duration: 38563 type: string 38564 description: >- 38565 Max age of evidence, in time. 38566 38567 38568 It should correspond with an app's "unbonding period" 38569 or other similar 38570 38571 mechanism for handling [Nothing-At-Stake 38572 38573 attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). 38574 max_bytes: 38575 type: string 38576 format: int64 38577 title: >- 38578 This sets the maximum size of total evidence in bytes 38579 that can be committed in a single block. 38580 38581 and should fall comfortably under the max block bytes. 38582 38583 Default is 1048576 or 1MB 38584 description: >- 38585 EvidenceParams determine how we handle evidence of 38586 malfeasance. 38587 validator: 38588 type: object 38589 properties: 38590 pub_key_types: 38591 type: array 38592 items: 38593 type: string 38594 description: >- 38595 ValidatorParams restrict the public key types validators 38596 can use. 38597 38598 NOTE: uses ABCI pubkey naming, not Amino names. 38599 version: 38600 type: object 38601 properties: 38602 app: 38603 type: string 38604 format: uint64 38605 description: VersionParams contains the ABCI application version. 38606 abci: 38607 type: object 38608 properties: 38609 vote_extensions_enable_height: 38610 type: string 38611 format: int64 38612 description: >- 38613 vote_extensions_enable_height configures the first 38614 height during which 38615 38616 vote extensions will be enabled. During this specified 38617 height, and for all 38618 38619 subsequent heights, precommit messages that do not 38620 contain valid extension data 38621 38622 will be considered invalid. Prior to this height, vote 38623 extensions will not 38624 38625 be used or accepted by validators on the network. 38626 38627 38628 Once enabled, vote extensions will be created by the 38629 application in ExtendVote, 38630 38631 passed to the application for validation in 38632 VerifyVoteExtension and given 38633 38634 to the application to use when proposing a block 38635 during PrepareProposal. 38636 description: >- 38637 ABCIParams configure functionality specific to the 38638 Application Blockchain Interface. 38639 description: >- 38640 QueryParamsResponse defines the response type for querying 38641 x/consensus parameters. 38642 default: 38643 description: An unexpected error response. 38644 schema: 38645 type: object 38646 properties: 38647 error: 38648 type: string 38649 code: 38650 type: integer 38651 format: int32 38652 message: 38653 type: string 38654 details: 38655 type: array 38656 items: 38657 type: object 38658 properties: 38659 type_url: 38660 type: string 38661 value: 38662 type: string 38663 format: byte 38664 tags: 38665 - Query 38666 definitions: 38667 cosmos.auth.v1beta1.AddressBytesToStringResponse: 38668 type: object 38669 properties: 38670 address_string: 38671 type: string 38672 description: >- 38673 AddressBytesToStringResponse is the response type for AddressString rpc 38674 method. 38675 38676 38677 Since: cosmos-sdk 0.46 38678 cosmos.auth.v1beta1.AddressStringToBytesResponse: 38679 type: object 38680 properties: 38681 address_bytes: 38682 type: string 38683 format: byte 38684 description: >- 38685 AddressStringToBytesResponse is the response type for AddressBytes rpc 38686 method. 38687 38688 38689 Since: cosmos-sdk 0.46 38690 cosmos.auth.v1beta1.BaseAccount: 38691 type: object 38692 properties: 38693 address: 38694 type: string 38695 pub_key: 38696 type: object 38697 properties: 38698 type_url: 38699 type: string 38700 description: >- 38701 A URL/resource name that uniquely identifies the type of the 38702 serialized 38703 38704 protocol buffer message. This string must contain at least 38705 38706 one "/" character. The last segment of the URL's path must 38707 represent 38708 38709 the fully qualified name of the type (as in 38710 38711 `path/google.protobuf.Duration`). The name should be in a 38712 canonical form 38713 38714 (e.g., leading "." is not accepted). 38715 38716 38717 In practice, teams usually precompile into the binary all types 38718 that they 38719 38720 expect it to use in the context of Any. However, for URLs which 38721 use the 38722 38723 scheme `http`, `https`, or no scheme, one can optionally set up a 38724 type 38725 38726 server that maps type URLs to message definitions as follows: 38727 38728 38729 * If no scheme is provided, `https` is assumed. 38730 38731 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 38732 value in binary format, or produce an error. 38733 * Applications are allowed to cache lookup results based on the 38734 URL, or have them precompiled into a binary to avoid any 38735 lookup. Therefore, binary compatibility needs to be preserved 38736 on changes to types. (Use versioned type names to manage 38737 breaking changes.) 38738 38739 Note: this functionality is not currently available in the 38740 official 38741 38742 protobuf release, and it is not used for type URLs beginning with 38743 38744 type.googleapis.com. 38745 38746 38747 Schemes other than `http`, `https` (or the empty scheme) might be 38748 38749 used with implementation specific semantics. 38750 value: 38751 type: string 38752 format: byte 38753 description: >- 38754 Must be a valid serialized protocol buffer of the above specified 38755 type. 38756 description: >- 38757 `Any` contains an arbitrary serialized protocol buffer message along 38758 with a 38759 38760 URL that describes the type of the serialized message. 38761 38762 38763 Protobuf library provides support to pack/unpack Any values in the 38764 form 38765 38766 of utility functions or additional generated methods of the Any type. 38767 38768 38769 Example 1: Pack and unpack a message in C++. 38770 38771 Foo foo = ...; 38772 Any any; 38773 any.PackFrom(foo); 38774 ... 38775 if (any.UnpackTo(&foo)) { 38776 ... 38777 } 38778 38779 Example 2: Pack and unpack a message in Java. 38780 38781 Foo foo = ...; 38782 Any any = Any.pack(foo); 38783 ... 38784 if (any.is(Foo.class)) { 38785 foo = any.unpack(Foo.class); 38786 } 38787 // or ... 38788 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 38789 foo = any.unpack(Foo.getDefaultInstance()); 38790 } 38791 38792 Example 3: Pack and unpack a message in Python. 38793 38794 foo = Foo(...) 38795 any = Any() 38796 any.Pack(foo) 38797 ... 38798 if any.Is(Foo.DESCRIPTOR): 38799 any.Unpack(foo) 38800 ... 38801 38802 Example 4: Pack and unpack a message in Go 38803 38804 foo := &pb.Foo{...} 38805 any, err := anypb.New(foo) 38806 if err != nil { 38807 ... 38808 } 38809 ... 38810 foo := &pb.Foo{} 38811 if err := any.UnmarshalTo(foo); err != nil { 38812 ... 38813 } 38814 38815 The pack methods provided by protobuf library will by default use 38816 38817 'type.googleapis.com/full.type.name' as the type URL and the unpack 38818 38819 methods only use the fully qualified type name after the last '/' 38820 38821 in the type URL, for example "foo.bar.com/x/y.z" will yield type 38822 38823 name "y.z". 38824 38825 38826 JSON 38827 38828 38829 The JSON representation of an `Any` value uses the regular 38830 38831 representation of the deserialized, embedded message, with an 38832 38833 additional field `@type` which contains the type URL. Example: 38834 38835 package google.profile; 38836 message Person { 38837 string first_name = 1; 38838 string last_name = 2; 38839 } 38840 38841 { 38842 "@type": "type.googleapis.com/google.profile.Person", 38843 "firstName": <string>, 38844 "lastName": <string> 38845 } 38846 38847 If the embedded message type is well-known and has a custom JSON 38848 38849 representation, that representation will be embedded adding a field 38850 38851 `value` which holds the custom JSON in addition to the `@type` 38852 38853 field. Example (for message [google.protobuf.Duration][]): 38854 38855 { 38856 "@type": "type.googleapis.com/google.protobuf.Duration", 38857 "value": "1.212s" 38858 } 38859 account_number: 38860 type: string 38861 format: uint64 38862 sequence: 38863 type: string 38864 format: uint64 38865 description: >- 38866 BaseAccount defines a base account type. It contains all the necessary 38867 fields 38868 38869 for basic account functionality. Any custom account type should extend 38870 this 38871 38872 type for additional functionality (e.g. vesting). 38873 cosmos.auth.v1beta1.Bech32PrefixResponse: 38874 type: object 38875 properties: 38876 bech32_prefix: 38877 type: string 38878 description: |- 38879 Bech32PrefixResponse is the response type for Bech32Prefix rpc method. 38880 38881 Since: cosmos-sdk 0.46 38882 cosmos.auth.v1beta1.Params: 38883 type: object 38884 properties: 38885 max_memo_characters: 38886 type: string 38887 format: uint64 38888 tx_sig_limit: 38889 type: string 38890 format: uint64 38891 tx_size_cost_per_byte: 38892 type: string 38893 format: uint64 38894 sig_verify_cost_ed25519: 38895 type: string 38896 format: uint64 38897 sig_verify_cost_secp256k1: 38898 type: string 38899 format: uint64 38900 description: Params defines the parameters for the auth module. 38901 cosmos.auth.v1beta1.QueryAccountAddressByIDResponse: 38902 type: object 38903 properties: 38904 account_address: 38905 type: string 38906 description: 'Since: cosmos-sdk 0.46.2' 38907 title: >- 38908 QueryAccountAddressByIDResponse is the response type for 38909 AccountAddressByID rpc method 38910 cosmos.auth.v1beta1.QueryAccountInfoResponse: 38911 type: object 38912 properties: 38913 info: 38914 description: info is the account info which is represented by BaseAccount. 38915 type: object 38916 properties: 38917 address: 38918 type: string 38919 pub_key: 38920 type: object 38921 properties: 38922 type_url: 38923 type: string 38924 description: >- 38925 A URL/resource name that uniquely identifies the type of the 38926 serialized 38927 38928 protocol buffer message. This string must contain at least 38929 38930 one "/" character. The last segment of the URL's path must 38931 represent 38932 38933 the fully qualified name of the type (as in 38934 38935 `path/google.protobuf.Duration`). The name should be in a 38936 canonical form 38937 38938 (e.g., leading "." is not accepted). 38939 38940 38941 In practice, teams usually precompile into the binary all 38942 types that they 38943 38944 expect it to use in the context of Any. However, for URLs 38945 which use the 38946 38947 scheme `http`, `https`, or no scheme, one can optionally set 38948 up a type 38949 38950 server that maps type URLs to message definitions as follows: 38951 38952 38953 * If no scheme is provided, `https` is assumed. 38954 38955 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 38956 value in binary format, or produce an error. 38957 * Applications are allowed to cache lookup results based on 38958 the 38959 URL, or have them precompiled into a binary to avoid any 38960 lookup. Therefore, binary compatibility needs to be preserved 38961 on changes to types. (Use versioned type names to manage 38962 breaking changes.) 38963 38964 Note: this functionality is not currently available in the 38965 official 38966 38967 protobuf release, and it is not used for type URLs beginning 38968 with 38969 38970 type.googleapis.com. 38971 38972 38973 Schemes other than `http`, `https` (or the empty scheme) might 38974 be 38975 38976 used with implementation specific semantics. 38977 value: 38978 type: string 38979 format: byte 38980 description: >- 38981 Must be a valid serialized protocol buffer of the above 38982 specified type. 38983 description: >- 38984 `Any` contains an arbitrary serialized protocol buffer message 38985 along with a 38986 38987 URL that describes the type of the serialized message. 38988 38989 38990 Protobuf library provides support to pack/unpack Any values in the 38991 form 38992 38993 of utility functions or additional generated methods of the Any 38994 type. 38995 38996 38997 Example 1: Pack and unpack a message in C++. 38998 38999 Foo foo = ...; 39000 Any any; 39001 any.PackFrom(foo); 39002 ... 39003 if (any.UnpackTo(&foo)) { 39004 ... 39005 } 39006 39007 Example 2: Pack and unpack a message in Java. 39008 39009 Foo foo = ...; 39010 Any any = Any.pack(foo); 39011 ... 39012 if (any.is(Foo.class)) { 39013 foo = any.unpack(Foo.class); 39014 } 39015 // or ... 39016 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 39017 foo = any.unpack(Foo.getDefaultInstance()); 39018 } 39019 39020 Example 3: Pack and unpack a message in Python. 39021 39022 foo = Foo(...) 39023 any = Any() 39024 any.Pack(foo) 39025 ... 39026 if any.Is(Foo.DESCRIPTOR): 39027 any.Unpack(foo) 39028 ... 39029 39030 Example 4: Pack and unpack a message in Go 39031 39032 foo := &pb.Foo{...} 39033 any, err := anypb.New(foo) 39034 if err != nil { 39035 ... 39036 } 39037 ... 39038 foo := &pb.Foo{} 39039 if err := any.UnmarshalTo(foo); err != nil { 39040 ... 39041 } 39042 39043 The pack methods provided by protobuf library will by default use 39044 39045 'type.googleapis.com/full.type.name' as the type URL and the 39046 unpack 39047 39048 methods only use the fully qualified type name after the last '/' 39049 39050 in the type URL, for example "foo.bar.com/x/y.z" will yield type 39051 39052 name "y.z". 39053 39054 39055 JSON 39056 39057 39058 The JSON representation of an `Any` value uses the regular 39059 39060 representation of the deserialized, embedded message, with an 39061 39062 additional field `@type` which contains the type URL. Example: 39063 39064 package google.profile; 39065 message Person { 39066 string first_name = 1; 39067 string last_name = 2; 39068 } 39069 39070 { 39071 "@type": "type.googleapis.com/google.profile.Person", 39072 "firstName": <string>, 39073 "lastName": <string> 39074 } 39075 39076 If the embedded message type is well-known and has a custom JSON 39077 39078 representation, that representation will be embedded adding a 39079 field 39080 39081 `value` which holds the custom JSON in addition to the `@type` 39082 39083 field. Example (for message [google.protobuf.Duration][]): 39084 39085 { 39086 "@type": "type.googleapis.com/google.protobuf.Duration", 39087 "value": "1.212s" 39088 } 39089 account_number: 39090 type: string 39091 format: uint64 39092 sequence: 39093 type: string 39094 format: uint64 39095 description: |- 39096 QueryAccountInfoResponse is the Query/AccountInfo response type. 39097 39098 Since: cosmos-sdk 0.47 39099 cosmos.auth.v1beta1.QueryAccountResponse: 39100 type: object 39101 properties: 39102 account: 39103 type: object 39104 properties: 39105 type_url: 39106 type: string 39107 description: >- 39108 A URL/resource name that uniquely identifies the type of the 39109 serialized 39110 39111 protocol buffer message. This string must contain at least 39112 39113 one "/" character. The last segment of the URL's path must 39114 represent 39115 39116 the fully qualified name of the type (as in 39117 39118 `path/google.protobuf.Duration`). The name should be in a 39119 canonical form 39120 39121 (e.g., leading "." is not accepted). 39122 39123 39124 In practice, teams usually precompile into the binary all types 39125 that they 39126 39127 expect it to use in the context of Any. However, for URLs which 39128 use the 39129 39130 scheme `http`, `https`, or no scheme, one can optionally set up a 39131 type 39132 39133 server that maps type URLs to message definitions as follows: 39134 39135 39136 * If no scheme is provided, `https` is assumed. 39137 39138 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 39139 value in binary format, or produce an error. 39140 * Applications are allowed to cache lookup results based on the 39141 URL, or have them precompiled into a binary to avoid any 39142 lookup. Therefore, binary compatibility needs to be preserved 39143 on changes to types. (Use versioned type names to manage 39144 breaking changes.) 39145 39146 Note: this functionality is not currently available in the 39147 official 39148 39149 protobuf release, and it is not used for type URLs beginning with 39150 39151 type.googleapis.com. 39152 39153 39154 Schemes other than `http`, `https` (or the empty scheme) might be 39155 39156 used with implementation specific semantics. 39157 value: 39158 type: string 39159 format: byte 39160 description: >- 39161 Must be a valid serialized protocol buffer of the above specified 39162 type. 39163 description: >- 39164 `Any` contains an arbitrary serialized protocol buffer message along 39165 with a 39166 39167 URL that describes the type of the serialized message. 39168 39169 39170 Protobuf library provides support to pack/unpack Any values in the 39171 form 39172 39173 of utility functions or additional generated methods of the Any type. 39174 39175 39176 Example 1: Pack and unpack a message in C++. 39177 39178 Foo foo = ...; 39179 Any any; 39180 any.PackFrom(foo); 39181 ... 39182 if (any.UnpackTo(&foo)) { 39183 ... 39184 } 39185 39186 Example 2: Pack and unpack a message in Java. 39187 39188 Foo foo = ...; 39189 Any any = Any.pack(foo); 39190 ... 39191 if (any.is(Foo.class)) { 39192 foo = any.unpack(Foo.class); 39193 } 39194 // or ... 39195 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 39196 foo = any.unpack(Foo.getDefaultInstance()); 39197 } 39198 39199 Example 3: Pack and unpack a message in Python. 39200 39201 foo = Foo(...) 39202 any = Any() 39203 any.Pack(foo) 39204 ... 39205 if any.Is(Foo.DESCRIPTOR): 39206 any.Unpack(foo) 39207 ... 39208 39209 Example 4: Pack and unpack a message in Go 39210 39211 foo := &pb.Foo{...} 39212 any, err := anypb.New(foo) 39213 if err != nil { 39214 ... 39215 } 39216 ... 39217 foo := &pb.Foo{} 39218 if err := any.UnmarshalTo(foo); err != nil { 39219 ... 39220 } 39221 39222 The pack methods provided by protobuf library will by default use 39223 39224 'type.googleapis.com/full.type.name' as the type URL and the unpack 39225 39226 methods only use the fully qualified type name after the last '/' 39227 39228 in the type URL, for example "foo.bar.com/x/y.z" will yield type 39229 39230 name "y.z". 39231 39232 39233 JSON 39234 39235 39236 The JSON representation of an `Any` value uses the regular 39237 39238 representation of the deserialized, embedded message, with an 39239 39240 additional field `@type` which contains the type URL. Example: 39241 39242 package google.profile; 39243 message Person { 39244 string first_name = 1; 39245 string last_name = 2; 39246 } 39247 39248 { 39249 "@type": "type.googleapis.com/google.profile.Person", 39250 "firstName": <string>, 39251 "lastName": <string> 39252 } 39253 39254 If the embedded message type is well-known and has a custom JSON 39255 39256 representation, that representation will be embedded adding a field 39257 39258 `value` which holds the custom JSON in addition to the `@type` 39259 39260 field. Example (for message [google.protobuf.Duration][]): 39261 39262 { 39263 "@type": "type.googleapis.com/google.protobuf.Duration", 39264 "value": "1.212s" 39265 } 39266 description: >- 39267 QueryAccountResponse is the response type for the Query/Account RPC 39268 method. 39269 cosmos.auth.v1beta1.QueryAccountsResponse: 39270 type: object 39271 properties: 39272 accounts: 39273 type: array 39274 items: 39275 type: object 39276 properties: 39277 type_url: 39278 type: string 39279 description: >- 39280 A URL/resource name that uniquely identifies the type of the 39281 serialized 39282 39283 protocol buffer message. This string must contain at least 39284 39285 one "/" character. The last segment of the URL's path must 39286 represent 39287 39288 the fully qualified name of the type (as in 39289 39290 `path/google.protobuf.Duration`). The name should be in a 39291 canonical form 39292 39293 (e.g., leading "." is not accepted). 39294 39295 39296 In practice, teams usually precompile into the binary all types 39297 that they 39298 39299 expect it to use in the context of Any. However, for URLs which 39300 use the 39301 39302 scheme `http`, `https`, or no scheme, one can optionally set up 39303 a type 39304 39305 server that maps type URLs to message definitions as follows: 39306 39307 39308 * If no scheme is provided, `https` is assumed. 39309 39310 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 39311 value in binary format, or produce an error. 39312 * Applications are allowed to cache lookup results based on the 39313 URL, or have them precompiled into a binary to avoid any 39314 lookup. Therefore, binary compatibility needs to be preserved 39315 on changes to types. (Use versioned type names to manage 39316 breaking changes.) 39317 39318 Note: this functionality is not currently available in the 39319 official 39320 39321 protobuf release, and it is not used for type URLs beginning 39322 with 39323 39324 type.googleapis.com. 39325 39326 39327 Schemes other than `http`, `https` (or the empty scheme) might 39328 be 39329 39330 used with implementation specific semantics. 39331 value: 39332 type: string 39333 format: byte 39334 description: >- 39335 Must be a valid serialized protocol buffer of the above 39336 specified type. 39337 description: >- 39338 `Any` contains an arbitrary serialized protocol buffer message along 39339 with a 39340 39341 URL that describes the type of the serialized message. 39342 39343 39344 Protobuf library provides support to pack/unpack Any values in the 39345 form 39346 39347 of utility functions or additional generated methods of the Any 39348 type. 39349 39350 39351 Example 1: Pack and unpack a message in C++. 39352 39353 Foo foo = ...; 39354 Any any; 39355 any.PackFrom(foo); 39356 ... 39357 if (any.UnpackTo(&foo)) { 39358 ... 39359 } 39360 39361 Example 2: Pack and unpack a message in Java. 39362 39363 Foo foo = ...; 39364 Any any = Any.pack(foo); 39365 ... 39366 if (any.is(Foo.class)) { 39367 foo = any.unpack(Foo.class); 39368 } 39369 // or ... 39370 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 39371 foo = any.unpack(Foo.getDefaultInstance()); 39372 } 39373 39374 Example 3: Pack and unpack a message in Python. 39375 39376 foo = Foo(...) 39377 any = Any() 39378 any.Pack(foo) 39379 ... 39380 if any.Is(Foo.DESCRIPTOR): 39381 any.Unpack(foo) 39382 ... 39383 39384 Example 4: Pack and unpack a message in Go 39385 39386 foo := &pb.Foo{...} 39387 any, err := anypb.New(foo) 39388 if err != nil { 39389 ... 39390 } 39391 ... 39392 foo := &pb.Foo{} 39393 if err := any.UnmarshalTo(foo); err != nil { 39394 ... 39395 } 39396 39397 The pack methods provided by protobuf library will by default use 39398 39399 'type.googleapis.com/full.type.name' as the type URL and the unpack 39400 39401 methods only use the fully qualified type name after the last '/' 39402 39403 in the type URL, for example "foo.bar.com/x/y.z" will yield type 39404 39405 name "y.z". 39406 39407 39408 JSON 39409 39410 39411 The JSON representation of an `Any` value uses the regular 39412 39413 representation of the deserialized, embedded message, with an 39414 39415 additional field `@type` which contains the type URL. Example: 39416 39417 package google.profile; 39418 message Person { 39419 string first_name = 1; 39420 string last_name = 2; 39421 } 39422 39423 { 39424 "@type": "type.googleapis.com/google.profile.Person", 39425 "firstName": <string>, 39426 "lastName": <string> 39427 } 39428 39429 If the embedded message type is well-known and has a custom JSON 39430 39431 representation, that representation will be embedded adding a field 39432 39433 `value` which holds the custom JSON in addition to the `@type` 39434 39435 field. Example (for message [google.protobuf.Duration][]): 39436 39437 { 39438 "@type": "type.googleapis.com/google.protobuf.Duration", 39439 "value": "1.212s" 39440 } 39441 title: accounts are the existing accounts 39442 pagination: 39443 description: pagination defines the pagination in the response. 39444 type: object 39445 properties: 39446 next_key: 39447 type: string 39448 format: byte 39449 description: |- 39450 next_key is the key to be passed to PageRequest.key to 39451 query the next page most efficiently. It will be empty if 39452 there are no more results. 39453 total: 39454 type: string 39455 format: uint64 39456 title: >- 39457 total is total number of results available if 39458 PageRequest.count_total 39459 39460 was set, its value is undefined otherwise 39461 description: >- 39462 QueryAccountsResponse is the response type for the Query/Accounts RPC 39463 method. 39464 39465 39466 Since: cosmos-sdk 0.43 39467 cosmos.auth.v1beta1.QueryModuleAccountByNameResponse: 39468 type: object 39469 properties: 39470 account: 39471 type: object 39472 properties: 39473 type_url: 39474 type: string 39475 description: >- 39476 A URL/resource name that uniquely identifies the type of the 39477 serialized 39478 39479 protocol buffer message. This string must contain at least 39480 39481 one "/" character. The last segment of the URL's path must 39482 represent 39483 39484 the fully qualified name of the type (as in 39485 39486 `path/google.protobuf.Duration`). The name should be in a 39487 canonical form 39488 39489 (e.g., leading "." is not accepted). 39490 39491 39492 In practice, teams usually precompile into the binary all types 39493 that they 39494 39495 expect it to use in the context of Any. However, for URLs which 39496 use the 39497 39498 scheme `http`, `https`, or no scheme, one can optionally set up a 39499 type 39500 39501 server that maps type URLs to message definitions as follows: 39502 39503 39504 * If no scheme is provided, `https` is assumed. 39505 39506 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 39507 value in binary format, or produce an error. 39508 * Applications are allowed to cache lookup results based on the 39509 URL, or have them precompiled into a binary to avoid any 39510 lookup. Therefore, binary compatibility needs to be preserved 39511 on changes to types. (Use versioned type names to manage 39512 breaking changes.) 39513 39514 Note: this functionality is not currently available in the 39515 official 39516 39517 protobuf release, and it is not used for type URLs beginning with 39518 39519 type.googleapis.com. 39520 39521 39522 Schemes other than `http`, `https` (or the empty scheme) might be 39523 39524 used with implementation specific semantics. 39525 value: 39526 type: string 39527 format: byte 39528 description: >- 39529 Must be a valid serialized protocol buffer of the above specified 39530 type. 39531 description: >- 39532 `Any` contains an arbitrary serialized protocol buffer message along 39533 with a 39534 39535 URL that describes the type of the serialized message. 39536 39537 39538 Protobuf library provides support to pack/unpack Any values in the 39539 form 39540 39541 of utility functions or additional generated methods of the Any type. 39542 39543 39544 Example 1: Pack and unpack a message in C++. 39545 39546 Foo foo = ...; 39547 Any any; 39548 any.PackFrom(foo); 39549 ... 39550 if (any.UnpackTo(&foo)) { 39551 ... 39552 } 39553 39554 Example 2: Pack and unpack a message in Java. 39555 39556 Foo foo = ...; 39557 Any any = Any.pack(foo); 39558 ... 39559 if (any.is(Foo.class)) { 39560 foo = any.unpack(Foo.class); 39561 } 39562 // or ... 39563 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 39564 foo = any.unpack(Foo.getDefaultInstance()); 39565 } 39566 39567 Example 3: Pack and unpack a message in Python. 39568 39569 foo = Foo(...) 39570 any = Any() 39571 any.Pack(foo) 39572 ... 39573 if any.Is(Foo.DESCRIPTOR): 39574 any.Unpack(foo) 39575 ... 39576 39577 Example 4: Pack and unpack a message in Go 39578 39579 foo := &pb.Foo{...} 39580 any, err := anypb.New(foo) 39581 if err != nil { 39582 ... 39583 } 39584 ... 39585 foo := &pb.Foo{} 39586 if err := any.UnmarshalTo(foo); err != nil { 39587 ... 39588 } 39589 39590 The pack methods provided by protobuf library will by default use 39591 39592 'type.googleapis.com/full.type.name' as the type URL and the unpack 39593 39594 methods only use the fully qualified type name after the last '/' 39595 39596 in the type URL, for example "foo.bar.com/x/y.z" will yield type 39597 39598 name "y.z". 39599 39600 39601 JSON 39602 39603 39604 The JSON representation of an `Any` value uses the regular 39605 39606 representation of the deserialized, embedded message, with an 39607 39608 additional field `@type` which contains the type URL. Example: 39609 39610 package google.profile; 39611 message Person { 39612 string first_name = 1; 39613 string last_name = 2; 39614 } 39615 39616 { 39617 "@type": "type.googleapis.com/google.profile.Person", 39618 "firstName": <string>, 39619 "lastName": <string> 39620 } 39621 39622 If the embedded message type is well-known and has a custom JSON 39623 39624 representation, that representation will be embedded adding a field 39625 39626 `value` which holds the custom JSON in addition to the `@type` 39627 39628 field. Example (for message [google.protobuf.Duration][]): 39629 39630 { 39631 "@type": "type.googleapis.com/google.protobuf.Duration", 39632 "value": "1.212s" 39633 } 39634 description: >- 39635 QueryModuleAccountByNameResponse is the response type for the 39636 Query/ModuleAccountByName RPC method. 39637 cosmos.auth.v1beta1.QueryModuleAccountsResponse: 39638 type: object 39639 properties: 39640 accounts: 39641 type: array 39642 items: 39643 type: object 39644 properties: 39645 type_url: 39646 type: string 39647 description: >- 39648 A URL/resource name that uniquely identifies the type of the 39649 serialized 39650 39651 protocol buffer message. This string must contain at least 39652 39653 one "/" character. The last segment of the URL's path must 39654 represent 39655 39656 the fully qualified name of the type (as in 39657 39658 `path/google.protobuf.Duration`). The name should be in a 39659 canonical form 39660 39661 (e.g., leading "." is not accepted). 39662 39663 39664 In practice, teams usually precompile into the binary all types 39665 that they 39666 39667 expect it to use in the context of Any. However, for URLs which 39668 use the 39669 39670 scheme `http`, `https`, or no scheme, one can optionally set up 39671 a type 39672 39673 server that maps type URLs to message definitions as follows: 39674 39675 39676 * If no scheme is provided, `https` is assumed. 39677 39678 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 39679 value in binary format, or produce an error. 39680 * Applications are allowed to cache lookup results based on the 39681 URL, or have them precompiled into a binary to avoid any 39682 lookup. Therefore, binary compatibility needs to be preserved 39683 on changes to types. (Use versioned type names to manage 39684 breaking changes.) 39685 39686 Note: this functionality is not currently available in the 39687 official 39688 39689 protobuf release, and it is not used for type URLs beginning 39690 with 39691 39692 type.googleapis.com. 39693 39694 39695 Schemes other than `http`, `https` (or the empty scheme) might 39696 be 39697 39698 used with implementation specific semantics. 39699 value: 39700 type: string 39701 format: byte 39702 description: >- 39703 Must be a valid serialized protocol buffer of the above 39704 specified type. 39705 description: >- 39706 `Any` contains an arbitrary serialized protocol buffer message along 39707 with a 39708 39709 URL that describes the type of the serialized message. 39710 39711 39712 Protobuf library provides support to pack/unpack Any values in the 39713 form 39714 39715 of utility functions or additional generated methods of the Any 39716 type. 39717 39718 39719 Example 1: Pack and unpack a message in C++. 39720 39721 Foo foo = ...; 39722 Any any; 39723 any.PackFrom(foo); 39724 ... 39725 if (any.UnpackTo(&foo)) { 39726 ... 39727 } 39728 39729 Example 2: Pack and unpack a message in Java. 39730 39731 Foo foo = ...; 39732 Any any = Any.pack(foo); 39733 ... 39734 if (any.is(Foo.class)) { 39735 foo = any.unpack(Foo.class); 39736 } 39737 // or ... 39738 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 39739 foo = any.unpack(Foo.getDefaultInstance()); 39740 } 39741 39742 Example 3: Pack and unpack a message in Python. 39743 39744 foo = Foo(...) 39745 any = Any() 39746 any.Pack(foo) 39747 ... 39748 if any.Is(Foo.DESCRIPTOR): 39749 any.Unpack(foo) 39750 ... 39751 39752 Example 4: Pack and unpack a message in Go 39753 39754 foo := &pb.Foo{...} 39755 any, err := anypb.New(foo) 39756 if err != nil { 39757 ... 39758 } 39759 ... 39760 foo := &pb.Foo{} 39761 if err := any.UnmarshalTo(foo); err != nil { 39762 ... 39763 } 39764 39765 The pack methods provided by protobuf library will by default use 39766 39767 'type.googleapis.com/full.type.name' as the type URL and the unpack 39768 39769 methods only use the fully qualified type name after the last '/' 39770 39771 in the type URL, for example "foo.bar.com/x/y.z" will yield type 39772 39773 name "y.z". 39774 39775 39776 JSON 39777 39778 39779 The JSON representation of an `Any` value uses the regular 39780 39781 representation of the deserialized, embedded message, with an 39782 39783 additional field `@type` which contains the type URL. Example: 39784 39785 package google.profile; 39786 message Person { 39787 string first_name = 1; 39788 string last_name = 2; 39789 } 39790 39791 { 39792 "@type": "type.googleapis.com/google.profile.Person", 39793 "firstName": <string>, 39794 "lastName": <string> 39795 } 39796 39797 If the embedded message type is well-known and has a custom JSON 39798 39799 representation, that representation will be embedded adding a field 39800 39801 `value` which holds the custom JSON in addition to the `@type` 39802 39803 field. Example (for message [google.protobuf.Duration][]): 39804 39805 { 39806 "@type": "type.googleapis.com/google.protobuf.Duration", 39807 "value": "1.212s" 39808 } 39809 description: >- 39810 QueryModuleAccountsResponse is the response type for the 39811 Query/ModuleAccounts RPC method. 39812 39813 39814 Since: cosmos-sdk 0.46 39815 cosmos.auth.v1beta1.QueryParamsResponse: 39816 type: object 39817 properties: 39818 params: 39819 description: params defines the parameters of the module. 39820 type: object 39821 properties: 39822 max_memo_characters: 39823 type: string 39824 format: uint64 39825 tx_sig_limit: 39826 type: string 39827 format: uint64 39828 tx_size_cost_per_byte: 39829 type: string 39830 format: uint64 39831 sig_verify_cost_ed25519: 39832 type: string 39833 format: uint64 39834 sig_verify_cost_secp256k1: 39835 type: string 39836 format: uint64 39837 description: QueryParamsResponse is the response type for the Query/Params RPC method. 39838 cosmos.base.query.v1beta1.PageRequest: 39839 type: object 39840 properties: 39841 key: 39842 type: string 39843 format: byte 39844 description: |- 39845 key is a value returned in PageResponse.next_key to begin 39846 querying the next page most efficiently. Only one of offset or key 39847 should be set. 39848 offset: 39849 type: string 39850 format: uint64 39851 description: |- 39852 offset is a numeric offset that can be used when key is unavailable. 39853 It is less efficient than using key. Only one of offset or key should 39854 be set. 39855 limit: 39856 type: string 39857 format: uint64 39858 description: >- 39859 limit is the total number of results to be returned in the result 39860 page. 39861 39862 If left empty it will default to a value to be set by each app. 39863 count_total: 39864 type: boolean 39865 description: >- 39866 count_total is set to true to indicate that the result set should 39867 include 39868 39869 a count of the total number of items available for pagination in UIs. 39870 39871 count_total is only respected when offset is used. It is ignored when 39872 key 39873 39874 is set. 39875 reverse: 39876 type: boolean 39877 description: >- 39878 reverse is set to true if results are to be returned in the descending 39879 order. 39880 39881 39882 Since: cosmos-sdk 0.43 39883 description: |- 39884 message SomeRequest { 39885 Foo some_parameter = 1; 39886 PageRequest pagination = 2; 39887 } 39888 title: |- 39889 PageRequest is to be embedded in gRPC request messages for efficient 39890 pagination. Ex: 39891 cosmos.base.query.v1beta1.PageResponse: 39892 type: object 39893 properties: 39894 next_key: 39895 type: string 39896 format: byte 39897 description: |- 39898 next_key is the key to be passed to PageRequest.key to 39899 query the next page most efficiently. It will be empty if 39900 there are no more results. 39901 total: 39902 type: string 39903 format: uint64 39904 title: |- 39905 total is total number of results available if PageRequest.count_total 39906 was set, its value is undefined otherwise 39907 description: |- 39908 PageResponse is to be embedded in gRPC response messages where the 39909 corresponding request message has used PageRequest. 39910 39911 message SomeResponse { 39912 repeated Bar results = 1; 39913 PageResponse page = 2; 39914 } 39915 google.protobuf.Any: 39916 type: object 39917 properties: 39918 type_url: 39919 type: string 39920 description: >- 39921 A URL/resource name that uniquely identifies the type of the 39922 serialized 39923 39924 protocol buffer message. This string must contain at least 39925 39926 one "/" character. The last segment of the URL's path must represent 39927 39928 the fully qualified name of the type (as in 39929 39930 `path/google.protobuf.Duration`). The name should be in a canonical 39931 form 39932 39933 (e.g., leading "." is not accepted). 39934 39935 39936 In practice, teams usually precompile into the binary all types that 39937 they 39938 39939 expect it to use in the context of Any. However, for URLs which use 39940 the 39941 39942 scheme `http`, `https`, or no scheme, one can optionally set up a type 39943 39944 server that maps type URLs to message definitions as follows: 39945 39946 39947 * If no scheme is provided, `https` is assumed. 39948 39949 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 39950 value in binary format, or produce an error. 39951 * Applications are allowed to cache lookup results based on the 39952 URL, or have them precompiled into a binary to avoid any 39953 lookup. Therefore, binary compatibility needs to be preserved 39954 on changes to types. (Use versioned type names to manage 39955 breaking changes.) 39956 39957 Note: this functionality is not currently available in the official 39958 39959 protobuf release, and it is not used for type URLs beginning with 39960 39961 type.googleapis.com. 39962 39963 39964 Schemes other than `http`, `https` (or the empty scheme) might be 39965 39966 used with implementation specific semantics. 39967 value: 39968 type: string 39969 format: byte 39970 description: >- 39971 Must be a valid serialized protocol buffer of the above specified 39972 type. 39973 description: >- 39974 `Any` contains an arbitrary serialized protocol buffer message along with 39975 a 39976 39977 URL that describes the type of the serialized message. 39978 39979 39980 Protobuf library provides support to pack/unpack Any values in the form 39981 39982 of utility functions or additional generated methods of the Any type. 39983 39984 39985 Example 1: Pack and unpack a message in C++. 39986 39987 Foo foo = ...; 39988 Any any; 39989 any.PackFrom(foo); 39990 ... 39991 if (any.UnpackTo(&foo)) { 39992 ... 39993 } 39994 39995 Example 2: Pack and unpack a message in Java. 39996 39997 Foo foo = ...; 39998 Any any = Any.pack(foo); 39999 ... 40000 if (any.is(Foo.class)) { 40001 foo = any.unpack(Foo.class); 40002 } 40003 // or ... 40004 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 40005 foo = any.unpack(Foo.getDefaultInstance()); 40006 } 40007 40008 Example 3: Pack and unpack a message in Python. 40009 40010 foo = Foo(...) 40011 any = Any() 40012 any.Pack(foo) 40013 ... 40014 if any.Is(Foo.DESCRIPTOR): 40015 any.Unpack(foo) 40016 ... 40017 40018 Example 4: Pack and unpack a message in Go 40019 40020 foo := &pb.Foo{...} 40021 any, err := anypb.New(foo) 40022 if err != nil { 40023 ... 40024 } 40025 ... 40026 foo := &pb.Foo{} 40027 if err := any.UnmarshalTo(foo); err != nil { 40028 ... 40029 } 40030 40031 The pack methods provided by protobuf library will by default use 40032 40033 'type.googleapis.com/full.type.name' as the type URL and the unpack 40034 40035 methods only use the fully qualified type name after the last '/' 40036 40037 in the type URL, for example "foo.bar.com/x/y.z" will yield type 40038 40039 name "y.z". 40040 40041 40042 JSON 40043 40044 40045 The JSON representation of an `Any` value uses the regular 40046 40047 representation of the deserialized, embedded message, with an 40048 40049 additional field `@type` which contains the type URL. Example: 40050 40051 package google.profile; 40052 message Person { 40053 string first_name = 1; 40054 string last_name = 2; 40055 } 40056 40057 { 40058 "@type": "type.googleapis.com/google.profile.Person", 40059 "firstName": <string>, 40060 "lastName": <string> 40061 } 40062 40063 If the embedded message type is well-known and has a custom JSON 40064 40065 representation, that representation will be embedded adding a field 40066 40067 `value` which holds the custom JSON in addition to the `@type` 40068 40069 field. Example (for message [google.protobuf.Duration][]): 40070 40071 { 40072 "@type": "type.googleapis.com/google.protobuf.Duration", 40073 "value": "1.212s" 40074 } 40075 grpc.gateway.runtime.Error: 40076 type: object 40077 properties: 40078 error: 40079 type: string 40080 code: 40081 type: integer 40082 format: int32 40083 message: 40084 type: string 40085 details: 40086 type: array 40087 items: 40088 type: object 40089 properties: 40090 type_url: 40091 type: string 40092 description: >- 40093 A URL/resource name that uniquely identifies the type of the 40094 serialized 40095 40096 protocol buffer message. This string must contain at least 40097 40098 one "/" character. The last segment of the URL's path must 40099 represent 40100 40101 the fully qualified name of the type (as in 40102 40103 `path/google.protobuf.Duration`). The name should be in a 40104 canonical form 40105 40106 (e.g., leading "." is not accepted). 40107 40108 40109 In practice, teams usually precompile into the binary all types 40110 that they 40111 40112 expect it to use in the context of Any. However, for URLs which 40113 use the 40114 40115 scheme `http`, `https`, or no scheme, one can optionally set up 40116 a type 40117 40118 server that maps type URLs to message definitions as follows: 40119 40120 40121 * If no scheme is provided, `https` is assumed. 40122 40123 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 40124 value in binary format, or produce an error. 40125 * Applications are allowed to cache lookup results based on the 40126 URL, or have them precompiled into a binary to avoid any 40127 lookup. Therefore, binary compatibility needs to be preserved 40128 on changes to types. (Use versioned type names to manage 40129 breaking changes.) 40130 40131 Note: this functionality is not currently available in the 40132 official 40133 40134 protobuf release, and it is not used for type URLs beginning 40135 with 40136 40137 type.googleapis.com. 40138 40139 40140 Schemes other than `http`, `https` (or the empty scheme) might 40141 be 40142 40143 used with implementation specific semantics. 40144 value: 40145 type: string 40146 format: byte 40147 description: >- 40148 Must be a valid serialized protocol buffer of the above 40149 specified type. 40150 description: >- 40151 `Any` contains an arbitrary serialized protocol buffer message along 40152 with a 40153 40154 URL that describes the type of the serialized message. 40155 40156 40157 Protobuf library provides support to pack/unpack Any values in the 40158 form 40159 40160 of utility functions or additional generated methods of the Any 40161 type. 40162 40163 40164 Example 1: Pack and unpack a message in C++. 40165 40166 Foo foo = ...; 40167 Any any; 40168 any.PackFrom(foo); 40169 ... 40170 if (any.UnpackTo(&foo)) { 40171 ... 40172 } 40173 40174 Example 2: Pack and unpack a message in Java. 40175 40176 Foo foo = ...; 40177 Any any = Any.pack(foo); 40178 ... 40179 if (any.is(Foo.class)) { 40180 foo = any.unpack(Foo.class); 40181 } 40182 // or ... 40183 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 40184 foo = any.unpack(Foo.getDefaultInstance()); 40185 } 40186 40187 Example 3: Pack and unpack a message in Python. 40188 40189 foo = Foo(...) 40190 any = Any() 40191 any.Pack(foo) 40192 ... 40193 if any.Is(Foo.DESCRIPTOR): 40194 any.Unpack(foo) 40195 ... 40196 40197 Example 4: Pack and unpack a message in Go 40198 40199 foo := &pb.Foo{...} 40200 any, err := anypb.New(foo) 40201 if err != nil { 40202 ... 40203 } 40204 ... 40205 foo := &pb.Foo{} 40206 if err := any.UnmarshalTo(foo); err != nil { 40207 ... 40208 } 40209 40210 The pack methods provided by protobuf library will by default use 40211 40212 'type.googleapis.com/full.type.name' as the type URL and the unpack 40213 40214 methods only use the fully qualified type name after the last '/' 40215 40216 in the type URL, for example "foo.bar.com/x/y.z" will yield type 40217 40218 name "y.z". 40219 40220 40221 JSON 40222 40223 40224 The JSON representation of an `Any` value uses the regular 40225 40226 representation of the deserialized, embedded message, with an 40227 40228 additional field `@type` which contains the type URL. Example: 40229 40230 package google.profile; 40231 message Person { 40232 string first_name = 1; 40233 string last_name = 2; 40234 } 40235 40236 { 40237 "@type": "type.googleapis.com/google.profile.Person", 40238 "firstName": <string>, 40239 "lastName": <string> 40240 } 40241 40242 If the embedded message type is well-known and has a custom JSON 40243 40244 representation, that representation will be embedded adding a field 40245 40246 `value` which holds the custom JSON in addition to the `@type` 40247 40248 field. Example (for message [google.protobuf.Duration][]): 40249 40250 { 40251 "@type": "type.googleapis.com/google.protobuf.Duration", 40252 "value": "1.212s" 40253 } 40254 cosmos.bank.v1beta1.DenomOwner: 40255 type: object 40256 properties: 40257 address: 40258 type: string 40259 description: address defines the address that owns a particular denomination. 40260 balance: 40261 type: object 40262 properties: 40263 denom: 40264 type: string 40265 amount: 40266 type: string 40267 description: |- 40268 Coin defines a token with a denomination and an amount. 40269 40270 NOTE: The amount field is an Int which implements the custom method 40271 signatures required by gogoproto. 40272 description: |- 40273 DenomOwner defines structure representing an account that owns or holds a 40274 particular denominated token. It contains the account address and account 40275 balance of the denominated token. 40276 40277 Since: cosmos-sdk 0.46 40278 cosmos.bank.v1beta1.DenomUnit: 40279 type: object 40280 properties: 40281 denom: 40282 type: string 40283 description: denom represents the string name of the given denom unit (e.g uatom). 40284 exponent: 40285 type: integer 40286 format: int64 40287 description: >- 40288 exponent represents power of 10 exponent that one must 40289 40290 raise the base_denom to in order to equal the given DenomUnit's denom 40291 40292 1 denom = 10^exponent base_denom 40293 40294 (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' 40295 with 40296 40297 exponent = 6, thus: 1 atom = 10^6 uatom). 40298 aliases: 40299 type: array 40300 items: 40301 type: string 40302 title: aliases is a list of string aliases for the given denom 40303 description: |- 40304 DenomUnit represents a struct that describes a given 40305 denomination unit of the basic token. 40306 cosmos.bank.v1beta1.Metadata: 40307 type: object 40308 properties: 40309 description: 40310 type: string 40311 denom_units: 40312 type: array 40313 items: 40314 type: object 40315 properties: 40316 denom: 40317 type: string 40318 description: >- 40319 denom represents the string name of the given denom unit (e.g 40320 uatom). 40321 exponent: 40322 type: integer 40323 format: int64 40324 description: >- 40325 exponent represents power of 10 exponent that one must 40326 40327 raise the base_denom to in order to equal the given DenomUnit's 40328 denom 40329 40330 1 denom = 10^exponent base_denom 40331 40332 (e.g. with a base_denom of uatom, one can create a DenomUnit of 40333 'atom' with 40334 40335 exponent = 6, thus: 1 atom = 10^6 uatom). 40336 aliases: 40337 type: array 40338 items: 40339 type: string 40340 title: aliases is a list of string aliases for the given denom 40341 description: |- 40342 DenomUnit represents a struct that describes a given 40343 denomination unit of the basic token. 40344 title: denom_units represents the list of DenomUnit's for a given coin 40345 base: 40346 type: string 40347 description: >- 40348 base represents the base denom (should be the DenomUnit with exponent 40349 = 0). 40350 display: 40351 type: string 40352 description: |- 40353 display indicates the suggested denom that should be 40354 displayed in clients. 40355 name: 40356 type: string 40357 description: 'Since: cosmos-sdk 0.43' 40358 title: 'name defines the name of the token (eg: Cosmos Atom)' 40359 symbol: 40360 type: string 40361 description: >- 40362 symbol is the token symbol usually shown on exchanges (eg: ATOM). This 40363 can 40364 40365 be the same as the display. 40366 40367 40368 Since: cosmos-sdk 0.43 40369 uri: 40370 type: string 40371 description: >- 40372 URI to a document (on or off-chain) that contains additional 40373 information. Optional. 40374 40375 40376 Since: cosmos-sdk 0.46 40377 uri_hash: 40378 type: string 40379 description: >- 40380 URIHash is a sha256 hash of a document pointed by URI. It's used to 40381 verify that 40382 40383 the document didn't change. Optional. 40384 40385 40386 Since: cosmos-sdk 0.46 40387 description: |- 40388 Metadata represents a struct that describes 40389 a basic token. 40390 cosmos.bank.v1beta1.Params: 40391 type: object 40392 properties: 40393 send_enabled: 40394 type: array 40395 items: 40396 type: object 40397 properties: 40398 denom: 40399 type: string 40400 enabled: 40401 type: boolean 40402 description: >- 40403 SendEnabled maps coin denom to a send_enabled status (whether a 40404 denom is 40405 40406 sendable). 40407 description: >- 40408 Deprecated: Use of SendEnabled in params is deprecated. 40409 40410 For genesis, use the newly added send_enabled field in the genesis 40411 object. 40412 40413 Storage, lookup, and manipulation of this information is now in the 40414 keeper. 40415 40416 40417 As of cosmos-sdk 0.47, this only exists for backwards compatibility of 40418 genesis files. 40419 default_send_enabled: 40420 type: boolean 40421 description: Params defines the parameters for the bank module. 40422 cosmos.bank.v1beta1.QueryAllBalancesResponse: 40423 type: object 40424 properties: 40425 balances: 40426 type: array 40427 items: 40428 type: object 40429 properties: 40430 denom: 40431 type: string 40432 amount: 40433 type: string 40434 description: |- 40435 Coin defines a token with a denomination and an amount. 40436 40437 NOTE: The amount field is an Int which implements the custom method 40438 signatures required by gogoproto. 40439 description: balances is the balances of all the coins. 40440 pagination: 40441 description: pagination defines the pagination in the response. 40442 type: object 40443 properties: 40444 next_key: 40445 type: string 40446 format: byte 40447 description: |- 40448 next_key is the key to be passed to PageRequest.key to 40449 query the next page most efficiently. It will be empty if 40450 there are no more results. 40451 total: 40452 type: string 40453 format: uint64 40454 title: >- 40455 total is total number of results available if 40456 PageRequest.count_total 40457 40458 was set, its value is undefined otherwise 40459 description: >- 40460 QueryAllBalancesResponse is the response type for the Query/AllBalances 40461 RPC 40462 40463 method. 40464 cosmos.bank.v1beta1.QueryBalanceResponse: 40465 type: object 40466 properties: 40467 balance: 40468 type: object 40469 properties: 40470 denom: 40471 type: string 40472 amount: 40473 type: string 40474 description: |- 40475 Coin defines a token with a denomination and an amount. 40476 40477 NOTE: The amount field is an Int which implements the custom method 40478 signatures required by gogoproto. 40479 description: >- 40480 QueryBalanceResponse is the response type for the Query/Balance RPC 40481 method. 40482 cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse: 40483 type: object 40484 properties: 40485 metadata: 40486 type: object 40487 properties: 40488 description: 40489 type: string 40490 denom_units: 40491 type: array 40492 items: 40493 type: object 40494 properties: 40495 denom: 40496 type: string 40497 description: >- 40498 denom represents the string name of the given denom unit 40499 (e.g uatom). 40500 exponent: 40501 type: integer 40502 format: int64 40503 description: >- 40504 exponent represents power of 10 exponent that one must 40505 40506 raise the base_denom to in order to equal the given 40507 DenomUnit's denom 40508 40509 1 denom = 10^exponent base_denom 40510 40511 (e.g. with a base_denom of uatom, one can create a DenomUnit 40512 of 'atom' with 40513 40514 exponent = 6, thus: 1 atom = 10^6 uatom). 40515 aliases: 40516 type: array 40517 items: 40518 type: string 40519 title: aliases is a list of string aliases for the given denom 40520 description: |- 40521 DenomUnit represents a struct that describes a given 40522 denomination unit of the basic token. 40523 title: denom_units represents the list of DenomUnit's for a given coin 40524 base: 40525 type: string 40526 description: >- 40527 base represents the base denom (should be the DenomUnit with 40528 exponent = 0). 40529 display: 40530 type: string 40531 description: |- 40532 display indicates the suggested denom that should be 40533 displayed in clients. 40534 name: 40535 type: string 40536 description: 'Since: cosmos-sdk 0.43' 40537 title: 'name defines the name of the token (eg: Cosmos Atom)' 40538 symbol: 40539 type: string 40540 description: >- 40541 symbol is the token symbol usually shown on exchanges (eg: ATOM). 40542 This can 40543 40544 be the same as the display. 40545 40546 40547 Since: cosmos-sdk 0.43 40548 uri: 40549 type: string 40550 description: >- 40551 URI to a document (on or off-chain) that contains additional 40552 information. Optional. 40553 40554 40555 Since: cosmos-sdk 0.46 40556 uri_hash: 40557 type: string 40558 description: >- 40559 URIHash is a sha256 hash of a document pointed by URI. It's used 40560 to verify that 40561 40562 the document didn't change. Optional. 40563 40564 40565 Since: cosmos-sdk 0.46 40566 description: |- 40567 Metadata represents a struct that describes 40568 a basic token. 40569 description: >- 40570 QueryDenomMetadataByQueryStringResponse is the response type for the 40571 Query/DenomMetadata RPC 40572 40573 method. Identical with QueryDenomMetadataResponse but receives denom as 40574 query string in request. 40575 cosmos.bank.v1beta1.QueryDenomMetadataResponse: 40576 type: object 40577 properties: 40578 metadata: 40579 type: object 40580 properties: 40581 description: 40582 type: string 40583 denom_units: 40584 type: array 40585 items: 40586 type: object 40587 properties: 40588 denom: 40589 type: string 40590 description: >- 40591 denom represents the string name of the given denom unit 40592 (e.g uatom). 40593 exponent: 40594 type: integer 40595 format: int64 40596 description: >- 40597 exponent represents power of 10 exponent that one must 40598 40599 raise the base_denom to in order to equal the given 40600 DenomUnit's denom 40601 40602 1 denom = 10^exponent base_denom 40603 40604 (e.g. with a base_denom of uatom, one can create a DenomUnit 40605 of 'atom' with 40606 40607 exponent = 6, thus: 1 atom = 10^6 uatom). 40608 aliases: 40609 type: array 40610 items: 40611 type: string 40612 title: aliases is a list of string aliases for the given denom 40613 description: |- 40614 DenomUnit represents a struct that describes a given 40615 denomination unit of the basic token. 40616 title: denom_units represents the list of DenomUnit's for a given coin 40617 base: 40618 type: string 40619 description: >- 40620 base represents the base denom (should be the DenomUnit with 40621 exponent = 0). 40622 display: 40623 type: string 40624 description: |- 40625 display indicates the suggested denom that should be 40626 displayed in clients. 40627 name: 40628 type: string 40629 description: 'Since: cosmos-sdk 0.43' 40630 title: 'name defines the name of the token (eg: Cosmos Atom)' 40631 symbol: 40632 type: string 40633 description: >- 40634 symbol is the token symbol usually shown on exchanges (eg: ATOM). 40635 This can 40636 40637 be the same as the display. 40638 40639 40640 Since: cosmos-sdk 0.43 40641 uri: 40642 type: string 40643 description: >- 40644 URI to a document (on or off-chain) that contains additional 40645 information. Optional. 40646 40647 40648 Since: cosmos-sdk 0.46 40649 uri_hash: 40650 type: string 40651 description: >- 40652 URIHash is a sha256 hash of a document pointed by URI. It's used 40653 to verify that 40654 40655 the document didn't change. Optional. 40656 40657 40658 Since: cosmos-sdk 0.46 40659 description: |- 40660 Metadata represents a struct that describes 40661 a basic token. 40662 description: >- 40663 QueryDenomMetadataResponse is the response type for the 40664 Query/DenomMetadata RPC 40665 40666 method. 40667 cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse: 40668 type: object 40669 properties: 40670 denom_owners: 40671 type: array 40672 items: 40673 type: object 40674 properties: 40675 address: 40676 type: string 40677 description: address defines the address that owns a particular denomination. 40678 balance: 40679 type: object 40680 properties: 40681 denom: 40682 type: string 40683 amount: 40684 type: string 40685 description: >- 40686 Coin defines a token with a denomination and an amount. 40687 40688 40689 NOTE: The amount field is an Int which implements the custom 40690 method 40691 40692 signatures required by gogoproto. 40693 description: >- 40694 DenomOwner defines structure representing an account that owns or 40695 holds a 40696 40697 particular denominated token. It contains the account address and 40698 account 40699 40700 balance of the denominated token. 40701 40702 40703 Since: cosmos-sdk 0.46 40704 pagination: 40705 description: pagination defines the pagination in the response. 40706 type: object 40707 properties: 40708 next_key: 40709 type: string 40710 format: byte 40711 description: |- 40712 next_key is the key to be passed to PageRequest.key to 40713 query the next page most efficiently. It will be empty if 40714 there are no more results. 40715 total: 40716 type: string 40717 format: uint64 40718 title: >- 40719 total is total number of results available if 40720 PageRequest.count_total 40721 40722 was set, its value is undefined otherwise 40723 description: >- 40724 QueryDenomOwnersByQueryResponse defines the RPC response of a 40725 DenomOwnersByQuery RPC query. 40726 40727 40728 Since: cosmos-sdk 0.50.3 40729 cosmos.bank.v1beta1.QueryDenomOwnersResponse: 40730 type: object 40731 properties: 40732 denom_owners: 40733 type: array 40734 items: 40735 type: object 40736 properties: 40737 address: 40738 type: string 40739 description: address defines the address that owns a particular denomination. 40740 balance: 40741 type: object 40742 properties: 40743 denom: 40744 type: string 40745 amount: 40746 type: string 40747 description: >- 40748 Coin defines a token with a denomination and an amount. 40749 40750 40751 NOTE: The amount field is an Int which implements the custom 40752 method 40753 40754 signatures required by gogoproto. 40755 description: >- 40756 DenomOwner defines structure representing an account that owns or 40757 holds a 40758 40759 particular denominated token. It contains the account address and 40760 account 40761 40762 balance of the denominated token. 40763 40764 40765 Since: cosmos-sdk 0.46 40766 pagination: 40767 description: pagination defines the pagination in the response. 40768 type: object 40769 properties: 40770 next_key: 40771 type: string 40772 format: byte 40773 description: |- 40774 next_key is the key to be passed to PageRequest.key to 40775 query the next page most efficiently. It will be empty if 40776 there are no more results. 40777 total: 40778 type: string 40779 format: uint64 40780 title: >- 40781 total is total number of results available if 40782 PageRequest.count_total 40783 40784 was set, its value is undefined otherwise 40785 description: >- 40786 QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC 40787 query. 40788 40789 40790 Since: cosmos-sdk 0.46 40791 cosmos.bank.v1beta1.QueryDenomsMetadataResponse: 40792 type: object 40793 properties: 40794 metadatas: 40795 type: array 40796 items: 40797 type: object 40798 properties: 40799 description: 40800 type: string 40801 denom_units: 40802 type: array 40803 items: 40804 type: object 40805 properties: 40806 denom: 40807 type: string 40808 description: >- 40809 denom represents the string name of the given denom unit 40810 (e.g uatom). 40811 exponent: 40812 type: integer 40813 format: int64 40814 description: >- 40815 exponent represents power of 10 exponent that one must 40816 40817 raise the base_denom to in order to equal the given 40818 DenomUnit's denom 40819 40820 1 denom = 10^exponent base_denom 40821 40822 (e.g. with a base_denom of uatom, one can create a 40823 DenomUnit of 'atom' with 40824 40825 exponent = 6, thus: 1 atom = 10^6 uatom). 40826 aliases: 40827 type: array 40828 items: 40829 type: string 40830 title: aliases is a list of string aliases for the given denom 40831 description: |- 40832 DenomUnit represents a struct that describes a given 40833 denomination unit of the basic token. 40834 title: denom_units represents the list of DenomUnit's for a given coin 40835 base: 40836 type: string 40837 description: >- 40838 base represents the base denom (should be the DenomUnit with 40839 exponent = 0). 40840 display: 40841 type: string 40842 description: |- 40843 display indicates the suggested denom that should be 40844 displayed in clients. 40845 name: 40846 type: string 40847 description: 'Since: cosmos-sdk 0.43' 40848 title: 'name defines the name of the token (eg: Cosmos Atom)' 40849 symbol: 40850 type: string 40851 description: >- 40852 symbol is the token symbol usually shown on exchanges (eg: 40853 ATOM). This can 40854 40855 be the same as the display. 40856 40857 40858 Since: cosmos-sdk 0.43 40859 uri: 40860 type: string 40861 description: >- 40862 URI to a document (on or off-chain) that contains additional 40863 information. Optional. 40864 40865 40866 Since: cosmos-sdk 0.46 40867 uri_hash: 40868 type: string 40869 description: >- 40870 URIHash is a sha256 hash of a document pointed by URI. It's used 40871 to verify that 40872 40873 the document didn't change. Optional. 40874 40875 40876 Since: cosmos-sdk 0.46 40877 description: |- 40878 Metadata represents a struct that describes 40879 a basic token. 40880 description: >- 40881 metadata provides the client information for all the registered 40882 tokens. 40883 pagination: 40884 description: pagination defines the pagination in the response. 40885 type: object 40886 properties: 40887 next_key: 40888 type: string 40889 format: byte 40890 description: |- 40891 next_key is the key to be passed to PageRequest.key to 40892 query the next page most efficiently. It will be empty if 40893 there are no more results. 40894 total: 40895 type: string 40896 format: uint64 40897 title: >- 40898 total is total number of results available if 40899 PageRequest.count_total 40900 40901 was set, its value is undefined otherwise 40902 description: >- 40903 QueryDenomsMetadataResponse is the response type for the 40904 Query/DenomsMetadata RPC 40905 40906 method. 40907 cosmos.bank.v1beta1.QueryParamsResponse: 40908 type: object 40909 properties: 40910 params: 40911 description: params provides the parameters of the bank module. 40912 type: object 40913 properties: 40914 send_enabled: 40915 type: array 40916 items: 40917 type: object 40918 properties: 40919 denom: 40920 type: string 40921 enabled: 40922 type: boolean 40923 description: >- 40924 SendEnabled maps coin denom to a send_enabled status (whether a 40925 denom is 40926 40927 sendable). 40928 description: >- 40929 Deprecated: Use of SendEnabled in params is deprecated. 40930 40931 For genesis, use the newly added send_enabled field in the genesis 40932 object. 40933 40934 Storage, lookup, and manipulation of this information is now in 40935 the keeper. 40936 40937 40938 As of cosmos-sdk 0.47, this only exists for backwards 40939 compatibility of genesis files. 40940 default_send_enabled: 40941 type: boolean 40942 description: >- 40943 QueryParamsResponse defines the response type for querying x/bank 40944 parameters. 40945 cosmos.bank.v1beta1.QuerySendEnabledResponse: 40946 type: object 40947 properties: 40948 send_enabled: 40949 type: array 40950 items: 40951 type: object 40952 properties: 40953 denom: 40954 type: string 40955 enabled: 40956 type: boolean 40957 description: >- 40958 SendEnabled maps coin denom to a send_enabled status (whether a 40959 denom is 40960 40961 sendable). 40962 pagination: 40963 description: |- 40964 pagination defines the pagination in the response. This field is only 40965 populated if the denoms field in the request is empty. 40966 type: object 40967 properties: 40968 next_key: 40969 type: string 40970 format: byte 40971 description: |- 40972 next_key is the key to be passed to PageRequest.key to 40973 query the next page most efficiently. It will be empty if 40974 there are no more results. 40975 total: 40976 type: string 40977 format: uint64 40978 title: >- 40979 total is total number of results available if 40980 PageRequest.count_total 40981 40982 was set, its value is undefined otherwise 40983 description: |- 40984 QuerySendEnabledResponse defines the RPC response of a SendEnable query. 40985 40986 Since: cosmos-sdk 0.47 40987 cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse: 40988 type: object 40989 properties: 40990 balance: 40991 type: object 40992 properties: 40993 denom: 40994 type: string 40995 amount: 40996 type: string 40997 description: |- 40998 Coin defines a token with a denomination and an amount. 40999 41000 NOTE: The amount field is an Int which implements the custom method 41001 signatures required by gogoproto. 41002 description: >- 41003 QuerySpendableBalanceByDenomResponse defines the gRPC response structure 41004 for 41005 41006 querying an account's spendable balance for a specific denom. 41007 41008 41009 Since: cosmos-sdk 0.47 41010 cosmos.bank.v1beta1.QuerySpendableBalancesResponse: 41011 type: object 41012 properties: 41013 balances: 41014 type: array 41015 items: 41016 type: object 41017 properties: 41018 denom: 41019 type: string 41020 amount: 41021 type: string 41022 description: |- 41023 Coin defines a token with a denomination and an amount. 41024 41025 NOTE: The amount field is an Int which implements the custom method 41026 signatures required by gogoproto. 41027 description: balances is the spendable balances of all the coins. 41028 pagination: 41029 description: pagination defines the pagination in the response. 41030 type: object 41031 properties: 41032 next_key: 41033 type: string 41034 format: byte 41035 description: |- 41036 next_key is the key to be passed to PageRequest.key to 41037 query the next page most efficiently. It will be empty if 41038 there are no more results. 41039 total: 41040 type: string 41041 format: uint64 41042 title: >- 41043 total is total number of results available if 41044 PageRequest.count_total 41045 41046 was set, its value is undefined otherwise 41047 description: >- 41048 QuerySpendableBalancesResponse defines the gRPC response structure for 41049 querying 41050 41051 an account's spendable balances. 41052 41053 41054 Since: cosmos-sdk 0.46 41055 cosmos.bank.v1beta1.QuerySupplyOfResponse: 41056 type: object 41057 properties: 41058 amount: 41059 type: object 41060 properties: 41061 denom: 41062 type: string 41063 amount: 41064 type: string 41065 description: |- 41066 Coin defines a token with a denomination and an amount. 41067 41068 NOTE: The amount field is an Int which implements the custom method 41069 signatures required by gogoproto. 41070 description: >- 41071 QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC 41072 method. 41073 cosmos.bank.v1beta1.QueryTotalSupplyResponse: 41074 type: object 41075 properties: 41076 supply: 41077 type: array 41078 items: 41079 type: object 41080 properties: 41081 denom: 41082 type: string 41083 amount: 41084 type: string 41085 description: |- 41086 Coin defines a token with a denomination and an amount. 41087 41088 NOTE: The amount field is an Int which implements the custom method 41089 signatures required by gogoproto. 41090 title: supply is the supply of the coins 41091 pagination: 41092 description: |- 41093 pagination defines the pagination in the response. 41094 41095 Since: cosmos-sdk 0.43 41096 type: object 41097 properties: 41098 next_key: 41099 type: string 41100 format: byte 41101 description: |- 41102 next_key is the key to be passed to PageRequest.key to 41103 query the next page most efficiently. It will be empty if 41104 there are no more results. 41105 total: 41106 type: string 41107 format: uint64 41108 title: >- 41109 total is total number of results available if 41110 PageRequest.count_total 41111 41112 was set, its value is undefined otherwise 41113 title: >- 41114 QueryTotalSupplyResponse is the response type for the Query/TotalSupply 41115 RPC 41116 41117 method 41118 cosmos.bank.v1beta1.SendEnabled: 41119 type: object 41120 properties: 41121 denom: 41122 type: string 41123 enabled: 41124 type: boolean 41125 description: |- 41126 SendEnabled maps coin denom to a send_enabled status (whether a denom is 41127 sendable). 41128 cosmos.base.v1beta1.Coin: 41129 type: object 41130 properties: 41131 denom: 41132 type: string 41133 amount: 41134 type: string 41135 description: |- 41136 Coin defines a token with a denomination and an amount. 41137 41138 NOTE: The amount field is an Int which implements the custom method 41139 signatures required by gogoproto. 41140 cosmos.base.tendermint.v1beta1.ABCIQueryResponse: 41141 type: object 41142 properties: 41143 code: 41144 type: integer 41145 format: int64 41146 log: 41147 type: string 41148 info: 41149 type: string 41150 index: 41151 type: string 41152 format: int64 41153 key: 41154 type: string 41155 format: byte 41156 value: 41157 type: string 41158 format: byte 41159 proof_ops: 41160 type: object 41161 properties: 41162 ops: 41163 type: array 41164 items: 41165 type: object 41166 properties: 41167 type: 41168 type: string 41169 key: 41170 type: string 41171 format: byte 41172 data: 41173 type: string 41174 format: byte 41175 description: >- 41176 ProofOp defines an operation used for calculating Merkle root. 41177 The data could 41178 41179 be arbitrary format, providing necessary data for example 41180 neighbouring node 41181 41182 hash. 41183 41184 41185 Note: This type is a duplicate of the ProofOp proto type defined 41186 in Tendermint. 41187 description: >- 41188 ProofOps is Merkle proof defined by the list of ProofOps. 41189 41190 41191 Note: This type is a duplicate of the ProofOps proto type defined in 41192 Tendermint. 41193 height: 41194 type: string 41195 format: int64 41196 codespace: 41197 type: string 41198 description: >- 41199 ABCIQueryResponse defines the response structure for the ABCIQuery gRPC 41200 query. 41201 41202 41203 Note: This type is a duplicate of the ResponseQuery proto type defined in 41204 41205 Tendermint. 41206 cosmos.base.tendermint.v1beta1.Block: 41207 type: object 41208 properties: 41209 header: 41210 type: object 41211 properties: 41212 version: 41213 title: basic block info 41214 type: object 41215 properties: 41216 block: 41217 type: string 41218 format: uint64 41219 app: 41220 type: string 41221 format: uint64 41222 description: >- 41223 Consensus captures the consensus rules for processing a block in 41224 the blockchain, 41225 41226 including all blockchain data structures and the rules of the 41227 application's 41228 41229 state transition machine. 41230 chain_id: 41231 type: string 41232 height: 41233 type: string 41234 format: int64 41235 time: 41236 type: string 41237 format: date-time 41238 last_block_id: 41239 type: object 41240 properties: 41241 hash: 41242 type: string 41243 format: byte 41244 part_set_header: 41245 type: object 41246 properties: 41247 total: 41248 type: integer 41249 format: int64 41250 hash: 41251 type: string 41252 format: byte 41253 title: PartsetHeader 41254 title: BlockID 41255 last_commit_hash: 41256 type: string 41257 format: byte 41258 title: hashes of block data 41259 data_hash: 41260 type: string 41261 format: byte 41262 validators_hash: 41263 type: string 41264 format: byte 41265 title: hashes from the app output from the prev block 41266 next_validators_hash: 41267 type: string 41268 format: byte 41269 consensus_hash: 41270 type: string 41271 format: byte 41272 app_hash: 41273 type: string 41274 format: byte 41275 last_results_hash: 41276 type: string 41277 format: byte 41278 evidence_hash: 41279 type: string 41280 format: byte 41281 title: consensus info 41282 proposer_address: 41283 type: string 41284 description: >- 41285 proposer_address is the original block proposer address, formatted 41286 as a Bech32 string. 41287 41288 In Tendermint, this type is `bytes`, but in the SDK, we convert it 41289 to a Bech32 string 41290 41291 for better UX. 41292 description: Header defines the structure of a Tendermint block header. 41293 data: 41294 type: object 41295 properties: 41296 txs: 41297 type: array 41298 items: 41299 type: string 41300 format: byte 41301 description: >- 41302 Txs that will be applied by state @ block.Height+1. 41303 41304 NOTE: not all txs here are valid. We're just agreeing on the 41305 order first. 41306 41307 This means that block.AppHash does not include these txs. 41308 title: Data contains the set of transactions included in the block 41309 evidence: 41310 type: object 41311 properties: 41312 evidence: 41313 type: array 41314 items: 41315 type: object 41316 properties: 41317 duplicate_vote_evidence: 41318 type: object 41319 properties: 41320 vote_a: 41321 type: object 41322 properties: 41323 type: 41324 type: string 41325 enum: 41326 - SIGNED_MSG_TYPE_UNKNOWN 41327 - SIGNED_MSG_TYPE_PREVOTE 41328 - SIGNED_MSG_TYPE_PRECOMMIT 41329 - SIGNED_MSG_TYPE_PROPOSAL 41330 default: SIGNED_MSG_TYPE_UNKNOWN 41331 description: >- 41332 SignedMsgType is a type of signed message in the 41333 consensus. 41334 41335 - SIGNED_MSG_TYPE_PREVOTE: Votes 41336 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 41337 height: 41338 type: string 41339 format: int64 41340 round: 41341 type: integer 41342 format: int32 41343 block_id: 41344 type: object 41345 properties: 41346 hash: 41347 type: string 41348 format: byte 41349 part_set_header: 41350 type: object 41351 properties: 41352 total: 41353 type: integer 41354 format: int64 41355 hash: 41356 type: string 41357 format: byte 41358 title: PartsetHeader 41359 title: BlockID 41360 timestamp: 41361 type: string 41362 format: date-time 41363 validator_address: 41364 type: string 41365 format: byte 41366 validator_index: 41367 type: integer 41368 format: int32 41369 signature: 41370 type: string 41371 format: byte 41372 description: >- 41373 Vote signature by the validator if they participated 41374 in consensus for the 41375 41376 associated block. 41377 extension: 41378 type: string 41379 format: byte 41380 description: >- 41381 Vote extension provided by the application. Only 41382 valid for precommit 41383 41384 messages. 41385 extension_signature: 41386 type: string 41387 format: byte 41388 description: >- 41389 Vote extension signature by the validator if they 41390 participated in 41391 41392 consensus for the associated block. 41393 41394 Only valid for precommit messages. 41395 description: >- 41396 Vote represents a prevote or precommit vote from 41397 validators for 41398 41399 consensus. 41400 vote_b: 41401 type: object 41402 properties: 41403 type: 41404 type: string 41405 enum: 41406 - SIGNED_MSG_TYPE_UNKNOWN 41407 - SIGNED_MSG_TYPE_PREVOTE 41408 - SIGNED_MSG_TYPE_PRECOMMIT 41409 - SIGNED_MSG_TYPE_PROPOSAL 41410 default: SIGNED_MSG_TYPE_UNKNOWN 41411 description: >- 41412 SignedMsgType is a type of signed message in the 41413 consensus. 41414 41415 - SIGNED_MSG_TYPE_PREVOTE: Votes 41416 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 41417 height: 41418 type: string 41419 format: int64 41420 round: 41421 type: integer 41422 format: int32 41423 block_id: 41424 type: object 41425 properties: 41426 hash: 41427 type: string 41428 format: byte 41429 part_set_header: 41430 type: object 41431 properties: 41432 total: 41433 type: integer 41434 format: int64 41435 hash: 41436 type: string 41437 format: byte 41438 title: PartsetHeader 41439 title: BlockID 41440 timestamp: 41441 type: string 41442 format: date-time 41443 validator_address: 41444 type: string 41445 format: byte 41446 validator_index: 41447 type: integer 41448 format: int32 41449 signature: 41450 type: string 41451 format: byte 41452 description: >- 41453 Vote signature by the validator if they participated 41454 in consensus for the 41455 41456 associated block. 41457 extension: 41458 type: string 41459 format: byte 41460 description: >- 41461 Vote extension provided by the application. Only 41462 valid for precommit 41463 41464 messages. 41465 extension_signature: 41466 type: string 41467 format: byte 41468 description: >- 41469 Vote extension signature by the validator if they 41470 participated in 41471 41472 consensus for the associated block. 41473 41474 Only valid for precommit messages. 41475 description: >- 41476 Vote represents a prevote or precommit vote from 41477 validators for 41478 41479 consensus. 41480 total_voting_power: 41481 type: string 41482 format: int64 41483 validator_power: 41484 type: string 41485 format: int64 41486 timestamp: 41487 type: string 41488 format: date-time 41489 description: >- 41490 DuplicateVoteEvidence contains evidence of a validator 41491 signed two conflicting votes. 41492 light_client_attack_evidence: 41493 type: object 41494 properties: 41495 conflicting_block: 41496 type: object 41497 properties: 41498 signed_header: 41499 type: object 41500 properties: 41501 header: 41502 type: object 41503 properties: 41504 version: 41505 title: basic block info 41506 type: object 41507 properties: 41508 block: 41509 type: string 41510 format: uint64 41511 app: 41512 type: string 41513 format: uint64 41514 description: >- 41515 Consensus captures the consensus rules for 41516 processing a block in the blockchain, 41517 41518 including all blockchain data structures and 41519 the rules of the application's 41520 41521 state transition machine. 41522 chain_id: 41523 type: string 41524 height: 41525 type: string 41526 format: int64 41527 time: 41528 type: string 41529 format: date-time 41530 last_block_id: 41531 type: object 41532 properties: 41533 hash: 41534 type: string 41535 format: byte 41536 part_set_header: 41537 type: object 41538 properties: 41539 total: 41540 type: integer 41541 format: int64 41542 hash: 41543 type: string 41544 format: byte 41545 title: PartsetHeader 41546 title: BlockID 41547 last_commit_hash: 41548 type: string 41549 format: byte 41550 title: hashes of block data 41551 data_hash: 41552 type: string 41553 format: byte 41554 validators_hash: 41555 type: string 41556 format: byte 41557 title: >- 41558 hashes from the app output from the prev 41559 block 41560 next_validators_hash: 41561 type: string 41562 format: byte 41563 consensus_hash: 41564 type: string 41565 format: byte 41566 app_hash: 41567 type: string 41568 format: byte 41569 last_results_hash: 41570 type: string 41571 format: byte 41572 evidence_hash: 41573 type: string 41574 format: byte 41575 title: consensus info 41576 proposer_address: 41577 type: string 41578 format: byte 41579 description: Header defines the structure of a block header. 41580 commit: 41581 type: object 41582 properties: 41583 height: 41584 type: string 41585 format: int64 41586 round: 41587 type: integer 41588 format: int32 41589 block_id: 41590 type: object 41591 properties: 41592 hash: 41593 type: string 41594 format: byte 41595 part_set_header: 41596 type: object 41597 properties: 41598 total: 41599 type: integer 41600 format: int64 41601 hash: 41602 type: string 41603 format: byte 41604 title: PartsetHeader 41605 title: BlockID 41606 signatures: 41607 type: array 41608 items: 41609 type: object 41610 properties: 41611 block_id_flag: 41612 type: string 41613 enum: 41614 - BLOCK_ID_FLAG_UNKNOWN 41615 - BLOCK_ID_FLAG_ABSENT 41616 - BLOCK_ID_FLAG_COMMIT 41617 - BLOCK_ID_FLAG_NIL 41618 default: BLOCK_ID_FLAG_UNKNOWN 41619 title: >- 41620 BlockIdFlag indicates which BlockID the 41621 signature is for 41622 validator_address: 41623 type: string 41624 format: byte 41625 timestamp: 41626 type: string 41627 format: date-time 41628 signature: 41629 type: string 41630 format: byte 41631 description: >- 41632 CommitSig is a part of the Vote included 41633 in a Commit. 41634 description: >- 41635 Commit contains the evidence that a block was 41636 committed by a set of validators. 41637 validator_set: 41638 type: object 41639 properties: 41640 validators: 41641 type: array 41642 items: 41643 type: object 41644 properties: 41645 address: 41646 type: string 41647 format: byte 41648 pub_key: 41649 type: object 41650 properties: 41651 ed25519: 41652 type: string 41653 format: byte 41654 secp256k1: 41655 type: string 41656 format: byte 41657 title: >- 41658 PublicKey defines the keys available for 41659 use with Validators 41660 voting_power: 41661 type: string 41662 format: int64 41663 proposer_priority: 41664 type: string 41665 format: int64 41666 proposer: 41667 type: object 41668 properties: 41669 address: 41670 type: string 41671 format: byte 41672 pub_key: 41673 type: object 41674 properties: 41675 ed25519: 41676 type: string 41677 format: byte 41678 secp256k1: 41679 type: string 41680 format: byte 41681 title: >- 41682 PublicKey defines the keys available for use 41683 with Validators 41684 voting_power: 41685 type: string 41686 format: int64 41687 proposer_priority: 41688 type: string 41689 format: int64 41690 total_voting_power: 41691 type: string 41692 format: int64 41693 common_height: 41694 type: string 41695 format: int64 41696 byzantine_validators: 41697 type: array 41698 items: 41699 type: object 41700 properties: 41701 address: 41702 type: string 41703 format: byte 41704 pub_key: 41705 type: object 41706 properties: 41707 ed25519: 41708 type: string 41709 format: byte 41710 secp256k1: 41711 type: string 41712 format: byte 41713 title: >- 41714 PublicKey defines the keys available for use with 41715 Validators 41716 voting_power: 41717 type: string 41718 format: int64 41719 proposer_priority: 41720 type: string 41721 format: int64 41722 total_voting_power: 41723 type: string 41724 format: int64 41725 timestamp: 41726 type: string 41727 format: date-time 41728 description: >- 41729 LightClientAttackEvidence contains evidence of a set of 41730 validators attempting to mislead a light client. 41731 last_commit: 41732 type: object 41733 properties: 41734 height: 41735 type: string 41736 format: int64 41737 round: 41738 type: integer 41739 format: int32 41740 block_id: 41741 type: object 41742 properties: 41743 hash: 41744 type: string 41745 format: byte 41746 part_set_header: 41747 type: object 41748 properties: 41749 total: 41750 type: integer 41751 format: int64 41752 hash: 41753 type: string 41754 format: byte 41755 title: PartsetHeader 41756 title: BlockID 41757 signatures: 41758 type: array 41759 items: 41760 type: object 41761 properties: 41762 block_id_flag: 41763 type: string 41764 enum: 41765 - BLOCK_ID_FLAG_UNKNOWN 41766 - BLOCK_ID_FLAG_ABSENT 41767 - BLOCK_ID_FLAG_COMMIT 41768 - BLOCK_ID_FLAG_NIL 41769 default: BLOCK_ID_FLAG_UNKNOWN 41770 title: BlockIdFlag indicates which BlockID the signature is for 41771 validator_address: 41772 type: string 41773 format: byte 41774 timestamp: 41775 type: string 41776 format: date-time 41777 signature: 41778 type: string 41779 format: byte 41780 description: CommitSig is a part of the Vote included in a Commit. 41781 description: >- 41782 Commit contains the evidence that a block was committed by a set of 41783 validators. 41784 description: |- 41785 Block is tendermint type Block, with the Header proposer address 41786 field converted to bech32 string. 41787 cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: 41788 type: object 41789 properties: 41790 block_id: 41791 type: object 41792 properties: 41793 hash: 41794 type: string 41795 format: byte 41796 part_set_header: 41797 type: object 41798 properties: 41799 total: 41800 type: integer 41801 format: int64 41802 hash: 41803 type: string 41804 format: byte 41805 title: PartsetHeader 41806 title: BlockID 41807 block: 41808 title: 'Deprecated: please use `sdk_block` instead' 41809 type: object 41810 properties: 41811 header: 41812 type: object 41813 properties: 41814 version: 41815 title: basic block info 41816 type: object 41817 properties: 41818 block: 41819 type: string 41820 format: uint64 41821 app: 41822 type: string 41823 format: uint64 41824 description: >- 41825 Consensus captures the consensus rules for processing a block 41826 in the blockchain, 41827 41828 including all blockchain data structures and the rules of the 41829 application's 41830 41831 state transition machine. 41832 chain_id: 41833 type: string 41834 height: 41835 type: string 41836 format: int64 41837 time: 41838 type: string 41839 format: date-time 41840 last_block_id: 41841 type: object 41842 properties: 41843 hash: 41844 type: string 41845 format: byte 41846 part_set_header: 41847 type: object 41848 properties: 41849 total: 41850 type: integer 41851 format: int64 41852 hash: 41853 type: string 41854 format: byte 41855 title: PartsetHeader 41856 title: BlockID 41857 last_commit_hash: 41858 type: string 41859 format: byte 41860 title: hashes of block data 41861 data_hash: 41862 type: string 41863 format: byte 41864 validators_hash: 41865 type: string 41866 format: byte 41867 title: hashes from the app output from the prev block 41868 next_validators_hash: 41869 type: string 41870 format: byte 41871 consensus_hash: 41872 type: string 41873 format: byte 41874 app_hash: 41875 type: string 41876 format: byte 41877 last_results_hash: 41878 type: string 41879 format: byte 41880 evidence_hash: 41881 type: string 41882 format: byte 41883 title: consensus info 41884 proposer_address: 41885 type: string 41886 format: byte 41887 description: Header defines the structure of a block header. 41888 data: 41889 type: object 41890 properties: 41891 txs: 41892 type: array 41893 items: 41894 type: string 41895 format: byte 41896 description: >- 41897 Txs that will be applied by state @ block.Height+1. 41898 41899 NOTE: not all txs here are valid. We're just agreeing on the 41900 order first. 41901 41902 This means that block.AppHash does not include these txs. 41903 title: Data contains the set of transactions included in the block 41904 evidence: 41905 type: object 41906 properties: 41907 evidence: 41908 type: array 41909 items: 41910 type: object 41911 properties: 41912 duplicate_vote_evidence: 41913 type: object 41914 properties: 41915 vote_a: 41916 type: object 41917 properties: 41918 type: 41919 type: string 41920 enum: 41921 - SIGNED_MSG_TYPE_UNKNOWN 41922 - SIGNED_MSG_TYPE_PREVOTE 41923 - SIGNED_MSG_TYPE_PRECOMMIT 41924 - SIGNED_MSG_TYPE_PROPOSAL 41925 default: SIGNED_MSG_TYPE_UNKNOWN 41926 description: >- 41927 SignedMsgType is a type of signed message in the 41928 consensus. 41929 41930 - SIGNED_MSG_TYPE_PREVOTE: Votes 41931 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 41932 height: 41933 type: string 41934 format: int64 41935 round: 41936 type: integer 41937 format: int32 41938 block_id: 41939 type: object 41940 properties: 41941 hash: 41942 type: string 41943 format: byte 41944 part_set_header: 41945 type: object 41946 properties: 41947 total: 41948 type: integer 41949 format: int64 41950 hash: 41951 type: string 41952 format: byte 41953 title: PartsetHeader 41954 title: BlockID 41955 timestamp: 41956 type: string 41957 format: date-time 41958 validator_address: 41959 type: string 41960 format: byte 41961 validator_index: 41962 type: integer 41963 format: int32 41964 signature: 41965 type: string 41966 format: byte 41967 description: >- 41968 Vote signature by the validator if they 41969 participated in consensus for the 41970 41971 associated block. 41972 extension: 41973 type: string 41974 format: byte 41975 description: >- 41976 Vote extension provided by the application. Only 41977 valid for precommit 41978 41979 messages. 41980 extension_signature: 41981 type: string 41982 format: byte 41983 description: >- 41984 Vote extension signature by the validator if 41985 they participated in 41986 41987 consensus for the associated block. 41988 41989 Only valid for precommit messages. 41990 description: >- 41991 Vote represents a prevote or precommit vote from 41992 validators for 41993 41994 consensus. 41995 vote_b: 41996 type: object 41997 properties: 41998 type: 41999 type: string 42000 enum: 42001 - SIGNED_MSG_TYPE_UNKNOWN 42002 - SIGNED_MSG_TYPE_PREVOTE 42003 - SIGNED_MSG_TYPE_PRECOMMIT 42004 - SIGNED_MSG_TYPE_PROPOSAL 42005 default: SIGNED_MSG_TYPE_UNKNOWN 42006 description: >- 42007 SignedMsgType is a type of signed message in the 42008 consensus. 42009 42010 - SIGNED_MSG_TYPE_PREVOTE: Votes 42011 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 42012 height: 42013 type: string 42014 format: int64 42015 round: 42016 type: integer 42017 format: int32 42018 block_id: 42019 type: object 42020 properties: 42021 hash: 42022 type: string 42023 format: byte 42024 part_set_header: 42025 type: object 42026 properties: 42027 total: 42028 type: integer 42029 format: int64 42030 hash: 42031 type: string 42032 format: byte 42033 title: PartsetHeader 42034 title: BlockID 42035 timestamp: 42036 type: string 42037 format: date-time 42038 validator_address: 42039 type: string 42040 format: byte 42041 validator_index: 42042 type: integer 42043 format: int32 42044 signature: 42045 type: string 42046 format: byte 42047 description: >- 42048 Vote signature by the validator if they 42049 participated in consensus for the 42050 42051 associated block. 42052 extension: 42053 type: string 42054 format: byte 42055 description: >- 42056 Vote extension provided by the application. Only 42057 valid for precommit 42058 42059 messages. 42060 extension_signature: 42061 type: string 42062 format: byte 42063 description: >- 42064 Vote extension signature by the validator if 42065 they participated in 42066 42067 consensus for the associated block. 42068 42069 Only valid for precommit messages. 42070 description: >- 42071 Vote represents a prevote or precommit vote from 42072 validators for 42073 42074 consensus. 42075 total_voting_power: 42076 type: string 42077 format: int64 42078 validator_power: 42079 type: string 42080 format: int64 42081 timestamp: 42082 type: string 42083 format: date-time 42084 description: >- 42085 DuplicateVoteEvidence contains evidence of a validator 42086 signed two conflicting votes. 42087 light_client_attack_evidence: 42088 type: object 42089 properties: 42090 conflicting_block: 42091 type: object 42092 properties: 42093 signed_header: 42094 type: object 42095 properties: 42096 header: 42097 type: object 42098 properties: 42099 version: 42100 title: basic block info 42101 type: object 42102 properties: 42103 block: 42104 type: string 42105 format: uint64 42106 app: 42107 type: string 42108 format: uint64 42109 description: >- 42110 Consensus captures the consensus rules 42111 for processing a block in the 42112 blockchain, 42113 42114 including all blockchain data structures 42115 and the rules of the application's 42116 42117 state transition machine. 42118 chain_id: 42119 type: string 42120 height: 42121 type: string 42122 format: int64 42123 time: 42124 type: string 42125 format: date-time 42126 last_block_id: 42127 type: object 42128 properties: 42129 hash: 42130 type: string 42131 format: byte 42132 part_set_header: 42133 type: object 42134 properties: 42135 total: 42136 type: integer 42137 format: int64 42138 hash: 42139 type: string 42140 format: byte 42141 title: PartsetHeader 42142 title: BlockID 42143 last_commit_hash: 42144 type: string 42145 format: byte 42146 title: hashes of block data 42147 data_hash: 42148 type: string 42149 format: byte 42150 validators_hash: 42151 type: string 42152 format: byte 42153 title: >- 42154 hashes from the app output from the prev 42155 block 42156 next_validators_hash: 42157 type: string 42158 format: byte 42159 consensus_hash: 42160 type: string 42161 format: byte 42162 app_hash: 42163 type: string 42164 format: byte 42165 last_results_hash: 42166 type: string 42167 format: byte 42168 evidence_hash: 42169 type: string 42170 format: byte 42171 title: consensus info 42172 proposer_address: 42173 type: string 42174 format: byte 42175 description: >- 42176 Header defines the structure of a block 42177 header. 42178 commit: 42179 type: object 42180 properties: 42181 height: 42182 type: string 42183 format: int64 42184 round: 42185 type: integer 42186 format: int32 42187 block_id: 42188 type: object 42189 properties: 42190 hash: 42191 type: string 42192 format: byte 42193 part_set_header: 42194 type: object 42195 properties: 42196 total: 42197 type: integer 42198 format: int64 42199 hash: 42200 type: string 42201 format: byte 42202 title: PartsetHeader 42203 title: BlockID 42204 signatures: 42205 type: array 42206 items: 42207 type: object 42208 properties: 42209 block_id_flag: 42210 type: string 42211 enum: 42212 - BLOCK_ID_FLAG_UNKNOWN 42213 - BLOCK_ID_FLAG_ABSENT 42214 - BLOCK_ID_FLAG_COMMIT 42215 - BLOCK_ID_FLAG_NIL 42216 default: BLOCK_ID_FLAG_UNKNOWN 42217 title: >- 42218 BlockIdFlag indicates which BlockID the 42219 signature is for 42220 validator_address: 42221 type: string 42222 format: byte 42223 timestamp: 42224 type: string 42225 format: date-time 42226 signature: 42227 type: string 42228 format: byte 42229 description: >- 42230 CommitSig is a part of the Vote included 42231 in a Commit. 42232 description: >- 42233 Commit contains the evidence that a block 42234 was committed by a set of validators. 42235 validator_set: 42236 type: object 42237 properties: 42238 validators: 42239 type: array 42240 items: 42241 type: object 42242 properties: 42243 address: 42244 type: string 42245 format: byte 42246 pub_key: 42247 type: object 42248 properties: 42249 ed25519: 42250 type: string 42251 format: byte 42252 secp256k1: 42253 type: string 42254 format: byte 42255 title: >- 42256 PublicKey defines the keys available for 42257 use with Validators 42258 voting_power: 42259 type: string 42260 format: int64 42261 proposer_priority: 42262 type: string 42263 format: int64 42264 proposer: 42265 type: object 42266 properties: 42267 address: 42268 type: string 42269 format: byte 42270 pub_key: 42271 type: object 42272 properties: 42273 ed25519: 42274 type: string 42275 format: byte 42276 secp256k1: 42277 type: string 42278 format: byte 42279 title: >- 42280 PublicKey defines the keys available for 42281 use with Validators 42282 voting_power: 42283 type: string 42284 format: int64 42285 proposer_priority: 42286 type: string 42287 format: int64 42288 total_voting_power: 42289 type: string 42290 format: int64 42291 common_height: 42292 type: string 42293 format: int64 42294 byzantine_validators: 42295 type: array 42296 items: 42297 type: object 42298 properties: 42299 address: 42300 type: string 42301 format: byte 42302 pub_key: 42303 type: object 42304 properties: 42305 ed25519: 42306 type: string 42307 format: byte 42308 secp256k1: 42309 type: string 42310 format: byte 42311 title: >- 42312 PublicKey defines the keys available for use 42313 with Validators 42314 voting_power: 42315 type: string 42316 format: int64 42317 proposer_priority: 42318 type: string 42319 format: int64 42320 total_voting_power: 42321 type: string 42322 format: int64 42323 timestamp: 42324 type: string 42325 format: date-time 42326 description: >- 42327 LightClientAttackEvidence contains evidence of a set of 42328 validators attempting to mislead a light client. 42329 last_commit: 42330 type: object 42331 properties: 42332 height: 42333 type: string 42334 format: int64 42335 round: 42336 type: integer 42337 format: int32 42338 block_id: 42339 type: object 42340 properties: 42341 hash: 42342 type: string 42343 format: byte 42344 part_set_header: 42345 type: object 42346 properties: 42347 total: 42348 type: integer 42349 format: int64 42350 hash: 42351 type: string 42352 format: byte 42353 title: PartsetHeader 42354 title: BlockID 42355 signatures: 42356 type: array 42357 items: 42358 type: object 42359 properties: 42360 block_id_flag: 42361 type: string 42362 enum: 42363 - BLOCK_ID_FLAG_UNKNOWN 42364 - BLOCK_ID_FLAG_ABSENT 42365 - BLOCK_ID_FLAG_COMMIT 42366 - BLOCK_ID_FLAG_NIL 42367 default: BLOCK_ID_FLAG_UNKNOWN 42368 title: BlockIdFlag indicates which BlockID the signature is for 42369 validator_address: 42370 type: string 42371 format: byte 42372 timestamp: 42373 type: string 42374 format: date-time 42375 signature: 42376 type: string 42377 format: byte 42378 description: CommitSig is a part of the Vote included in a Commit. 42379 description: >- 42380 Commit contains the evidence that a block was committed by a set 42381 of validators. 42382 sdk_block: 42383 title: 'Since: cosmos-sdk 0.47' 42384 type: object 42385 properties: 42386 header: 42387 type: object 42388 properties: 42389 version: 42390 title: basic block info 42391 type: object 42392 properties: 42393 block: 42394 type: string 42395 format: uint64 42396 app: 42397 type: string 42398 format: uint64 42399 description: >- 42400 Consensus captures the consensus rules for processing a block 42401 in the blockchain, 42402 42403 including all blockchain data structures and the rules of the 42404 application's 42405 42406 state transition machine. 42407 chain_id: 42408 type: string 42409 height: 42410 type: string 42411 format: int64 42412 time: 42413 type: string 42414 format: date-time 42415 last_block_id: 42416 type: object 42417 properties: 42418 hash: 42419 type: string 42420 format: byte 42421 part_set_header: 42422 type: object 42423 properties: 42424 total: 42425 type: integer 42426 format: int64 42427 hash: 42428 type: string 42429 format: byte 42430 title: PartsetHeader 42431 title: BlockID 42432 last_commit_hash: 42433 type: string 42434 format: byte 42435 title: hashes of block data 42436 data_hash: 42437 type: string 42438 format: byte 42439 validators_hash: 42440 type: string 42441 format: byte 42442 title: hashes from the app output from the prev block 42443 next_validators_hash: 42444 type: string 42445 format: byte 42446 consensus_hash: 42447 type: string 42448 format: byte 42449 app_hash: 42450 type: string 42451 format: byte 42452 last_results_hash: 42453 type: string 42454 format: byte 42455 evidence_hash: 42456 type: string 42457 format: byte 42458 title: consensus info 42459 proposer_address: 42460 type: string 42461 description: >- 42462 proposer_address is the original block proposer address, 42463 formatted as a Bech32 string. 42464 42465 In Tendermint, this type is `bytes`, but in the SDK, we 42466 convert it to a Bech32 string 42467 42468 for better UX. 42469 description: Header defines the structure of a Tendermint block header. 42470 data: 42471 type: object 42472 properties: 42473 txs: 42474 type: array 42475 items: 42476 type: string 42477 format: byte 42478 description: >- 42479 Txs that will be applied by state @ block.Height+1. 42480 42481 NOTE: not all txs here are valid. We're just agreeing on the 42482 order first. 42483 42484 This means that block.AppHash does not include these txs. 42485 title: Data contains the set of transactions included in the block 42486 evidence: 42487 type: object 42488 properties: 42489 evidence: 42490 type: array 42491 items: 42492 type: object 42493 properties: 42494 duplicate_vote_evidence: 42495 type: object 42496 properties: 42497 vote_a: 42498 type: object 42499 properties: 42500 type: 42501 type: string 42502 enum: 42503 - SIGNED_MSG_TYPE_UNKNOWN 42504 - SIGNED_MSG_TYPE_PREVOTE 42505 - SIGNED_MSG_TYPE_PRECOMMIT 42506 - SIGNED_MSG_TYPE_PROPOSAL 42507 default: SIGNED_MSG_TYPE_UNKNOWN 42508 description: >- 42509 SignedMsgType is a type of signed message in the 42510 consensus. 42511 42512 - SIGNED_MSG_TYPE_PREVOTE: Votes 42513 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 42514 height: 42515 type: string 42516 format: int64 42517 round: 42518 type: integer 42519 format: int32 42520 block_id: 42521 type: object 42522 properties: 42523 hash: 42524 type: string 42525 format: byte 42526 part_set_header: 42527 type: object 42528 properties: 42529 total: 42530 type: integer 42531 format: int64 42532 hash: 42533 type: string 42534 format: byte 42535 title: PartsetHeader 42536 title: BlockID 42537 timestamp: 42538 type: string 42539 format: date-time 42540 validator_address: 42541 type: string 42542 format: byte 42543 validator_index: 42544 type: integer 42545 format: int32 42546 signature: 42547 type: string 42548 format: byte 42549 description: >- 42550 Vote signature by the validator if they 42551 participated in consensus for the 42552 42553 associated block. 42554 extension: 42555 type: string 42556 format: byte 42557 description: >- 42558 Vote extension provided by the application. Only 42559 valid for precommit 42560 42561 messages. 42562 extension_signature: 42563 type: string 42564 format: byte 42565 description: >- 42566 Vote extension signature by the validator if 42567 they participated in 42568 42569 consensus for the associated block. 42570 42571 Only valid for precommit messages. 42572 description: >- 42573 Vote represents a prevote or precommit vote from 42574 validators for 42575 42576 consensus. 42577 vote_b: 42578 type: object 42579 properties: 42580 type: 42581 type: string 42582 enum: 42583 - SIGNED_MSG_TYPE_UNKNOWN 42584 - SIGNED_MSG_TYPE_PREVOTE 42585 - SIGNED_MSG_TYPE_PRECOMMIT 42586 - SIGNED_MSG_TYPE_PROPOSAL 42587 default: SIGNED_MSG_TYPE_UNKNOWN 42588 description: >- 42589 SignedMsgType is a type of signed message in the 42590 consensus. 42591 42592 - SIGNED_MSG_TYPE_PREVOTE: Votes 42593 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 42594 height: 42595 type: string 42596 format: int64 42597 round: 42598 type: integer 42599 format: int32 42600 block_id: 42601 type: object 42602 properties: 42603 hash: 42604 type: string 42605 format: byte 42606 part_set_header: 42607 type: object 42608 properties: 42609 total: 42610 type: integer 42611 format: int64 42612 hash: 42613 type: string 42614 format: byte 42615 title: PartsetHeader 42616 title: BlockID 42617 timestamp: 42618 type: string 42619 format: date-time 42620 validator_address: 42621 type: string 42622 format: byte 42623 validator_index: 42624 type: integer 42625 format: int32 42626 signature: 42627 type: string 42628 format: byte 42629 description: >- 42630 Vote signature by the validator if they 42631 participated in consensus for the 42632 42633 associated block. 42634 extension: 42635 type: string 42636 format: byte 42637 description: >- 42638 Vote extension provided by the application. Only 42639 valid for precommit 42640 42641 messages. 42642 extension_signature: 42643 type: string 42644 format: byte 42645 description: >- 42646 Vote extension signature by the validator if 42647 they participated in 42648 42649 consensus for the associated block. 42650 42651 Only valid for precommit messages. 42652 description: >- 42653 Vote represents a prevote or precommit vote from 42654 validators for 42655 42656 consensus. 42657 total_voting_power: 42658 type: string 42659 format: int64 42660 validator_power: 42661 type: string 42662 format: int64 42663 timestamp: 42664 type: string 42665 format: date-time 42666 description: >- 42667 DuplicateVoteEvidence contains evidence of a validator 42668 signed two conflicting votes. 42669 light_client_attack_evidence: 42670 type: object 42671 properties: 42672 conflicting_block: 42673 type: object 42674 properties: 42675 signed_header: 42676 type: object 42677 properties: 42678 header: 42679 type: object 42680 properties: 42681 version: 42682 title: basic block info 42683 type: object 42684 properties: 42685 block: 42686 type: string 42687 format: uint64 42688 app: 42689 type: string 42690 format: uint64 42691 description: >- 42692 Consensus captures the consensus rules 42693 for processing a block in the 42694 blockchain, 42695 42696 including all blockchain data structures 42697 and the rules of the application's 42698 42699 state transition machine. 42700 chain_id: 42701 type: string 42702 height: 42703 type: string 42704 format: int64 42705 time: 42706 type: string 42707 format: date-time 42708 last_block_id: 42709 type: object 42710 properties: 42711 hash: 42712 type: string 42713 format: byte 42714 part_set_header: 42715 type: object 42716 properties: 42717 total: 42718 type: integer 42719 format: int64 42720 hash: 42721 type: string 42722 format: byte 42723 title: PartsetHeader 42724 title: BlockID 42725 last_commit_hash: 42726 type: string 42727 format: byte 42728 title: hashes of block data 42729 data_hash: 42730 type: string 42731 format: byte 42732 validators_hash: 42733 type: string 42734 format: byte 42735 title: >- 42736 hashes from the app output from the prev 42737 block 42738 next_validators_hash: 42739 type: string 42740 format: byte 42741 consensus_hash: 42742 type: string 42743 format: byte 42744 app_hash: 42745 type: string 42746 format: byte 42747 last_results_hash: 42748 type: string 42749 format: byte 42750 evidence_hash: 42751 type: string 42752 format: byte 42753 title: consensus info 42754 proposer_address: 42755 type: string 42756 format: byte 42757 description: >- 42758 Header defines the structure of a block 42759 header. 42760 commit: 42761 type: object 42762 properties: 42763 height: 42764 type: string 42765 format: int64 42766 round: 42767 type: integer 42768 format: int32 42769 block_id: 42770 type: object 42771 properties: 42772 hash: 42773 type: string 42774 format: byte 42775 part_set_header: 42776 type: object 42777 properties: 42778 total: 42779 type: integer 42780 format: int64 42781 hash: 42782 type: string 42783 format: byte 42784 title: PartsetHeader 42785 title: BlockID 42786 signatures: 42787 type: array 42788 items: 42789 type: object 42790 properties: 42791 block_id_flag: 42792 type: string 42793 enum: 42794 - BLOCK_ID_FLAG_UNKNOWN 42795 - BLOCK_ID_FLAG_ABSENT 42796 - BLOCK_ID_FLAG_COMMIT 42797 - BLOCK_ID_FLAG_NIL 42798 default: BLOCK_ID_FLAG_UNKNOWN 42799 title: >- 42800 BlockIdFlag indicates which BlockID the 42801 signature is for 42802 validator_address: 42803 type: string 42804 format: byte 42805 timestamp: 42806 type: string 42807 format: date-time 42808 signature: 42809 type: string 42810 format: byte 42811 description: >- 42812 CommitSig is a part of the Vote included 42813 in a Commit. 42814 description: >- 42815 Commit contains the evidence that a block 42816 was committed by a set of validators. 42817 validator_set: 42818 type: object 42819 properties: 42820 validators: 42821 type: array 42822 items: 42823 type: object 42824 properties: 42825 address: 42826 type: string 42827 format: byte 42828 pub_key: 42829 type: object 42830 properties: 42831 ed25519: 42832 type: string 42833 format: byte 42834 secp256k1: 42835 type: string 42836 format: byte 42837 title: >- 42838 PublicKey defines the keys available for 42839 use with Validators 42840 voting_power: 42841 type: string 42842 format: int64 42843 proposer_priority: 42844 type: string 42845 format: int64 42846 proposer: 42847 type: object 42848 properties: 42849 address: 42850 type: string 42851 format: byte 42852 pub_key: 42853 type: object 42854 properties: 42855 ed25519: 42856 type: string 42857 format: byte 42858 secp256k1: 42859 type: string 42860 format: byte 42861 title: >- 42862 PublicKey defines the keys available for 42863 use with Validators 42864 voting_power: 42865 type: string 42866 format: int64 42867 proposer_priority: 42868 type: string 42869 format: int64 42870 total_voting_power: 42871 type: string 42872 format: int64 42873 common_height: 42874 type: string 42875 format: int64 42876 byzantine_validators: 42877 type: array 42878 items: 42879 type: object 42880 properties: 42881 address: 42882 type: string 42883 format: byte 42884 pub_key: 42885 type: object 42886 properties: 42887 ed25519: 42888 type: string 42889 format: byte 42890 secp256k1: 42891 type: string 42892 format: byte 42893 title: >- 42894 PublicKey defines the keys available for use 42895 with Validators 42896 voting_power: 42897 type: string 42898 format: int64 42899 proposer_priority: 42900 type: string 42901 format: int64 42902 total_voting_power: 42903 type: string 42904 format: int64 42905 timestamp: 42906 type: string 42907 format: date-time 42908 description: >- 42909 LightClientAttackEvidence contains evidence of a set of 42910 validators attempting to mislead a light client. 42911 last_commit: 42912 type: object 42913 properties: 42914 height: 42915 type: string 42916 format: int64 42917 round: 42918 type: integer 42919 format: int32 42920 block_id: 42921 type: object 42922 properties: 42923 hash: 42924 type: string 42925 format: byte 42926 part_set_header: 42927 type: object 42928 properties: 42929 total: 42930 type: integer 42931 format: int64 42932 hash: 42933 type: string 42934 format: byte 42935 title: PartsetHeader 42936 title: BlockID 42937 signatures: 42938 type: array 42939 items: 42940 type: object 42941 properties: 42942 block_id_flag: 42943 type: string 42944 enum: 42945 - BLOCK_ID_FLAG_UNKNOWN 42946 - BLOCK_ID_FLAG_ABSENT 42947 - BLOCK_ID_FLAG_COMMIT 42948 - BLOCK_ID_FLAG_NIL 42949 default: BLOCK_ID_FLAG_UNKNOWN 42950 title: BlockIdFlag indicates which BlockID the signature is for 42951 validator_address: 42952 type: string 42953 format: byte 42954 timestamp: 42955 type: string 42956 format: date-time 42957 signature: 42958 type: string 42959 format: byte 42960 description: CommitSig is a part of the Vote included in a Commit. 42961 description: >- 42962 Commit contains the evidence that a block was committed by a set 42963 of validators. 42964 description: |- 42965 Block is tendermint type Block, with the Header proposer address 42966 field converted to bech32 string. 42967 description: >- 42968 GetBlockByHeightResponse is the response type for the 42969 Query/GetBlockByHeight RPC method. 42970 cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: 42971 type: object 42972 properties: 42973 block_id: 42974 type: object 42975 properties: 42976 hash: 42977 type: string 42978 format: byte 42979 part_set_header: 42980 type: object 42981 properties: 42982 total: 42983 type: integer 42984 format: int64 42985 hash: 42986 type: string 42987 format: byte 42988 title: PartsetHeader 42989 title: BlockID 42990 block: 42991 title: 'Deprecated: please use `sdk_block` instead' 42992 type: object 42993 properties: 42994 header: 42995 type: object 42996 properties: 42997 version: 42998 title: basic block info 42999 type: object 43000 properties: 43001 block: 43002 type: string 43003 format: uint64 43004 app: 43005 type: string 43006 format: uint64 43007 description: >- 43008 Consensus captures the consensus rules for processing a block 43009 in the blockchain, 43010 43011 including all blockchain data structures and the rules of the 43012 application's 43013 43014 state transition machine. 43015 chain_id: 43016 type: string 43017 height: 43018 type: string 43019 format: int64 43020 time: 43021 type: string 43022 format: date-time 43023 last_block_id: 43024 type: object 43025 properties: 43026 hash: 43027 type: string 43028 format: byte 43029 part_set_header: 43030 type: object 43031 properties: 43032 total: 43033 type: integer 43034 format: int64 43035 hash: 43036 type: string 43037 format: byte 43038 title: PartsetHeader 43039 title: BlockID 43040 last_commit_hash: 43041 type: string 43042 format: byte 43043 title: hashes of block data 43044 data_hash: 43045 type: string 43046 format: byte 43047 validators_hash: 43048 type: string 43049 format: byte 43050 title: hashes from the app output from the prev block 43051 next_validators_hash: 43052 type: string 43053 format: byte 43054 consensus_hash: 43055 type: string 43056 format: byte 43057 app_hash: 43058 type: string 43059 format: byte 43060 last_results_hash: 43061 type: string 43062 format: byte 43063 evidence_hash: 43064 type: string 43065 format: byte 43066 title: consensus info 43067 proposer_address: 43068 type: string 43069 format: byte 43070 description: Header defines the structure of a block header. 43071 data: 43072 type: object 43073 properties: 43074 txs: 43075 type: array 43076 items: 43077 type: string 43078 format: byte 43079 description: >- 43080 Txs that will be applied by state @ block.Height+1. 43081 43082 NOTE: not all txs here are valid. We're just agreeing on the 43083 order first. 43084 43085 This means that block.AppHash does not include these txs. 43086 title: Data contains the set of transactions included in the block 43087 evidence: 43088 type: object 43089 properties: 43090 evidence: 43091 type: array 43092 items: 43093 type: object 43094 properties: 43095 duplicate_vote_evidence: 43096 type: object 43097 properties: 43098 vote_a: 43099 type: object 43100 properties: 43101 type: 43102 type: string 43103 enum: 43104 - SIGNED_MSG_TYPE_UNKNOWN 43105 - SIGNED_MSG_TYPE_PREVOTE 43106 - SIGNED_MSG_TYPE_PRECOMMIT 43107 - SIGNED_MSG_TYPE_PROPOSAL 43108 default: SIGNED_MSG_TYPE_UNKNOWN 43109 description: >- 43110 SignedMsgType is a type of signed message in the 43111 consensus. 43112 43113 - SIGNED_MSG_TYPE_PREVOTE: Votes 43114 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 43115 height: 43116 type: string 43117 format: int64 43118 round: 43119 type: integer 43120 format: int32 43121 block_id: 43122 type: object 43123 properties: 43124 hash: 43125 type: string 43126 format: byte 43127 part_set_header: 43128 type: object 43129 properties: 43130 total: 43131 type: integer 43132 format: int64 43133 hash: 43134 type: string 43135 format: byte 43136 title: PartsetHeader 43137 title: BlockID 43138 timestamp: 43139 type: string 43140 format: date-time 43141 validator_address: 43142 type: string 43143 format: byte 43144 validator_index: 43145 type: integer 43146 format: int32 43147 signature: 43148 type: string 43149 format: byte 43150 description: >- 43151 Vote signature by the validator if they 43152 participated in consensus for the 43153 43154 associated block. 43155 extension: 43156 type: string 43157 format: byte 43158 description: >- 43159 Vote extension provided by the application. Only 43160 valid for precommit 43161 43162 messages. 43163 extension_signature: 43164 type: string 43165 format: byte 43166 description: >- 43167 Vote extension signature by the validator if 43168 they participated in 43169 43170 consensus for the associated block. 43171 43172 Only valid for precommit messages. 43173 description: >- 43174 Vote represents a prevote or precommit vote from 43175 validators for 43176 43177 consensus. 43178 vote_b: 43179 type: object 43180 properties: 43181 type: 43182 type: string 43183 enum: 43184 - SIGNED_MSG_TYPE_UNKNOWN 43185 - SIGNED_MSG_TYPE_PREVOTE 43186 - SIGNED_MSG_TYPE_PRECOMMIT 43187 - SIGNED_MSG_TYPE_PROPOSAL 43188 default: SIGNED_MSG_TYPE_UNKNOWN 43189 description: >- 43190 SignedMsgType is a type of signed message in the 43191 consensus. 43192 43193 - SIGNED_MSG_TYPE_PREVOTE: Votes 43194 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 43195 height: 43196 type: string 43197 format: int64 43198 round: 43199 type: integer 43200 format: int32 43201 block_id: 43202 type: object 43203 properties: 43204 hash: 43205 type: string 43206 format: byte 43207 part_set_header: 43208 type: object 43209 properties: 43210 total: 43211 type: integer 43212 format: int64 43213 hash: 43214 type: string 43215 format: byte 43216 title: PartsetHeader 43217 title: BlockID 43218 timestamp: 43219 type: string 43220 format: date-time 43221 validator_address: 43222 type: string 43223 format: byte 43224 validator_index: 43225 type: integer 43226 format: int32 43227 signature: 43228 type: string 43229 format: byte 43230 description: >- 43231 Vote signature by the validator if they 43232 participated in consensus for the 43233 43234 associated block. 43235 extension: 43236 type: string 43237 format: byte 43238 description: >- 43239 Vote extension provided by the application. Only 43240 valid for precommit 43241 43242 messages. 43243 extension_signature: 43244 type: string 43245 format: byte 43246 description: >- 43247 Vote extension signature by the validator if 43248 they participated in 43249 43250 consensus for the associated block. 43251 43252 Only valid for precommit messages. 43253 description: >- 43254 Vote represents a prevote or precommit vote from 43255 validators for 43256 43257 consensus. 43258 total_voting_power: 43259 type: string 43260 format: int64 43261 validator_power: 43262 type: string 43263 format: int64 43264 timestamp: 43265 type: string 43266 format: date-time 43267 description: >- 43268 DuplicateVoteEvidence contains evidence of a validator 43269 signed two conflicting votes. 43270 light_client_attack_evidence: 43271 type: object 43272 properties: 43273 conflicting_block: 43274 type: object 43275 properties: 43276 signed_header: 43277 type: object 43278 properties: 43279 header: 43280 type: object 43281 properties: 43282 version: 43283 title: basic block info 43284 type: object 43285 properties: 43286 block: 43287 type: string 43288 format: uint64 43289 app: 43290 type: string 43291 format: uint64 43292 description: >- 43293 Consensus captures the consensus rules 43294 for processing a block in the 43295 blockchain, 43296 43297 including all blockchain data structures 43298 and the rules of the application's 43299 43300 state transition machine. 43301 chain_id: 43302 type: string 43303 height: 43304 type: string 43305 format: int64 43306 time: 43307 type: string 43308 format: date-time 43309 last_block_id: 43310 type: object 43311 properties: 43312 hash: 43313 type: string 43314 format: byte 43315 part_set_header: 43316 type: object 43317 properties: 43318 total: 43319 type: integer 43320 format: int64 43321 hash: 43322 type: string 43323 format: byte 43324 title: PartsetHeader 43325 title: BlockID 43326 last_commit_hash: 43327 type: string 43328 format: byte 43329 title: hashes of block data 43330 data_hash: 43331 type: string 43332 format: byte 43333 validators_hash: 43334 type: string 43335 format: byte 43336 title: >- 43337 hashes from the app output from the prev 43338 block 43339 next_validators_hash: 43340 type: string 43341 format: byte 43342 consensus_hash: 43343 type: string 43344 format: byte 43345 app_hash: 43346 type: string 43347 format: byte 43348 last_results_hash: 43349 type: string 43350 format: byte 43351 evidence_hash: 43352 type: string 43353 format: byte 43354 title: consensus info 43355 proposer_address: 43356 type: string 43357 format: byte 43358 description: >- 43359 Header defines the structure of a block 43360 header. 43361 commit: 43362 type: object 43363 properties: 43364 height: 43365 type: string 43366 format: int64 43367 round: 43368 type: integer 43369 format: int32 43370 block_id: 43371 type: object 43372 properties: 43373 hash: 43374 type: string 43375 format: byte 43376 part_set_header: 43377 type: object 43378 properties: 43379 total: 43380 type: integer 43381 format: int64 43382 hash: 43383 type: string 43384 format: byte 43385 title: PartsetHeader 43386 title: BlockID 43387 signatures: 43388 type: array 43389 items: 43390 type: object 43391 properties: 43392 block_id_flag: 43393 type: string 43394 enum: 43395 - BLOCK_ID_FLAG_UNKNOWN 43396 - BLOCK_ID_FLAG_ABSENT 43397 - BLOCK_ID_FLAG_COMMIT 43398 - BLOCK_ID_FLAG_NIL 43399 default: BLOCK_ID_FLAG_UNKNOWN 43400 title: >- 43401 BlockIdFlag indicates which BlockID the 43402 signature is for 43403 validator_address: 43404 type: string 43405 format: byte 43406 timestamp: 43407 type: string 43408 format: date-time 43409 signature: 43410 type: string 43411 format: byte 43412 description: >- 43413 CommitSig is a part of the Vote included 43414 in a Commit. 43415 description: >- 43416 Commit contains the evidence that a block 43417 was committed by a set of validators. 43418 validator_set: 43419 type: object 43420 properties: 43421 validators: 43422 type: array 43423 items: 43424 type: object 43425 properties: 43426 address: 43427 type: string 43428 format: byte 43429 pub_key: 43430 type: object 43431 properties: 43432 ed25519: 43433 type: string 43434 format: byte 43435 secp256k1: 43436 type: string 43437 format: byte 43438 title: >- 43439 PublicKey defines the keys available for 43440 use with Validators 43441 voting_power: 43442 type: string 43443 format: int64 43444 proposer_priority: 43445 type: string 43446 format: int64 43447 proposer: 43448 type: object 43449 properties: 43450 address: 43451 type: string 43452 format: byte 43453 pub_key: 43454 type: object 43455 properties: 43456 ed25519: 43457 type: string 43458 format: byte 43459 secp256k1: 43460 type: string 43461 format: byte 43462 title: >- 43463 PublicKey defines the keys available for 43464 use with Validators 43465 voting_power: 43466 type: string 43467 format: int64 43468 proposer_priority: 43469 type: string 43470 format: int64 43471 total_voting_power: 43472 type: string 43473 format: int64 43474 common_height: 43475 type: string 43476 format: int64 43477 byzantine_validators: 43478 type: array 43479 items: 43480 type: object 43481 properties: 43482 address: 43483 type: string 43484 format: byte 43485 pub_key: 43486 type: object 43487 properties: 43488 ed25519: 43489 type: string 43490 format: byte 43491 secp256k1: 43492 type: string 43493 format: byte 43494 title: >- 43495 PublicKey defines the keys available for use 43496 with Validators 43497 voting_power: 43498 type: string 43499 format: int64 43500 proposer_priority: 43501 type: string 43502 format: int64 43503 total_voting_power: 43504 type: string 43505 format: int64 43506 timestamp: 43507 type: string 43508 format: date-time 43509 description: >- 43510 LightClientAttackEvidence contains evidence of a set of 43511 validators attempting to mislead a light client. 43512 last_commit: 43513 type: object 43514 properties: 43515 height: 43516 type: string 43517 format: int64 43518 round: 43519 type: integer 43520 format: int32 43521 block_id: 43522 type: object 43523 properties: 43524 hash: 43525 type: string 43526 format: byte 43527 part_set_header: 43528 type: object 43529 properties: 43530 total: 43531 type: integer 43532 format: int64 43533 hash: 43534 type: string 43535 format: byte 43536 title: PartsetHeader 43537 title: BlockID 43538 signatures: 43539 type: array 43540 items: 43541 type: object 43542 properties: 43543 block_id_flag: 43544 type: string 43545 enum: 43546 - BLOCK_ID_FLAG_UNKNOWN 43547 - BLOCK_ID_FLAG_ABSENT 43548 - BLOCK_ID_FLAG_COMMIT 43549 - BLOCK_ID_FLAG_NIL 43550 default: BLOCK_ID_FLAG_UNKNOWN 43551 title: BlockIdFlag indicates which BlockID the signature is for 43552 validator_address: 43553 type: string 43554 format: byte 43555 timestamp: 43556 type: string 43557 format: date-time 43558 signature: 43559 type: string 43560 format: byte 43561 description: CommitSig is a part of the Vote included in a Commit. 43562 description: >- 43563 Commit contains the evidence that a block was committed by a set 43564 of validators. 43565 sdk_block: 43566 title: 'Since: cosmos-sdk 0.47' 43567 type: object 43568 properties: 43569 header: 43570 type: object 43571 properties: 43572 version: 43573 title: basic block info 43574 type: object 43575 properties: 43576 block: 43577 type: string 43578 format: uint64 43579 app: 43580 type: string 43581 format: uint64 43582 description: >- 43583 Consensus captures the consensus rules for processing a block 43584 in the blockchain, 43585 43586 including all blockchain data structures and the rules of the 43587 application's 43588 43589 state transition machine. 43590 chain_id: 43591 type: string 43592 height: 43593 type: string 43594 format: int64 43595 time: 43596 type: string 43597 format: date-time 43598 last_block_id: 43599 type: object 43600 properties: 43601 hash: 43602 type: string 43603 format: byte 43604 part_set_header: 43605 type: object 43606 properties: 43607 total: 43608 type: integer 43609 format: int64 43610 hash: 43611 type: string 43612 format: byte 43613 title: PartsetHeader 43614 title: BlockID 43615 last_commit_hash: 43616 type: string 43617 format: byte 43618 title: hashes of block data 43619 data_hash: 43620 type: string 43621 format: byte 43622 validators_hash: 43623 type: string 43624 format: byte 43625 title: hashes from the app output from the prev block 43626 next_validators_hash: 43627 type: string 43628 format: byte 43629 consensus_hash: 43630 type: string 43631 format: byte 43632 app_hash: 43633 type: string 43634 format: byte 43635 last_results_hash: 43636 type: string 43637 format: byte 43638 evidence_hash: 43639 type: string 43640 format: byte 43641 title: consensus info 43642 proposer_address: 43643 type: string 43644 description: >- 43645 proposer_address is the original block proposer address, 43646 formatted as a Bech32 string. 43647 43648 In Tendermint, this type is `bytes`, but in the SDK, we 43649 convert it to a Bech32 string 43650 43651 for better UX. 43652 description: Header defines the structure of a Tendermint block header. 43653 data: 43654 type: object 43655 properties: 43656 txs: 43657 type: array 43658 items: 43659 type: string 43660 format: byte 43661 description: >- 43662 Txs that will be applied by state @ block.Height+1. 43663 43664 NOTE: not all txs here are valid. We're just agreeing on the 43665 order first. 43666 43667 This means that block.AppHash does not include these txs. 43668 title: Data contains the set of transactions included in the block 43669 evidence: 43670 type: object 43671 properties: 43672 evidence: 43673 type: array 43674 items: 43675 type: object 43676 properties: 43677 duplicate_vote_evidence: 43678 type: object 43679 properties: 43680 vote_a: 43681 type: object 43682 properties: 43683 type: 43684 type: string 43685 enum: 43686 - SIGNED_MSG_TYPE_UNKNOWN 43687 - SIGNED_MSG_TYPE_PREVOTE 43688 - SIGNED_MSG_TYPE_PRECOMMIT 43689 - SIGNED_MSG_TYPE_PROPOSAL 43690 default: SIGNED_MSG_TYPE_UNKNOWN 43691 description: >- 43692 SignedMsgType is a type of signed message in the 43693 consensus. 43694 43695 - SIGNED_MSG_TYPE_PREVOTE: Votes 43696 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 43697 height: 43698 type: string 43699 format: int64 43700 round: 43701 type: integer 43702 format: int32 43703 block_id: 43704 type: object 43705 properties: 43706 hash: 43707 type: string 43708 format: byte 43709 part_set_header: 43710 type: object 43711 properties: 43712 total: 43713 type: integer 43714 format: int64 43715 hash: 43716 type: string 43717 format: byte 43718 title: PartsetHeader 43719 title: BlockID 43720 timestamp: 43721 type: string 43722 format: date-time 43723 validator_address: 43724 type: string 43725 format: byte 43726 validator_index: 43727 type: integer 43728 format: int32 43729 signature: 43730 type: string 43731 format: byte 43732 description: >- 43733 Vote signature by the validator if they 43734 participated in consensus for the 43735 43736 associated block. 43737 extension: 43738 type: string 43739 format: byte 43740 description: >- 43741 Vote extension provided by the application. Only 43742 valid for precommit 43743 43744 messages. 43745 extension_signature: 43746 type: string 43747 format: byte 43748 description: >- 43749 Vote extension signature by the validator if 43750 they participated in 43751 43752 consensus for the associated block. 43753 43754 Only valid for precommit messages. 43755 description: >- 43756 Vote represents a prevote or precommit vote from 43757 validators for 43758 43759 consensus. 43760 vote_b: 43761 type: object 43762 properties: 43763 type: 43764 type: string 43765 enum: 43766 - SIGNED_MSG_TYPE_UNKNOWN 43767 - SIGNED_MSG_TYPE_PREVOTE 43768 - SIGNED_MSG_TYPE_PRECOMMIT 43769 - SIGNED_MSG_TYPE_PROPOSAL 43770 default: SIGNED_MSG_TYPE_UNKNOWN 43771 description: >- 43772 SignedMsgType is a type of signed message in the 43773 consensus. 43774 43775 - SIGNED_MSG_TYPE_PREVOTE: Votes 43776 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 43777 height: 43778 type: string 43779 format: int64 43780 round: 43781 type: integer 43782 format: int32 43783 block_id: 43784 type: object 43785 properties: 43786 hash: 43787 type: string 43788 format: byte 43789 part_set_header: 43790 type: object 43791 properties: 43792 total: 43793 type: integer 43794 format: int64 43795 hash: 43796 type: string 43797 format: byte 43798 title: PartsetHeader 43799 title: BlockID 43800 timestamp: 43801 type: string 43802 format: date-time 43803 validator_address: 43804 type: string 43805 format: byte 43806 validator_index: 43807 type: integer 43808 format: int32 43809 signature: 43810 type: string 43811 format: byte 43812 description: >- 43813 Vote signature by the validator if they 43814 participated in consensus for the 43815 43816 associated block. 43817 extension: 43818 type: string 43819 format: byte 43820 description: >- 43821 Vote extension provided by the application. Only 43822 valid for precommit 43823 43824 messages. 43825 extension_signature: 43826 type: string 43827 format: byte 43828 description: >- 43829 Vote extension signature by the validator if 43830 they participated in 43831 43832 consensus for the associated block. 43833 43834 Only valid for precommit messages. 43835 description: >- 43836 Vote represents a prevote or precommit vote from 43837 validators for 43838 43839 consensus. 43840 total_voting_power: 43841 type: string 43842 format: int64 43843 validator_power: 43844 type: string 43845 format: int64 43846 timestamp: 43847 type: string 43848 format: date-time 43849 description: >- 43850 DuplicateVoteEvidence contains evidence of a validator 43851 signed two conflicting votes. 43852 light_client_attack_evidence: 43853 type: object 43854 properties: 43855 conflicting_block: 43856 type: object 43857 properties: 43858 signed_header: 43859 type: object 43860 properties: 43861 header: 43862 type: object 43863 properties: 43864 version: 43865 title: basic block info 43866 type: object 43867 properties: 43868 block: 43869 type: string 43870 format: uint64 43871 app: 43872 type: string 43873 format: uint64 43874 description: >- 43875 Consensus captures the consensus rules 43876 for processing a block in the 43877 blockchain, 43878 43879 including all blockchain data structures 43880 and the rules of the application's 43881 43882 state transition machine. 43883 chain_id: 43884 type: string 43885 height: 43886 type: string 43887 format: int64 43888 time: 43889 type: string 43890 format: date-time 43891 last_block_id: 43892 type: object 43893 properties: 43894 hash: 43895 type: string 43896 format: byte 43897 part_set_header: 43898 type: object 43899 properties: 43900 total: 43901 type: integer 43902 format: int64 43903 hash: 43904 type: string 43905 format: byte 43906 title: PartsetHeader 43907 title: BlockID 43908 last_commit_hash: 43909 type: string 43910 format: byte 43911 title: hashes of block data 43912 data_hash: 43913 type: string 43914 format: byte 43915 validators_hash: 43916 type: string 43917 format: byte 43918 title: >- 43919 hashes from the app output from the prev 43920 block 43921 next_validators_hash: 43922 type: string 43923 format: byte 43924 consensus_hash: 43925 type: string 43926 format: byte 43927 app_hash: 43928 type: string 43929 format: byte 43930 last_results_hash: 43931 type: string 43932 format: byte 43933 evidence_hash: 43934 type: string 43935 format: byte 43936 title: consensus info 43937 proposer_address: 43938 type: string 43939 format: byte 43940 description: >- 43941 Header defines the structure of a block 43942 header. 43943 commit: 43944 type: object 43945 properties: 43946 height: 43947 type: string 43948 format: int64 43949 round: 43950 type: integer 43951 format: int32 43952 block_id: 43953 type: object 43954 properties: 43955 hash: 43956 type: string 43957 format: byte 43958 part_set_header: 43959 type: object 43960 properties: 43961 total: 43962 type: integer 43963 format: int64 43964 hash: 43965 type: string 43966 format: byte 43967 title: PartsetHeader 43968 title: BlockID 43969 signatures: 43970 type: array 43971 items: 43972 type: object 43973 properties: 43974 block_id_flag: 43975 type: string 43976 enum: 43977 - BLOCK_ID_FLAG_UNKNOWN 43978 - BLOCK_ID_FLAG_ABSENT 43979 - BLOCK_ID_FLAG_COMMIT 43980 - BLOCK_ID_FLAG_NIL 43981 default: BLOCK_ID_FLAG_UNKNOWN 43982 title: >- 43983 BlockIdFlag indicates which BlockID the 43984 signature is for 43985 validator_address: 43986 type: string 43987 format: byte 43988 timestamp: 43989 type: string 43990 format: date-time 43991 signature: 43992 type: string 43993 format: byte 43994 description: >- 43995 CommitSig is a part of the Vote included 43996 in a Commit. 43997 description: >- 43998 Commit contains the evidence that a block 43999 was committed by a set of validators. 44000 validator_set: 44001 type: object 44002 properties: 44003 validators: 44004 type: array 44005 items: 44006 type: object 44007 properties: 44008 address: 44009 type: string 44010 format: byte 44011 pub_key: 44012 type: object 44013 properties: 44014 ed25519: 44015 type: string 44016 format: byte 44017 secp256k1: 44018 type: string 44019 format: byte 44020 title: >- 44021 PublicKey defines the keys available for 44022 use with Validators 44023 voting_power: 44024 type: string 44025 format: int64 44026 proposer_priority: 44027 type: string 44028 format: int64 44029 proposer: 44030 type: object 44031 properties: 44032 address: 44033 type: string 44034 format: byte 44035 pub_key: 44036 type: object 44037 properties: 44038 ed25519: 44039 type: string 44040 format: byte 44041 secp256k1: 44042 type: string 44043 format: byte 44044 title: >- 44045 PublicKey defines the keys available for 44046 use with Validators 44047 voting_power: 44048 type: string 44049 format: int64 44050 proposer_priority: 44051 type: string 44052 format: int64 44053 total_voting_power: 44054 type: string 44055 format: int64 44056 common_height: 44057 type: string 44058 format: int64 44059 byzantine_validators: 44060 type: array 44061 items: 44062 type: object 44063 properties: 44064 address: 44065 type: string 44066 format: byte 44067 pub_key: 44068 type: object 44069 properties: 44070 ed25519: 44071 type: string 44072 format: byte 44073 secp256k1: 44074 type: string 44075 format: byte 44076 title: >- 44077 PublicKey defines the keys available for use 44078 with Validators 44079 voting_power: 44080 type: string 44081 format: int64 44082 proposer_priority: 44083 type: string 44084 format: int64 44085 total_voting_power: 44086 type: string 44087 format: int64 44088 timestamp: 44089 type: string 44090 format: date-time 44091 description: >- 44092 LightClientAttackEvidence contains evidence of a set of 44093 validators attempting to mislead a light client. 44094 last_commit: 44095 type: object 44096 properties: 44097 height: 44098 type: string 44099 format: int64 44100 round: 44101 type: integer 44102 format: int32 44103 block_id: 44104 type: object 44105 properties: 44106 hash: 44107 type: string 44108 format: byte 44109 part_set_header: 44110 type: object 44111 properties: 44112 total: 44113 type: integer 44114 format: int64 44115 hash: 44116 type: string 44117 format: byte 44118 title: PartsetHeader 44119 title: BlockID 44120 signatures: 44121 type: array 44122 items: 44123 type: object 44124 properties: 44125 block_id_flag: 44126 type: string 44127 enum: 44128 - BLOCK_ID_FLAG_UNKNOWN 44129 - BLOCK_ID_FLAG_ABSENT 44130 - BLOCK_ID_FLAG_COMMIT 44131 - BLOCK_ID_FLAG_NIL 44132 default: BLOCK_ID_FLAG_UNKNOWN 44133 title: BlockIdFlag indicates which BlockID the signature is for 44134 validator_address: 44135 type: string 44136 format: byte 44137 timestamp: 44138 type: string 44139 format: date-time 44140 signature: 44141 type: string 44142 format: byte 44143 description: CommitSig is a part of the Vote included in a Commit. 44144 description: >- 44145 Commit contains the evidence that a block was committed by a set 44146 of validators. 44147 description: |- 44148 Block is tendermint type Block, with the Header proposer address 44149 field converted to bech32 string. 44150 description: >- 44151 GetLatestBlockResponse is the response type for the Query/GetLatestBlock 44152 RPC method. 44153 cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: 44154 type: object 44155 properties: 44156 block_height: 44157 type: string 44158 format: int64 44159 validators: 44160 type: array 44161 items: 44162 type: object 44163 properties: 44164 address: 44165 type: string 44166 pub_key: 44167 type: object 44168 properties: 44169 type_url: 44170 type: string 44171 description: >- 44172 A URL/resource name that uniquely identifies the type of the 44173 serialized 44174 44175 protocol buffer message. This string must contain at least 44176 44177 one "/" character. The last segment of the URL's path must 44178 represent 44179 44180 the fully qualified name of the type (as in 44181 44182 `path/google.protobuf.Duration`). The name should be in a 44183 canonical form 44184 44185 (e.g., leading "." is not accepted). 44186 44187 44188 In practice, teams usually precompile into the binary all 44189 types that they 44190 44191 expect it to use in the context of Any. However, for URLs 44192 which use the 44193 44194 scheme `http`, `https`, or no scheme, one can optionally set 44195 up a type 44196 44197 server that maps type URLs to message definitions as 44198 follows: 44199 44200 44201 * If no scheme is provided, `https` is assumed. 44202 44203 * An HTTP GET on the URL must yield a 44204 [google.protobuf.Type][] 44205 value in binary format, or produce an error. 44206 * Applications are allowed to cache lookup results based on 44207 the 44208 URL, or have them precompiled into a binary to avoid any 44209 lookup. Therefore, binary compatibility needs to be preserved 44210 on changes to types. (Use versioned type names to manage 44211 breaking changes.) 44212 44213 Note: this functionality is not currently available in the 44214 official 44215 44216 protobuf release, and it is not used for type URLs beginning 44217 with 44218 44219 type.googleapis.com. 44220 44221 44222 Schemes other than `http`, `https` (or the empty scheme) 44223 might be 44224 44225 used with implementation specific semantics. 44226 value: 44227 type: string 44228 format: byte 44229 description: >- 44230 Must be a valid serialized protocol buffer of the above 44231 specified type. 44232 description: >- 44233 `Any` contains an arbitrary serialized protocol buffer message 44234 along with a 44235 44236 URL that describes the type of the serialized message. 44237 44238 44239 Protobuf library provides support to pack/unpack Any values in 44240 the form 44241 44242 of utility functions or additional generated methods of the Any 44243 type. 44244 44245 44246 Example 1: Pack and unpack a message in C++. 44247 44248 Foo foo = ...; 44249 Any any; 44250 any.PackFrom(foo); 44251 ... 44252 if (any.UnpackTo(&foo)) { 44253 ... 44254 } 44255 44256 Example 2: Pack and unpack a message in Java. 44257 44258 Foo foo = ...; 44259 Any any = Any.pack(foo); 44260 ... 44261 if (any.is(Foo.class)) { 44262 foo = any.unpack(Foo.class); 44263 } 44264 // or ... 44265 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 44266 foo = any.unpack(Foo.getDefaultInstance()); 44267 } 44268 44269 Example 3: Pack and unpack a message in Python. 44270 44271 foo = Foo(...) 44272 any = Any() 44273 any.Pack(foo) 44274 ... 44275 if any.Is(Foo.DESCRIPTOR): 44276 any.Unpack(foo) 44277 ... 44278 44279 Example 4: Pack and unpack a message in Go 44280 44281 foo := &pb.Foo{...} 44282 any, err := anypb.New(foo) 44283 if err != nil { 44284 ... 44285 } 44286 ... 44287 foo := &pb.Foo{} 44288 if err := any.UnmarshalTo(foo); err != nil { 44289 ... 44290 } 44291 44292 The pack methods provided by protobuf library will by default 44293 use 44294 44295 'type.googleapis.com/full.type.name' as the type URL and the 44296 unpack 44297 44298 methods only use the fully qualified type name after the last 44299 '/' 44300 44301 in the type URL, for example "foo.bar.com/x/y.z" will yield type 44302 44303 name "y.z". 44304 44305 44306 JSON 44307 44308 44309 The JSON representation of an `Any` value uses the regular 44310 44311 representation of the deserialized, embedded message, with an 44312 44313 additional field `@type` which contains the type URL. Example: 44314 44315 package google.profile; 44316 message Person { 44317 string first_name = 1; 44318 string last_name = 2; 44319 } 44320 44321 { 44322 "@type": "type.googleapis.com/google.profile.Person", 44323 "firstName": <string>, 44324 "lastName": <string> 44325 } 44326 44327 If the embedded message type is well-known and has a custom JSON 44328 44329 representation, that representation will be embedded adding a 44330 field 44331 44332 `value` which holds the custom JSON in addition to the `@type` 44333 44334 field. Example (for message [google.protobuf.Duration][]): 44335 44336 { 44337 "@type": "type.googleapis.com/google.protobuf.Duration", 44338 "value": "1.212s" 44339 } 44340 voting_power: 44341 type: string 44342 format: int64 44343 proposer_priority: 44344 type: string 44345 format: int64 44346 description: Validator is the type for the validator-set. 44347 pagination: 44348 description: pagination defines an pagination for the response. 44349 type: object 44350 properties: 44351 next_key: 44352 type: string 44353 format: byte 44354 description: |- 44355 next_key is the key to be passed to PageRequest.key to 44356 query the next page most efficiently. It will be empty if 44357 there are no more results. 44358 total: 44359 type: string 44360 format: uint64 44361 title: >- 44362 total is total number of results available if 44363 PageRequest.count_total 44364 44365 was set, its value is undefined otherwise 44366 description: >- 44367 GetLatestValidatorSetResponse is the response type for the 44368 Query/GetValidatorSetByHeight RPC method. 44369 cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: 44370 type: object 44371 properties: 44372 default_node_info: 44373 type: object 44374 properties: 44375 protocol_version: 44376 type: object 44377 properties: 44378 p2p: 44379 type: string 44380 format: uint64 44381 block: 44382 type: string 44383 format: uint64 44384 app: 44385 type: string 44386 format: uint64 44387 default_node_id: 44388 type: string 44389 listen_addr: 44390 type: string 44391 network: 44392 type: string 44393 version: 44394 type: string 44395 channels: 44396 type: string 44397 format: byte 44398 moniker: 44399 type: string 44400 other: 44401 type: object 44402 properties: 44403 tx_index: 44404 type: string 44405 rpc_address: 44406 type: string 44407 application_version: 44408 type: object 44409 properties: 44410 name: 44411 type: string 44412 app_name: 44413 type: string 44414 version: 44415 type: string 44416 git_commit: 44417 type: string 44418 build_tags: 44419 type: string 44420 go_version: 44421 type: string 44422 build_deps: 44423 type: array 44424 items: 44425 type: object 44426 properties: 44427 path: 44428 type: string 44429 title: module path 44430 version: 44431 type: string 44432 title: module version 44433 sum: 44434 type: string 44435 title: checksum 44436 title: Module is the type for VersionInfo 44437 cosmos_sdk_version: 44438 type: string 44439 title: 'Since: cosmos-sdk 0.43' 44440 description: VersionInfo is the type for the GetNodeInfoResponse message. 44441 description: >- 44442 GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC 44443 method. 44444 cosmos.base.tendermint.v1beta1.GetSyncingResponse: 44445 type: object 44446 properties: 44447 syncing: 44448 type: boolean 44449 description: >- 44450 GetSyncingResponse is the response type for the Query/GetSyncing RPC 44451 method. 44452 cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: 44453 type: object 44454 properties: 44455 block_height: 44456 type: string 44457 format: int64 44458 validators: 44459 type: array 44460 items: 44461 type: object 44462 properties: 44463 address: 44464 type: string 44465 pub_key: 44466 type: object 44467 properties: 44468 type_url: 44469 type: string 44470 description: >- 44471 A URL/resource name that uniquely identifies the type of the 44472 serialized 44473 44474 protocol buffer message. This string must contain at least 44475 44476 one "/" character. The last segment of the URL's path must 44477 represent 44478 44479 the fully qualified name of the type (as in 44480 44481 `path/google.protobuf.Duration`). The name should be in a 44482 canonical form 44483 44484 (e.g., leading "." is not accepted). 44485 44486 44487 In practice, teams usually precompile into the binary all 44488 types that they 44489 44490 expect it to use in the context of Any. However, for URLs 44491 which use the 44492 44493 scheme `http`, `https`, or no scheme, one can optionally set 44494 up a type 44495 44496 server that maps type URLs to message definitions as 44497 follows: 44498 44499 44500 * If no scheme is provided, `https` is assumed. 44501 44502 * An HTTP GET on the URL must yield a 44503 [google.protobuf.Type][] 44504 value in binary format, or produce an error. 44505 * Applications are allowed to cache lookup results based on 44506 the 44507 URL, or have them precompiled into a binary to avoid any 44508 lookup. Therefore, binary compatibility needs to be preserved 44509 on changes to types. (Use versioned type names to manage 44510 breaking changes.) 44511 44512 Note: this functionality is not currently available in the 44513 official 44514 44515 protobuf release, and it is not used for type URLs beginning 44516 with 44517 44518 type.googleapis.com. 44519 44520 44521 Schemes other than `http`, `https` (or the empty scheme) 44522 might be 44523 44524 used with implementation specific semantics. 44525 value: 44526 type: string 44527 format: byte 44528 description: >- 44529 Must be a valid serialized protocol buffer of the above 44530 specified type. 44531 description: >- 44532 `Any` contains an arbitrary serialized protocol buffer message 44533 along with a 44534 44535 URL that describes the type of the serialized message. 44536 44537 44538 Protobuf library provides support to pack/unpack Any values in 44539 the form 44540 44541 of utility functions or additional generated methods of the Any 44542 type. 44543 44544 44545 Example 1: Pack and unpack a message in C++. 44546 44547 Foo foo = ...; 44548 Any any; 44549 any.PackFrom(foo); 44550 ... 44551 if (any.UnpackTo(&foo)) { 44552 ... 44553 } 44554 44555 Example 2: Pack and unpack a message in Java. 44556 44557 Foo foo = ...; 44558 Any any = Any.pack(foo); 44559 ... 44560 if (any.is(Foo.class)) { 44561 foo = any.unpack(Foo.class); 44562 } 44563 // or ... 44564 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 44565 foo = any.unpack(Foo.getDefaultInstance()); 44566 } 44567 44568 Example 3: Pack and unpack a message in Python. 44569 44570 foo = Foo(...) 44571 any = Any() 44572 any.Pack(foo) 44573 ... 44574 if any.Is(Foo.DESCRIPTOR): 44575 any.Unpack(foo) 44576 ... 44577 44578 Example 4: Pack and unpack a message in Go 44579 44580 foo := &pb.Foo{...} 44581 any, err := anypb.New(foo) 44582 if err != nil { 44583 ... 44584 } 44585 ... 44586 foo := &pb.Foo{} 44587 if err := any.UnmarshalTo(foo); err != nil { 44588 ... 44589 } 44590 44591 The pack methods provided by protobuf library will by default 44592 use 44593 44594 'type.googleapis.com/full.type.name' as the type URL and the 44595 unpack 44596 44597 methods only use the fully qualified type name after the last 44598 '/' 44599 44600 in the type URL, for example "foo.bar.com/x/y.z" will yield type 44601 44602 name "y.z". 44603 44604 44605 JSON 44606 44607 44608 The JSON representation of an `Any` value uses the regular 44609 44610 representation of the deserialized, embedded message, with an 44611 44612 additional field `@type` which contains the type URL. Example: 44613 44614 package google.profile; 44615 message Person { 44616 string first_name = 1; 44617 string last_name = 2; 44618 } 44619 44620 { 44621 "@type": "type.googleapis.com/google.profile.Person", 44622 "firstName": <string>, 44623 "lastName": <string> 44624 } 44625 44626 If the embedded message type is well-known and has a custom JSON 44627 44628 representation, that representation will be embedded adding a 44629 field 44630 44631 `value` which holds the custom JSON in addition to the `@type` 44632 44633 field. Example (for message [google.protobuf.Duration][]): 44634 44635 { 44636 "@type": "type.googleapis.com/google.protobuf.Duration", 44637 "value": "1.212s" 44638 } 44639 voting_power: 44640 type: string 44641 format: int64 44642 proposer_priority: 44643 type: string 44644 format: int64 44645 description: Validator is the type for the validator-set. 44646 pagination: 44647 description: pagination defines an pagination for the response. 44648 type: object 44649 properties: 44650 next_key: 44651 type: string 44652 format: byte 44653 description: |- 44654 next_key is the key to be passed to PageRequest.key to 44655 query the next page most efficiently. It will be empty if 44656 there are no more results. 44657 total: 44658 type: string 44659 format: uint64 44660 title: >- 44661 total is total number of results available if 44662 PageRequest.count_total 44663 44664 was set, its value is undefined otherwise 44665 description: >- 44666 GetValidatorSetByHeightResponse is the response type for the 44667 Query/GetValidatorSetByHeight RPC method. 44668 cosmos.base.tendermint.v1beta1.Header: 44669 type: object 44670 properties: 44671 version: 44672 title: basic block info 44673 type: object 44674 properties: 44675 block: 44676 type: string 44677 format: uint64 44678 app: 44679 type: string 44680 format: uint64 44681 description: >- 44682 Consensus captures the consensus rules for processing a block in the 44683 blockchain, 44684 44685 including all blockchain data structures and the rules of the 44686 application's 44687 44688 state transition machine. 44689 chain_id: 44690 type: string 44691 height: 44692 type: string 44693 format: int64 44694 time: 44695 type: string 44696 format: date-time 44697 last_block_id: 44698 type: object 44699 properties: 44700 hash: 44701 type: string 44702 format: byte 44703 part_set_header: 44704 type: object 44705 properties: 44706 total: 44707 type: integer 44708 format: int64 44709 hash: 44710 type: string 44711 format: byte 44712 title: PartsetHeader 44713 title: BlockID 44714 last_commit_hash: 44715 type: string 44716 format: byte 44717 title: hashes of block data 44718 data_hash: 44719 type: string 44720 format: byte 44721 validators_hash: 44722 type: string 44723 format: byte 44724 title: hashes from the app output from the prev block 44725 next_validators_hash: 44726 type: string 44727 format: byte 44728 consensus_hash: 44729 type: string 44730 format: byte 44731 app_hash: 44732 type: string 44733 format: byte 44734 last_results_hash: 44735 type: string 44736 format: byte 44737 evidence_hash: 44738 type: string 44739 format: byte 44740 title: consensus info 44741 proposer_address: 44742 type: string 44743 description: >- 44744 proposer_address is the original block proposer address, formatted as 44745 a Bech32 string. 44746 44747 In Tendermint, this type is `bytes`, but in the SDK, we convert it to 44748 a Bech32 string 44749 44750 for better UX. 44751 description: Header defines the structure of a Tendermint block header. 44752 cosmos.base.tendermint.v1beta1.Module: 44753 type: object 44754 properties: 44755 path: 44756 type: string 44757 title: module path 44758 version: 44759 type: string 44760 title: module version 44761 sum: 44762 type: string 44763 title: checksum 44764 title: Module is the type for VersionInfo 44765 cosmos.base.tendermint.v1beta1.ProofOp: 44766 type: object 44767 properties: 44768 type: 44769 type: string 44770 key: 44771 type: string 44772 format: byte 44773 data: 44774 type: string 44775 format: byte 44776 description: >- 44777 ProofOp defines an operation used for calculating Merkle root. The data 44778 could 44779 44780 be arbitrary format, providing necessary data for example neighbouring 44781 node 44782 44783 hash. 44784 44785 44786 Note: This type is a duplicate of the ProofOp proto type defined in 44787 Tendermint. 44788 cosmos.base.tendermint.v1beta1.ProofOps: 44789 type: object 44790 properties: 44791 ops: 44792 type: array 44793 items: 44794 type: object 44795 properties: 44796 type: 44797 type: string 44798 key: 44799 type: string 44800 format: byte 44801 data: 44802 type: string 44803 format: byte 44804 description: >- 44805 ProofOp defines an operation used for calculating Merkle root. The 44806 data could 44807 44808 be arbitrary format, providing necessary data for example 44809 neighbouring node 44810 44811 hash. 44812 44813 44814 Note: This type is a duplicate of the ProofOp proto type defined in 44815 Tendermint. 44816 description: >- 44817 ProofOps is Merkle proof defined by the list of ProofOps. 44818 44819 44820 Note: This type is a duplicate of the ProofOps proto type defined in 44821 Tendermint. 44822 cosmos.base.tendermint.v1beta1.Validator: 44823 type: object 44824 properties: 44825 address: 44826 type: string 44827 pub_key: 44828 type: object 44829 properties: 44830 type_url: 44831 type: string 44832 description: >- 44833 A URL/resource name that uniquely identifies the type of the 44834 serialized 44835 44836 protocol buffer message. This string must contain at least 44837 44838 one "/" character. The last segment of the URL's path must 44839 represent 44840 44841 the fully qualified name of the type (as in 44842 44843 `path/google.protobuf.Duration`). The name should be in a 44844 canonical form 44845 44846 (e.g., leading "." is not accepted). 44847 44848 44849 In practice, teams usually precompile into the binary all types 44850 that they 44851 44852 expect it to use in the context of Any. However, for URLs which 44853 use the 44854 44855 scheme `http`, `https`, or no scheme, one can optionally set up a 44856 type 44857 44858 server that maps type URLs to message definitions as follows: 44859 44860 44861 * If no scheme is provided, `https` is assumed. 44862 44863 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 44864 value in binary format, or produce an error. 44865 * Applications are allowed to cache lookup results based on the 44866 URL, or have them precompiled into a binary to avoid any 44867 lookup. Therefore, binary compatibility needs to be preserved 44868 on changes to types. (Use versioned type names to manage 44869 breaking changes.) 44870 44871 Note: this functionality is not currently available in the 44872 official 44873 44874 protobuf release, and it is not used for type URLs beginning with 44875 44876 type.googleapis.com. 44877 44878 44879 Schemes other than `http`, `https` (or the empty scheme) might be 44880 44881 used with implementation specific semantics. 44882 value: 44883 type: string 44884 format: byte 44885 description: >- 44886 Must be a valid serialized protocol buffer of the above specified 44887 type. 44888 description: >- 44889 `Any` contains an arbitrary serialized protocol buffer message along 44890 with a 44891 44892 URL that describes the type of the serialized message. 44893 44894 44895 Protobuf library provides support to pack/unpack Any values in the 44896 form 44897 44898 of utility functions or additional generated methods of the Any type. 44899 44900 44901 Example 1: Pack and unpack a message in C++. 44902 44903 Foo foo = ...; 44904 Any any; 44905 any.PackFrom(foo); 44906 ... 44907 if (any.UnpackTo(&foo)) { 44908 ... 44909 } 44910 44911 Example 2: Pack and unpack a message in Java. 44912 44913 Foo foo = ...; 44914 Any any = Any.pack(foo); 44915 ... 44916 if (any.is(Foo.class)) { 44917 foo = any.unpack(Foo.class); 44918 } 44919 // or ... 44920 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 44921 foo = any.unpack(Foo.getDefaultInstance()); 44922 } 44923 44924 Example 3: Pack and unpack a message in Python. 44925 44926 foo = Foo(...) 44927 any = Any() 44928 any.Pack(foo) 44929 ... 44930 if any.Is(Foo.DESCRIPTOR): 44931 any.Unpack(foo) 44932 ... 44933 44934 Example 4: Pack and unpack a message in Go 44935 44936 foo := &pb.Foo{...} 44937 any, err := anypb.New(foo) 44938 if err != nil { 44939 ... 44940 } 44941 ... 44942 foo := &pb.Foo{} 44943 if err := any.UnmarshalTo(foo); err != nil { 44944 ... 44945 } 44946 44947 The pack methods provided by protobuf library will by default use 44948 44949 'type.googleapis.com/full.type.name' as the type URL and the unpack 44950 44951 methods only use the fully qualified type name after the last '/' 44952 44953 in the type URL, for example "foo.bar.com/x/y.z" will yield type 44954 44955 name "y.z". 44956 44957 44958 JSON 44959 44960 44961 The JSON representation of an `Any` value uses the regular 44962 44963 representation of the deserialized, embedded message, with an 44964 44965 additional field `@type` which contains the type URL. Example: 44966 44967 package google.profile; 44968 message Person { 44969 string first_name = 1; 44970 string last_name = 2; 44971 } 44972 44973 { 44974 "@type": "type.googleapis.com/google.profile.Person", 44975 "firstName": <string>, 44976 "lastName": <string> 44977 } 44978 44979 If the embedded message type is well-known and has a custom JSON 44980 44981 representation, that representation will be embedded adding a field 44982 44983 `value` which holds the custom JSON in addition to the `@type` 44984 44985 field. Example (for message [google.protobuf.Duration][]): 44986 44987 { 44988 "@type": "type.googleapis.com/google.protobuf.Duration", 44989 "value": "1.212s" 44990 } 44991 voting_power: 44992 type: string 44993 format: int64 44994 proposer_priority: 44995 type: string 44996 format: int64 44997 description: Validator is the type for the validator-set. 44998 cosmos.base.tendermint.v1beta1.VersionInfo: 44999 type: object 45000 properties: 45001 name: 45002 type: string 45003 app_name: 45004 type: string 45005 version: 45006 type: string 45007 git_commit: 45008 type: string 45009 build_tags: 45010 type: string 45011 go_version: 45012 type: string 45013 build_deps: 45014 type: array 45015 items: 45016 type: object 45017 properties: 45018 path: 45019 type: string 45020 title: module path 45021 version: 45022 type: string 45023 title: module version 45024 sum: 45025 type: string 45026 title: checksum 45027 title: Module is the type for VersionInfo 45028 cosmos_sdk_version: 45029 type: string 45030 title: 'Since: cosmos-sdk 0.43' 45031 description: VersionInfo is the type for the GetNodeInfoResponse message. 45032 tendermint.crypto.PublicKey: 45033 type: object 45034 properties: 45035 ed25519: 45036 type: string 45037 format: byte 45038 secp256k1: 45039 type: string 45040 format: byte 45041 title: PublicKey defines the keys available for use with Validators 45042 tendermint.p2p.DefaultNodeInfo: 45043 type: object 45044 properties: 45045 protocol_version: 45046 type: object 45047 properties: 45048 p2p: 45049 type: string 45050 format: uint64 45051 block: 45052 type: string 45053 format: uint64 45054 app: 45055 type: string 45056 format: uint64 45057 default_node_id: 45058 type: string 45059 listen_addr: 45060 type: string 45061 network: 45062 type: string 45063 version: 45064 type: string 45065 channels: 45066 type: string 45067 format: byte 45068 moniker: 45069 type: string 45070 other: 45071 type: object 45072 properties: 45073 tx_index: 45074 type: string 45075 rpc_address: 45076 type: string 45077 tendermint.p2p.DefaultNodeInfoOther: 45078 type: object 45079 properties: 45080 tx_index: 45081 type: string 45082 rpc_address: 45083 type: string 45084 tendermint.p2p.ProtocolVersion: 45085 type: object 45086 properties: 45087 p2p: 45088 type: string 45089 format: uint64 45090 block: 45091 type: string 45092 format: uint64 45093 app: 45094 type: string 45095 format: uint64 45096 tendermint.types.Block: 45097 type: object 45098 properties: 45099 header: 45100 type: object 45101 properties: 45102 version: 45103 title: basic block info 45104 type: object 45105 properties: 45106 block: 45107 type: string 45108 format: uint64 45109 app: 45110 type: string 45111 format: uint64 45112 description: >- 45113 Consensus captures the consensus rules for processing a block in 45114 the blockchain, 45115 45116 including all blockchain data structures and the rules of the 45117 application's 45118 45119 state transition machine. 45120 chain_id: 45121 type: string 45122 height: 45123 type: string 45124 format: int64 45125 time: 45126 type: string 45127 format: date-time 45128 last_block_id: 45129 type: object 45130 properties: 45131 hash: 45132 type: string 45133 format: byte 45134 part_set_header: 45135 type: object 45136 properties: 45137 total: 45138 type: integer 45139 format: int64 45140 hash: 45141 type: string 45142 format: byte 45143 title: PartsetHeader 45144 title: BlockID 45145 last_commit_hash: 45146 type: string 45147 format: byte 45148 title: hashes of block data 45149 data_hash: 45150 type: string 45151 format: byte 45152 validators_hash: 45153 type: string 45154 format: byte 45155 title: hashes from the app output from the prev block 45156 next_validators_hash: 45157 type: string 45158 format: byte 45159 consensus_hash: 45160 type: string 45161 format: byte 45162 app_hash: 45163 type: string 45164 format: byte 45165 last_results_hash: 45166 type: string 45167 format: byte 45168 evidence_hash: 45169 type: string 45170 format: byte 45171 title: consensus info 45172 proposer_address: 45173 type: string 45174 format: byte 45175 description: Header defines the structure of a block header. 45176 data: 45177 type: object 45178 properties: 45179 txs: 45180 type: array 45181 items: 45182 type: string 45183 format: byte 45184 description: >- 45185 Txs that will be applied by state @ block.Height+1. 45186 45187 NOTE: not all txs here are valid. We're just agreeing on the 45188 order first. 45189 45190 This means that block.AppHash does not include these txs. 45191 title: Data contains the set of transactions included in the block 45192 evidence: 45193 type: object 45194 properties: 45195 evidence: 45196 type: array 45197 items: 45198 type: object 45199 properties: 45200 duplicate_vote_evidence: 45201 type: object 45202 properties: 45203 vote_a: 45204 type: object 45205 properties: 45206 type: 45207 type: string 45208 enum: 45209 - SIGNED_MSG_TYPE_UNKNOWN 45210 - SIGNED_MSG_TYPE_PREVOTE 45211 - SIGNED_MSG_TYPE_PRECOMMIT 45212 - SIGNED_MSG_TYPE_PROPOSAL 45213 default: SIGNED_MSG_TYPE_UNKNOWN 45214 description: >- 45215 SignedMsgType is a type of signed message in the 45216 consensus. 45217 45218 - SIGNED_MSG_TYPE_PREVOTE: Votes 45219 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 45220 height: 45221 type: string 45222 format: int64 45223 round: 45224 type: integer 45225 format: int32 45226 block_id: 45227 type: object 45228 properties: 45229 hash: 45230 type: string 45231 format: byte 45232 part_set_header: 45233 type: object 45234 properties: 45235 total: 45236 type: integer 45237 format: int64 45238 hash: 45239 type: string 45240 format: byte 45241 title: PartsetHeader 45242 title: BlockID 45243 timestamp: 45244 type: string 45245 format: date-time 45246 validator_address: 45247 type: string 45248 format: byte 45249 validator_index: 45250 type: integer 45251 format: int32 45252 signature: 45253 type: string 45254 format: byte 45255 description: >- 45256 Vote signature by the validator if they participated 45257 in consensus for the 45258 45259 associated block. 45260 extension: 45261 type: string 45262 format: byte 45263 description: >- 45264 Vote extension provided by the application. Only 45265 valid for precommit 45266 45267 messages. 45268 extension_signature: 45269 type: string 45270 format: byte 45271 description: >- 45272 Vote extension signature by the validator if they 45273 participated in 45274 45275 consensus for the associated block. 45276 45277 Only valid for precommit messages. 45278 description: >- 45279 Vote represents a prevote or precommit vote from 45280 validators for 45281 45282 consensus. 45283 vote_b: 45284 type: object 45285 properties: 45286 type: 45287 type: string 45288 enum: 45289 - SIGNED_MSG_TYPE_UNKNOWN 45290 - SIGNED_MSG_TYPE_PREVOTE 45291 - SIGNED_MSG_TYPE_PRECOMMIT 45292 - SIGNED_MSG_TYPE_PROPOSAL 45293 default: SIGNED_MSG_TYPE_UNKNOWN 45294 description: >- 45295 SignedMsgType is a type of signed message in the 45296 consensus. 45297 45298 - SIGNED_MSG_TYPE_PREVOTE: Votes 45299 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 45300 height: 45301 type: string 45302 format: int64 45303 round: 45304 type: integer 45305 format: int32 45306 block_id: 45307 type: object 45308 properties: 45309 hash: 45310 type: string 45311 format: byte 45312 part_set_header: 45313 type: object 45314 properties: 45315 total: 45316 type: integer 45317 format: int64 45318 hash: 45319 type: string 45320 format: byte 45321 title: PartsetHeader 45322 title: BlockID 45323 timestamp: 45324 type: string 45325 format: date-time 45326 validator_address: 45327 type: string 45328 format: byte 45329 validator_index: 45330 type: integer 45331 format: int32 45332 signature: 45333 type: string 45334 format: byte 45335 description: >- 45336 Vote signature by the validator if they participated 45337 in consensus for the 45338 45339 associated block. 45340 extension: 45341 type: string 45342 format: byte 45343 description: >- 45344 Vote extension provided by the application. Only 45345 valid for precommit 45346 45347 messages. 45348 extension_signature: 45349 type: string 45350 format: byte 45351 description: >- 45352 Vote extension signature by the validator if they 45353 participated in 45354 45355 consensus for the associated block. 45356 45357 Only valid for precommit messages. 45358 description: >- 45359 Vote represents a prevote or precommit vote from 45360 validators for 45361 45362 consensus. 45363 total_voting_power: 45364 type: string 45365 format: int64 45366 validator_power: 45367 type: string 45368 format: int64 45369 timestamp: 45370 type: string 45371 format: date-time 45372 description: >- 45373 DuplicateVoteEvidence contains evidence of a validator 45374 signed two conflicting votes. 45375 light_client_attack_evidence: 45376 type: object 45377 properties: 45378 conflicting_block: 45379 type: object 45380 properties: 45381 signed_header: 45382 type: object 45383 properties: 45384 header: 45385 type: object 45386 properties: 45387 version: 45388 title: basic block info 45389 type: object 45390 properties: 45391 block: 45392 type: string 45393 format: uint64 45394 app: 45395 type: string 45396 format: uint64 45397 description: >- 45398 Consensus captures the consensus rules for 45399 processing a block in the blockchain, 45400 45401 including all blockchain data structures and 45402 the rules of the application's 45403 45404 state transition machine. 45405 chain_id: 45406 type: string 45407 height: 45408 type: string 45409 format: int64 45410 time: 45411 type: string 45412 format: date-time 45413 last_block_id: 45414 type: object 45415 properties: 45416 hash: 45417 type: string 45418 format: byte 45419 part_set_header: 45420 type: object 45421 properties: 45422 total: 45423 type: integer 45424 format: int64 45425 hash: 45426 type: string 45427 format: byte 45428 title: PartsetHeader 45429 title: BlockID 45430 last_commit_hash: 45431 type: string 45432 format: byte 45433 title: hashes of block data 45434 data_hash: 45435 type: string 45436 format: byte 45437 validators_hash: 45438 type: string 45439 format: byte 45440 title: >- 45441 hashes from the app output from the prev 45442 block 45443 next_validators_hash: 45444 type: string 45445 format: byte 45446 consensus_hash: 45447 type: string 45448 format: byte 45449 app_hash: 45450 type: string 45451 format: byte 45452 last_results_hash: 45453 type: string 45454 format: byte 45455 evidence_hash: 45456 type: string 45457 format: byte 45458 title: consensus info 45459 proposer_address: 45460 type: string 45461 format: byte 45462 description: Header defines the structure of a block header. 45463 commit: 45464 type: object 45465 properties: 45466 height: 45467 type: string 45468 format: int64 45469 round: 45470 type: integer 45471 format: int32 45472 block_id: 45473 type: object 45474 properties: 45475 hash: 45476 type: string 45477 format: byte 45478 part_set_header: 45479 type: object 45480 properties: 45481 total: 45482 type: integer 45483 format: int64 45484 hash: 45485 type: string 45486 format: byte 45487 title: PartsetHeader 45488 title: BlockID 45489 signatures: 45490 type: array 45491 items: 45492 type: object 45493 properties: 45494 block_id_flag: 45495 type: string 45496 enum: 45497 - BLOCK_ID_FLAG_UNKNOWN 45498 - BLOCK_ID_FLAG_ABSENT 45499 - BLOCK_ID_FLAG_COMMIT 45500 - BLOCK_ID_FLAG_NIL 45501 default: BLOCK_ID_FLAG_UNKNOWN 45502 title: >- 45503 BlockIdFlag indicates which BlockID the 45504 signature is for 45505 validator_address: 45506 type: string 45507 format: byte 45508 timestamp: 45509 type: string 45510 format: date-time 45511 signature: 45512 type: string 45513 format: byte 45514 description: >- 45515 CommitSig is a part of the Vote included 45516 in a Commit. 45517 description: >- 45518 Commit contains the evidence that a block was 45519 committed by a set of validators. 45520 validator_set: 45521 type: object 45522 properties: 45523 validators: 45524 type: array 45525 items: 45526 type: object 45527 properties: 45528 address: 45529 type: string 45530 format: byte 45531 pub_key: 45532 type: object 45533 properties: 45534 ed25519: 45535 type: string 45536 format: byte 45537 secp256k1: 45538 type: string 45539 format: byte 45540 title: >- 45541 PublicKey defines the keys available for 45542 use with Validators 45543 voting_power: 45544 type: string 45545 format: int64 45546 proposer_priority: 45547 type: string 45548 format: int64 45549 proposer: 45550 type: object 45551 properties: 45552 address: 45553 type: string 45554 format: byte 45555 pub_key: 45556 type: object 45557 properties: 45558 ed25519: 45559 type: string 45560 format: byte 45561 secp256k1: 45562 type: string 45563 format: byte 45564 title: >- 45565 PublicKey defines the keys available for use 45566 with Validators 45567 voting_power: 45568 type: string 45569 format: int64 45570 proposer_priority: 45571 type: string 45572 format: int64 45573 total_voting_power: 45574 type: string 45575 format: int64 45576 common_height: 45577 type: string 45578 format: int64 45579 byzantine_validators: 45580 type: array 45581 items: 45582 type: object 45583 properties: 45584 address: 45585 type: string 45586 format: byte 45587 pub_key: 45588 type: object 45589 properties: 45590 ed25519: 45591 type: string 45592 format: byte 45593 secp256k1: 45594 type: string 45595 format: byte 45596 title: >- 45597 PublicKey defines the keys available for use with 45598 Validators 45599 voting_power: 45600 type: string 45601 format: int64 45602 proposer_priority: 45603 type: string 45604 format: int64 45605 total_voting_power: 45606 type: string 45607 format: int64 45608 timestamp: 45609 type: string 45610 format: date-time 45611 description: >- 45612 LightClientAttackEvidence contains evidence of a set of 45613 validators attempting to mislead a light client. 45614 last_commit: 45615 type: object 45616 properties: 45617 height: 45618 type: string 45619 format: int64 45620 round: 45621 type: integer 45622 format: int32 45623 block_id: 45624 type: object 45625 properties: 45626 hash: 45627 type: string 45628 format: byte 45629 part_set_header: 45630 type: object 45631 properties: 45632 total: 45633 type: integer 45634 format: int64 45635 hash: 45636 type: string 45637 format: byte 45638 title: PartsetHeader 45639 title: BlockID 45640 signatures: 45641 type: array 45642 items: 45643 type: object 45644 properties: 45645 block_id_flag: 45646 type: string 45647 enum: 45648 - BLOCK_ID_FLAG_UNKNOWN 45649 - BLOCK_ID_FLAG_ABSENT 45650 - BLOCK_ID_FLAG_COMMIT 45651 - BLOCK_ID_FLAG_NIL 45652 default: BLOCK_ID_FLAG_UNKNOWN 45653 title: BlockIdFlag indicates which BlockID the signature is for 45654 validator_address: 45655 type: string 45656 format: byte 45657 timestamp: 45658 type: string 45659 format: date-time 45660 signature: 45661 type: string 45662 format: byte 45663 description: CommitSig is a part of the Vote included in a Commit. 45664 description: >- 45665 Commit contains the evidence that a block was committed by a set of 45666 validators. 45667 tendermint.types.BlockID: 45668 type: object 45669 properties: 45670 hash: 45671 type: string 45672 format: byte 45673 part_set_header: 45674 type: object 45675 properties: 45676 total: 45677 type: integer 45678 format: int64 45679 hash: 45680 type: string 45681 format: byte 45682 title: PartsetHeader 45683 title: BlockID 45684 tendermint.types.BlockIDFlag: 45685 type: string 45686 enum: 45687 - BLOCK_ID_FLAG_UNKNOWN 45688 - BLOCK_ID_FLAG_ABSENT 45689 - BLOCK_ID_FLAG_COMMIT 45690 - BLOCK_ID_FLAG_NIL 45691 default: BLOCK_ID_FLAG_UNKNOWN 45692 title: BlockIdFlag indicates which BlockID the signature is for 45693 tendermint.types.Commit: 45694 type: object 45695 properties: 45696 height: 45697 type: string 45698 format: int64 45699 round: 45700 type: integer 45701 format: int32 45702 block_id: 45703 type: object 45704 properties: 45705 hash: 45706 type: string 45707 format: byte 45708 part_set_header: 45709 type: object 45710 properties: 45711 total: 45712 type: integer 45713 format: int64 45714 hash: 45715 type: string 45716 format: byte 45717 title: PartsetHeader 45718 title: BlockID 45719 signatures: 45720 type: array 45721 items: 45722 type: object 45723 properties: 45724 block_id_flag: 45725 type: string 45726 enum: 45727 - BLOCK_ID_FLAG_UNKNOWN 45728 - BLOCK_ID_FLAG_ABSENT 45729 - BLOCK_ID_FLAG_COMMIT 45730 - BLOCK_ID_FLAG_NIL 45731 default: BLOCK_ID_FLAG_UNKNOWN 45732 title: BlockIdFlag indicates which BlockID the signature is for 45733 validator_address: 45734 type: string 45735 format: byte 45736 timestamp: 45737 type: string 45738 format: date-time 45739 signature: 45740 type: string 45741 format: byte 45742 description: CommitSig is a part of the Vote included in a Commit. 45743 description: >- 45744 Commit contains the evidence that a block was committed by a set of 45745 validators. 45746 tendermint.types.CommitSig: 45747 type: object 45748 properties: 45749 block_id_flag: 45750 type: string 45751 enum: 45752 - BLOCK_ID_FLAG_UNKNOWN 45753 - BLOCK_ID_FLAG_ABSENT 45754 - BLOCK_ID_FLAG_COMMIT 45755 - BLOCK_ID_FLAG_NIL 45756 default: BLOCK_ID_FLAG_UNKNOWN 45757 title: BlockIdFlag indicates which BlockID the signature is for 45758 validator_address: 45759 type: string 45760 format: byte 45761 timestamp: 45762 type: string 45763 format: date-time 45764 signature: 45765 type: string 45766 format: byte 45767 description: CommitSig is a part of the Vote included in a Commit. 45768 tendermint.types.Data: 45769 type: object 45770 properties: 45771 txs: 45772 type: array 45773 items: 45774 type: string 45775 format: byte 45776 description: >- 45777 Txs that will be applied by state @ block.Height+1. 45778 45779 NOTE: not all txs here are valid. We're just agreeing on the order 45780 first. 45781 45782 This means that block.AppHash does not include these txs. 45783 title: Data contains the set of transactions included in the block 45784 tendermint.types.DuplicateVoteEvidence: 45785 type: object 45786 properties: 45787 vote_a: 45788 type: object 45789 properties: 45790 type: 45791 type: string 45792 enum: 45793 - SIGNED_MSG_TYPE_UNKNOWN 45794 - SIGNED_MSG_TYPE_PREVOTE 45795 - SIGNED_MSG_TYPE_PRECOMMIT 45796 - SIGNED_MSG_TYPE_PROPOSAL 45797 default: SIGNED_MSG_TYPE_UNKNOWN 45798 description: |- 45799 SignedMsgType is a type of signed message in the consensus. 45800 45801 - SIGNED_MSG_TYPE_PREVOTE: Votes 45802 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 45803 height: 45804 type: string 45805 format: int64 45806 round: 45807 type: integer 45808 format: int32 45809 block_id: 45810 type: object 45811 properties: 45812 hash: 45813 type: string 45814 format: byte 45815 part_set_header: 45816 type: object 45817 properties: 45818 total: 45819 type: integer 45820 format: int64 45821 hash: 45822 type: string 45823 format: byte 45824 title: PartsetHeader 45825 title: BlockID 45826 timestamp: 45827 type: string 45828 format: date-time 45829 validator_address: 45830 type: string 45831 format: byte 45832 validator_index: 45833 type: integer 45834 format: int32 45835 signature: 45836 type: string 45837 format: byte 45838 description: >- 45839 Vote signature by the validator if they participated in consensus 45840 for the 45841 45842 associated block. 45843 extension: 45844 type: string 45845 format: byte 45846 description: >- 45847 Vote extension provided by the application. Only valid for 45848 precommit 45849 45850 messages. 45851 extension_signature: 45852 type: string 45853 format: byte 45854 description: |- 45855 Vote extension signature by the validator if they participated in 45856 consensus for the associated block. 45857 Only valid for precommit messages. 45858 description: |- 45859 Vote represents a prevote or precommit vote from validators for 45860 consensus. 45861 vote_b: 45862 type: object 45863 properties: 45864 type: 45865 type: string 45866 enum: 45867 - SIGNED_MSG_TYPE_UNKNOWN 45868 - SIGNED_MSG_TYPE_PREVOTE 45869 - SIGNED_MSG_TYPE_PRECOMMIT 45870 - SIGNED_MSG_TYPE_PROPOSAL 45871 default: SIGNED_MSG_TYPE_UNKNOWN 45872 description: |- 45873 SignedMsgType is a type of signed message in the consensus. 45874 45875 - SIGNED_MSG_TYPE_PREVOTE: Votes 45876 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 45877 height: 45878 type: string 45879 format: int64 45880 round: 45881 type: integer 45882 format: int32 45883 block_id: 45884 type: object 45885 properties: 45886 hash: 45887 type: string 45888 format: byte 45889 part_set_header: 45890 type: object 45891 properties: 45892 total: 45893 type: integer 45894 format: int64 45895 hash: 45896 type: string 45897 format: byte 45898 title: PartsetHeader 45899 title: BlockID 45900 timestamp: 45901 type: string 45902 format: date-time 45903 validator_address: 45904 type: string 45905 format: byte 45906 validator_index: 45907 type: integer 45908 format: int32 45909 signature: 45910 type: string 45911 format: byte 45912 description: >- 45913 Vote signature by the validator if they participated in consensus 45914 for the 45915 45916 associated block. 45917 extension: 45918 type: string 45919 format: byte 45920 description: >- 45921 Vote extension provided by the application. Only valid for 45922 precommit 45923 45924 messages. 45925 extension_signature: 45926 type: string 45927 format: byte 45928 description: |- 45929 Vote extension signature by the validator if they participated in 45930 consensus for the associated block. 45931 Only valid for precommit messages. 45932 description: |- 45933 Vote represents a prevote or precommit vote from validators for 45934 consensus. 45935 total_voting_power: 45936 type: string 45937 format: int64 45938 validator_power: 45939 type: string 45940 format: int64 45941 timestamp: 45942 type: string 45943 format: date-time 45944 description: >- 45945 DuplicateVoteEvidence contains evidence of a validator signed two 45946 conflicting votes. 45947 tendermint.types.Evidence: 45948 type: object 45949 properties: 45950 duplicate_vote_evidence: 45951 type: object 45952 properties: 45953 vote_a: 45954 type: object 45955 properties: 45956 type: 45957 type: string 45958 enum: 45959 - SIGNED_MSG_TYPE_UNKNOWN 45960 - SIGNED_MSG_TYPE_PREVOTE 45961 - SIGNED_MSG_TYPE_PRECOMMIT 45962 - SIGNED_MSG_TYPE_PROPOSAL 45963 default: SIGNED_MSG_TYPE_UNKNOWN 45964 description: |- 45965 SignedMsgType is a type of signed message in the consensus. 45966 45967 - SIGNED_MSG_TYPE_PREVOTE: Votes 45968 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 45969 height: 45970 type: string 45971 format: int64 45972 round: 45973 type: integer 45974 format: int32 45975 block_id: 45976 type: object 45977 properties: 45978 hash: 45979 type: string 45980 format: byte 45981 part_set_header: 45982 type: object 45983 properties: 45984 total: 45985 type: integer 45986 format: int64 45987 hash: 45988 type: string 45989 format: byte 45990 title: PartsetHeader 45991 title: BlockID 45992 timestamp: 45993 type: string 45994 format: date-time 45995 validator_address: 45996 type: string 45997 format: byte 45998 validator_index: 45999 type: integer 46000 format: int32 46001 signature: 46002 type: string 46003 format: byte 46004 description: >- 46005 Vote signature by the validator if they participated in 46006 consensus for the 46007 46008 associated block. 46009 extension: 46010 type: string 46011 format: byte 46012 description: >- 46013 Vote extension provided by the application. Only valid for 46014 precommit 46015 46016 messages. 46017 extension_signature: 46018 type: string 46019 format: byte 46020 description: >- 46021 Vote extension signature by the validator if they participated 46022 in 46023 46024 consensus for the associated block. 46025 46026 Only valid for precommit messages. 46027 description: |- 46028 Vote represents a prevote or precommit vote from validators for 46029 consensus. 46030 vote_b: 46031 type: object 46032 properties: 46033 type: 46034 type: string 46035 enum: 46036 - SIGNED_MSG_TYPE_UNKNOWN 46037 - SIGNED_MSG_TYPE_PREVOTE 46038 - SIGNED_MSG_TYPE_PRECOMMIT 46039 - SIGNED_MSG_TYPE_PROPOSAL 46040 default: SIGNED_MSG_TYPE_UNKNOWN 46041 description: |- 46042 SignedMsgType is a type of signed message in the consensus. 46043 46044 - SIGNED_MSG_TYPE_PREVOTE: Votes 46045 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 46046 height: 46047 type: string 46048 format: int64 46049 round: 46050 type: integer 46051 format: int32 46052 block_id: 46053 type: object 46054 properties: 46055 hash: 46056 type: string 46057 format: byte 46058 part_set_header: 46059 type: object 46060 properties: 46061 total: 46062 type: integer 46063 format: int64 46064 hash: 46065 type: string 46066 format: byte 46067 title: PartsetHeader 46068 title: BlockID 46069 timestamp: 46070 type: string 46071 format: date-time 46072 validator_address: 46073 type: string 46074 format: byte 46075 validator_index: 46076 type: integer 46077 format: int32 46078 signature: 46079 type: string 46080 format: byte 46081 description: >- 46082 Vote signature by the validator if they participated in 46083 consensus for the 46084 46085 associated block. 46086 extension: 46087 type: string 46088 format: byte 46089 description: >- 46090 Vote extension provided by the application. Only valid for 46091 precommit 46092 46093 messages. 46094 extension_signature: 46095 type: string 46096 format: byte 46097 description: >- 46098 Vote extension signature by the validator if they participated 46099 in 46100 46101 consensus for the associated block. 46102 46103 Only valid for precommit messages. 46104 description: |- 46105 Vote represents a prevote or precommit vote from validators for 46106 consensus. 46107 total_voting_power: 46108 type: string 46109 format: int64 46110 validator_power: 46111 type: string 46112 format: int64 46113 timestamp: 46114 type: string 46115 format: date-time 46116 description: >- 46117 DuplicateVoteEvidence contains evidence of a validator signed two 46118 conflicting votes. 46119 light_client_attack_evidence: 46120 type: object 46121 properties: 46122 conflicting_block: 46123 type: object 46124 properties: 46125 signed_header: 46126 type: object 46127 properties: 46128 header: 46129 type: object 46130 properties: 46131 version: 46132 title: basic block info 46133 type: object 46134 properties: 46135 block: 46136 type: string 46137 format: uint64 46138 app: 46139 type: string 46140 format: uint64 46141 description: >- 46142 Consensus captures the consensus rules for processing 46143 a block in the blockchain, 46144 46145 including all blockchain data structures and the rules 46146 of the application's 46147 46148 state transition machine. 46149 chain_id: 46150 type: string 46151 height: 46152 type: string 46153 format: int64 46154 time: 46155 type: string 46156 format: date-time 46157 last_block_id: 46158 type: object 46159 properties: 46160 hash: 46161 type: string 46162 format: byte 46163 part_set_header: 46164 type: object 46165 properties: 46166 total: 46167 type: integer 46168 format: int64 46169 hash: 46170 type: string 46171 format: byte 46172 title: PartsetHeader 46173 title: BlockID 46174 last_commit_hash: 46175 type: string 46176 format: byte 46177 title: hashes of block data 46178 data_hash: 46179 type: string 46180 format: byte 46181 validators_hash: 46182 type: string 46183 format: byte 46184 title: hashes from the app output from the prev block 46185 next_validators_hash: 46186 type: string 46187 format: byte 46188 consensus_hash: 46189 type: string 46190 format: byte 46191 app_hash: 46192 type: string 46193 format: byte 46194 last_results_hash: 46195 type: string 46196 format: byte 46197 evidence_hash: 46198 type: string 46199 format: byte 46200 title: consensus info 46201 proposer_address: 46202 type: string 46203 format: byte 46204 description: Header defines the structure of a block header. 46205 commit: 46206 type: object 46207 properties: 46208 height: 46209 type: string 46210 format: int64 46211 round: 46212 type: integer 46213 format: int32 46214 block_id: 46215 type: object 46216 properties: 46217 hash: 46218 type: string 46219 format: byte 46220 part_set_header: 46221 type: object 46222 properties: 46223 total: 46224 type: integer 46225 format: int64 46226 hash: 46227 type: string 46228 format: byte 46229 title: PartsetHeader 46230 title: BlockID 46231 signatures: 46232 type: array 46233 items: 46234 type: object 46235 properties: 46236 block_id_flag: 46237 type: string 46238 enum: 46239 - BLOCK_ID_FLAG_UNKNOWN 46240 - BLOCK_ID_FLAG_ABSENT 46241 - BLOCK_ID_FLAG_COMMIT 46242 - BLOCK_ID_FLAG_NIL 46243 default: BLOCK_ID_FLAG_UNKNOWN 46244 title: >- 46245 BlockIdFlag indicates which BlockID the 46246 signature is for 46247 validator_address: 46248 type: string 46249 format: byte 46250 timestamp: 46251 type: string 46252 format: date-time 46253 signature: 46254 type: string 46255 format: byte 46256 description: >- 46257 CommitSig is a part of the Vote included in a 46258 Commit. 46259 description: >- 46260 Commit contains the evidence that a block was committed by 46261 a set of validators. 46262 validator_set: 46263 type: object 46264 properties: 46265 validators: 46266 type: array 46267 items: 46268 type: object 46269 properties: 46270 address: 46271 type: string 46272 format: byte 46273 pub_key: 46274 type: object 46275 properties: 46276 ed25519: 46277 type: string 46278 format: byte 46279 secp256k1: 46280 type: string 46281 format: byte 46282 title: >- 46283 PublicKey defines the keys available for use with 46284 Validators 46285 voting_power: 46286 type: string 46287 format: int64 46288 proposer_priority: 46289 type: string 46290 format: int64 46291 proposer: 46292 type: object 46293 properties: 46294 address: 46295 type: string 46296 format: byte 46297 pub_key: 46298 type: object 46299 properties: 46300 ed25519: 46301 type: string 46302 format: byte 46303 secp256k1: 46304 type: string 46305 format: byte 46306 title: >- 46307 PublicKey defines the keys available for use with 46308 Validators 46309 voting_power: 46310 type: string 46311 format: int64 46312 proposer_priority: 46313 type: string 46314 format: int64 46315 total_voting_power: 46316 type: string 46317 format: int64 46318 common_height: 46319 type: string 46320 format: int64 46321 byzantine_validators: 46322 type: array 46323 items: 46324 type: object 46325 properties: 46326 address: 46327 type: string 46328 format: byte 46329 pub_key: 46330 type: object 46331 properties: 46332 ed25519: 46333 type: string 46334 format: byte 46335 secp256k1: 46336 type: string 46337 format: byte 46338 title: PublicKey defines the keys available for use with Validators 46339 voting_power: 46340 type: string 46341 format: int64 46342 proposer_priority: 46343 type: string 46344 format: int64 46345 total_voting_power: 46346 type: string 46347 format: int64 46348 timestamp: 46349 type: string 46350 format: date-time 46351 description: >- 46352 LightClientAttackEvidence contains evidence of a set of validators 46353 attempting to mislead a light client. 46354 tendermint.types.EvidenceList: 46355 type: object 46356 properties: 46357 evidence: 46358 type: array 46359 items: 46360 type: object 46361 properties: 46362 duplicate_vote_evidence: 46363 type: object 46364 properties: 46365 vote_a: 46366 type: object 46367 properties: 46368 type: 46369 type: string 46370 enum: 46371 - SIGNED_MSG_TYPE_UNKNOWN 46372 - SIGNED_MSG_TYPE_PREVOTE 46373 - SIGNED_MSG_TYPE_PRECOMMIT 46374 - SIGNED_MSG_TYPE_PROPOSAL 46375 default: SIGNED_MSG_TYPE_UNKNOWN 46376 description: >- 46377 SignedMsgType is a type of signed message in the 46378 consensus. 46379 46380 - SIGNED_MSG_TYPE_PREVOTE: Votes 46381 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 46382 height: 46383 type: string 46384 format: int64 46385 round: 46386 type: integer 46387 format: int32 46388 block_id: 46389 type: object 46390 properties: 46391 hash: 46392 type: string 46393 format: byte 46394 part_set_header: 46395 type: object 46396 properties: 46397 total: 46398 type: integer 46399 format: int64 46400 hash: 46401 type: string 46402 format: byte 46403 title: PartsetHeader 46404 title: BlockID 46405 timestamp: 46406 type: string 46407 format: date-time 46408 validator_address: 46409 type: string 46410 format: byte 46411 validator_index: 46412 type: integer 46413 format: int32 46414 signature: 46415 type: string 46416 format: byte 46417 description: >- 46418 Vote signature by the validator if they participated in 46419 consensus for the 46420 46421 associated block. 46422 extension: 46423 type: string 46424 format: byte 46425 description: >- 46426 Vote extension provided by the application. Only valid 46427 for precommit 46428 46429 messages. 46430 extension_signature: 46431 type: string 46432 format: byte 46433 description: >- 46434 Vote extension signature by the validator if they 46435 participated in 46436 46437 consensus for the associated block. 46438 46439 Only valid for precommit messages. 46440 description: >- 46441 Vote represents a prevote or precommit vote from validators 46442 for 46443 46444 consensus. 46445 vote_b: 46446 type: object 46447 properties: 46448 type: 46449 type: string 46450 enum: 46451 - SIGNED_MSG_TYPE_UNKNOWN 46452 - SIGNED_MSG_TYPE_PREVOTE 46453 - SIGNED_MSG_TYPE_PRECOMMIT 46454 - SIGNED_MSG_TYPE_PROPOSAL 46455 default: SIGNED_MSG_TYPE_UNKNOWN 46456 description: >- 46457 SignedMsgType is a type of signed message in the 46458 consensus. 46459 46460 - SIGNED_MSG_TYPE_PREVOTE: Votes 46461 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 46462 height: 46463 type: string 46464 format: int64 46465 round: 46466 type: integer 46467 format: int32 46468 block_id: 46469 type: object 46470 properties: 46471 hash: 46472 type: string 46473 format: byte 46474 part_set_header: 46475 type: object 46476 properties: 46477 total: 46478 type: integer 46479 format: int64 46480 hash: 46481 type: string 46482 format: byte 46483 title: PartsetHeader 46484 title: BlockID 46485 timestamp: 46486 type: string 46487 format: date-time 46488 validator_address: 46489 type: string 46490 format: byte 46491 validator_index: 46492 type: integer 46493 format: int32 46494 signature: 46495 type: string 46496 format: byte 46497 description: >- 46498 Vote signature by the validator if they participated in 46499 consensus for the 46500 46501 associated block. 46502 extension: 46503 type: string 46504 format: byte 46505 description: >- 46506 Vote extension provided by the application. Only valid 46507 for precommit 46508 46509 messages. 46510 extension_signature: 46511 type: string 46512 format: byte 46513 description: >- 46514 Vote extension signature by the validator if they 46515 participated in 46516 46517 consensus for the associated block. 46518 46519 Only valid for precommit messages. 46520 description: >- 46521 Vote represents a prevote or precommit vote from validators 46522 for 46523 46524 consensus. 46525 total_voting_power: 46526 type: string 46527 format: int64 46528 validator_power: 46529 type: string 46530 format: int64 46531 timestamp: 46532 type: string 46533 format: date-time 46534 description: >- 46535 DuplicateVoteEvidence contains evidence of a validator signed 46536 two conflicting votes. 46537 light_client_attack_evidence: 46538 type: object 46539 properties: 46540 conflicting_block: 46541 type: object 46542 properties: 46543 signed_header: 46544 type: object 46545 properties: 46546 header: 46547 type: object 46548 properties: 46549 version: 46550 title: basic block info 46551 type: object 46552 properties: 46553 block: 46554 type: string 46555 format: uint64 46556 app: 46557 type: string 46558 format: uint64 46559 description: >- 46560 Consensus captures the consensus rules for 46561 processing a block in the blockchain, 46562 46563 including all blockchain data structures and the 46564 rules of the application's 46565 46566 state transition machine. 46567 chain_id: 46568 type: string 46569 height: 46570 type: string 46571 format: int64 46572 time: 46573 type: string 46574 format: date-time 46575 last_block_id: 46576 type: object 46577 properties: 46578 hash: 46579 type: string 46580 format: byte 46581 part_set_header: 46582 type: object 46583 properties: 46584 total: 46585 type: integer 46586 format: int64 46587 hash: 46588 type: string 46589 format: byte 46590 title: PartsetHeader 46591 title: BlockID 46592 last_commit_hash: 46593 type: string 46594 format: byte 46595 title: hashes of block data 46596 data_hash: 46597 type: string 46598 format: byte 46599 validators_hash: 46600 type: string 46601 format: byte 46602 title: hashes from the app output from the prev block 46603 next_validators_hash: 46604 type: string 46605 format: byte 46606 consensus_hash: 46607 type: string 46608 format: byte 46609 app_hash: 46610 type: string 46611 format: byte 46612 last_results_hash: 46613 type: string 46614 format: byte 46615 evidence_hash: 46616 type: string 46617 format: byte 46618 title: consensus info 46619 proposer_address: 46620 type: string 46621 format: byte 46622 description: Header defines the structure of a block header. 46623 commit: 46624 type: object 46625 properties: 46626 height: 46627 type: string 46628 format: int64 46629 round: 46630 type: integer 46631 format: int32 46632 block_id: 46633 type: object 46634 properties: 46635 hash: 46636 type: string 46637 format: byte 46638 part_set_header: 46639 type: object 46640 properties: 46641 total: 46642 type: integer 46643 format: int64 46644 hash: 46645 type: string 46646 format: byte 46647 title: PartsetHeader 46648 title: BlockID 46649 signatures: 46650 type: array 46651 items: 46652 type: object 46653 properties: 46654 block_id_flag: 46655 type: string 46656 enum: 46657 - BLOCK_ID_FLAG_UNKNOWN 46658 - BLOCK_ID_FLAG_ABSENT 46659 - BLOCK_ID_FLAG_COMMIT 46660 - BLOCK_ID_FLAG_NIL 46661 default: BLOCK_ID_FLAG_UNKNOWN 46662 title: >- 46663 BlockIdFlag indicates which BlockID the 46664 signature is for 46665 validator_address: 46666 type: string 46667 format: byte 46668 timestamp: 46669 type: string 46670 format: date-time 46671 signature: 46672 type: string 46673 format: byte 46674 description: >- 46675 CommitSig is a part of the Vote included in a 46676 Commit. 46677 description: >- 46678 Commit contains the evidence that a block was 46679 committed by a set of validators. 46680 validator_set: 46681 type: object 46682 properties: 46683 validators: 46684 type: array 46685 items: 46686 type: object 46687 properties: 46688 address: 46689 type: string 46690 format: byte 46691 pub_key: 46692 type: object 46693 properties: 46694 ed25519: 46695 type: string 46696 format: byte 46697 secp256k1: 46698 type: string 46699 format: byte 46700 title: >- 46701 PublicKey defines the keys available for use 46702 with Validators 46703 voting_power: 46704 type: string 46705 format: int64 46706 proposer_priority: 46707 type: string 46708 format: int64 46709 proposer: 46710 type: object 46711 properties: 46712 address: 46713 type: string 46714 format: byte 46715 pub_key: 46716 type: object 46717 properties: 46718 ed25519: 46719 type: string 46720 format: byte 46721 secp256k1: 46722 type: string 46723 format: byte 46724 title: >- 46725 PublicKey defines the keys available for use 46726 with Validators 46727 voting_power: 46728 type: string 46729 format: int64 46730 proposer_priority: 46731 type: string 46732 format: int64 46733 total_voting_power: 46734 type: string 46735 format: int64 46736 common_height: 46737 type: string 46738 format: int64 46739 byzantine_validators: 46740 type: array 46741 items: 46742 type: object 46743 properties: 46744 address: 46745 type: string 46746 format: byte 46747 pub_key: 46748 type: object 46749 properties: 46750 ed25519: 46751 type: string 46752 format: byte 46753 secp256k1: 46754 type: string 46755 format: byte 46756 title: >- 46757 PublicKey defines the keys available for use with 46758 Validators 46759 voting_power: 46760 type: string 46761 format: int64 46762 proposer_priority: 46763 type: string 46764 format: int64 46765 total_voting_power: 46766 type: string 46767 format: int64 46768 timestamp: 46769 type: string 46770 format: date-time 46771 description: >- 46772 LightClientAttackEvidence contains evidence of a set of 46773 validators attempting to mislead a light client. 46774 tendermint.types.Header: 46775 type: object 46776 properties: 46777 version: 46778 title: basic block info 46779 type: object 46780 properties: 46781 block: 46782 type: string 46783 format: uint64 46784 app: 46785 type: string 46786 format: uint64 46787 description: >- 46788 Consensus captures the consensus rules for processing a block in the 46789 blockchain, 46790 46791 including all blockchain data structures and the rules of the 46792 application's 46793 46794 state transition machine. 46795 chain_id: 46796 type: string 46797 height: 46798 type: string 46799 format: int64 46800 time: 46801 type: string 46802 format: date-time 46803 last_block_id: 46804 type: object 46805 properties: 46806 hash: 46807 type: string 46808 format: byte 46809 part_set_header: 46810 type: object 46811 properties: 46812 total: 46813 type: integer 46814 format: int64 46815 hash: 46816 type: string 46817 format: byte 46818 title: PartsetHeader 46819 title: BlockID 46820 last_commit_hash: 46821 type: string 46822 format: byte 46823 title: hashes of block data 46824 data_hash: 46825 type: string 46826 format: byte 46827 validators_hash: 46828 type: string 46829 format: byte 46830 title: hashes from the app output from the prev block 46831 next_validators_hash: 46832 type: string 46833 format: byte 46834 consensus_hash: 46835 type: string 46836 format: byte 46837 app_hash: 46838 type: string 46839 format: byte 46840 last_results_hash: 46841 type: string 46842 format: byte 46843 evidence_hash: 46844 type: string 46845 format: byte 46846 title: consensus info 46847 proposer_address: 46848 type: string 46849 format: byte 46850 description: Header defines the structure of a block header. 46851 tendermint.types.LightBlock: 46852 type: object 46853 properties: 46854 signed_header: 46855 type: object 46856 properties: 46857 header: 46858 type: object 46859 properties: 46860 version: 46861 title: basic block info 46862 type: object 46863 properties: 46864 block: 46865 type: string 46866 format: uint64 46867 app: 46868 type: string 46869 format: uint64 46870 description: >- 46871 Consensus captures the consensus rules for processing a block 46872 in the blockchain, 46873 46874 including all blockchain data structures and the rules of the 46875 application's 46876 46877 state transition machine. 46878 chain_id: 46879 type: string 46880 height: 46881 type: string 46882 format: int64 46883 time: 46884 type: string 46885 format: date-time 46886 last_block_id: 46887 type: object 46888 properties: 46889 hash: 46890 type: string 46891 format: byte 46892 part_set_header: 46893 type: object 46894 properties: 46895 total: 46896 type: integer 46897 format: int64 46898 hash: 46899 type: string 46900 format: byte 46901 title: PartsetHeader 46902 title: BlockID 46903 last_commit_hash: 46904 type: string 46905 format: byte 46906 title: hashes of block data 46907 data_hash: 46908 type: string 46909 format: byte 46910 validators_hash: 46911 type: string 46912 format: byte 46913 title: hashes from the app output from the prev block 46914 next_validators_hash: 46915 type: string 46916 format: byte 46917 consensus_hash: 46918 type: string 46919 format: byte 46920 app_hash: 46921 type: string 46922 format: byte 46923 last_results_hash: 46924 type: string 46925 format: byte 46926 evidence_hash: 46927 type: string 46928 format: byte 46929 title: consensus info 46930 proposer_address: 46931 type: string 46932 format: byte 46933 description: Header defines the structure of a block header. 46934 commit: 46935 type: object 46936 properties: 46937 height: 46938 type: string 46939 format: int64 46940 round: 46941 type: integer 46942 format: int32 46943 block_id: 46944 type: object 46945 properties: 46946 hash: 46947 type: string 46948 format: byte 46949 part_set_header: 46950 type: object 46951 properties: 46952 total: 46953 type: integer 46954 format: int64 46955 hash: 46956 type: string 46957 format: byte 46958 title: PartsetHeader 46959 title: BlockID 46960 signatures: 46961 type: array 46962 items: 46963 type: object 46964 properties: 46965 block_id_flag: 46966 type: string 46967 enum: 46968 - BLOCK_ID_FLAG_UNKNOWN 46969 - BLOCK_ID_FLAG_ABSENT 46970 - BLOCK_ID_FLAG_COMMIT 46971 - BLOCK_ID_FLAG_NIL 46972 default: BLOCK_ID_FLAG_UNKNOWN 46973 title: BlockIdFlag indicates which BlockID the signature is for 46974 validator_address: 46975 type: string 46976 format: byte 46977 timestamp: 46978 type: string 46979 format: date-time 46980 signature: 46981 type: string 46982 format: byte 46983 description: CommitSig is a part of the Vote included in a Commit. 46984 description: >- 46985 Commit contains the evidence that a block was committed by a set 46986 of validators. 46987 validator_set: 46988 type: object 46989 properties: 46990 validators: 46991 type: array 46992 items: 46993 type: object 46994 properties: 46995 address: 46996 type: string 46997 format: byte 46998 pub_key: 46999 type: object 47000 properties: 47001 ed25519: 47002 type: string 47003 format: byte 47004 secp256k1: 47005 type: string 47006 format: byte 47007 title: PublicKey defines the keys available for use with Validators 47008 voting_power: 47009 type: string 47010 format: int64 47011 proposer_priority: 47012 type: string 47013 format: int64 47014 proposer: 47015 type: object 47016 properties: 47017 address: 47018 type: string 47019 format: byte 47020 pub_key: 47021 type: object 47022 properties: 47023 ed25519: 47024 type: string 47025 format: byte 47026 secp256k1: 47027 type: string 47028 format: byte 47029 title: PublicKey defines the keys available for use with Validators 47030 voting_power: 47031 type: string 47032 format: int64 47033 proposer_priority: 47034 type: string 47035 format: int64 47036 total_voting_power: 47037 type: string 47038 format: int64 47039 tendermint.types.LightClientAttackEvidence: 47040 type: object 47041 properties: 47042 conflicting_block: 47043 type: object 47044 properties: 47045 signed_header: 47046 type: object 47047 properties: 47048 header: 47049 type: object 47050 properties: 47051 version: 47052 title: basic block info 47053 type: object 47054 properties: 47055 block: 47056 type: string 47057 format: uint64 47058 app: 47059 type: string 47060 format: uint64 47061 description: >- 47062 Consensus captures the consensus rules for processing a 47063 block in the blockchain, 47064 47065 including all blockchain data structures and the rules of 47066 the application's 47067 47068 state transition machine. 47069 chain_id: 47070 type: string 47071 height: 47072 type: string 47073 format: int64 47074 time: 47075 type: string 47076 format: date-time 47077 last_block_id: 47078 type: object 47079 properties: 47080 hash: 47081 type: string 47082 format: byte 47083 part_set_header: 47084 type: object 47085 properties: 47086 total: 47087 type: integer 47088 format: int64 47089 hash: 47090 type: string 47091 format: byte 47092 title: PartsetHeader 47093 title: BlockID 47094 last_commit_hash: 47095 type: string 47096 format: byte 47097 title: hashes of block data 47098 data_hash: 47099 type: string 47100 format: byte 47101 validators_hash: 47102 type: string 47103 format: byte 47104 title: hashes from the app output from the prev block 47105 next_validators_hash: 47106 type: string 47107 format: byte 47108 consensus_hash: 47109 type: string 47110 format: byte 47111 app_hash: 47112 type: string 47113 format: byte 47114 last_results_hash: 47115 type: string 47116 format: byte 47117 evidence_hash: 47118 type: string 47119 format: byte 47120 title: consensus info 47121 proposer_address: 47122 type: string 47123 format: byte 47124 description: Header defines the structure of a block header. 47125 commit: 47126 type: object 47127 properties: 47128 height: 47129 type: string 47130 format: int64 47131 round: 47132 type: integer 47133 format: int32 47134 block_id: 47135 type: object 47136 properties: 47137 hash: 47138 type: string 47139 format: byte 47140 part_set_header: 47141 type: object 47142 properties: 47143 total: 47144 type: integer 47145 format: int64 47146 hash: 47147 type: string 47148 format: byte 47149 title: PartsetHeader 47150 title: BlockID 47151 signatures: 47152 type: array 47153 items: 47154 type: object 47155 properties: 47156 block_id_flag: 47157 type: string 47158 enum: 47159 - BLOCK_ID_FLAG_UNKNOWN 47160 - BLOCK_ID_FLAG_ABSENT 47161 - BLOCK_ID_FLAG_COMMIT 47162 - BLOCK_ID_FLAG_NIL 47163 default: BLOCK_ID_FLAG_UNKNOWN 47164 title: >- 47165 BlockIdFlag indicates which BlockID the signature is 47166 for 47167 validator_address: 47168 type: string 47169 format: byte 47170 timestamp: 47171 type: string 47172 format: date-time 47173 signature: 47174 type: string 47175 format: byte 47176 description: CommitSig is a part of the Vote included in a Commit. 47177 description: >- 47178 Commit contains the evidence that a block was committed by a 47179 set of validators. 47180 validator_set: 47181 type: object 47182 properties: 47183 validators: 47184 type: array 47185 items: 47186 type: object 47187 properties: 47188 address: 47189 type: string 47190 format: byte 47191 pub_key: 47192 type: object 47193 properties: 47194 ed25519: 47195 type: string 47196 format: byte 47197 secp256k1: 47198 type: string 47199 format: byte 47200 title: >- 47201 PublicKey defines the keys available for use with 47202 Validators 47203 voting_power: 47204 type: string 47205 format: int64 47206 proposer_priority: 47207 type: string 47208 format: int64 47209 proposer: 47210 type: object 47211 properties: 47212 address: 47213 type: string 47214 format: byte 47215 pub_key: 47216 type: object 47217 properties: 47218 ed25519: 47219 type: string 47220 format: byte 47221 secp256k1: 47222 type: string 47223 format: byte 47224 title: >- 47225 PublicKey defines the keys available for use with 47226 Validators 47227 voting_power: 47228 type: string 47229 format: int64 47230 proposer_priority: 47231 type: string 47232 format: int64 47233 total_voting_power: 47234 type: string 47235 format: int64 47236 common_height: 47237 type: string 47238 format: int64 47239 byzantine_validators: 47240 type: array 47241 items: 47242 type: object 47243 properties: 47244 address: 47245 type: string 47246 format: byte 47247 pub_key: 47248 type: object 47249 properties: 47250 ed25519: 47251 type: string 47252 format: byte 47253 secp256k1: 47254 type: string 47255 format: byte 47256 title: PublicKey defines the keys available for use with Validators 47257 voting_power: 47258 type: string 47259 format: int64 47260 proposer_priority: 47261 type: string 47262 format: int64 47263 total_voting_power: 47264 type: string 47265 format: int64 47266 timestamp: 47267 type: string 47268 format: date-time 47269 description: >- 47270 LightClientAttackEvidence contains evidence of a set of validators 47271 attempting to mislead a light client. 47272 tendermint.types.PartSetHeader: 47273 type: object 47274 properties: 47275 total: 47276 type: integer 47277 format: int64 47278 hash: 47279 type: string 47280 format: byte 47281 title: PartsetHeader 47282 tendermint.types.SignedHeader: 47283 type: object 47284 properties: 47285 header: 47286 type: object 47287 properties: 47288 version: 47289 title: basic block info 47290 type: object 47291 properties: 47292 block: 47293 type: string 47294 format: uint64 47295 app: 47296 type: string 47297 format: uint64 47298 description: >- 47299 Consensus captures the consensus rules for processing a block in 47300 the blockchain, 47301 47302 including all blockchain data structures and the rules of the 47303 application's 47304 47305 state transition machine. 47306 chain_id: 47307 type: string 47308 height: 47309 type: string 47310 format: int64 47311 time: 47312 type: string 47313 format: date-time 47314 last_block_id: 47315 type: object 47316 properties: 47317 hash: 47318 type: string 47319 format: byte 47320 part_set_header: 47321 type: object 47322 properties: 47323 total: 47324 type: integer 47325 format: int64 47326 hash: 47327 type: string 47328 format: byte 47329 title: PartsetHeader 47330 title: BlockID 47331 last_commit_hash: 47332 type: string 47333 format: byte 47334 title: hashes of block data 47335 data_hash: 47336 type: string 47337 format: byte 47338 validators_hash: 47339 type: string 47340 format: byte 47341 title: hashes from the app output from the prev block 47342 next_validators_hash: 47343 type: string 47344 format: byte 47345 consensus_hash: 47346 type: string 47347 format: byte 47348 app_hash: 47349 type: string 47350 format: byte 47351 last_results_hash: 47352 type: string 47353 format: byte 47354 evidence_hash: 47355 type: string 47356 format: byte 47357 title: consensus info 47358 proposer_address: 47359 type: string 47360 format: byte 47361 description: Header defines the structure of a block header. 47362 commit: 47363 type: object 47364 properties: 47365 height: 47366 type: string 47367 format: int64 47368 round: 47369 type: integer 47370 format: int32 47371 block_id: 47372 type: object 47373 properties: 47374 hash: 47375 type: string 47376 format: byte 47377 part_set_header: 47378 type: object 47379 properties: 47380 total: 47381 type: integer 47382 format: int64 47383 hash: 47384 type: string 47385 format: byte 47386 title: PartsetHeader 47387 title: BlockID 47388 signatures: 47389 type: array 47390 items: 47391 type: object 47392 properties: 47393 block_id_flag: 47394 type: string 47395 enum: 47396 - BLOCK_ID_FLAG_UNKNOWN 47397 - BLOCK_ID_FLAG_ABSENT 47398 - BLOCK_ID_FLAG_COMMIT 47399 - BLOCK_ID_FLAG_NIL 47400 default: BLOCK_ID_FLAG_UNKNOWN 47401 title: BlockIdFlag indicates which BlockID the signature is for 47402 validator_address: 47403 type: string 47404 format: byte 47405 timestamp: 47406 type: string 47407 format: date-time 47408 signature: 47409 type: string 47410 format: byte 47411 description: CommitSig is a part of the Vote included in a Commit. 47412 description: >- 47413 Commit contains the evidence that a block was committed by a set of 47414 validators. 47415 tendermint.types.SignedMsgType: 47416 type: string 47417 enum: 47418 - SIGNED_MSG_TYPE_UNKNOWN 47419 - SIGNED_MSG_TYPE_PREVOTE 47420 - SIGNED_MSG_TYPE_PRECOMMIT 47421 - SIGNED_MSG_TYPE_PROPOSAL 47422 default: SIGNED_MSG_TYPE_UNKNOWN 47423 description: |- 47424 SignedMsgType is a type of signed message in the consensus. 47425 47426 - SIGNED_MSG_TYPE_PREVOTE: Votes 47427 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 47428 tendermint.types.Validator: 47429 type: object 47430 properties: 47431 address: 47432 type: string 47433 format: byte 47434 pub_key: 47435 type: object 47436 properties: 47437 ed25519: 47438 type: string 47439 format: byte 47440 secp256k1: 47441 type: string 47442 format: byte 47443 title: PublicKey defines the keys available for use with Validators 47444 voting_power: 47445 type: string 47446 format: int64 47447 proposer_priority: 47448 type: string 47449 format: int64 47450 tendermint.types.ValidatorSet: 47451 type: object 47452 properties: 47453 validators: 47454 type: array 47455 items: 47456 type: object 47457 properties: 47458 address: 47459 type: string 47460 format: byte 47461 pub_key: 47462 type: object 47463 properties: 47464 ed25519: 47465 type: string 47466 format: byte 47467 secp256k1: 47468 type: string 47469 format: byte 47470 title: PublicKey defines the keys available for use with Validators 47471 voting_power: 47472 type: string 47473 format: int64 47474 proposer_priority: 47475 type: string 47476 format: int64 47477 proposer: 47478 type: object 47479 properties: 47480 address: 47481 type: string 47482 format: byte 47483 pub_key: 47484 type: object 47485 properties: 47486 ed25519: 47487 type: string 47488 format: byte 47489 secp256k1: 47490 type: string 47491 format: byte 47492 title: PublicKey defines the keys available for use with Validators 47493 voting_power: 47494 type: string 47495 format: int64 47496 proposer_priority: 47497 type: string 47498 format: int64 47499 total_voting_power: 47500 type: string 47501 format: int64 47502 tendermint.types.Vote: 47503 type: object 47504 properties: 47505 type: 47506 type: string 47507 enum: 47508 - SIGNED_MSG_TYPE_UNKNOWN 47509 - SIGNED_MSG_TYPE_PREVOTE 47510 - SIGNED_MSG_TYPE_PRECOMMIT 47511 - SIGNED_MSG_TYPE_PROPOSAL 47512 default: SIGNED_MSG_TYPE_UNKNOWN 47513 description: |- 47514 SignedMsgType is a type of signed message in the consensus. 47515 47516 - SIGNED_MSG_TYPE_PREVOTE: Votes 47517 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 47518 height: 47519 type: string 47520 format: int64 47521 round: 47522 type: integer 47523 format: int32 47524 block_id: 47525 type: object 47526 properties: 47527 hash: 47528 type: string 47529 format: byte 47530 part_set_header: 47531 type: object 47532 properties: 47533 total: 47534 type: integer 47535 format: int64 47536 hash: 47537 type: string 47538 format: byte 47539 title: PartsetHeader 47540 title: BlockID 47541 timestamp: 47542 type: string 47543 format: date-time 47544 validator_address: 47545 type: string 47546 format: byte 47547 validator_index: 47548 type: integer 47549 format: int32 47550 signature: 47551 type: string 47552 format: byte 47553 description: >- 47554 Vote signature by the validator if they participated in consensus for 47555 the 47556 47557 associated block. 47558 extension: 47559 type: string 47560 format: byte 47561 description: |- 47562 Vote extension provided by the application. Only valid for precommit 47563 messages. 47564 extension_signature: 47565 type: string 47566 format: byte 47567 description: |- 47568 Vote extension signature by the validator if they participated in 47569 consensus for the associated block. 47570 Only valid for precommit messages. 47571 description: |- 47572 Vote represents a prevote or precommit vote from validators for 47573 consensus. 47574 tendermint.version.Consensus: 47575 type: object 47576 properties: 47577 block: 47578 type: string 47579 format: uint64 47580 app: 47581 type: string 47582 format: uint64 47583 description: >- 47584 Consensus captures the consensus rules for processing a block in the 47585 blockchain, 47586 47587 including all blockchain data structures and the rules of the 47588 application's 47589 47590 state transition machine. 47591 cosmos.base.node.v1beta1.ConfigResponse: 47592 type: object 47593 properties: 47594 minimum_gas_price: 47595 type: string 47596 pruning_keep_recent: 47597 type: string 47598 pruning_interval: 47599 type: string 47600 halt_height: 47601 type: string 47602 format: uint64 47603 description: ConfigResponse defines the response structure for the Config gRPC query. 47604 cosmos.base.node.v1beta1.StatusResponse: 47605 type: object 47606 properties: 47607 earliest_store_height: 47608 type: string 47609 format: uint64 47610 height: 47611 type: string 47612 format: uint64 47613 timestamp: 47614 type: string 47615 format: date-time 47616 app_hash: 47617 type: string 47618 format: byte 47619 validator_hash: 47620 type: string 47621 format: byte 47622 description: StateResponse defines the response structure for the status of a node. 47623 cosmos.base.v1beta1.DecCoin: 47624 type: object 47625 properties: 47626 denom: 47627 type: string 47628 amount: 47629 type: string 47630 description: |- 47631 DecCoin defines a token with a denomination and a decimal amount. 47632 47633 NOTE: The amount field is an Dec which implements the custom method 47634 signatures required by gogoproto. 47635 cosmos.distribution.v1beta1.DelegationDelegatorReward: 47636 type: object 47637 properties: 47638 validator_address: 47639 type: string 47640 reward: 47641 type: array 47642 items: 47643 type: object 47644 properties: 47645 denom: 47646 type: string 47647 amount: 47648 type: string 47649 description: |- 47650 DecCoin defines a token with a denomination and a decimal amount. 47651 47652 NOTE: The amount field is an Dec which implements the custom method 47653 signatures required by gogoproto. 47654 description: |- 47655 DelegationDelegatorReward represents the properties 47656 of a delegator's delegation reward. 47657 cosmos.distribution.v1beta1.Params: 47658 type: object 47659 properties: 47660 community_tax: 47661 type: string 47662 base_proposer_reward: 47663 type: string 47664 description: >- 47665 Deprecated: The base_proposer_reward field is deprecated and is no 47666 longer used 47667 47668 in the x/distribution module's reward mechanism. 47669 bonus_proposer_reward: 47670 type: string 47671 description: >- 47672 Deprecated: The bonus_proposer_reward field is deprecated and is no 47673 longer used 47674 47675 in the x/distribution module's reward mechanism. 47676 withdraw_addr_enabled: 47677 type: boolean 47678 description: Params defines the set of params for the distribution module. 47679 cosmos.distribution.v1beta1.QueryCommunityPoolResponse: 47680 type: object 47681 properties: 47682 pool: 47683 type: array 47684 items: 47685 type: object 47686 properties: 47687 denom: 47688 type: string 47689 amount: 47690 type: string 47691 description: |- 47692 DecCoin defines a token with a denomination and a decimal amount. 47693 47694 NOTE: The amount field is an Dec which implements the custom method 47695 signatures required by gogoproto. 47696 description: pool defines community pool's coins. 47697 description: >- 47698 QueryCommunityPoolResponse is the response type for the 47699 Query/CommunityPool 47700 47701 RPC method. 47702 cosmos.distribution.v1beta1.QueryDelegationRewardsResponse: 47703 type: object 47704 properties: 47705 rewards: 47706 type: array 47707 items: 47708 type: object 47709 properties: 47710 denom: 47711 type: string 47712 amount: 47713 type: string 47714 description: |- 47715 DecCoin defines a token with a denomination and a decimal amount. 47716 47717 NOTE: The amount field is an Dec which implements the custom method 47718 signatures required by gogoproto. 47719 description: rewards defines the rewards accrued by a delegation. 47720 description: |- 47721 QueryDelegationRewardsResponse is the response type for the 47722 Query/DelegationRewards RPC method. 47723 cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse: 47724 type: object 47725 properties: 47726 rewards: 47727 type: array 47728 items: 47729 type: object 47730 properties: 47731 validator_address: 47732 type: string 47733 reward: 47734 type: array 47735 items: 47736 type: object 47737 properties: 47738 denom: 47739 type: string 47740 amount: 47741 type: string 47742 description: >- 47743 DecCoin defines a token with a denomination and a decimal 47744 amount. 47745 47746 47747 NOTE: The amount field is an Dec which implements the custom 47748 method 47749 47750 signatures required by gogoproto. 47751 description: |- 47752 DelegationDelegatorReward represents the properties 47753 of a delegator's delegation reward. 47754 description: rewards defines all the rewards accrued by a delegator. 47755 total: 47756 type: array 47757 items: 47758 type: object 47759 properties: 47760 denom: 47761 type: string 47762 amount: 47763 type: string 47764 description: |- 47765 DecCoin defines a token with a denomination and a decimal amount. 47766 47767 NOTE: The amount field is an Dec which implements the custom method 47768 signatures required by gogoproto. 47769 description: total defines the sum of all the rewards. 47770 description: |- 47771 QueryDelegationTotalRewardsResponse is the response type for the 47772 Query/DelegationTotalRewards RPC method. 47773 cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse: 47774 type: object 47775 properties: 47776 validators: 47777 type: array 47778 items: 47779 type: string 47780 description: validators defines the validators a delegator is delegating for. 47781 description: |- 47782 QueryDelegatorValidatorsResponse is the response type for the 47783 Query/DelegatorValidators RPC method. 47784 cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse: 47785 type: object 47786 properties: 47787 withdraw_address: 47788 type: string 47789 description: withdraw_address defines the delegator address to query for. 47790 description: |- 47791 QueryDelegatorWithdrawAddressResponse is the response type for the 47792 Query/DelegatorWithdrawAddress RPC method. 47793 cosmos.distribution.v1beta1.QueryParamsResponse: 47794 type: object 47795 properties: 47796 params: 47797 description: params defines the parameters of the module. 47798 type: object 47799 properties: 47800 community_tax: 47801 type: string 47802 base_proposer_reward: 47803 type: string 47804 description: >- 47805 Deprecated: The base_proposer_reward field is deprecated and is no 47806 longer used 47807 47808 in the x/distribution module's reward mechanism. 47809 bonus_proposer_reward: 47810 type: string 47811 description: >- 47812 Deprecated: The bonus_proposer_reward field is deprecated and is 47813 no longer used 47814 47815 in the x/distribution module's reward mechanism. 47816 withdraw_addr_enabled: 47817 type: boolean 47818 description: QueryParamsResponse is the response type for the Query/Params RPC method. 47819 cosmos.distribution.v1beta1.QueryValidatorCommissionResponse: 47820 type: object 47821 properties: 47822 commission: 47823 description: commission defines the commission the validator received. 47824 type: object 47825 properties: 47826 commission: 47827 type: array 47828 items: 47829 type: object 47830 properties: 47831 denom: 47832 type: string 47833 amount: 47834 type: string 47835 description: >- 47836 DecCoin defines a token with a denomination and a decimal 47837 amount. 47838 47839 47840 NOTE: The amount field is an Dec which implements the custom 47841 method 47842 47843 signatures required by gogoproto. 47844 title: |- 47845 QueryValidatorCommissionResponse is the response type for the 47846 Query/ValidatorCommission RPC method 47847 cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse: 47848 type: object 47849 properties: 47850 operator_address: 47851 type: string 47852 description: operator_address defines the validator operator address. 47853 self_bond_rewards: 47854 type: array 47855 items: 47856 type: object 47857 properties: 47858 denom: 47859 type: string 47860 amount: 47861 type: string 47862 description: |- 47863 DecCoin defines a token with a denomination and a decimal amount. 47864 47865 NOTE: The amount field is an Dec which implements the custom method 47866 signatures required by gogoproto. 47867 description: self_bond_rewards defines the self delegations rewards. 47868 commission: 47869 type: array 47870 items: 47871 type: object 47872 properties: 47873 denom: 47874 type: string 47875 amount: 47876 type: string 47877 description: |- 47878 DecCoin defines a token with a denomination and a decimal amount. 47879 47880 NOTE: The amount field is an Dec which implements the custom method 47881 signatures required by gogoproto. 47882 description: commission defines the commission the validator received. 47883 description: >- 47884 QueryValidatorDistributionInfoResponse is the response type for the 47885 Query/ValidatorDistributionInfo RPC method. 47886 cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse: 47887 type: object 47888 properties: 47889 rewards: 47890 type: object 47891 properties: 47892 rewards: 47893 type: array 47894 items: 47895 type: object 47896 properties: 47897 denom: 47898 type: string 47899 amount: 47900 type: string 47901 description: >- 47902 DecCoin defines a token with a denomination and a decimal 47903 amount. 47904 47905 47906 NOTE: The amount field is an Dec which implements the custom 47907 method 47908 47909 signatures required by gogoproto. 47910 description: >- 47911 ValidatorOutstandingRewards represents outstanding (un-withdrawn) 47912 rewards 47913 47914 for a validator inexpensive to track, allows simple sanity checks. 47915 description: |- 47916 QueryValidatorOutstandingRewardsResponse is the response type for the 47917 Query/ValidatorOutstandingRewards RPC method. 47918 cosmos.distribution.v1beta1.QueryValidatorSlashesResponse: 47919 type: object 47920 properties: 47921 slashes: 47922 type: array 47923 items: 47924 type: object 47925 properties: 47926 validator_period: 47927 type: string 47928 format: uint64 47929 fraction: 47930 type: string 47931 description: |- 47932 ValidatorSlashEvent represents a validator slash event. 47933 Height is implicit within the store key. 47934 This is needed to calculate appropriate amount of staking tokens 47935 for delegations which are withdrawn after a slash has occurred. 47936 description: slashes defines the slashes the validator received. 47937 pagination: 47938 description: pagination defines the pagination in the response. 47939 type: object 47940 properties: 47941 next_key: 47942 type: string 47943 format: byte 47944 description: |- 47945 next_key is the key to be passed to PageRequest.key to 47946 query the next page most efficiently. It will be empty if 47947 there are no more results. 47948 total: 47949 type: string 47950 format: uint64 47951 title: >- 47952 total is total number of results available if 47953 PageRequest.count_total 47954 47955 was set, its value is undefined otherwise 47956 description: |- 47957 QueryValidatorSlashesResponse is the response type for the 47958 Query/ValidatorSlashes RPC method. 47959 cosmos.distribution.v1beta1.ValidatorAccumulatedCommission: 47960 type: object 47961 properties: 47962 commission: 47963 type: array 47964 items: 47965 type: object 47966 properties: 47967 denom: 47968 type: string 47969 amount: 47970 type: string 47971 description: |- 47972 DecCoin defines a token with a denomination and a decimal amount. 47973 47974 NOTE: The amount field is an Dec which implements the custom method 47975 signatures required by gogoproto. 47976 description: |- 47977 ValidatorAccumulatedCommission represents accumulated commission 47978 for a validator kept as a running counter, can be withdrawn at any time. 47979 cosmos.distribution.v1beta1.ValidatorOutstandingRewards: 47980 type: object 47981 properties: 47982 rewards: 47983 type: array 47984 items: 47985 type: object 47986 properties: 47987 denom: 47988 type: string 47989 amount: 47990 type: string 47991 description: |- 47992 DecCoin defines a token with a denomination and a decimal amount. 47993 47994 NOTE: The amount field is an Dec which implements the custom method 47995 signatures required by gogoproto. 47996 description: |- 47997 ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards 47998 for a validator inexpensive to track, allows simple sanity checks. 47999 cosmos.distribution.v1beta1.ValidatorSlashEvent: 48000 type: object 48001 properties: 48002 validator_period: 48003 type: string 48004 format: uint64 48005 fraction: 48006 type: string 48007 description: |- 48008 ValidatorSlashEvent represents a validator slash event. 48009 Height is implicit within the store key. 48010 This is needed to calculate appropriate amount of staking tokens 48011 for delegations which are withdrawn after a slash has occurred. 48012 cosmos.evidence.v1beta1.QueryAllEvidenceResponse: 48013 type: object 48014 properties: 48015 evidence: 48016 type: array 48017 items: 48018 type: object 48019 properties: 48020 type_url: 48021 type: string 48022 description: >- 48023 A URL/resource name that uniquely identifies the type of the 48024 serialized 48025 48026 protocol buffer message. This string must contain at least 48027 48028 one "/" character. The last segment of the URL's path must 48029 represent 48030 48031 the fully qualified name of the type (as in 48032 48033 `path/google.protobuf.Duration`). The name should be in a 48034 canonical form 48035 48036 (e.g., leading "." is not accepted). 48037 48038 48039 In practice, teams usually precompile into the binary all types 48040 that they 48041 48042 expect it to use in the context of Any. However, for URLs which 48043 use the 48044 48045 scheme `http`, `https`, or no scheme, one can optionally set up 48046 a type 48047 48048 server that maps type URLs to message definitions as follows: 48049 48050 48051 * If no scheme is provided, `https` is assumed. 48052 48053 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 48054 value in binary format, or produce an error. 48055 * Applications are allowed to cache lookup results based on the 48056 URL, or have them precompiled into a binary to avoid any 48057 lookup. Therefore, binary compatibility needs to be preserved 48058 on changes to types. (Use versioned type names to manage 48059 breaking changes.) 48060 48061 Note: this functionality is not currently available in the 48062 official 48063 48064 protobuf release, and it is not used for type URLs beginning 48065 with 48066 48067 type.googleapis.com. 48068 48069 48070 Schemes other than `http`, `https` (or the empty scheme) might 48071 be 48072 48073 used with implementation specific semantics. 48074 value: 48075 type: string 48076 format: byte 48077 description: >- 48078 Must be a valid serialized protocol buffer of the above 48079 specified type. 48080 description: >- 48081 `Any` contains an arbitrary serialized protocol buffer message along 48082 with a 48083 48084 URL that describes the type of the serialized message. 48085 48086 48087 Protobuf library provides support to pack/unpack Any values in the 48088 form 48089 48090 of utility functions or additional generated methods of the Any 48091 type. 48092 48093 48094 Example 1: Pack and unpack a message in C++. 48095 48096 Foo foo = ...; 48097 Any any; 48098 any.PackFrom(foo); 48099 ... 48100 if (any.UnpackTo(&foo)) { 48101 ... 48102 } 48103 48104 Example 2: Pack and unpack a message in Java. 48105 48106 Foo foo = ...; 48107 Any any = Any.pack(foo); 48108 ... 48109 if (any.is(Foo.class)) { 48110 foo = any.unpack(Foo.class); 48111 } 48112 // or ... 48113 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 48114 foo = any.unpack(Foo.getDefaultInstance()); 48115 } 48116 48117 Example 3: Pack and unpack a message in Python. 48118 48119 foo = Foo(...) 48120 any = Any() 48121 any.Pack(foo) 48122 ... 48123 if any.Is(Foo.DESCRIPTOR): 48124 any.Unpack(foo) 48125 ... 48126 48127 Example 4: Pack and unpack a message in Go 48128 48129 foo := &pb.Foo{...} 48130 any, err := anypb.New(foo) 48131 if err != nil { 48132 ... 48133 } 48134 ... 48135 foo := &pb.Foo{} 48136 if err := any.UnmarshalTo(foo); err != nil { 48137 ... 48138 } 48139 48140 The pack methods provided by protobuf library will by default use 48141 48142 'type.googleapis.com/full.type.name' as the type URL and the unpack 48143 48144 methods only use the fully qualified type name after the last '/' 48145 48146 in the type URL, for example "foo.bar.com/x/y.z" will yield type 48147 48148 name "y.z". 48149 48150 48151 JSON 48152 48153 48154 The JSON representation of an `Any` value uses the regular 48155 48156 representation of the deserialized, embedded message, with an 48157 48158 additional field `@type` which contains the type URL. Example: 48159 48160 package google.profile; 48161 message Person { 48162 string first_name = 1; 48163 string last_name = 2; 48164 } 48165 48166 { 48167 "@type": "type.googleapis.com/google.profile.Person", 48168 "firstName": <string>, 48169 "lastName": <string> 48170 } 48171 48172 If the embedded message type is well-known and has a custom JSON 48173 48174 representation, that representation will be embedded adding a field 48175 48176 `value` which holds the custom JSON in addition to the `@type` 48177 48178 field. Example (for message [google.protobuf.Duration][]): 48179 48180 { 48181 "@type": "type.googleapis.com/google.protobuf.Duration", 48182 "value": "1.212s" 48183 } 48184 description: evidence returns all evidences. 48185 pagination: 48186 description: pagination defines the pagination in the response. 48187 type: object 48188 properties: 48189 next_key: 48190 type: string 48191 format: byte 48192 description: |- 48193 next_key is the key to be passed to PageRequest.key to 48194 query the next page most efficiently. It will be empty if 48195 there are no more results. 48196 total: 48197 type: string 48198 format: uint64 48199 title: >- 48200 total is total number of results available if 48201 PageRequest.count_total 48202 48203 was set, its value is undefined otherwise 48204 description: >- 48205 QueryAllEvidenceResponse is the response type for the Query/AllEvidence 48206 RPC 48207 48208 method. 48209 cosmos.evidence.v1beta1.QueryEvidenceResponse: 48210 type: object 48211 properties: 48212 evidence: 48213 type: object 48214 properties: 48215 type_url: 48216 type: string 48217 description: >- 48218 A URL/resource name that uniquely identifies the type of the 48219 serialized 48220 48221 protocol buffer message. This string must contain at least 48222 48223 one "/" character. The last segment of the URL's path must 48224 represent 48225 48226 the fully qualified name of the type (as in 48227 48228 `path/google.protobuf.Duration`). The name should be in a 48229 canonical form 48230 48231 (e.g., leading "." is not accepted). 48232 48233 48234 In practice, teams usually precompile into the binary all types 48235 that they 48236 48237 expect it to use in the context of Any. However, for URLs which 48238 use the 48239 48240 scheme `http`, `https`, or no scheme, one can optionally set up a 48241 type 48242 48243 server that maps type URLs to message definitions as follows: 48244 48245 48246 * If no scheme is provided, `https` is assumed. 48247 48248 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 48249 value in binary format, or produce an error. 48250 * Applications are allowed to cache lookup results based on the 48251 URL, or have them precompiled into a binary to avoid any 48252 lookup. Therefore, binary compatibility needs to be preserved 48253 on changes to types. (Use versioned type names to manage 48254 breaking changes.) 48255 48256 Note: this functionality is not currently available in the 48257 official 48258 48259 protobuf release, and it is not used for type URLs beginning with 48260 48261 type.googleapis.com. 48262 48263 48264 Schemes other than `http`, `https` (or the empty scheme) might be 48265 48266 used with implementation specific semantics. 48267 value: 48268 type: string 48269 format: byte 48270 description: >- 48271 Must be a valid serialized protocol buffer of the above specified 48272 type. 48273 description: >- 48274 `Any` contains an arbitrary serialized protocol buffer message along 48275 with a 48276 48277 URL that describes the type of the serialized message. 48278 48279 48280 Protobuf library provides support to pack/unpack Any values in the 48281 form 48282 48283 of utility functions or additional generated methods of the Any type. 48284 48285 48286 Example 1: Pack and unpack a message in C++. 48287 48288 Foo foo = ...; 48289 Any any; 48290 any.PackFrom(foo); 48291 ... 48292 if (any.UnpackTo(&foo)) { 48293 ... 48294 } 48295 48296 Example 2: Pack and unpack a message in Java. 48297 48298 Foo foo = ...; 48299 Any any = Any.pack(foo); 48300 ... 48301 if (any.is(Foo.class)) { 48302 foo = any.unpack(Foo.class); 48303 } 48304 // or ... 48305 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 48306 foo = any.unpack(Foo.getDefaultInstance()); 48307 } 48308 48309 Example 3: Pack and unpack a message in Python. 48310 48311 foo = Foo(...) 48312 any = Any() 48313 any.Pack(foo) 48314 ... 48315 if any.Is(Foo.DESCRIPTOR): 48316 any.Unpack(foo) 48317 ... 48318 48319 Example 4: Pack and unpack a message in Go 48320 48321 foo := &pb.Foo{...} 48322 any, err := anypb.New(foo) 48323 if err != nil { 48324 ... 48325 } 48326 ... 48327 foo := &pb.Foo{} 48328 if err := any.UnmarshalTo(foo); err != nil { 48329 ... 48330 } 48331 48332 The pack methods provided by protobuf library will by default use 48333 48334 'type.googleapis.com/full.type.name' as the type URL and the unpack 48335 48336 methods only use the fully qualified type name after the last '/' 48337 48338 in the type URL, for example "foo.bar.com/x/y.z" will yield type 48339 48340 name "y.z". 48341 48342 48343 JSON 48344 48345 48346 The JSON representation of an `Any` value uses the regular 48347 48348 representation of the deserialized, embedded message, with an 48349 48350 additional field `@type` which contains the type URL. Example: 48351 48352 package google.profile; 48353 message Person { 48354 string first_name = 1; 48355 string last_name = 2; 48356 } 48357 48358 { 48359 "@type": "type.googleapis.com/google.profile.Person", 48360 "firstName": <string>, 48361 "lastName": <string> 48362 } 48363 48364 If the embedded message type is well-known and has a custom JSON 48365 48366 representation, that representation will be embedded adding a field 48367 48368 `value` which holds the custom JSON in addition to the `@type` 48369 48370 field. Example (for message [google.protobuf.Duration][]): 48371 48372 { 48373 "@type": "type.googleapis.com/google.protobuf.Duration", 48374 "value": "1.212s" 48375 } 48376 description: >- 48377 QueryEvidenceResponse is the response type for the Query/Evidence RPC 48378 method. 48379 cosmos.gov.v1beta1.Deposit: 48380 type: object 48381 properties: 48382 proposal_id: 48383 type: string 48384 format: uint64 48385 description: proposal_id defines the unique id of the proposal. 48386 depositor: 48387 type: string 48388 description: depositor defines the deposit addresses from the proposals. 48389 amount: 48390 type: array 48391 items: 48392 type: object 48393 properties: 48394 denom: 48395 type: string 48396 amount: 48397 type: string 48398 description: |- 48399 Coin defines a token with a denomination and an amount. 48400 48401 NOTE: The amount field is an Int which implements the custom method 48402 signatures required by gogoproto. 48403 description: amount to be deposited by depositor. 48404 description: |- 48405 Deposit defines an amount deposited by an account address to an active 48406 proposal. 48407 cosmos.gov.v1beta1.DepositParams: 48408 type: object 48409 properties: 48410 min_deposit: 48411 type: array 48412 items: 48413 type: object 48414 properties: 48415 denom: 48416 type: string 48417 amount: 48418 type: string 48419 description: |- 48420 Coin defines a token with a denomination and an amount. 48421 48422 NOTE: The amount field is an Int which implements the custom method 48423 signatures required by gogoproto. 48424 description: Minimum deposit for a proposal to enter voting period. 48425 max_deposit_period: 48426 type: string 48427 description: >- 48428 Maximum period for Atom holders to deposit on a proposal. Initial 48429 value: 2 48430 48431 months. 48432 description: DepositParams defines the params for deposits on governance proposals. 48433 cosmos.gov.v1beta1.Proposal: 48434 type: object 48435 properties: 48436 proposal_id: 48437 type: string 48438 format: uint64 48439 description: proposal_id defines the unique id of the proposal. 48440 content: 48441 type: object 48442 properties: 48443 type_url: 48444 type: string 48445 description: >- 48446 A URL/resource name that uniquely identifies the type of the 48447 serialized 48448 48449 protocol buffer message. This string must contain at least 48450 48451 one "/" character. The last segment of the URL's path must 48452 represent 48453 48454 the fully qualified name of the type (as in 48455 48456 `path/google.protobuf.Duration`). The name should be in a 48457 canonical form 48458 48459 (e.g., leading "." is not accepted). 48460 48461 48462 In practice, teams usually precompile into the binary all types 48463 that they 48464 48465 expect it to use in the context of Any. However, for URLs which 48466 use the 48467 48468 scheme `http`, `https`, or no scheme, one can optionally set up a 48469 type 48470 48471 server that maps type URLs to message definitions as follows: 48472 48473 48474 * If no scheme is provided, `https` is assumed. 48475 48476 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 48477 value in binary format, or produce an error. 48478 * Applications are allowed to cache lookup results based on the 48479 URL, or have them precompiled into a binary to avoid any 48480 lookup. Therefore, binary compatibility needs to be preserved 48481 on changes to types. (Use versioned type names to manage 48482 breaking changes.) 48483 48484 Note: this functionality is not currently available in the 48485 official 48486 48487 protobuf release, and it is not used for type URLs beginning with 48488 48489 type.googleapis.com. 48490 48491 48492 Schemes other than `http`, `https` (or the empty scheme) might be 48493 48494 used with implementation specific semantics. 48495 value: 48496 type: string 48497 format: byte 48498 description: >- 48499 Must be a valid serialized protocol buffer of the above specified 48500 type. 48501 description: >- 48502 `Any` contains an arbitrary serialized protocol buffer message along 48503 with a 48504 48505 URL that describes the type of the serialized message. 48506 48507 48508 Protobuf library provides support to pack/unpack Any values in the 48509 form 48510 48511 of utility functions or additional generated methods of the Any type. 48512 48513 48514 Example 1: Pack and unpack a message in C++. 48515 48516 Foo foo = ...; 48517 Any any; 48518 any.PackFrom(foo); 48519 ... 48520 if (any.UnpackTo(&foo)) { 48521 ... 48522 } 48523 48524 Example 2: Pack and unpack a message in Java. 48525 48526 Foo foo = ...; 48527 Any any = Any.pack(foo); 48528 ... 48529 if (any.is(Foo.class)) { 48530 foo = any.unpack(Foo.class); 48531 } 48532 // or ... 48533 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 48534 foo = any.unpack(Foo.getDefaultInstance()); 48535 } 48536 48537 Example 3: Pack and unpack a message in Python. 48538 48539 foo = Foo(...) 48540 any = Any() 48541 any.Pack(foo) 48542 ... 48543 if any.Is(Foo.DESCRIPTOR): 48544 any.Unpack(foo) 48545 ... 48546 48547 Example 4: Pack and unpack a message in Go 48548 48549 foo := &pb.Foo{...} 48550 any, err := anypb.New(foo) 48551 if err != nil { 48552 ... 48553 } 48554 ... 48555 foo := &pb.Foo{} 48556 if err := any.UnmarshalTo(foo); err != nil { 48557 ... 48558 } 48559 48560 The pack methods provided by protobuf library will by default use 48561 48562 'type.googleapis.com/full.type.name' as the type URL and the unpack 48563 48564 methods only use the fully qualified type name after the last '/' 48565 48566 in the type URL, for example "foo.bar.com/x/y.z" will yield type 48567 48568 name "y.z". 48569 48570 48571 JSON 48572 48573 48574 The JSON representation of an `Any` value uses the regular 48575 48576 representation of the deserialized, embedded message, with an 48577 48578 additional field `@type` which contains the type URL. Example: 48579 48580 package google.profile; 48581 message Person { 48582 string first_name = 1; 48583 string last_name = 2; 48584 } 48585 48586 { 48587 "@type": "type.googleapis.com/google.profile.Person", 48588 "firstName": <string>, 48589 "lastName": <string> 48590 } 48591 48592 If the embedded message type is well-known and has a custom JSON 48593 48594 representation, that representation will be embedded adding a field 48595 48596 `value` which holds the custom JSON in addition to the `@type` 48597 48598 field. Example (for message [google.protobuf.Duration][]): 48599 48600 { 48601 "@type": "type.googleapis.com/google.protobuf.Duration", 48602 "value": "1.212s" 48603 } 48604 status: 48605 description: status defines the proposal status. 48606 type: string 48607 enum: 48608 - PROPOSAL_STATUS_UNSPECIFIED 48609 - PROPOSAL_STATUS_DEPOSIT_PERIOD 48610 - PROPOSAL_STATUS_VOTING_PERIOD 48611 - PROPOSAL_STATUS_PASSED 48612 - PROPOSAL_STATUS_REJECTED 48613 - PROPOSAL_STATUS_FAILED 48614 default: PROPOSAL_STATUS_UNSPECIFIED 48615 final_tally_result: 48616 description: |- 48617 final_tally_result is the final tally result of the proposal. When 48618 querying a proposal via gRPC, this field is not populated until the 48619 proposal's voting period has ended. 48620 type: object 48621 properties: 48622 'yes': 48623 type: string 48624 description: yes is the number of yes votes on a proposal. 48625 abstain: 48626 type: string 48627 description: abstain is the number of abstain votes on a proposal. 48628 'no': 48629 type: string 48630 description: no is the number of no votes on a proposal. 48631 no_with_veto: 48632 type: string 48633 description: no_with_veto is the number of no with veto votes on a proposal. 48634 submit_time: 48635 type: string 48636 format: date-time 48637 description: submit_time is the time of proposal submission. 48638 deposit_end_time: 48639 type: string 48640 format: date-time 48641 description: deposit_end_time is the end time for deposition. 48642 total_deposit: 48643 type: array 48644 items: 48645 type: object 48646 properties: 48647 denom: 48648 type: string 48649 amount: 48650 type: string 48651 description: |- 48652 Coin defines a token with a denomination and an amount. 48653 48654 NOTE: The amount field is an Int which implements the custom method 48655 signatures required by gogoproto. 48656 description: total_deposit is the total deposit on the proposal. 48657 voting_start_time: 48658 type: string 48659 format: date-time 48660 description: voting_start_time is the starting time to vote on a proposal. 48661 voting_end_time: 48662 type: string 48663 format: date-time 48664 description: voting_end_time is the end time of voting on a proposal. 48665 description: Proposal defines the core field members of a governance proposal. 48666 cosmos.gov.v1beta1.ProposalStatus: 48667 type: string 48668 enum: 48669 - PROPOSAL_STATUS_UNSPECIFIED 48670 - PROPOSAL_STATUS_DEPOSIT_PERIOD 48671 - PROPOSAL_STATUS_VOTING_PERIOD 48672 - PROPOSAL_STATUS_PASSED 48673 - PROPOSAL_STATUS_REJECTED 48674 - PROPOSAL_STATUS_FAILED 48675 default: PROPOSAL_STATUS_UNSPECIFIED 48676 description: |- 48677 ProposalStatus enumerates the valid statuses of a proposal. 48678 48679 - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. 48680 - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit 48681 period. 48682 - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting 48683 period. 48684 - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has 48685 passed. 48686 - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has 48687 been rejected. 48688 - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has 48689 failed. 48690 cosmos.gov.v1beta1.QueryDepositResponse: 48691 type: object 48692 properties: 48693 deposit: 48694 type: object 48695 properties: 48696 proposal_id: 48697 type: string 48698 format: uint64 48699 description: proposal_id defines the unique id of the proposal. 48700 depositor: 48701 type: string 48702 description: depositor defines the deposit addresses from the proposals. 48703 amount: 48704 type: array 48705 items: 48706 type: object 48707 properties: 48708 denom: 48709 type: string 48710 amount: 48711 type: string 48712 description: >- 48713 Coin defines a token with a denomination and an amount. 48714 48715 48716 NOTE: The amount field is an Int which implements the custom 48717 method 48718 48719 signatures required by gogoproto. 48720 description: amount to be deposited by depositor. 48721 description: |- 48722 Deposit defines an amount deposited by an account address to an active 48723 proposal. 48724 description: >- 48725 QueryDepositResponse is the response type for the Query/Deposit RPC 48726 method. 48727 cosmos.gov.v1beta1.QueryDepositsResponse: 48728 type: object 48729 properties: 48730 deposits: 48731 type: array 48732 items: 48733 type: object 48734 properties: 48735 proposal_id: 48736 type: string 48737 format: uint64 48738 description: proposal_id defines the unique id of the proposal. 48739 depositor: 48740 type: string 48741 description: depositor defines the deposit addresses from the proposals. 48742 amount: 48743 type: array 48744 items: 48745 type: object 48746 properties: 48747 denom: 48748 type: string 48749 amount: 48750 type: string 48751 description: >- 48752 Coin defines a token with a denomination and an amount. 48753 48754 48755 NOTE: The amount field is an Int which implements the custom 48756 method 48757 48758 signatures required by gogoproto. 48759 description: amount to be deposited by depositor. 48760 description: >- 48761 Deposit defines an amount deposited by an account address to an 48762 active 48763 48764 proposal. 48765 description: deposits defines the requested deposits. 48766 pagination: 48767 description: pagination defines the pagination in the response. 48768 type: object 48769 properties: 48770 next_key: 48771 type: string 48772 format: byte 48773 description: |- 48774 next_key is the key to be passed to PageRequest.key to 48775 query the next page most efficiently. It will be empty if 48776 there are no more results. 48777 total: 48778 type: string 48779 format: uint64 48780 title: >- 48781 total is total number of results available if 48782 PageRequest.count_total 48783 48784 was set, its value is undefined otherwise 48785 description: >- 48786 QueryDepositsResponse is the response type for the Query/Deposits RPC 48787 method. 48788 cosmos.gov.v1beta1.QueryParamsResponse: 48789 type: object 48790 properties: 48791 voting_params: 48792 description: voting_params defines the parameters related to voting. 48793 type: object 48794 properties: 48795 voting_period: 48796 type: string 48797 description: Duration of the voting period. 48798 deposit_params: 48799 description: deposit_params defines the parameters related to deposit. 48800 type: object 48801 properties: 48802 min_deposit: 48803 type: array 48804 items: 48805 type: object 48806 properties: 48807 denom: 48808 type: string 48809 amount: 48810 type: string 48811 description: >- 48812 Coin defines a token with a denomination and an amount. 48813 48814 48815 NOTE: The amount field is an Int which implements the custom 48816 method 48817 48818 signatures required by gogoproto. 48819 description: Minimum deposit for a proposal to enter voting period. 48820 max_deposit_period: 48821 type: string 48822 description: >- 48823 Maximum period for Atom holders to deposit on a proposal. Initial 48824 value: 2 48825 48826 months. 48827 tally_params: 48828 description: tally_params defines the parameters related to tally. 48829 type: object 48830 properties: 48831 quorum: 48832 type: string 48833 format: byte 48834 description: >- 48835 Minimum percentage of total stake needed to vote for a result to 48836 be 48837 48838 considered valid. 48839 threshold: 48840 type: string 48841 format: byte 48842 description: >- 48843 Minimum proportion of Yes votes for proposal to pass. Default 48844 value: 0.5. 48845 veto_threshold: 48846 type: string 48847 format: byte 48848 description: >- 48849 Minimum value of Veto votes to Total votes ratio for proposal to 48850 be 48851 48852 vetoed. Default value: 1/3. 48853 description: QueryParamsResponse is the response type for the Query/Params RPC method. 48854 cosmos.gov.v1beta1.QueryProposalResponse: 48855 type: object 48856 properties: 48857 proposal: 48858 type: object 48859 properties: 48860 proposal_id: 48861 type: string 48862 format: uint64 48863 description: proposal_id defines the unique id of the proposal. 48864 content: 48865 type: object 48866 properties: 48867 type_url: 48868 type: string 48869 description: >- 48870 A URL/resource name that uniquely identifies the type of the 48871 serialized 48872 48873 protocol buffer message. This string must contain at least 48874 48875 one "/" character. The last segment of the URL's path must 48876 represent 48877 48878 the fully qualified name of the type (as in 48879 48880 `path/google.protobuf.Duration`). The name should be in a 48881 canonical form 48882 48883 (e.g., leading "." is not accepted). 48884 48885 48886 In practice, teams usually precompile into the binary all 48887 types that they 48888 48889 expect it to use in the context of Any. However, for URLs 48890 which use the 48891 48892 scheme `http`, `https`, or no scheme, one can optionally set 48893 up a type 48894 48895 server that maps type URLs to message definitions as follows: 48896 48897 48898 * If no scheme is provided, `https` is assumed. 48899 48900 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 48901 value in binary format, or produce an error. 48902 * Applications are allowed to cache lookup results based on 48903 the 48904 URL, or have them precompiled into a binary to avoid any 48905 lookup. Therefore, binary compatibility needs to be preserved 48906 on changes to types. (Use versioned type names to manage 48907 breaking changes.) 48908 48909 Note: this functionality is not currently available in the 48910 official 48911 48912 protobuf release, and it is not used for type URLs beginning 48913 with 48914 48915 type.googleapis.com. 48916 48917 48918 Schemes other than `http`, `https` (or the empty scheme) might 48919 be 48920 48921 used with implementation specific semantics. 48922 value: 48923 type: string 48924 format: byte 48925 description: >- 48926 Must be a valid serialized protocol buffer of the above 48927 specified type. 48928 description: >- 48929 `Any` contains an arbitrary serialized protocol buffer message 48930 along with a 48931 48932 URL that describes the type of the serialized message. 48933 48934 48935 Protobuf library provides support to pack/unpack Any values in the 48936 form 48937 48938 of utility functions or additional generated methods of the Any 48939 type. 48940 48941 48942 Example 1: Pack and unpack a message in C++. 48943 48944 Foo foo = ...; 48945 Any any; 48946 any.PackFrom(foo); 48947 ... 48948 if (any.UnpackTo(&foo)) { 48949 ... 48950 } 48951 48952 Example 2: Pack and unpack a message in Java. 48953 48954 Foo foo = ...; 48955 Any any = Any.pack(foo); 48956 ... 48957 if (any.is(Foo.class)) { 48958 foo = any.unpack(Foo.class); 48959 } 48960 // or ... 48961 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 48962 foo = any.unpack(Foo.getDefaultInstance()); 48963 } 48964 48965 Example 3: Pack and unpack a message in Python. 48966 48967 foo = Foo(...) 48968 any = Any() 48969 any.Pack(foo) 48970 ... 48971 if any.Is(Foo.DESCRIPTOR): 48972 any.Unpack(foo) 48973 ... 48974 48975 Example 4: Pack and unpack a message in Go 48976 48977 foo := &pb.Foo{...} 48978 any, err := anypb.New(foo) 48979 if err != nil { 48980 ... 48981 } 48982 ... 48983 foo := &pb.Foo{} 48984 if err := any.UnmarshalTo(foo); err != nil { 48985 ... 48986 } 48987 48988 The pack methods provided by protobuf library will by default use 48989 48990 'type.googleapis.com/full.type.name' as the type URL and the 48991 unpack 48992 48993 methods only use the fully qualified type name after the last '/' 48994 48995 in the type URL, for example "foo.bar.com/x/y.z" will yield type 48996 48997 name "y.z". 48998 48999 49000 JSON 49001 49002 49003 The JSON representation of an `Any` value uses the regular 49004 49005 representation of the deserialized, embedded message, with an 49006 49007 additional field `@type` which contains the type URL. Example: 49008 49009 package google.profile; 49010 message Person { 49011 string first_name = 1; 49012 string last_name = 2; 49013 } 49014 49015 { 49016 "@type": "type.googleapis.com/google.profile.Person", 49017 "firstName": <string>, 49018 "lastName": <string> 49019 } 49020 49021 If the embedded message type is well-known and has a custom JSON 49022 49023 representation, that representation will be embedded adding a 49024 field 49025 49026 `value` which holds the custom JSON in addition to the `@type` 49027 49028 field. Example (for message [google.protobuf.Duration][]): 49029 49030 { 49031 "@type": "type.googleapis.com/google.protobuf.Duration", 49032 "value": "1.212s" 49033 } 49034 status: 49035 description: status defines the proposal status. 49036 type: string 49037 enum: 49038 - PROPOSAL_STATUS_UNSPECIFIED 49039 - PROPOSAL_STATUS_DEPOSIT_PERIOD 49040 - PROPOSAL_STATUS_VOTING_PERIOD 49041 - PROPOSAL_STATUS_PASSED 49042 - PROPOSAL_STATUS_REJECTED 49043 - PROPOSAL_STATUS_FAILED 49044 default: PROPOSAL_STATUS_UNSPECIFIED 49045 final_tally_result: 49046 description: >- 49047 final_tally_result is the final tally result of the proposal. When 49048 49049 querying a proposal via gRPC, this field is not populated until 49050 the 49051 49052 proposal's voting period has ended. 49053 type: object 49054 properties: 49055 'yes': 49056 type: string 49057 description: yes is the number of yes votes on a proposal. 49058 abstain: 49059 type: string 49060 description: abstain is the number of abstain votes on a proposal. 49061 'no': 49062 type: string 49063 description: no is the number of no votes on a proposal. 49064 no_with_veto: 49065 type: string 49066 description: >- 49067 no_with_veto is the number of no with veto votes on a 49068 proposal. 49069 submit_time: 49070 type: string 49071 format: date-time 49072 description: submit_time is the time of proposal submission. 49073 deposit_end_time: 49074 type: string 49075 format: date-time 49076 description: deposit_end_time is the end time for deposition. 49077 total_deposit: 49078 type: array 49079 items: 49080 type: object 49081 properties: 49082 denom: 49083 type: string 49084 amount: 49085 type: string 49086 description: >- 49087 Coin defines a token with a denomination and an amount. 49088 49089 49090 NOTE: The amount field is an Int which implements the custom 49091 method 49092 49093 signatures required by gogoproto. 49094 description: total_deposit is the total deposit on the proposal. 49095 voting_start_time: 49096 type: string 49097 format: date-time 49098 description: voting_start_time is the starting time to vote on a proposal. 49099 voting_end_time: 49100 type: string 49101 format: date-time 49102 description: voting_end_time is the end time of voting on a proposal. 49103 description: Proposal defines the core field members of a governance proposal. 49104 description: >- 49105 QueryProposalResponse is the response type for the Query/Proposal RPC 49106 method. 49107 cosmos.gov.v1beta1.QueryProposalsResponse: 49108 type: object 49109 properties: 49110 proposals: 49111 type: array 49112 items: 49113 type: object 49114 properties: 49115 proposal_id: 49116 type: string 49117 format: uint64 49118 description: proposal_id defines the unique id of the proposal. 49119 content: 49120 type: object 49121 properties: 49122 type_url: 49123 type: string 49124 description: >- 49125 A URL/resource name that uniquely identifies the type of the 49126 serialized 49127 49128 protocol buffer message. This string must contain at least 49129 49130 one "/" character. The last segment of the URL's path must 49131 represent 49132 49133 the fully qualified name of the type (as in 49134 49135 `path/google.protobuf.Duration`). The name should be in a 49136 canonical form 49137 49138 (e.g., leading "." is not accepted). 49139 49140 49141 In practice, teams usually precompile into the binary all 49142 types that they 49143 49144 expect it to use in the context of Any. However, for URLs 49145 which use the 49146 49147 scheme `http`, `https`, or no scheme, one can optionally set 49148 up a type 49149 49150 server that maps type URLs to message definitions as 49151 follows: 49152 49153 49154 * If no scheme is provided, `https` is assumed. 49155 49156 * An HTTP GET on the URL must yield a 49157 [google.protobuf.Type][] 49158 value in binary format, or produce an error. 49159 * Applications are allowed to cache lookup results based on 49160 the 49161 URL, or have them precompiled into a binary to avoid any 49162 lookup. Therefore, binary compatibility needs to be preserved 49163 on changes to types. (Use versioned type names to manage 49164 breaking changes.) 49165 49166 Note: this functionality is not currently available in the 49167 official 49168 49169 protobuf release, and it is not used for type URLs beginning 49170 with 49171 49172 type.googleapis.com. 49173 49174 49175 Schemes other than `http`, `https` (or the empty scheme) 49176 might be 49177 49178 used with implementation specific semantics. 49179 value: 49180 type: string 49181 format: byte 49182 description: >- 49183 Must be a valid serialized protocol buffer of the above 49184 specified type. 49185 description: >- 49186 `Any` contains an arbitrary serialized protocol buffer message 49187 along with a 49188 49189 URL that describes the type of the serialized message. 49190 49191 49192 Protobuf library provides support to pack/unpack Any values in 49193 the form 49194 49195 of utility functions or additional generated methods of the Any 49196 type. 49197 49198 49199 Example 1: Pack and unpack a message in C++. 49200 49201 Foo foo = ...; 49202 Any any; 49203 any.PackFrom(foo); 49204 ... 49205 if (any.UnpackTo(&foo)) { 49206 ... 49207 } 49208 49209 Example 2: Pack and unpack a message in Java. 49210 49211 Foo foo = ...; 49212 Any any = Any.pack(foo); 49213 ... 49214 if (any.is(Foo.class)) { 49215 foo = any.unpack(Foo.class); 49216 } 49217 // or ... 49218 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 49219 foo = any.unpack(Foo.getDefaultInstance()); 49220 } 49221 49222 Example 3: Pack and unpack a message in Python. 49223 49224 foo = Foo(...) 49225 any = Any() 49226 any.Pack(foo) 49227 ... 49228 if any.Is(Foo.DESCRIPTOR): 49229 any.Unpack(foo) 49230 ... 49231 49232 Example 4: Pack and unpack a message in Go 49233 49234 foo := &pb.Foo{...} 49235 any, err := anypb.New(foo) 49236 if err != nil { 49237 ... 49238 } 49239 ... 49240 foo := &pb.Foo{} 49241 if err := any.UnmarshalTo(foo); err != nil { 49242 ... 49243 } 49244 49245 The pack methods provided by protobuf library will by default 49246 use 49247 49248 'type.googleapis.com/full.type.name' as the type URL and the 49249 unpack 49250 49251 methods only use the fully qualified type name after the last 49252 '/' 49253 49254 in the type URL, for example "foo.bar.com/x/y.z" will yield type 49255 49256 name "y.z". 49257 49258 49259 JSON 49260 49261 49262 The JSON representation of an `Any` value uses the regular 49263 49264 representation of the deserialized, embedded message, with an 49265 49266 additional field `@type` which contains the type URL. Example: 49267 49268 package google.profile; 49269 message Person { 49270 string first_name = 1; 49271 string last_name = 2; 49272 } 49273 49274 { 49275 "@type": "type.googleapis.com/google.profile.Person", 49276 "firstName": <string>, 49277 "lastName": <string> 49278 } 49279 49280 If the embedded message type is well-known and has a custom JSON 49281 49282 representation, that representation will be embedded adding a 49283 field 49284 49285 `value` which holds the custom JSON in addition to the `@type` 49286 49287 field. Example (for message [google.protobuf.Duration][]): 49288 49289 { 49290 "@type": "type.googleapis.com/google.protobuf.Duration", 49291 "value": "1.212s" 49292 } 49293 status: 49294 description: status defines the proposal status. 49295 type: string 49296 enum: 49297 - PROPOSAL_STATUS_UNSPECIFIED 49298 - PROPOSAL_STATUS_DEPOSIT_PERIOD 49299 - PROPOSAL_STATUS_VOTING_PERIOD 49300 - PROPOSAL_STATUS_PASSED 49301 - PROPOSAL_STATUS_REJECTED 49302 - PROPOSAL_STATUS_FAILED 49303 default: PROPOSAL_STATUS_UNSPECIFIED 49304 final_tally_result: 49305 description: >- 49306 final_tally_result is the final tally result of the proposal. 49307 When 49308 49309 querying a proposal via gRPC, this field is not populated until 49310 the 49311 49312 proposal's voting period has ended. 49313 type: object 49314 properties: 49315 'yes': 49316 type: string 49317 description: yes is the number of yes votes on a proposal. 49318 abstain: 49319 type: string 49320 description: abstain is the number of abstain votes on a proposal. 49321 'no': 49322 type: string 49323 description: no is the number of no votes on a proposal. 49324 no_with_veto: 49325 type: string 49326 description: >- 49327 no_with_veto is the number of no with veto votes on a 49328 proposal. 49329 submit_time: 49330 type: string 49331 format: date-time 49332 description: submit_time is the time of proposal submission. 49333 deposit_end_time: 49334 type: string 49335 format: date-time 49336 description: deposit_end_time is the end time for deposition. 49337 total_deposit: 49338 type: array 49339 items: 49340 type: object 49341 properties: 49342 denom: 49343 type: string 49344 amount: 49345 type: string 49346 description: >- 49347 Coin defines a token with a denomination and an amount. 49348 49349 49350 NOTE: The amount field is an Int which implements the custom 49351 method 49352 49353 signatures required by gogoproto. 49354 description: total_deposit is the total deposit on the proposal. 49355 voting_start_time: 49356 type: string 49357 format: date-time 49358 description: voting_start_time is the starting time to vote on a proposal. 49359 voting_end_time: 49360 type: string 49361 format: date-time 49362 description: voting_end_time is the end time of voting on a proposal. 49363 description: Proposal defines the core field members of a governance proposal. 49364 description: proposals defines all the requested governance proposals. 49365 pagination: 49366 description: pagination defines the pagination in the response. 49367 type: object 49368 properties: 49369 next_key: 49370 type: string 49371 format: byte 49372 description: |- 49373 next_key is the key to be passed to PageRequest.key to 49374 query the next page most efficiently. It will be empty if 49375 there are no more results. 49376 total: 49377 type: string 49378 format: uint64 49379 title: >- 49380 total is total number of results available if 49381 PageRequest.count_total 49382 49383 was set, its value is undefined otherwise 49384 description: |- 49385 QueryProposalsResponse is the response type for the Query/Proposals RPC 49386 method. 49387 cosmos.gov.v1beta1.QueryTallyResultResponse: 49388 type: object 49389 properties: 49390 tally: 49391 description: tally defines the requested tally. 49392 type: object 49393 properties: 49394 'yes': 49395 type: string 49396 description: yes is the number of yes votes on a proposal. 49397 abstain: 49398 type: string 49399 description: abstain is the number of abstain votes on a proposal. 49400 'no': 49401 type: string 49402 description: no is the number of no votes on a proposal. 49403 no_with_veto: 49404 type: string 49405 description: no_with_veto is the number of no with veto votes on a proposal. 49406 description: >- 49407 QueryTallyResultResponse is the response type for the Query/Tally RPC 49408 method. 49409 cosmos.gov.v1beta1.QueryVoteResponse: 49410 type: object 49411 properties: 49412 vote: 49413 type: object 49414 properties: 49415 proposal_id: 49416 type: string 49417 format: uint64 49418 description: proposal_id defines the unique id of the proposal. 49419 voter: 49420 type: string 49421 description: voter is the voter address of the proposal. 49422 option: 49423 description: >- 49424 Deprecated: Prefer to use `options` instead. This field is set in 49425 queries 49426 49427 if and only if `len(options) == 1` and that option has weight 1. 49428 In all 49429 49430 other cases, this field will default to VOTE_OPTION_UNSPECIFIED. 49431 type: string 49432 enum: 49433 - VOTE_OPTION_UNSPECIFIED 49434 - VOTE_OPTION_YES 49435 - VOTE_OPTION_ABSTAIN 49436 - VOTE_OPTION_NO 49437 - VOTE_OPTION_NO_WITH_VETO 49438 default: VOTE_OPTION_UNSPECIFIED 49439 options: 49440 type: array 49441 items: 49442 type: object 49443 properties: 49444 option: 49445 description: >- 49446 option defines the valid vote options, it must not contain 49447 duplicate vote options. 49448 type: string 49449 enum: 49450 - VOTE_OPTION_UNSPECIFIED 49451 - VOTE_OPTION_YES 49452 - VOTE_OPTION_ABSTAIN 49453 - VOTE_OPTION_NO 49454 - VOTE_OPTION_NO_WITH_VETO 49455 default: VOTE_OPTION_UNSPECIFIED 49456 weight: 49457 type: string 49458 description: weight is the vote weight associated with the vote option. 49459 description: |- 49460 WeightedVoteOption defines a unit of vote for vote split. 49461 49462 Since: cosmos-sdk 0.43 49463 description: |- 49464 options is the weighted vote options. 49465 49466 Since: cosmos-sdk 0.43 49467 description: |- 49468 Vote defines a vote on a governance proposal. 49469 A Vote consists of a proposal ID, the voter, and the vote option. 49470 description: QueryVoteResponse is the response type for the Query/Vote RPC method. 49471 cosmos.gov.v1beta1.QueryVotesResponse: 49472 type: object 49473 properties: 49474 votes: 49475 type: array 49476 items: 49477 type: object 49478 properties: 49479 proposal_id: 49480 type: string 49481 format: uint64 49482 description: proposal_id defines the unique id of the proposal. 49483 voter: 49484 type: string 49485 description: voter is the voter address of the proposal. 49486 option: 49487 description: >- 49488 Deprecated: Prefer to use `options` instead. This field is set 49489 in queries 49490 49491 if and only if `len(options) == 1` and that option has weight 1. 49492 In all 49493 49494 other cases, this field will default to VOTE_OPTION_UNSPECIFIED. 49495 type: string 49496 enum: 49497 - VOTE_OPTION_UNSPECIFIED 49498 - VOTE_OPTION_YES 49499 - VOTE_OPTION_ABSTAIN 49500 - VOTE_OPTION_NO 49501 - VOTE_OPTION_NO_WITH_VETO 49502 default: VOTE_OPTION_UNSPECIFIED 49503 options: 49504 type: array 49505 items: 49506 type: object 49507 properties: 49508 option: 49509 description: >- 49510 option defines the valid vote options, it must not contain 49511 duplicate vote options. 49512 type: string 49513 enum: 49514 - VOTE_OPTION_UNSPECIFIED 49515 - VOTE_OPTION_YES 49516 - VOTE_OPTION_ABSTAIN 49517 - VOTE_OPTION_NO 49518 - VOTE_OPTION_NO_WITH_VETO 49519 default: VOTE_OPTION_UNSPECIFIED 49520 weight: 49521 type: string 49522 description: weight is the vote weight associated with the vote option. 49523 description: |- 49524 WeightedVoteOption defines a unit of vote for vote split. 49525 49526 Since: cosmos-sdk 0.43 49527 description: |- 49528 options is the weighted vote options. 49529 49530 Since: cosmos-sdk 0.43 49531 description: |- 49532 Vote defines a vote on a governance proposal. 49533 A Vote consists of a proposal ID, the voter, and the vote option. 49534 description: votes defines the queried votes. 49535 pagination: 49536 description: pagination defines the pagination in the response. 49537 type: object 49538 properties: 49539 next_key: 49540 type: string 49541 format: byte 49542 description: |- 49543 next_key is the key to be passed to PageRequest.key to 49544 query the next page most efficiently. It will be empty if 49545 there are no more results. 49546 total: 49547 type: string 49548 format: uint64 49549 title: >- 49550 total is total number of results available if 49551 PageRequest.count_total 49552 49553 was set, its value is undefined otherwise 49554 description: QueryVotesResponse is the response type for the Query/Votes RPC method. 49555 cosmos.gov.v1beta1.TallyParams: 49556 type: object 49557 properties: 49558 quorum: 49559 type: string 49560 format: byte 49561 description: |- 49562 Minimum percentage of total stake needed to vote for a result to be 49563 considered valid. 49564 threshold: 49565 type: string 49566 format: byte 49567 description: >- 49568 Minimum proportion of Yes votes for proposal to pass. Default value: 49569 0.5. 49570 veto_threshold: 49571 type: string 49572 format: byte 49573 description: |- 49574 Minimum value of Veto votes to Total votes ratio for proposal to be 49575 vetoed. Default value: 1/3. 49576 description: TallyParams defines the params for tallying votes on governance proposals. 49577 cosmos.gov.v1beta1.TallyResult: 49578 type: object 49579 properties: 49580 'yes': 49581 type: string 49582 description: yes is the number of yes votes on a proposal. 49583 abstain: 49584 type: string 49585 description: abstain is the number of abstain votes on a proposal. 49586 'no': 49587 type: string 49588 description: no is the number of no votes on a proposal. 49589 no_with_veto: 49590 type: string 49591 description: no_with_veto is the number of no with veto votes on a proposal. 49592 description: TallyResult defines a standard tally for a governance proposal. 49593 cosmos.gov.v1beta1.Vote: 49594 type: object 49595 properties: 49596 proposal_id: 49597 type: string 49598 format: uint64 49599 description: proposal_id defines the unique id of the proposal. 49600 voter: 49601 type: string 49602 description: voter is the voter address of the proposal. 49603 option: 49604 description: >- 49605 Deprecated: Prefer to use `options` instead. This field is set in 49606 queries 49607 49608 if and only if `len(options) == 1` and that option has weight 1. In 49609 all 49610 49611 other cases, this field will default to VOTE_OPTION_UNSPECIFIED. 49612 type: string 49613 enum: 49614 - VOTE_OPTION_UNSPECIFIED 49615 - VOTE_OPTION_YES 49616 - VOTE_OPTION_ABSTAIN 49617 - VOTE_OPTION_NO 49618 - VOTE_OPTION_NO_WITH_VETO 49619 default: VOTE_OPTION_UNSPECIFIED 49620 options: 49621 type: array 49622 items: 49623 type: object 49624 properties: 49625 option: 49626 description: >- 49627 option defines the valid vote options, it must not contain 49628 duplicate vote options. 49629 type: string 49630 enum: 49631 - VOTE_OPTION_UNSPECIFIED 49632 - VOTE_OPTION_YES 49633 - VOTE_OPTION_ABSTAIN 49634 - VOTE_OPTION_NO 49635 - VOTE_OPTION_NO_WITH_VETO 49636 default: VOTE_OPTION_UNSPECIFIED 49637 weight: 49638 type: string 49639 description: weight is the vote weight associated with the vote option. 49640 description: |- 49641 WeightedVoteOption defines a unit of vote for vote split. 49642 49643 Since: cosmos-sdk 0.43 49644 description: |- 49645 options is the weighted vote options. 49646 49647 Since: cosmos-sdk 0.43 49648 description: |- 49649 Vote defines a vote on a governance proposal. 49650 A Vote consists of a proposal ID, the voter, and the vote option. 49651 cosmos.gov.v1beta1.VoteOption: 49652 type: string 49653 enum: 49654 - VOTE_OPTION_UNSPECIFIED 49655 - VOTE_OPTION_YES 49656 - VOTE_OPTION_ABSTAIN 49657 - VOTE_OPTION_NO 49658 - VOTE_OPTION_NO_WITH_VETO 49659 default: VOTE_OPTION_UNSPECIFIED 49660 description: >- 49661 VoteOption enumerates the valid vote options for a given governance 49662 proposal. 49663 49664 - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. 49665 - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. 49666 - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. 49667 - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. 49668 - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. 49669 cosmos.gov.v1beta1.VotingParams: 49670 type: object 49671 properties: 49672 voting_period: 49673 type: string 49674 description: Duration of the voting period. 49675 description: VotingParams defines the params for voting on governance proposals. 49676 cosmos.gov.v1beta1.WeightedVoteOption: 49677 type: object 49678 properties: 49679 option: 49680 description: >- 49681 option defines the valid vote options, it must not contain duplicate 49682 vote options. 49683 type: string 49684 enum: 49685 - VOTE_OPTION_UNSPECIFIED 49686 - VOTE_OPTION_YES 49687 - VOTE_OPTION_ABSTAIN 49688 - VOTE_OPTION_NO 49689 - VOTE_OPTION_NO_WITH_VETO 49690 default: VOTE_OPTION_UNSPECIFIED 49691 weight: 49692 type: string 49693 description: weight is the vote weight associated with the vote option. 49694 description: |- 49695 WeightedVoteOption defines a unit of vote for vote split. 49696 49697 Since: cosmos-sdk 0.43 49698 cosmos.gov.v1.Deposit: 49699 type: object 49700 properties: 49701 proposal_id: 49702 type: string 49703 format: uint64 49704 description: proposal_id defines the unique id of the proposal. 49705 depositor: 49706 type: string 49707 description: depositor defines the deposit addresses from the proposals. 49708 amount: 49709 type: array 49710 items: 49711 type: object 49712 properties: 49713 denom: 49714 type: string 49715 amount: 49716 type: string 49717 description: |- 49718 Coin defines a token with a denomination and an amount. 49719 49720 NOTE: The amount field is an Int which implements the custom method 49721 signatures required by gogoproto. 49722 description: amount to be deposited by depositor. 49723 description: |- 49724 Deposit defines an amount deposited by an account address to an active 49725 proposal. 49726 cosmos.gov.v1.DepositParams: 49727 type: object 49728 properties: 49729 min_deposit: 49730 type: array 49731 items: 49732 type: object 49733 properties: 49734 denom: 49735 type: string 49736 amount: 49737 type: string 49738 description: |- 49739 Coin defines a token with a denomination and an amount. 49740 49741 NOTE: The amount field is an Int which implements the custom method 49742 signatures required by gogoproto. 49743 description: Minimum deposit for a proposal to enter voting period. 49744 max_deposit_period: 49745 type: string 49746 description: >- 49747 Maximum period for Atom holders to deposit on a proposal. Initial 49748 value: 2 49749 49750 months. 49751 description: DepositParams defines the params for deposits on governance proposals. 49752 cosmos.gov.v1.Params: 49753 type: object 49754 properties: 49755 min_deposit: 49756 type: array 49757 items: 49758 type: object 49759 properties: 49760 denom: 49761 type: string 49762 amount: 49763 type: string 49764 description: |- 49765 Coin defines a token with a denomination and an amount. 49766 49767 NOTE: The amount field is an Int which implements the custom method 49768 signatures required by gogoproto. 49769 description: Minimum deposit for a proposal to enter voting period. 49770 max_deposit_period: 49771 type: string 49772 description: >- 49773 Maximum period for Atom holders to deposit on a proposal. Initial 49774 value: 2 49775 49776 months. 49777 voting_period: 49778 type: string 49779 description: Duration of the voting period. 49780 quorum: 49781 type: string 49782 description: |- 49783 Minimum percentage of total stake needed to vote for a result to be 49784 considered valid. 49785 threshold: 49786 type: string 49787 description: >- 49788 Minimum proportion of Yes votes for proposal to pass. Default value: 49789 0.5. 49790 veto_threshold: 49791 type: string 49792 description: |- 49793 Minimum value of Veto votes to Total votes ratio for proposal to be 49794 vetoed. Default value: 1/3. 49795 min_initial_deposit_ratio: 49796 type: string 49797 description: >- 49798 The ratio representing the proportion of the deposit value that must 49799 be paid at proposal submission. 49800 proposal_cancel_ratio: 49801 type: string 49802 description: >- 49803 The cancel ratio which will not be returned back to the depositors 49804 when a proposal is cancelled. 49805 49806 49807 Since: cosmos-sdk 0.50 49808 proposal_cancel_dest: 49809 type: string 49810 description: >- 49811 The address which will receive (proposal_cancel_ratio * deposit) 49812 proposal deposits. 49813 49814 If empty, the (proposal_cancel_ratio * deposit) proposal deposits will 49815 be burned. 49816 49817 49818 Since: cosmos-sdk 0.50 49819 expedited_voting_period: 49820 type: string 49821 description: |- 49822 Duration of the voting period of an expedited proposal. 49823 49824 Since: cosmos-sdk 0.50 49825 expedited_threshold: 49826 type: string 49827 description: >- 49828 Minimum proportion of Yes votes for proposal to pass. Default value: 49829 0.67. 49830 49831 49832 Since: cosmos-sdk 0.50 49833 expedited_min_deposit: 49834 type: array 49835 items: 49836 type: object 49837 properties: 49838 denom: 49839 type: string 49840 amount: 49841 type: string 49842 description: |- 49843 Coin defines a token with a denomination and an amount. 49844 49845 NOTE: The amount field is an Int which implements the custom method 49846 signatures required by gogoproto. 49847 description: Minimum expedited deposit for a proposal to enter voting period. 49848 burn_vote_quorum: 49849 type: boolean 49850 title: burn deposits if a proposal does not meet quorum 49851 burn_proposal_deposit_prevote: 49852 type: boolean 49853 title: burn deposits if the proposal does not enter voting period 49854 burn_vote_veto: 49855 type: boolean 49856 title: burn deposits if quorum with vote type no_veto is met 49857 min_deposit_ratio: 49858 type: string 49859 description: >- 49860 The ratio representing the proportion of the deposit value minimum 49861 that must be met when making a deposit. 49862 49863 Default value: 0.01. Meaning that for a chain with a min_deposit of 49864 100stake, a deposit of 1stake would be 49865 49866 required. 49867 49868 49869 Since: cosmos-sdk 0.50 49870 description: |- 49871 Params defines the parameters for the x/gov module. 49872 49873 Since: cosmos-sdk 0.47 49874 cosmos.gov.v1.Proposal: 49875 type: object 49876 properties: 49877 id: 49878 type: string 49879 format: uint64 49880 description: id defines the unique id of the proposal. 49881 messages: 49882 type: array 49883 items: 49884 type: object 49885 properties: 49886 type_url: 49887 type: string 49888 description: >- 49889 A URL/resource name that uniquely identifies the type of the 49890 serialized 49891 49892 protocol buffer message. This string must contain at least 49893 49894 one "/" character. The last segment of the URL's path must 49895 represent 49896 49897 the fully qualified name of the type (as in 49898 49899 `path/google.protobuf.Duration`). The name should be in a 49900 canonical form 49901 49902 (e.g., leading "." is not accepted). 49903 49904 49905 In practice, teams usually precompile into the binary all types 49906 that they 49907 49908 expect it to use in the context of Any. However, for URLs which 49909 use the 49910 49911 scheme `http`, `https`, or no scheme, one can optionally set up 49912 a type 49913 49914 server that maps type URLs to message definitions as follows: 49915 49916 49917 * If no scheme is provided, `https` is assumed. 49918 49919 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 49920 value in binary format, or produce an error. 49921 * Applications are allowed to cache lookup results based on the 49922 URL, or have them precompiled into a binary to avoid any 49923 lookup. Therefore, binary compatibility needs to be preserved 49924 on changes to types. (Use versioned type names to manage 49925 breaking changes.) 49926 49927 Note: this functionality is not currently available in the 49928 official 49929 49930 protobuf release, and it is not used for type URLs beginning 49931 with 49932 49933 type.googleapis.com. 49934 49935 49936 Schemes other than `http`, `https` (or the empty scheme) might 49937 be 49938 49939 used with implementation specific semantics. 49940 value: 49941 type: string 49942 format: byte 49943 description: >- 49944 Must be a valid serialized protocol buffer of the above 49945 specified type. 49946 description: >- 49947 `Any` contains an arbitrary serialized protocol buffer message along 49948 with a 49949 49950 URL that describes the type of the serialized message. 49951 49952 49953 Protobuf library provides support to pack/unpack Any values in the 49954 form 49955 49956 of utility functions or additional generated methods of the Any 49957 type. 49958 49959 49960 Example 1: Pack and unpack a message in C++. 49961 49962 Foo foo = ...; 49963 Any any; 49964 any.PackFrom(foo); 49965 ... 49966 if (any.UnpackTo(&foo)) { 49967 ... 49968 } 49969 49970 Example 2: Pack and unpack a message in Java. 49971 49972 Foo foo = ...; 49973 Any any = Any.pack(foo); 49974 ... 49975 if (any.is(Foo.class)) { 49976 foo = any.unpack(Foo.class); 49977 } 49978 // or ... 49979 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 49980 foo = any.unpack(Foo.getDefaultInstance()); 49981 } 49982 49983 Example 3: Pack and unpack a message in Python. 49984 49985 foo = Foo(...) 49986 any = Any() 49987 any.Pack(foo) 49988 ... 49989 if any.Is(Foo.DESCRIPTOR): 49990 any.Unpack(foo) 49991 ... 49992 49993 Example 4: Pack and unpack a message in Go 49994 49995 foo := &pb.Foo{...} 49996 any, err := anypb.New(foo) 49997 if err != nil { 49998 ... 49999 } 50000 ... 50001 foo := &pb.Foo{} 50002 if err := any.UnmarshalTo(foo); err != nil { 50003 ... 50004 } 50005 50006 The pack methods provided by protobuf library will by default use 50007 50008 'type.googleapis.com/full.type.name' as the type URL and the unpack 50009 50010 methods only use the fully qualified type name after the last '/' 50011 50012 in the type URL, for example "foo.bar.com/x/y.z" will yield type 50013 50014 name "y.z". 50015 50016 50017 JSON 50018 50019 50020 The JSON representation of an `Any` value uses the regular 50021 50022 representation of the deserialized, embedded message, with an 50023 50024 additional field `@type` which contains the type URL. Example: 50025 50026 package google.profile; 50027 message Person { 50028 string first_name = 1; 50029 string last_name = 2; 50030 } 50031 50032 { 50033 "@type": "type.googleapis.com/google.profile.Person", 50034 "firstName": <string>, 50035 "lastName": <string> 50036 } 50037 50038 If the embedded message type is well-known and has a custom JSON 50039 50040 representation, that representation will be embedded adding a field 50041 50042 `value` which holds the custom JSON in addition to the `@type` 50043 50044 field. Example (for message [google.protobuf.Duration][]): 50045 50046 { 50047 "@type": "type.googleapis.com/google.protobuf.Duration", 50048 "value": "1.212s" 50049 } 50050 description: >- 50051 messages are the arbitrary messages to be executed if the proposal 50052 passes. 50053 status: 50054 description: status defines the proposal status. 50055 type: string 50056 enum: 50057 - PROPOSAL_STATUS_UNSPECIFIED 50058 - PROPOSAL_STATUS_DEPOSIT_PERIOD 50059 - PROPOSAL_STATUS_VOTING_PERIOD 50060 - PROPOSAL_STATUS_PASSED 50061 - PROPOSAL_STATUS_REJECTED 50062 - PROPOSAL_STATUS_FAILED 50063 default: PROPOSAL_STATUS_UNSPECIFIED 50064 final_tally_result: 50065 description: |- 50066 final_tally_result is the final tally result of the proposal. When 50067 querying a proposal via gRPC, this field is not populated until the 50068 proposal's voting period has ended. 50069 type: object 50070 properties: 50071 yes_count: 50072 type: string 50073 description: yes_count is the number of yes votes on a proposal. 50074 abstain_count: 50075 type: string 50076 description: abstain_count is the number of abstain votes on a proposal. 50077 no_count: 50078 type: string 50079 description: no_count is the number of no votes on a proposal. 50080 no_with_veto_count: 50081 type: string 50082 description: >- 50083 no_with_veto_count is the number of no with veto votes on a 50084 proposal. 50085 submit_time: 50086 type: string 50087 format: date-time 50088 description: submit_time is the time of proposal submission. 50089 deposit_end_time: 50090 type: string 50091 format: date-time 50092 description: deposit_end_time is the end time for deposition. 50093 total_deposit: 50094 type: array 50095 items: 50096 type: object 50097 properties: 50098 denom: 50099 type: string 50100 amount: 50101 type: string 50102 description: |- 50103 Coin defines a token with a denomination and an amount. 50104 50105 NOTE: The amount field is an Int which implements the custom method 50106 signatures required by gogoproto. 50107 description: total_deposit is the total deposit on the proposal. 50108 voting_start_time: 50109 type: string 50110 format: date-time 50111 description: voting_start_time is the starting time to vote on a proposal. 50112 voting_end_time: 50113 type: string 50114 format: date-time 50115 description: voting_end_time is the end time of voting on a proposal. 50116 metadata: 50117 type: string 50118 title: |- 50119 metadata is any arbitrary metadata attached to the proposal. 50120 the recommended format of the metadata is to be found here: 50121 https://docs.cosmos.network/v0.47/modules/gov#proposal-3 50122 title: 50123 type: string 50124 description: 'Since: cosmos-sdk 0.47' 50125 title: title is the title of the proposal 50126 summary: 50127 type: string 50128 description: 'Since: cosmos-sdk 0.47' 50129 title: summary is a short summary of the proposal 50130 proposer: 50131 type: string 50132 description: 'Since: cosmos-sdk 0.47' 50133 title: proposer is the address of the proposal sumbitter 50134 expedited: 50135 type: boolean 50136 description: 'Since: cosmos-sdk 0.50' 50137 title: expedited defines if the proposal is expedited 50138 failed_reason: 50139 type: string 50140 description: 'Since: cosmos-sdk 0.50' 50141 title: failed_reason defines the reason why the proposal failed 50142 description: Proposal defines the core field members of a governance proposal. 50143 cosmos.gov.v1.ProposalStatus: 50144 type: string 50145 enum: 50146 - PROPOSAL_STATUS_UNSPECIFIED 50147 - PROPOSAL_STATUS_DEPOSIT_PERIOD 50148 - PROPOSAL_STATUS_VOTING_PERIOD 50149 - PROPOSAL_STATUS_PASSED 50150 - PROPOSAL_STATUS_REJECTED 50151 - PROPOSAL_STATUS_FAILED 50152 default: PROPOSAL_STATUS_UNSPECIFIED 50153 description: |- 50154 ProposalStatus enumerates the valid statuses of a proposal. 50155 50156 - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. 50157 - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit 50158 period. 50159 - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting 50160 period. 50161 - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has 50162 passed. 50163 - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has 50164 been rejected. 50165 - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has 50166 failed. 50167 cosmos.gov.v1.QueryConstitutionResponse: 50168 type: object 50169 properties: 50170 constitution: 50171 type: string 50172 title: >- 50173 QueryConstitutionResponse is the response type for the Query/Constitution 50174 RPC method 50175 cosmos.gov.v1.QueryDepositResponse: 50176 type: object 50177 properties: 50178 deposit: 50179 type: object 50180 properties: 50181 proposal_id: 50182 type: string 50183 format: uint64 50184 description: proposal_id defines the unique id of the proposal. 50185 depositor: 50186 type: string 50187 description: depositor defines the deposit addresses from the proposals. 50188 amount: 50189 type: array 50190 items: 50191 type: object 50192 properties: 50193 denom: 50194 type: string 50195 amount: 50196 type: string 50197 description: >- 50198 Coin defines a token with a denomination and an amount. 50199 50200 50201 NOTE: The amount field is an Int which implements the custom 50202 method 50203 50204 signatures required by gogoproto. 50205 description: amount to be deposited by depositor. 50206 description: |- 50207 Deposit defines an amount deposited by an account address to an active 50208 proposal. 50209 description: >- 50210 QueryDepositResponse is the response type for the Query/Deposit RPC 50211 method. 50212 cosmos.gov.v1.QueryDepositsResponse: 50213 type: object 50214 properties: 50215 deposits: 50216 type: array 50217 items: 50218 type: object 50219 properties: 50220 proposal_id: 50221 type: string 50222 format: uint64 50223 description: proposal_id defines the unique id of the proposal. 50224 depositor: 50225 type: string 50226 description: depositor defines the deposit addresses from the proposals. 50227 amount: 50228 type: array 50229 items: 50230 type: object 50231 properties: 50232 denom: 50233 type: string 50234 amount: 50235 type: string 50236 description: >- 50237 Coin defines a token with a denomination and an amount. 50238 50239 50240 NOTE: The amount field is an Int which implements the custom 50241 method 50242 50243 signatures required by gogoproto. 50244 description: amount to be deposited by depositor. 50245 description: >- 50246 Deposit defines an amount deposited by an account address to an 50247 active 50248 50249 proposal. 50250 description: deposits defines the requested deposits. 50251 pagination: 50252 description: pagination defines the pagination in the response. 50253 type: object 50254 properties: 50255 next_key: 50256 type: string 50257 format: byte 50258 description: |- 50259 next_key is the key to be passed to PageRequest.key to 50260 query the next page most efficiently. It will be empty if 50261 there are no more results. 50262 total: 50263 type: string 50264 format: uint64 50265 title: >- 50266 total is total number of results available if 50267 PageRequest.count_total 50268 50269 was set, its value is undefined otherwise 50270 description: >- 50271 QueryDepositsResponse is the response type for the Query/Deposits RPC 50272 method. 50273 cosmos.gov.v1.QueryParamsResponse: 50274 type: object 50275 properties: 50276 voting_params: 50277 description: |- 50278 Deprecated: Prefer to use `params` instead. 50279 voting_params defines the parameters related to voting. 50280 type: object 50281 properties: 50282 voting_period: 50283 type: string 50284 description: Duration of the voting period. 50285 deposit_params: 50286 description: |- 50287 Deprecated: Prefer to use `params` instead. 50288 deposit_params defines the parameters related to deposit. 50289 type: object 50290 properties: 50291 min_deposit: 50292 type: array 50293 items: 50294 type: object 50295 properties: 50296 denom: 50297 type: string 50298 amount: 50299 type: string 50300 description: >- 50301 Coin defines a token with a denomination and an amount. 50302 50303 50304 NOTE: The amount field is an Int which implements the custom 50305 method 50306 50307 signatures required by gogoproto. 50308 description: Minimum deposit for a proposal to enter voting period. 50309 max_deposit_period: 50310 type: string 50311 description: >- 50312 Maximum period for Atom holders to deposit on a proposal. Initial 50313 value: 2 50314 50315 months. 50316 tally_params: 50317 description: |- 50318 Deprecated: Prefer to use `params` instead. 50319 tally_params defines the parameters related to tally. 50320 type: object 50321 properties: 50322 quorum: 50323 type: string 50324 description: >- 50325 Minimum percentage of total stake needed to vote for a result to 50326 be 50327 50328 considered valid. 50329 threshold: 50330 type: string 50331 description: >- 50332 Minimum proportion of Yes votes for proposal to pass. Default 50333 value: 0.5. 50334 veto_threshold: 50335 type: string 50336 description: >- 50337 Minimum value of Veto votes to Total votes ratio for proposal to 50338 be 50339 50340 vetoed. Default value: 1/3. 50341 params: 50342 description: |- 50343 params defines all the paramaters of x/gov module. 50344 50345 Since: cosmos-sdk 0.47 50346 type: object 50347 properties: 50348 min_deposit: 50349 type: array 50350 items: 50351 type: object 50352 properties: 50353 denom: 50354 type: string 50355 amount: 50356 type: string 50357 description: >- 50358 Coin defines a token with a denomination and an amount. 50359 50360 50361 NOTE: The amount field is an Int which implements the custom 50362 method 50363 50364 signatures required by gogoproto. 50365 description: Minimum deposit for a proposal to enter voting period. 50366 max_deposit_period: 50367 type: string 50368 description: >- 50369 Maximum period for Atom holders to deposit on a proposal. Initial 50370 value: 2 50371 50372 months. 50373 voting_period: 50374 type: string 50375 description: Duration of the voting period. 50376 quorum: 50377 type: string 50378 description: >- 50379 Minimum percentage of total stake needed to vote for a result to 50380 be 50381 considered valid. 50382 threshold: 50383 type: string 50384 description: >- 50385 Minimum proportion of Yes votes for proposal to pass. Default 50386 value: 0.5. 50387 veto_threshold: 50388 type: string 50389 description: >- 50390 Minimum value of Veto votes to Total votes ratio for proposal to 50391 be 50392 vetoed. Default value: 1/3. 50393 min_initial_deposit_ratio: 50394 type: string 50395 description: >- 50396 The ratio representing the proportion of the deposit value that 50397 must be paid at proposal submission. 50398 proposal_cancel_ratio: 50399 type: string 50400 description: >- 50401 The cancel ratio which will not be returned back to the depositors 50402 when a proposal is cancelled. 50403 50404 50405 Since: cosmos-sdk 0.50 50406 proposal_cancel_dest: 50407 type: string 50408 description: >- 50409 The address which will receive (proposal_cancel_ratio * deposit) 50410 proposal deposits. 50411 50412 If empty, the (proposal_cancel_ratio * deposit) proposal deposits 50413 will be burned. 50414 50415 50416 Since: cosmos-sdk 0.50 50417 expedited_voting_period: 50418 type: string 50419 description: |- 50420 Duration of the voting period of an expedited proposal. 50421 50422 Since: cosmos-sdk 0.50 50423 expedited_threshold: 50424 type: string 50425 description: >- 50426 Minimum proportion of Yes votes for proposal to pass. Default 50427 value: 0.67. 50428 50429 50430 Since: cosmos-sdk 0.50 50431 expedited_min_deposit: 50432 type: array 50433 items: 50434 type: object 50435 properties: 50436 denom: 50437 type: string 50438 amount: 50439 type: string 50440 description: >- 50441 Coin defines a token with a denomination and an amount. 50442 50443 50444 NOTE: The amount field is an Int which implements the custom 50445 method 50446 50447 signatures required by gogoproto. 50448 description: Minimum expedited deposit for a proposal to enter voting period. 50449 burn_vote_quorum: 50450 type: boolean 50451 title: burn deposits if a proposal does not meet quorum 50452 burn_proposal_deposit_prevote: 50453 type: boolean 50454 title: burn deposits if the proposal does not enter voting period 50455 burn_vote_veto: 50456 type: boolean 50457 title: burn deposits if quorum with vote type no_veto is met 50458 min_deposit_ratio: 50459 type: string 50460 description: >- 50461 The ratio representing the proportion of the deposit value minimum 50462 that must be met when making a deposit. 50463 50464 Default value: 0.01. Meaning that for a chain with a min_deposit 50465 of 100stake, a deposit of 1stake would be 50466 50467 required. 50468 50469 50470 Since: cosmos-sdk 0.50 50471 description: QueryParamsResponse is the response type for the Query/Params RPC method. 50472 cosmos.gov.v1.QueryProposalResponse: 50473 type: object 50474 properties: 50475 proposal: 50476 type: object 50477 properties: 50478 id: 50479 type: string 50480 format: uint64 50481 description: id defines the unique id of the proposal. 50482 messages: 50483 type: array 50484 items: 50485 type: object 50486 properties: 50487 type_url: 50488 type: string 50489 description: >- 50490 A URL/resource name that uniquely identifies the type of the 50491 serialized 50492 50493 protocol buffer message. This string must contain at least 50494 50495 one "/" character. The last segment of the URL's path must 50496 represent 50497 50498 the fully qualified name of the type (as in 50499 50500 `path/google.protobuf.Duration`). The name should be in a 50501 canonical form 50502 50503 (e.g., leading "." is not accepted). 50504 50505 50506 In practice, teams usually precompile into the binary all 50507 types that they 50508 50509 expect it to use in the context of Any. However, for URLs 50510 which use the 50511 50512 scheme `http`, `https`, or no scheme, one can optionally set 50513 up a type 50514 50515 server that maps type URLs to message definitions as 50516 follows: 50517 50518 50519 * If no scheme is provided, `https` is assumed. 50520 50521 * An HTTP GET on the URL must yield a 50522 [google.protobuf.Type][] 50523 value in binary format, or produce an error. 50524 * Applications are allowed to cache lookup results based on 50525 the 50526 URL, or have them precompiled into a binary to avoid any 50527 lookup. Therefore, binary compatibility needs to be preserved 50528 on changes to types. (Use versioned type names to manage 50529 breaking changes.) 50530 50531 Note: this functionality is not currently available in the 50532 official 50533 50534 protobuf release, and it is not used for type URLs beginning 50535 with 50536 50537 type.googleapis.com. 50538 50539 50540 Schemes other than `http`, `https` (or the empty scheme) 50541 might be 50542 50543 used with implementation specific semantics. 50544 value: 50545 type: string 50546 format: byte 50547 description: >- 50548 Must be a valid serialized protocol buffer of the above 50549 specified type. 50550 description: >- 50551 `Any` contains an arbitrary serialized protocol buffer message 50552 along with a 50553 50554 URL that describes the type of the serialized message. 50555 50556 50557 Protobuf library provides support to pack/unpack Any values in 50558 the form 50559 50560 of utility functions or additional generated methods of the Any 50561 type. 50562 50563 50564 Example 1: Pack and unpack a message in C++. 50565 50566 Foo foo = ...; 50567 Any any; 50568 any.PackFrom(foo); 50569 ... 50570 if (any.UnpackTo(&foo)) { 50571 ... 50572 } 50573 50574 Example 2: Pack and unpack a message in Java. 50575 50576 Foo foo = ...; 50577 Any any = Any.pack(foo); 50578 ... 50579 if (any.is(Foo.class)) { 50580 foo = any.unpack(Foo.class); 50581 } 50582 // or ... 50583 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 50584 foo = any.unpack(Foo.getDefaultInstance()); 50585 } 50586 50587 Example 3: Pack and unpack a message in Python. 50588 50589 foo = Foo(...) 50590 any = Any() 50591 any.Pack(foo) 50592 ... 50593 if any.Is(Foo.DESCRIPTOR): 50594 any.Unpack(foo) 50595 ... 50596 50597 Example 4: Pack and unpack a message in Go 50598 50599 foo := &pb.Foo{...} 50600 any, err := anypb.New(foo) 50601 if err != nil { 50602 ... 50603 } 50604 ... 50605 foo := &pb.Foo{} 50606 if err := any.UnmarshalTo(foo); err != nil { 50607 ... 50608 } 50609 50610 The pack methods provided by protobuf library will by default 50611 use 50612 50613 'type.googleapis.com/full.type.name' as the type URL and the 50614 unpack 50615 50616 methods only use the fully qualified type name after the last 50617 '/' 50618 50619 in the type URL, for example "foo.bar.com/x/y.z" will yield type 50620 50621 name "y.z". 50622 50623 50624 JSON 50625 50626 50627 The JSON representation of an `Any` value uses the regular 50628 50629 representation of the deserialized, embedded message, with an 50630 50631 additional field `@type` which contains the type URL. Example: 50632 50633 package google.profile; 50634 message Person { 50635 string first_name = 1; 50636 string last_name = 2; 50637 } 50638 50639 { 50640 "@type": "type.googleapis.com/google.profile.Person", 50641 "firstName": <string>, 50642 "lastName": <string> 50643 } 50644 50645 If the embedded message type is well-known and has a custom JSON 50646 50647 representation, that representation will be embedded adding a 50648 field 50649 50650 `value` which holds the custom JSON in addition to the `@type` 50651 50652 field. Example (for message [google.protobuf.Duration][]): 50653 50654 { 50655 "@type": "type.googleapis.com/google.protobuf.Duration", 50656 "value": "1.212s" 50657 } 50658 description: >- 50659 messages are the arbitrary messages to be executed if the proposal 50660 passes. 50661 status: 50662 description: status defines the proposal status. 50663 type: string 50664 enum: 50665 - PROPOSAL_STATUS_UNSPECIFIED 50666 - PROPOSAL_STATUS_DEPOSIT_PERIOD 50667 - PROPOSAL_STATUS_VOTING_PERIOD 50668 - PROPOSAL_STATUS_PASSED 50669 - PROPOSAL_STATUS_REJECTED 50670 - PROPOSAL_STATUS_FAILED 50671 default: PROPOSAL_STATUS_UNSPECIFIED 50672 final_tally_result: 50673 description: >- 50674 final_tally_result is the final tally result of the proposal. When 50675 50676 querying a proposal via gRPC, this field is not populated until 50677 the 50678 50679 proposal's voting period has ended. 50680 type: object 50681 properties: 50682 yes_count: 50683 type: string 50684 description: yes_count is the number of yes votes on a proposal. 50685 abstain_count: 50686 type: string 50687 description: abstain_count is the number of abstain votes on a proposal. 50688 no_count: 50689 type: string 50690 description: no_count is the number of no votes on a proposal. 50691 no_with_veto_count: 50692 type: string 50693 description: >- 50694 no_with_veto_count is the number of no with veto votes on a 50695 proposal. 50696 submit_time: 50697 type: string 50698 format: date-time 50699 description: submit_time is the time of proposal submission. 50700 deposit_end_time: 50701 type: string 50702 format: date-time 50703 description: deposit_end_time is the end time for deposition. 50704 total_deposit: 50705 type: array 50706 items: 50707 type: object 50708 properties: 50709 denom: 50710 type: string 50711 amount: 50712 type: string 50713 description: >- 50714 Coin defines a token with a denomination and an amount. 50715 50716 50717 NOTE: The amount field is an Int which implements the custom 50718 method 50719 50720 signatures required by gogoproto. 50721 description: total_deposit is the total deposit on the proposal. 50722 voting_start_time: 50723 type: string 50724 format: date-time 50725 description: voting_start_time is the starting time to vote on a proposal. 50726 voting_end_time: 50727 type: string 50728 format: date-time 50729 description: voting_end_time is the end time of voting on a proposal. 50730 metadata: 50731 type: string 50732 title: |- 50733 metadata is any arbitrary metadata attached to the proposal. 50734 the recommended format of the metadata is to be found here: 50735 https://docs.cosmos.network/v0.47/modules/gov#proposal-3 50736 title: 50737 type: string 50738 description: 'Since: cosmos-sdk 0.47' 50739 title: title is the title of the proposal 50740 summary: 50741 type: string 50742 description: 'Since: cosmos-sdk 0.47' 50743 title: summary is a short summary of the proposal 50744 proposer: 50745 type: string 50746 description: 'Since: cosmos-sdk 0.47' 50747 title: proposer is the address of the proposal sumbitter 50748 expedited: 50749 type: boolean 50750 description: 'Since: cosmos-sdk 0.50' 50751 title: expedited defines if the proposal is expedited 50752 failed_reason: 50753 type: string 50754 description: 'Since: cosmos-sdk 0.50' 50755 title: failed_reason defines the reason why the proposal failed 50756 description: Proposal defines the core field members of a governance proposal. 50757 description: >- 50758 QueryProposalResponse is the response type for the Query/Proposal RPC 50759 method. 50760 cosmos.gov.v1.QueryProposalsResponse: 50761 type: object 50762 properties: 50763 proposals: 50764 type: array 50765 items: 50766 type: object 50767 properties: 50768 id: 50769 type: string 50770 format: uint64 50771 description: id defines the unique id of the proposal. 50772 messages: 50773 type: array 50774 items: 50775 type: object 50776 properties: 50777 type_url: 50778 type: string 50779 description: >- 50780 A URL/resource name that uniquely identifies the type of 50781 the serialized 50782 50783 protocol buffer message. This string must contain at least 50784 50785 one "/" character. The last segment of the URL's path must 50786 represent 50787 50788 the fully qualified name of the type (as in 50789 50790 `path/google.protobuf.Duration`). The name should be in a 50791 canonical form 50792 50793 (e.g., leading "." is not accepted). 50794 50795 50796 In practice, teams usually precompile into the binary all 50797 types that they 50798 50799 expect it to use in the context of Any. However, for URLs 50800 which use the 50801 50802 scheme `http`, `https`, or no scheme, one can optionally 50803 set up a type 50804 50805 server that maps type URLs to message definitions as 50806 follows: 50807 50808 50809 * If no scheme is provided, `https` is assumed. 50810 50811 * An HTTP GET on the URL must yield a 50812 [google.protobuf.Type][] 50813 value in binary format, or produce an error. 50814 * Applications are allowed to cache lookup results based 50815 on the 50816 URL, or have them precompiled into a binary to avoid any 50817 lookup. Therefore, binary compatibility needs to be preserved 50818 on changes to types. (Use versioned type names to manage 50819 breaking changes.) 50820 50821 Note: this functionality is not currently available in the 50822 official 50823 50824 protobuf release, and it is not used for type URLs 50825 beginning with 50826 50827 type.googleapis.com. 50828 50829 50830 Schemes other than `http`, `https` (or the empty scheme) 50831 might be 50832 50833 used with implementation specific semantics. 50834 value: 50835 type: string 50836 format: byte 50837 description: >- 50838 Must be a valid serialized protocol buffer of the above 50839 specified type. 50840 description: >- 50841 `Any` contains an arbitrary serialized protocol buffer message 50842 along with a 50843 50844 URL that describes the type of the serialized message. 50845 50846 50847 Protobuf library provides support to pack/unpack Any values in 50848 the form 50849 50850 of utility functions or additional generated methods of the 50851 Any type. 50852 50853 50854 Example 1: Pack and unpack a message in C++. 50855 50856 Foo foo = ...; 50857 Any any; 50858 any.PackFrom(foo); 50859 ... 50860 if (any.UnpackTo(&foo)) { 50861 ... 50862 } 50863 50864 Example 2: Pack and unpack a message in Java. 50865 50866 Foo foo = ...; 50867 Any any = Any.pack(foo); 50868 ... 50869 if (any.is(Foo.class)) { 50870 foo = any.unpack(Foo.class); 50871 } 50872 // or ... 50873 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 50874 foo = any.unpack(Foo.getDefaultInstance()); 50875 } 50876 50877 Example 3: Pack and unpack a message in Python. 50878 50879 foo = Foo(...) 50880 any = Any() 50881 any.Pack(foo) 50882 ... 50883 if any.Is(Foo.DESCRIPTOR): 50884 any.Unpack(foo) 50885 ... 50886 50887 Example 4: Pack and unpack a message in Go 50888 50889 foo := &pb.Foo{...} 50890 any, err := anypb.New(foo) 50891 if err != nil { 50892 ... 50893 } 50894 ... 50895 foo := &pb.Foo{} 50896 if err := any.UnmarshalTo(foo); err != nil { 50897 ... 50898 } 50899 50900 The pack methods provided by protobuf library will by default 50901 use 50902 50903 'type.googleapis.com/full.type.name' as the type URL and the 50904 unpack 50905 50906 methods only use the fully qualified type name after the last 50907 '/' 50908 50909 in the type URL, for example "foo.bar.com/x/y.z" will yield 50910 type 50911 50912 name "y.z". 50913 50914 50915 JSON 50916 50917 50918 The JSON representation of an `Any` value uses the regular 50919 50920 representation of the deserialized, embedded message, with an 50921 50922 additional field `@type` which contains the type URL. Example: 50923 50924 package google.profile; 50925 message Person { 50926 string first_name = 1; 50927 string last_name = 2; 50928 } 50929 50930 { 50931 "@type": "type.googleapis.com/google.profile.Person", 50932 "firstName": <string>, 50933 "lastName": <string> 50934 } 50935 50936 If the embedded message type is well-known and has a custom 50937 JSON 50938 50939 representation, that representation will be embedded adding a 50940 field 50941 50942 `value` which holds the custom JSON in addition to the `@type` 50943 50944 field. Example (for message [google.protobuf.Duration][]): 50945 50946 { 50947 "@type": "type.googleapis.com/google.protobuf.Duration", 50948 "value": "1.212s" 50949 } 50950 description: >- 50951 messages are the arbitrary messages to be executed if the 50952 proposal passes. 50953 status: 50954 description: status defines the proposal status. 50955 type: string 50956 enum: 50957 - PROPOSAL_STATUS_UNSPECIFIED 50958 - PROPOSAL_STATUS_DEPOSIT_PERIOD 50959 - PROPOSAL_STATUS_VOTING_PERIOD 50960 - PROPOSAL_STATUS_PASSED 50961 - PROPOSAL_STATUS_REJECTED 50962 - PROPOSAL_STATUS_FAILED 50963 default: PROPOSAL_STATUS_UNSPECIFIED 50964 final_tally_result: 50965 description: >- 50966 final_tally_result is the final tally result of the proposal. 50967 When 50968 50969 querying a proposal via gRPC, this field is not populated until 50970 the 50971 50972 proposal's voting period has ended. 50973 type: object 50974 properties: 50975 yes_count: 50976 type: string 50977 description: yes_count is the number of yes votes on a proposal. 50978 abstain_count: 50979 type: string 50980 description: abstain_count is the number of abstain votes on a proposal. 50981 no_count: 50982 type: string 50983 description: no_count is the number of no votes on a proposal. 50984 no_with_veto_count: 50985 type: string 50986 description: >- 50987 no_with_veto_count is the number of no with veto votes on a 50988 proposal. 50989 submit_time: 50990 type: string 50991 format: date-time 50992 description: submit_time is the time of proposal submission. 50993 deposit_end_time: 50994 type: string 50995 format: date-time 50996 description: deposit_end_time is the end time for deposition. 50997 total_deposit: 50998 type: array 50999 items: 51000 type: object 51001 properties: 51002 denom: 51003 type: string 51004 amount: 51005 type: string 51006 description: >- 51007 Coin defines a token with a denomination and an amount. 51008 51009 51010 NOTE: The amount field is an Int which implements the custom 51011 method 51012 51013 signatures required by gogoproto. 51014 description: total_deposit is the total deposit on the proposal. 51015 voting_start_time: 51016 type: string 51017 format: date-time 51018 description: voting_start_time is the starting time to vote on a proposal. 51019 voting_end_time: 51020 type: string 51021 format: date-time 51022 description: voting_end_time is the end time of voting on a proposal. 51023 metadata: 51024 type: string 51025 title: |- 51026 metadata is any arbitrary metadata attached to the proposal. 51027 the recommended format of the metadata is to be found here: 51028 https://docs.cosmos.network/v0.47/modules/gov#proposal-3 51029 title: 51030 type: string 51031 description: 'Since: cosmos-sdk 0.47' 51032 title: title is the title of the proposal 51033 summary: 51034 type: string 51035 description: 'Since: cosmos-sdk 0.47' 51036 title: summary is a short summary of the proposal 51037 proposer: 51038 type: string 51039 description: 'Since: cosmos-sdk 0.47' 51040 title: proposer is the address of the proposal sumbitter 51041 expedited: 51042 type: boolean 51043 description: 'Since: cosmos-sdk 0.50' 51044 title: expedited defines if the proposal is expedited 51045 failed_reason: 51046 type: string 51047 description: 'Since: cosmos-sdk 0.50' 51048 title: failed_reason defines the reason why the proposal failed 51049 description: Proposal defines the core field members of a governance proposal. 51050 description: proposals defines all the requested governance proposals. 51051 pagination: 51052 description: pagination defines the pagination in the response. 51053 type: object 51054 properties: 51055 next_key: 51056 type: string 51057 format: byte 51058 description: |- 51059 next_key is the key to be passed to PageRequest.key to 51060 query the next page most efficiently. It will be empty if 51061 there are no more results. 51062 total: 51063 type: string 51064 format: uint64 51065 title: >- 51066 total is total number of results available if 51067 PageRequest.count_total 51068 51069 was set, its value is undefined otherwise 51070 description: |- 51071 QueryProposalsResponse is the response type for the Query/Proposals RPC 51072 method. 51073 cosmos.gov.v1.QueryTallyResultResponse: 51074 type: object 51075 properties: 51076 tally: 51077 description: tally defines the requested tally. 51078 type: object 51079 properties: 51080 yes_count: 51081 type: string 51082 description: yes_count is the number of yes votes on a proposal. 51083 abstain_count: 51084 type: string 51085 description: abstain_count is the number of abstain votes on a proposal. 51086 no_count: 51087 type: string 51088 description: no_count is the number of no votes on a proposal. 51089 no_with_veto_count: 51090 type: string 51091 description: >- 51092 no_with_veto_count is the number of no with veto votes on a 51093 proposal. 51094 description: >- 51095 QueryTallyResultResponse is the response type for the Query/Tally RPC 51096 method. 51097 cosmos.gov.v1.QueryVoteResponse: 51098 type: object 51099 properties: 51100 vote: 51101 type: object 51102 properties: 51103 proposal_id: 51104 type: string 51105 format: uint64 51106 description: proposal_id defines the unique id of the proposal. 51107 voter: 51108 type: string 51109 description: voter is the voter address of the proposal. 51110 options: 51111 type: array 51112 items: 51113 type: object 51114 properties: 51115 option: 51116 description: >- 51117 option defines the valid vote options, it must not contain 51118 duplicate vote options. 51119 type: string 51120 enum: 51121 - VOTE_OPTION_UNSPECIFIED 51122 - VOTE_OPTION_YES 51123 - VOTE_OPTION_ABSTAIN 51124 - VOTE_OPTION_NO 51125 - VOTE_OPTION_NO_WITH_VETO 51126 default: VOTE_OPTION_UNSPECIFIED 51127 weight: 51128 type: string 51129 description: weight is the vote weight associated with the vote option. 51130 description: WeightedVoteOption defines a unit of vote for vote split. 51131 description: options is the weighted vote options. 51132 metadata: 51133 type: string 51134 title: >- 51135 metadata is any arbitrary metadata attached to the vote. 51136 51137 the recommended format of the metadata is to be found here: 51138 https://docs.cosmos.network/v0.47/modules/gov#vote-5 51139 description: |- 51140 Vote defines a vote on a governance proposal. 51141 A Vote consists of a proposal ID, the voter, and the vote option. 51142 description: QueryVoteResponse is the response type for the Query/Vote RPC method. 51143 cosmos.gov.v1.QueryVotesResponse: 51144 type: object 51145 properties: 51146 votes: 51147 type: array 51148 items: 51149 type: object 51150 properties: 51151 proposal_id: 51152 type: string 51153 format: uint64 51154 description: proposal_id defines the unique id of the proposal. 51155 voter: 51156 type: string 51157 description: voter is the voter address of the proposal. 51158 options: 51159 type: array 51160 items: 51161 type: object 51162 properties: 51163 option: 51164 description: >- 51165 option defines the valid vote options, it must not contain 51166 duplicate vote options. 51167 type: string 51168 enum: 51169 - VOTE_OPTION_UNSPECIFIED 51170 - VOTE_OPTION_YES 51171 - VOTE_OPTION_ABSTAIN 51172 - VOTE_OPTION_NO 51173 - VOTE_OPTION_NO_WITH_VETO 51174 default: VOTE_OPTION_UNSPECIFIED 51175 weight: 51176 type: string 51177 description: weight is the vote weight associated with the vote option. 51178 description: WeightedVoteOption defines a unit of vote for vote split. 51179 description: options is the weighted vote options. 51180 metadata: 51181 type: string 51182 title: >- 51183 metadata is any arbitrary metadata attached to the vote. 51184 51185 the recommended format of the metadata is to be found here: 51186 https://docs.cosmos.network/v0.47/modules/gov#vote-5 51187 description: |- 51188 Vote defines a vote on a governance proposal. 51189 A Vote consists of a proposal ID, the voter, and the vote option. 51190 description: votes defines the queried votes. 51191 pagination: 51192 description: pagination defines the pagination in the response. 51193 type: object 51194 properties: 51195 next_key: 51196 type: string 51197 format: byte 51198 description: |- 51199 next_key is the key to be passed to PageRequest.key to 51200 query the next page most efficiently. It will be empty if 51201 there are no more results. 51202 total: 51203 type: string 51204 format: uint64 51205 title: >- 51206 total is total number of results available if 51207 PageRequest.count_total 51208 51209 was set, its value is undefined otherwise 51210 description: QueryVotesResponse is the response type for the Query/Votes RPC method. 51211 cosmos.gov.v1.TallyParams: 51212 type: object 51213 properties: 51214 quorum: 51215 type: string 51216 description: |- 51217 Minimum percentage of total stake needed to vote for a result to be 51218 considered valid. 51219 threshold: 51220 type: string 51221 description: >- 51222 Minimum proportion of Yes votes for proposal to pass. Default value: 51223 0.5. 51224 veto_threshold: 51225 type: string 51226 description: |- 51227 Minimum value of Veto votes to Total votes ratio for proposal to be 51228 vetoed. Default value: 1/3. 51229 description: TallyParams defines the params for tallying votes on governance proposals. 51230 cosmos.gov.v1.TallyResult: 51231 type: object 51232 properties: 51233 yes_count: 51234 type: string 51235 description: yes_count is the number of yes votes on a proposal. 51236 abstain_count: 51237 type: string 51238 description: abstain_count is the number of abstain votes on a proposal. 51239 no_count: 51240 type: string 51241 description: no_count is the number of no votes on a proposal. 51242 no_with_veto_count: 51243 type: string 51244 description: no_with_veto_count is the number of no with veto votes on a proposal. 51245 description: TallyResult defines a standard tally for a governance proposal. 51246 cosmos.gov.v1.Vote: 51247 type: object 51248 properties: 51249 proposal_id: 51250 type: string 51251 format: uint64 51252 description: proposal_id defines the unique id of the proposal. 51253 voter: 51254 type: string 51255 description: voter is the voter address of the proposal. 51256 options: 51257 type: array 51258 items: 51259 type: object 51260 properties: 51261 option: 51262 description: >- 51263 option defines the valid vote options, it must not contain 51264 duplicate vote options. 51265 type: string 51266 enum: 51267 - VOTE_OPTION_UNSPECIFIED 51268 - VOTE_OPTION_YES 51269 - VOTE_OPTION_ABSTAIN 51270 - VOTE_OPTION_NO 51271 - VOTE_OPTION_NO_WITH_VETO 51272 default: VOTE_OPTION_UNSPECIFIED 51273 weight: 51274 type: string 51275 description: weight is the vote weight associated with the vote option. 51276 description: WeightedVoteOption defines a unit of vote for vote split. 51277 description: options is the weighted vote options. 51278 metadata: 51279 type: string 51280 title: >- 51281 metadata is any arbitrary metadata attached to the vote. 51282 51283 the recommended format of the metadata is to be found here: 51284 https://docs.cosmos.network/v0.47/modules/gov#vote-5 51285 description: |- 51286 Vote defines a vote on a governance proposal. 51287 A Vote consists of a proposal ID, the voter, and the vote option. 51288 cosmos.gov.v1.VoteOption: 51289 type: string 51290 enum: 51291 - VOTE_OPTION_UNSPECIFIED 51292 - VOTE_OPTION_YES 51293 - VOTE_OPTION_ABSTAIN 51294 - VOTE_OPTION_NO 51295 - VOTE_OPTION_NO_WITH_VETO 51296 default: VOTE_OPTION_UNSPECIFIED 51297 description: >- 51298 VoteOption enumerates the valid vote options for a given governance 51299 proposal. 51300 51301 - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. 51302 - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. 51303 - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. 51304 - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. 51305 - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. 51306 cosmos.gov.v1.VotingParams: 51307 type: object 51308 properties: 51309 voting_period: 51310 type: string 51311 description: Duration of the voting period. 51312 description: VotingParams defines the params for voting on governance proposals. 51313 cosmos.gov.v1.WeightedVoteOption: 51314 type: object 51315 properties: 51316 option: 51317 description: >- 51318 option defines the valid vote options, it must not contain duplicate 51319 vote options. 51320 type: string 51321 enum: 51322 - VOTE_OPTION_UNSPECIFIED 51323 - VOTE_OPTION_YES 51324 - VOTE_OPTION_ABSTAIN 51325 - VOTE_OPTION_NO 51326 - VOTE_OPTION_NO_WITH_VETO 51327 default: VOTE_OPTION_UNSPECIFIED 51328 weight: 51329 type: string 51330 description: weight is the vote weight associated with the vote option. 51331 description: WeightedVoteOption defines a unit of vote for vote split. 51332 cosmos.mint.v1beta1.Params: 51333 type: object 51334 properties: 51335 mint_denom: 51336 type: string 51337 title: type of coin to mint 51338 inflation_rate_change: 51339 type: string 51340 title: maximum annual change in inflation rate 51341 inflation_max: 51342 type: string 51343 title: maximum inflation rate 51344 inflation_min: 51345 type: string 51346 title: minimum inflation rate 51347 goal_bonded: 51348 type: string 51349 title: goal of percent bonded atoms 51350 blocks_per_year: 51351 type: string 51352 format: uint64 51353 title: expected blocks per year 51354 description: Params defines the parameters for the x/mint module. 51355 cosmos.mint.v1beta1.QueryAnnualProvisionsResponse: 51356 type: object 51357 properties: 51358 annual_provisions: 51359 type: string 51360 format: byte 51361 description: annual_provisions is the current minting annual provisions value. 51362 description: |- 51363 QueryAnnualProvisionsResponse is the response type for the 51364 Query/AnnualProvisions RPC method. 51365 cosmos.mint.v1beta1.QueryInflationResponse: 51366 type: object 51367 properties: 51368 inflation: 51369 type: string 51370 format: byte 51371 description: inflation is the current minting inflation value. 51372 description: |- 51373 QueryInflationResponse is the response type for the Query/Inflation RPC 51374 method. 51375 cosmos.mint.v1beta1.QueryParamsResponse: 51376 type: object 51377 properties: 51378 params: 51379 description: params defines the parameters of the module. 51380 type: object 51381 properties: 51382 mint_denom: 51383 type: string 51384 title: type of coin to mint 51385 inflation_rate_change: 51386 type: string 51387 title: maximum annual change in inflation rate 51388 inflation_max: 51389 type: string 51390 title: maximum inflation rate 51391 inflation_min: 51392 type: string 51393 title: minimum inflation rate 51394 goal_bonded: 51395 type: string 51396 title: goal of percent bonded atoms 51397 blocks_per_year: 51398 type: string 51399 format: uint64 51400 title: expected blocks per year 51401 description: QueryParamsResponse is the response type for the Query/Params RPC method. 51402 cosmos.params.v1beta1.ParamChange: 51403 type: object 51404 properties: 51405 subspace: 51406 type: string 51407 key: 51408 type: string 51409 value: 51410 type: string 51411 description: |- 51412 ParamChange defines an individual parameter change, for use in 51413 ParameterChangeProposal. 51414 cosmos.params.v1beta1.QueryParamsResponse: 51415 type: object 51416 properties: 51417 param: 51418 description: param defines the queried parameter. 51419 type: object 51420 properties: 51421 subspace: 51422 type: string 51423 key: 51424 type: string 51425 value: 51426 type: string 51427 description: QueryParamsResponse is response type for the Query/Params RPC method. 51428 cosmos.params.v1beta1.QuerySubspacesResponse: 51429 type: object 51430 properties: 51431 subspaces: 51432 type: array 51433 items: 51434 type: object 51435 properties: 51436 subspace: 51437 type: string 51438 keys: 51439 type: array 51440 items: 51441 type: string 51442 description: >- 51443 Subspace defines a parameter subspace name and all the keys that 51444 exist for 51445 51446 the subspace. 51447 51448 51449 Since: cosmos-sdk 0.46 51450 description: |- 51451 QuerySubspacesResponse defines the response types for querying for all 51452 registered subspaces and all keys for a subspace. 51453 51454 Since: cosmos-sdk 0.46 51455 cosmos.params.v1beta1.Subspace: 51456 type: object 51457 properties: 51458 subspace: 51459 type: string 51460 keys: 51461 type: array 51462 items: 51463 type: string 51464 description: |- 51465 Subspace defines a parameter subspace name and all the keys that exist for 51466 the subspace. 51467 51468 Since: cosmos-sdk 0.46 51469 cosmos.slashing.v1beta1.Params: 51470 type: object 51471 properties: 51472 signed_blocks_window: 51473 type: string 51474 format: int64 51475 min_signed_per_window: 51476 type: string 51477 format: byte 51478 downtime_jail_duration: 51479 type: string 51480 slash_fraction_double_sign: 51481 type: string 51482 format: byte 51483 slash_fraction_downtime: 51484 type: string 51485 format: byte 51486 description: Params represents the parameters used for by the slashing module. 51487 cosmos.slashing.v1beta1.QueryParamsResponse: 51488 type: object 51489 properties: 51490 params: 51491 type: object 51492 properties: 51493 signed_blocks_window: 51494 type: string 51495 format: int64 51496 min_signed_per_window: 51497 type: string 51498 format: byte 51499 downtime_jail_duration: 51500 type: string 51501 slash_fraction_double_sign: 51502 type: string 51503 format: byte 51504 slash_fraction_downtime: 51505 type: string 51506 format: byte 51507 description: Params represents the parameters used for by the slashing module. 51508 title: QueryParamsResponse is the response type for the Query/Params RPC method 51509 cosmos.slashing.v1beta1.QuerySigningInfoResponse: 51510 type: object 51511 properties: 51512 val_signing_info: 51513 type: object 51514 properties: 51515 address: 51516 type: string 51517 start_height: 51518 type: string 51519 format: int64 51520 title: Height at which validator was first a candidate OR was un-jailed 51521 index_offset: 51522 type: string 51523 format: int64 51524 description: >- 51525 Index which is incremented every time a validator is bonded in a 51526 block and 51527 51528 _may_ have signed a pre-commit or not. This in conjunction with 51529 the 51530 51531 signed_blocks_window param determines the index in the missed 51532 block bitmap. 51533 jailed_until: 51534 type: string 51535 format: date-time 51536 description: >- 51537 Timestamp until which the validator is jailed due to liveness 51538 downtime. 51539 tombstoned: 51540 type: boolean 51541 description: >- 51542 Whether or not a validator has been tombstoned (killed out of 51543 validator 51544 51545 set). It is set once the validator commits an equivocation or for 51546 any other 51547 51548 configured misbehavior. 51549 missed_blocks_counter: 51550 type: string 51551 format: int64 51552 description: >- 51553 A counter of missed (unsigned) blocks. It is used to avoid 51554 unnecessary 51555 51556 reads in the missed block bitmap. 51557 description: >- 51558 ValidatorSigningInfo defines a validator's signing info for monitoring 51559 their 51560 51561 liveness activity. 51562 title: val_signing_info is the signing info of requested val cons address 51563 title: >- 51564 QuerySigningInfoResponse is the response type for the Query/SigningInfo 51565 RPC 51566 51567 method 51568 cosmos.slashing.v1beta1.QuerySigningInfosResponse: 51569 type: object 51570 properties: 51571 info: 51572 type: array 51573 items: 51574 type: object 51575 properties: 51576 address: 51577 type: string 51578 start_height: 51579 type: string 51580 format: int64 51581 title: Height at which validator was first a candidate OR was un-jailed 51582 index_offset: 51583 type: string 51584 format: int64 51585 description: >- 51586 Index which is incremented every time a validator is bonded in a 51587 block and 51588 51589 _may_ have signed a pre-commit or not. This in conjunction with 51590 the 51591 51592 signed_blocks_window param determines the index in the missed 51593 block bitmap. 51594 jailed_until: 51595 type: string 51596 format: date-time 51597 description: >- 51598 Timestamp until which the validator is jailed due to liveness 51599 downtime. 51600 tombstoned: 51601 type: boolean 51602 description: >- 51603 Whether or not a validator has been tombstoned (killed out of 51604 validator 51605 51606 set). It is set once the validator commits an equivocation or 51607 for any other 51608 51609 configured misbehavior. 51610 missed_blocks_counter: 51611 type: string 51612 format: int64 51613 description: >- 51614 A counter of missed (unsigned) blocks. It is used to avoid 51615 unnecessary 51616 51617 reads in the missed block bitmap. 51618 description: >- 51619 ValidatorSigningInfo defines a validator's signing info for 51620 monitoring their 51621 51622 liveness activity. 51623 title: info is the signing info of all validators 51624 pagination: 51625 type: object 51626 properties: 51627 next_key: 51628 type: string 51629 format: byte 51630 description: |- 51631 next_key is the key to be passed to PageRequest.key to 51632 query the next page most efficiently. It will be empty if 51633 there are no more results. 51634 total: 51635 type: string 51636 format: uint64 51637 title: >- 51638 total is total number of results available if 51639 PageRequest.count_total 51640 51641 was set, its value is undefined otherwise 51642 description: |- 51643 PageResponse is to be embedded in gRPC response messages where the 51644 corresponding request message has used PageRequest. 51645 51646 message SomeResponse { 51647 repeated Bar results = 1; 51648 PageResponse page = 2; 51649 } 51650 title: >- 51651 QuerySigningInfosResponse is the response type for the Query/SigningInfos 51652 RPC 51653 51654 method 51655 cosmos.slashing.v1beta1.ValidatorSigningInfo: 51656 type: object 51657 properties: 51658 address: 51659 type: string 51660 start_height: 51661 type: string 51662 format: int64 51663 title: Height at which validator was first a candidate OR was un-jailed 51664 index_offset: 51665 type: string 51666 format: int64 51667 description: >- 51668 Index which is incremented every time a validator is bonded in a block 51669 and 51670 51671 _may_ have signed a pre-commit or not. This in conjunction with the 51672 51673 signed_blocks_window param determines the index in the missed block 51674 bitmap. 51675 jailed_until: 51676 type: string 51677 format: date-time 51678 description: >- 51679 Timestamp until which the validator is jailed due to liveness 51680 downtime. 51681 tombstoned: 51682 type: boolean 51683 description: >- 51684 Whether or not a validator has been tombstoned (killed out of 51685 validator 51686 51687 set). It is set once the validator commits an equivocation or for any 51688 other 51689 51690 configured misbehavior. 51691 missed_blocks_counter: 51692 type: string 51693 format: int64 51694 description: |- 51695 A counter of missed (unsigned) blocks. It is used to avoid unnecessary 51696 reads in the missed block bitmap. 51697 description: >- 51698 ValidatorSigningInfo defines a validator's signing info for monitoring 51699 their 51700 51701 liveness activity. 51702 cosmos.staking.v1beta1.BondStatus: 51703 type: string 51704 enum: 51705 - BOND_STATUS_UNSPECIFIED 51706 - BOND_STATUS_UNBONDED 51707 - BOND_STATUS_UNBONDING 51708 - BOND_STATUS_BONDED 51709 default: BOND_STATUS_UNSPECIFIED 51710 description: |- 51711 BondStatus is the status of a validator. 51712 51713 - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status. 51714 - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. 51715 - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. 51716 - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. 51717 cosmos.staking.v1beta1.Commission: 51718 type: object 51719 properties: 51720 commission_rates: 51721 description: >- 51722 commission_rates defines the initial commission rates to be used for 51723 creating a validator. 51724 type: object 51725 properties: 51726 rate: 51727 type: string 51728 description: rate is the commission rate charged to delegators, as a fraction. 51729 max_rate: 51730 type: string 51731 description: >- 51732 max_rate defines the maximum commission rate which validator can 51733 ever charge, as a fraction. 51734 max_change_rate: 51735 type: string 51736 description: >- 51737 max_change_rate defines the maximum daily increase of the 51738 validator commission, as a fraction. 51739 update_time: 51740 type: string 51741 format: date-time 51742 description: update_time is the last time the commission rate was changed. 51743 description: Commission defines commission parameters for a given validator. 51744 cosmos.staking.v1beta1.CommissionRates: 51745 type: object 51746 properties: 51747 rate: 51748 type: string 51749 description: rate is the commission rate charged to delegators, as a fraction. 51750 max_rate: 51751 type: string 51752 description: >- 51753 max_rate defines the maximum commission rate which validator can ever 51754 charge, as a fraction. 51755 max_change_rate: 51756 type: string 51757 description: >- 51758 max_change_rate defines the maximum daily increase of the validator 51759 commission, as a fraction. 51760 description: >- 51761 CommissionRates defines the initial commission rates to be used for 51762 creating 51763 51764 a validator. 51765 cosmos.staking.v1beta1.Delegation: 51766 type: object 51767 properties: 51768 delegator_address: 51769 type: string 51770 description: delegator_address is the encoded address of the delegator. 51771 validator_address: 51772 type: string 51773 description: validator_address is the encoded address of the validator. 51774 shares: 51775 type: string 51776 description: shares define the delegation shares received. 51777 description: |- 51778 Delegation represents the bond with tokens held by an account. It is 51779 owned by one delegator, and is associated with the voting power of one 51780 validator. 51781 cosmos.staking.v1beta1.DelegationResponse: 51782 type: object 51783 properties: 51784 delegation: 51785 type: object 51786 properties: 51787 delegator_address: 51788 type: string 51789 description: delegator_address is the encoded address of the delegator. 51790 validator_address: 51791 type: string 51792 description: validator_address is the encoded address of the validator. 51793 shares: 51794 type: string 51795 description: shares define the delegation shares received. 51796 description: |- 51797 Delegation represents the bond with tokens held by an account. It is 51798 owned by one delegator, and is associated with the voting power of one 51799 validator. 51800 balance: 51801 type: object 51802 properties: 51803 denom: 51804 type: string 51805 amount: 51806 type: string 51807 description: |- 51808 Coin defines a token with a denomination and an amount. 51809 51810 NOTE: The amount field is an Int which implements the custom method 51811 signatures required by gogoproto. 51812 description: |- 51813 DelegationResponse is equivalent to Delegation except that it contains a 51814 balance in addition to shares which is more suitable for client responses. 51815 cosmos.staking.v1beta1.Description: 51816 type: object 51817 properties: 51818 moniker: 51819 type: string 51820 description: moniker defines a human-readable name for the validator. 51821 identity: 51822 type: string 51823 description: >- 51824 identity defines an optional identity signature (ex. UPort or 51825 Keybase). 51826 website: 51827 type: string 51828 description: website defines an optional website link. 51829 security_contact: 51830 type: string 51831 description: security_contact defines an optional email for security contact. 51832 details: 51833 type: string 51834 description: details define other optional details. 51835 description: Description defines a validator description. 51836 cosmos.staking.v1beta1.HistoricalInfo: 51837 type: object 51838 properties: 51839 header: 51840 type: object 51841 properties: 51842 version: 51843 title: basic block info 51844 type: object 51845 properties: 51846 block: 51847 type: string 51848 format: uint64 51849 app: 51850 type: string 51851 format: uint64 51852 description: >- 51853 Consensus captures the consensus rules for processing a block in 51854 the blockchain, 51855 51856 including all blockchain data structures and the rules of the 51857 application's 51858 51859 state transition machine. 51860 chain_id: 51861 type: string 51862 height: 51863 type: string 51864 format: int64 51865 time: 51866 type: string 51867 format: date-time 51868 last_block_id: 51869 title: prev block info 51870 type: object 51871 properties: 51872 hash: 51873 type: string 51874 format: byte 51875 part_set_header: 51876 type: object 51877 properties: 51878 total: 51879 type: integer 51880 format: int64 51881 hash: 51882 type: string 51883 format: byte 51884 title: PartsetHeader 51885 last_commit_hash: 51886 type: string 51887 format: byte 51888 title: hashes of block data 51889 data_hash: 51890 type: string 51891 format: byte 51892 validators_hash: 51893 type: string 51894 format: byte 51895 title: hashes from the app output from the prev block 51896 next_validators_hash: 51897 type: string 51898 format: byte 51899 consensus_hash: 51900 type: string 51901 format: byte 51902 app_hash: 51903 type: string 51904 format: byte 51905 last_results_hash: 51906 type: string 51907 format: byte 51908 evidence_hash: 51909 type: string 51910 format: byte 51911 title: consensus info 51912 proposer_address: 51913 type: string 51914 format: byte 51915 description: Header defines the structure of a block header. 51916 valset: 51917 type: array 51918 items: 51919 type: object 51920 properties: 51921 operator_address: 51922 type: string 51923 description: >- 51924 operator_address defines the address of the validator's 51925 operator; bech encoded in JSON. 51926 consensus_pubkey: 51927 type: object 51928 properties: 51929 type_url: 51930 type: string 51931 description: >- 51932 A URL/resource name that uniquely identifies the type of the 51933 serialized 51934 51935 protocol buffer message. This string must contain at least 51936 51937 one "/" character. The last segment of the URL's path must 51938 represent 51939 51940 the fully qualified name of the type (as in 51941 51942 `path/google.protobuf.Duration`). The name should be in a 51943 canonical form 51944 51945 (e.g., leading "." is not accepted). 51946 51947 51948 In practice, teams usually precompile into the binary all 51949 types that they 51950 51951 expect it to use in the context of Any. However, for URLs 51952 which use the 51953 51954 scheme `http`, `https`, or no scheme, one can optionally set 51955 up a type 51956 51957 server that maps type URLs to message definitions as 51958 follows: 51959 51960 51961 * If no scheme is provided, `https` is assumed. 51962 51963 * An HTTP GET on the URL must yield a 51964 [google.protobuf.Type][] 51965 value in binary format, or produce an error. 51966 * Applications are allowed to cache lookup results based on 51967 the 51968 URL, or have them precompiled into a binary to avoid any 51969 lookup. Therefore, binary compatibility needs to be preserved 51970 on changes to types. (Use versioned type names to manage 51971 breaking changes.) 51972 51973 Note: this functionality is not currently available in the 51974 official 51975 51976 protobuf release, and it is not used for type URLs beginning 51977 with 51978 51979 type.googleapis.com. 51980 51981 51982 Schemes other than `http`, `https` (or the empty scheme) 51983 might be 51984 51985 used with implementation specific semantics. 51986 value: 51987 type: string 51988 format: byte 51989 description: >- 51990 Must be a valid serialized protocol buffer of the above 51991 specified type. 51992 description: >- 51993 `Any` contains an arbitrary serialized protocol buffer message 51994 along with a 51995 51996 URL that describes the type of the serialized message. 51997 51998 51999 Protobuf library provides support to pack/unpack Any values in 52000 the form 52001 52002 of utility functions or additional generated methods of the Any 52003 type. 52004 52005 52006 Example 1: Pack and unpack a message in C++. 52007 52008 Foo foo = ...; 52009 Any any; 52010 any.PackFrom(foo); 52011 ... 52012 if (any.UnpackTo(&foo)) { 52013 ... 52014 } 52015 52016 Example 2: Pack and unpack a message in Java. 52017 52018 Foo foo = ...; 52019 Any any = Any.pack(foo); 52020 ... 52021 if (any.is(Foo.class)) { 52022 foo = any.unpack(Foo.class); 52023 } 52024 // or ... 52025 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 52026 foo = any.unpack(Foo.getDefaultInstance()); 52027 } 52028 52029 Example 3: Pack and unpack a message in Python. 52030 52031 foo = Foo(...) 52032 any = Any() 52033 any.Pack(foo) 52034 ... 52035 if any.Is(Foo.DESCRIPTOR): 52036 any.Unpack(foo) 52037 ... 52038 52039 Example 4: Pack and unpack a message in Go 52040 52041 foo := &pb.Foo{...} 52042 any, err := anypb.New(foo) 52043 if err != nil { 52044 ... 52045 } 52046 ... 52047 foo := &pb.Foo{} 52048 if err := any.UnmarshalTo(foo); err != nil { 52049 ... 52050 } 52051 52052 The pack methods provided by protobuf library will by default 52053 use 52054 52055 'type.googleapis.com/full.type.name' as the type URL and the 52056 unpack 52057 52058 methods only use the fully qualified type name after the last 52059 '/' 52060 52061 in the type URL, for example "foo.bar.com/x/y.z" will yield type 52062 52063 name "y.z". 52064 52065 52066 JSON 52067 52068 52069 The JSON representation of an `Any` value uses the regular 52070 52071 representation of the deserialized, embedded message, with an 52072 52073 additional field `@type` which contains the type URL. Example: 52074 52075 package google.profile; 52076 message Person { 52077 string first_name = 1; 52078 string last_name = 2; 52079 } 52080 52081 { 52082 "@type": "type.googleapis.com/google.profile.Person", 52083 "firstName": <string>, 52084 "lastName": <string> 52085 } 52086 52087 If the embedded message type is well-known and has a custom JSON 52088 52089 representation, that representation will be embedded adding a 52090 field 52091 52092 `value` which holds the custom JSON in addition to the `@type` 52093 52094 field. Example (for message [google.protobuf.Duration][]): 52095 52096 { 52097 "@type": "type.googleapis.com/google.protobuf.Duration", 52098 "value": "1.212s" 52099 } 52100 jailed: 52101 type: boolean 52102 description: >- 52103 jailed defined whether the validator has been jailed from bonded 52104 status or not. 52105 status: 52106 description: status is the validator status (bonded/unbonding/unbonded). 52107 type: string 52108 enum: 52109 - BOND_STATUS_UNSPECIFIED 52110 - BOND_STATUS_UNBONDED 52111 - BOND_STATUS_UNBONDING 52112 - BOND_STATUS_BONDED 52113 default: BOND_STATUS_UNSPECIFIED 52114 tokens: 52115 type: string 52116 description: tokens define the delegated tokens (incl. self-delegation). 52117 delegator_shares: 52118 type: string 52119 description: >- 52120 delegator_shares defines total shares issued to a validator's 52121 delegators. 52122 description: 52123 description: description defines the description terms for the validator. 52124 type: object 52125 properties: 52126 moniker: 52127 type: string 52128 description: moniker defines a human-readable name for the validator. 52129 identity: 52130 type: string 52131 description: >- 52132 identity defines an optional identity signature (ex. UPort 52133 or Keybase). 52134 website: 52135 type: string 52136 description: website defines an optional website link. 52137 security_contact: 52138 type: string 52139 description: >- 52140 security_contact defines an optional email for security 52141 contact. 52142 details: 52143 type: string 52144 description: details define other optional details. 52145 unbonding_height: 52146 type: string 52147 format: int64 52148 description: >- 52149 unbonding_height defines, if unbonding, the height at which this 52150 validator has begun unbonding. 52151 unbonding_time: 52152 type: string 52153 format: date-time 52154 description: >- 52155 unbonding_time defines, if unbonding, the min time for the 52156 validator to complete unbonding. 52157 commission: 52158 description: commission defines the commission parameters. 52159 type: object 52160 properties: 52161 commission_rates: 52162 description: >- 52163 commission_rates defines the initial commission rates to be 52164 used for creating a validator. 52165 type: object 52166 properties: 52167 rate: 52168 type: string 52169 description: >- 52170 rate is the commission rate charged to delegators, as a 52171 fraction. 52172 max_rate: 52173 type: string 52174 description: >- 52175 max_rate defines the maximum commission rate which 52176 validator can ever charge, as a fraction. 52177 max_change_rate: 52178 type: string 52179 description: >- 52180 max_change_rate defines the maximum daily increase of 52181 the validator commission, as a fraction. 52182 update_time: 52183 type: string 52184 format: date-time 52185 description: >- 52186 update_time is the last time the commission rate was 52187 changed. 52188 min_self_delegation: 52189 type: string 52190 description: >- 52191 min_self_delegation is the validator's self declared minimum 52192 self delegation. 52193 52194 52195 Since: cosmos-sdk 0.46 52196 unbonding_on_hold_ref_count: 52197 type: string 52198 format: int64 52199 title: >- 52200 strictly positive if this validator's unbonding has been stopped 52201 by external modules 52202 unbonding_ids: 52203 type: array 52204 items: 52205 type: string 52206 format: uint64 52207 title: >- 52208 list of unbonding ids, each uniquely identifing an unbonding of 52209 this validator 52210 description: >- 52211 Validator defines a validator, together with the total amount of the 52212 52213 Validator's bond shares and their exchange rate to coins. Slashing 52214 results in 52215 52216 a decrease in the exchange rate, allowing correct calculation of 52217 future 52218 52219 undelegations without iterating over delegators. When coins are 52220 delegated to 52221 52222 this validator, the validator is credited with a delegation whose 52223 number of 52224 52225 bond shares is based on the amount of coins delegated divided by the 52226 current 52227 52228 exchange rate. Voting power can be calculated as total bonded shares 52229 52230 multiplied by exchange rate. 52231 description: >- 52232 HistoricalInfo contains header and validator information for a given 52233 block. 52234 52235 It is stored as part of staking module's state, which persists the `n` 52236 most 52237 52238 recent HistoricalInfo 52239 52240 (`n` is set by the staking module's `historical_entries` parameter). 52241 cosmos.staking.v1beta1.Params: 52242 type: object 52243 properties: 52244 unbonding_time: 52245 type: string 52246 description: unbonding_time is the time duration of unbonding. 52247 max_validators: 52248 type: integer 52249 format: int64 52250 description: max_validators is the maximum number of validators. 52251 max_entries: 52252 type: integer 52253 format: int64 52254 description: >- 52255 max_entries is the max entries for either unbonding delegation or 52256 redelegation (per pair/trio). 52257 historical_entries: 52258 type: integer 52259 format: int64 52260 description: historical_entries is the number of historical entries to persist. 52261 bond_denom: 52262 type: string 52263 description: bond_denom defines the bondable coin denomination. 52264 min_commission_rate: 52265 type: string 52266 title: >- 52267 min_commission_rate is the chain-wide minimum commission rate that a 52268 validator can charge their delegators 52269 description: Params defines the parameters for the x/staking module. 52270 cosmos.staking.v1beta1.Pool: 52271 type: object 52272 properties: 52273 not_bonded_tokens: 52274 type: string 52275 bonded_tokens: 52276 type: string 52277 description: |- 52278 Pool is used for tracking bonded and not-bonded token supply of the bond 52279 denomination. 52280 cosmos.staking.v1beta1.QueryDelegationResponse: 52281 type: object 52282 properties: 52283 delegation_response: 52284 type: object 52285 properties: 52286 delegation: 52287 type: object 52288 properties: 52289 delegator_address: 52290 type: string 52291 description: delegator_address is the encoded address of the delegator. 52292 validator_address: 52293 type: string 52294 description: validator_address is the encoded address of the validator. 52295 shares: 52296 type: string 52297 description: shares define the delegation shares received. 52298 description: >- 52299 Delegation represents the bond with tokens held by an account. It 52300 is 52301 52302 owned by one delegator, and is associated with the voting power of 52303 one 52304 52305 validator. 52306 balance: 52307 type: object 52308 properties: 52309 denom: 52310 type: string 52311 amount: 52312 type: string 52313 description: >- 52314 Coin defines a token with a denomination and an amount. 52315 52316 52317 NOTE: The amount field is an Int which implements the custom 52318 method 52319 52320 signatures required by gogoproto. 52321 description: >- 52322 DelegationResponse is equivalent to Delegation except that it contains 52323 a 52324 52325 balance in addition to shares which is more suitable for client 52326 responses. 52327 description: >- 52328 QueryDelegationResponse is response type for the Query/Delegation RPC 52329 method. 52330 cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse: 52331 type: object 52332 properties: 52333 delegation_responses: 52334 type: array 52335 items: 52336 type: object 52337 properties: 52338 delegation: 52339 type: object 52340 properties: 52341 delegator_address: 52342 type: string 52343 description: delegator_address is the encoded address of the delegator. 52344 validator_address: 52345 type: string 52346 description: validator_address is the encoded address of the validator. 52347 shares: 52348 type: string 52349 description: shares define the delegation shares received. 52350 description: >- 52351 Delegation represents the bond with tokens held by an account. 52352 It is 52353 52354 owned by one delegator, and is associated with the voting power 52355 of one 52356 52357 validator. 52358 balance: 52359 type: object 52360 properties: 52361 denom: 52362 type: string 52363 amount: 52364 type: string 52365 description: >- 52366 Coin defines a token with a denomination and an amount. 52367 52368 52369 NOTE: The amount field is an Int which implements the custom 52370 method 52371 52372 signatures required by gogoproto. 52373 description: >- 52374 DelegationResponse is equivalent to Delegation except that it 52375 contains a 52376 52377 balance in addition to shares which is more suitable for client 52378 responses. 52379 description: delegation_responses defines all the delegations' info of a delegator. 52380 pagination: 52381 description: pagination defines the pagination in the response. 52382 type: object 52383 properties: 52384 next_key: 52385 type: string 52386 format: byte 52387 description: |- 52388 next_key is the key to be passed to PageRequest.key to 52389 query the next page most efficiently. It will be empty if 52390 there are no more results. 52391 total: 52392 type: string 52393 format: uint64 52394 title: >- 52395 total is total number of results available if 52396 PageRequest.count_total 52397 52398 was set, its value is undefined otherwise 52399 description: |- 52400 QueryDelegatorDelegationsResponse is response type for the 52401 Query/DelegatorDelegations RPC method. 52402 cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse: 52403 type: object 52404 properties: 52405 unbonding_responses: 52406 type: array 52407 items: 52408 type: object 52409 properties: 52410 delegator_address: 52411 type: string 52412 description: delegator_address is the encoded address of the delegator. 52413 validator_address: 52414 type: string 52415 description: validator_address is the encoded address of the validator. 52416 entries: 52417 type: array 52418 items: 52419 type: object 52420 properties: 52421 creation_height: 52422 type: string 52423 format: int64 52424 description: >- 52425 creation_height is the height which the unbonding took 52426 place. 52427 completion_time: 52428 type: string 52429 format: date-time 52430 description: completion_time is the unix time for unbonding completion. 52431 initial_balance: 52432 type: string 52433 description: >- 52434 initial_balance defines the tokens initially scheduled to 52435 receive at completion. 52436 balance: 52437 type: string 52438 description: balance defines the tokens to receive at completion. 52439 unbonding_id: 52440 type: string 52441 format: uint64 52442 title: Incrementing id that uniquely identifies this entry 52443 unbonding_on_hold_ref_count: 52444 type: string 52445 format: int64 52446 title: >- 52447 Strictly positive if this entry's unbonding has been 52448 stopped by external modules 52449 description: >- 52450 UnbondingDelegationEntry defines an unbonding object with 52451 relevant metadata. 52452 description: entries are the unbonding delegation entries. 52453 description: >- 52454 UnbondingDelegation stores all of a single delegator's unbonding 52455 bonds 52456 52457 for a single validator in an time-ordered list. 52458 pagination: 52459 description: pagination defines the pagination in the response. 52460 type: object 52461 properties: 52462 next_key: 52463 type: string 52464 format: byte 52465 description: |- 52466 next_key is the key to be passed to PageRequest.key to 52467 query the next page most efficiently. It will be empty if 52468 there are no more results. 52469 total: 52470 type: string 52471 format: uint64 52472 title: >- 52473 total is total number of results available if 52474 PageRequest.count_total 52475 52476 was set, its value is undefined otherwise 52477 description: |- 52478 QueryUnbondingDelegatorDelegationsResponse is response type for the 52479 Query/UnbondingDelegatorDelegations RPC method. 52480 cosmos.staking.v1beta1.QueryDelegatorValidatorResponse: 52481 type: object 52482 properties: 52483 validator: 52484 type: object 52485 properties: 52486 operator_address: 52487 type: string 52488 description: >- 52489 operator_address defines the address of the validator's operator; 52490 bech encoded in JSON. 52491 consensus_pubkey: 52492 type: object 52493 properties: 52494 type_url: 52495 type: string 52496 description: >- 52497 A URL/resource name that uniquely identifies the type of the 52498 serialized 52499 52500 protocol buffer message. This string must contain at least 52501 52502 one "/" character. The last segment of the URL's path must 52503 represent 52504 52505 the fully qualified name of the type (as in 52506 52507 `path/google.protobuf.Duration`). The name should be in a 52508 canonical form 52509 52510 (e.g., leading "." is not accepted). 52511 52512 52513 In practice, teams usually precompile into the binary all 52514 types that they 52515 52516 expect it to use in the context of Any. However, for URLs 52517 which use the 52518 52519 scheme `http`, `https`, or no scheme, one can optionally set 52520 up a type 52521 52522 server that maps type URLs to message definitions as follows: 52523 52524 52525 * If no scheme is provided, `https` is assumed. 52526 52527 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 52528 value in binary format, or produce an error. 52529 * Applications are allowed to cache lookup results based on 52530 the 52531 URL, or have them precompiled into a binary to avoid any 52532 lookup. Therefore, binary compatibility needs to be preserved 52533 on changes to types. (Use versioned type names to manage 52534 breaking changes.) 52535 52536 Note: this functionality is not currently available in the 52537 official 52538 52539 protobuf release, and it is not used for type URLs beginning 52540 with 52541 52542 type.googleapis.com. 52543 52544 52545 Schemes other than `http`, `https` (or the empty scheme) might 52546 be 52547 52548 used with implementation specific semantics. 52549 value: 52550 type: string 52551 format: byte 52552 description: >- 52553 Must be a valid serialized protocol buffer of the above 52554 specified type. 52555 description: >- 52556 `Any` contains an arbitrary serialized protocol buffer message 52557 along with a 52558 52559 URL that describes the type of the serialized message. 52560 52561 52562 Protobuf library provides support to pack/unpack Any values in the 52563 form 52564 52565 of utility functions or additional generated methods of the Any 52566 type. 52567 52568 52569 Example 1: Pack and unpack a message in C++. 52570 52571 Foo foo = ...; 52572 Any any; 52573 any.PackFrom(foo); 52574 ... 52575 if (any.UnpackTo(&foo)) { 52576 ... 52577 } 52578 52579 Example 2: Pack and unpack a message in Java. 52580 52581 Foo foo = ...; 52582 Any any = Any.pack(foo); 52583 ... 52584 if (any.is(Foo.class)) { 52585 foo = any.unpack(Foo.class); 52586 } 52587 // or ... 52588 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 52589 foo = any.unpack(Foo.getDefaultInstance()); 52590 } 52591 52592 Example 3: Pack and unpack a message in Python. 52593 52594 foo = Foo(...) 52595 any = Any() 52596 any.Pack(foo) 52597 ... 52598 if any.Is(Foo.DESCRIPTOR): 52599 any.Unpack(foo) 52600 ... 52601 52602 Example 4: Pack and unpack a message in Go 52603 52604 foo := &pb.Foo{...} 52605 any, err := anypb.New(foo) 52606 if err != nil { 52607 ... 52608 } 52609 ... 52610 foo := &pb.Foo{} 52611 if err := any.UnmarshalTo(foo); err != nil { 52612 ... 52613 } 52614 52615 The pack methods provided by protobuf library will by default use 52616 52617 'type.googleapis.com/full.type.name' as the type URL and the 52618 unpack 52619 52620 methods only use the fully qualified type name after the last '/' 52621 52622 in the type URL, for example "foo.bar.com/x/y.z" will yield type 52623 52624 name "y.z". 52625 52626 52627 JSON 52628 52629 52630 The JSON representation of an `Any` value uses the regular 52631 52632 representation of the deserialized, embedded message, with an 52633 52634 additional field `@type` which contains the type URL. Example: 52635 52636 package google.profile; 52637 message Person { 52638 string first_name = 1; 52639 string last_name = 2; 52640 } 52641 52642 { 52643 "@type": "type.googleapis.com/google.profile.Person", 52644 "firstName": <string>, 52645 "lastName": <string> 52646 } 52647 52648 If the embedded message type is well-known and has a custom JSON 52649 52650 representation, that representation will be embedded adding a 52651 field 52652 52653 `value` which holds the custom JSON in addition to the `@type` 52654 52655 field. Example (for message [google.protobuf.Duration][]): 52656 52657 { 52658 "@type": "type.googleapis.com/google.protobuf.Duration", 52659 "value": "1.212s" 52660 } 52661 jailed: 52662 type: boolean 52663 description: >- 52664 jailed defined whether the validator has been jailed from bonded 52665 status or not. 52666 status: 52667 description: status is the validator status (bonded/unbonding/unbonded). 52668 type: string 52669 enum: 52670 - BOND_STATUS_UNSPECIFIED 52671 - BOND_STATUS_UNBONDED 52672 - BOND_STATUS_UNBONDING 52673 - BOND_STATUS_BONDED 52674 default: BOND_STATUS_UNSPECIFIED 52675 tokens: 52676 type: string 52677 description: tokens define the delegated tokens (incl. self-delegation). 52678 delegator_shares: 52679 type: string 52680 description: >- 52681 delegator_shares defines total shares issued to a validator's 52682 delegators. 52683 description: 52684 description: description defines the description terms for the validator. 52685 type: object 52686 properties: 52687 moniker: 52688 type: string 52689 description: moniker defines a human-readable name for the validator. 52690 identity: 52691 type: string 52692 description: >- 52693 identity defines an optional identity signature (ex. UPort or 52694 Keybase). 52695 website: 52696 type: string 52697 description: website defines an optional website link. 52698 security_contact: 52699 type: string 52700 description: >- 52701 security_contact defines an optional email for security 52702 contact. 52703 details: 52704 type: string 52705 description: details define other optional details. 52706 unbonding_height: 52707 type: string 52708 format: int64 52709 description: >- 52710 unbonding_height defines, if unbonding, the height at which this 52711 validator has begun unbonding. 52712 unbonding_time: 52713 type: string 52714 format: date-time 52715 description: >- 52716 unbonding_time defines, if unbonding, the min time for the 52717 validator to complete unbonding. 52718 commission: 52719 description: commission defines the commission parameters. 52720 type: object 52721 properties: 52722 commission_rates: 52723 description: >- 52724 commission_rates defines the initial commission rates to be 52725 used for creating a validator. 52726 type: object 52727 properties: 52728 rate: 52729 type: string 52730 description: >- 52731 rate is the commission rate charged to delegators, as a 52732 fraction. 52733 max_rate: 52734 type: string 52735 description: >- 52736 max_rate defines the maximum commission rate which 52737 validator can ever charge, as a fraction. 52738 max_change_rate: 52739 type: string 52740 description: >- 52741 max_change_rate defines the maximum daily increase of the 52742 validator commission, as a fraction. 52743 update_time: 52744 type: string 52745 format: date-time 52746 description: update_time is the last time the commission rate was changed. 52747 min_self_delegation: 52748 type: string 52749 description: >- 52750 min_self_delegation is the validator's self declared minimum self 52751 delegation. 52752 52753 52754 Since: cosmos-sdk 0.46 52755 unbonding_on_hold_ref_count: 52756 type: string 52757 format: int64 52758 title: >- 52759 strictly positive if this validator's unbonding has been stopped 52760 by external modules 52761 unbonding_ids: 52762 type: array 52763 items: 52764 type: string 52765 format: uint64 52766 title: >- 52767 list of unbonding ids, each uniquely identifing an unbonding of 52768 this validator 52769 description: >- 52770 Validator defines a validator, together with the total amount of the 52771 52772 Validator's bond shares and their exchange rate to coins. Slashing 52773 results in 52774 52775 a decrease in the exchange rate, allowing correct calculation of 52776 future 52777 52778 undelegations without iterating over delegators. When coins are 52779 delegated to 52780 52781 this validator, the validator is credited with a delegation whose 52782 number of 52783 52784 bond shares is based on the amount of coins delegated divided by the 52785 current 52786 52787 exchange rate. Voting power can be calculated as total bonded shares 52788 52789 multiplied by exchange rate. 52790 description: |- 52791 QueryDelegatorValidatorResponse response type for the 52792 Query/DelegatorValidator RPC method. 52793 cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse: 52794 type: object 52795 properties: 52796 validators: 52797 type: array 52798 items: 52799 type: object 52800 properties: 52801 operator_address: 52802 type: string 52803 description: >- 52804 operator_address defines the address of the validator's 52805 operator; bech encoded in JSON. 52806 consensus_pubkey: 52807 type: object 52808 properties: 52809 type_url: 52810 type: string 52811 description: >- 52812 A URL/resource name that uniquely identifies the type of the 52813 serialized 52814 52815 protocol buffer message. This string must contain at least 52816 52817 one "/" character. The last segment of the URL's path must 52818 represent 52819 52820 the fully qualified name of the type (as in 52821 52822 `path/google.protobuf.Duration`). The name should be in a 52823 canonical form 52824 52825 (e.g., leading "." is not accepted). 52826 52827 52828 In practice, teams usually precompile into the binary all 52829 types that they 52830 52831 expect it to use in the context of Any. However, for URLs 52832 which use the 52833 52834 scheme `http`, `https`, or no scheme, one can optionally set 52835 up a type 52836 52837 server that maps type URLs to message definitions as 52838 follows: 52839 52840 52841 * If no scheme is provided, `https` is assumed. 52842 52843 * An HTTP GET on the URL must yield a 52844 [google.protobuf.Type][] 52845 value in binary format, or produce an error. 52846 * Applications are allowed to cache lookup results based on 52847 the 52848 URL, or have them precompiled into a binary to avoid any 52849 lookup. Therefore, binary compatibility needs to be preserved 52850 on changes to types. (Use versioned type names to manage 52851 breaking changes.) 52852 52853 Note: this functionality is not currently available in the 52854 official 52855 52856 protobuf release, and it is not used for type URLs beginning 52857 with 52858 52859 type.googleapis.com. 52860 52861 52862 Schemes other than `http`, `https` (or the empty scheme) 52863 might be 52864 52865 used with implementation specific semantics. 52866 value: 52867 type: string 52868 format: byte 52869 description: >- 52870 Must be a valid serialized protocol buffer of the above 52871 specified type. 52872 description: >- 52873 `Any` contains an arbitrary serialized protocol buffer message 52874 along with a 52875 52876 URL that describes the type of the serialized message. 52877 52878 52879 Protobuf library provides support to pack/unpack Any values in 52880 the form 52881 52882 of utility functions or additional generated methods of the Any 52883 type. 52884 52885 52886 Example 1: Pack and unpack a message in C++. 52887 52888 Foo foo = ...; 52889 Any any; 52890 any.PackFrom(foo); 52891 ... 52892 if (any.UnpackTo(&foo)) { 52893 ... 52894 } 52895 52896 Example 2: Pack and unpack a message in Java. 52897 52898 Foo foo = ...; 52899 Any any = Any.pack(foo); 52900 ... 52901 if (any.is(Foo.class)) { 52902 foo = any.unpack(Foo.class); 52903 } 52904 // or ... 52905 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 52906 foo = any.unpack(Foo.getDefaultInstance()); 52907 } 52908 52909 Example 3: Pack and unpack a message in Python. 52910 52911 foo = Foo(...) 52912 any = Any() 52913 any.Pack(foo) 52914 ... 52915 if any.Is(Foo.DESCRIPTOR): 52916 any.Unpack(foo) 52917 ... 52918 52919 Example 4: Pack and unpack a message in Go 52920 52921 foo := &pb.Foo{...} 52922 any, err := anypb.New(foo) 52923 if err != nil { 52924 ... 52925 } 52926 ... 52927 foo := &pb.Foo{} 52928 if err := any.UnmarshalTo(foo); err != nil { 52929 ... 52930 } 52931 52932 The pack methods provided by protobuf library will by default 52933 use 52934 52935 'type.googleapis.com/full.type.name' as the type URL and the 52936 unpack 52937 52938 methods only use the fully qualified type name after the last 52939 '/' 52940 52941 in the type URL, for example "foo.bar.com/x/y.z" will yield type 52942 52943 name "y.z". 52944 52945 52946 JSON 52947 52948 52949 The JSON representation of an `Any` value uses the regular 52950 52951 representation of the deserialized, embedded message, with an 52952 52953 additional field `@type` which contains the type URL. Example: 52954 52955 package google.profile; 52956 message Person { 52957 string first_name = 1; 52958 string last_name = 2; 52959 } 52960 52961 { 52962 "@type": "type.googleapis.com/google.profile.Person", 52963 "firstName": <string>, 52964 "lastName": <string> 52965 } 52966 52967 If the embedded message type is well-known and has a custom JSON 52968 52969 representation, that representation will be embedded adding a 52970 field 52971 52972 `value` which holds the custom JSON in addition to the `@type` 52973 52974 field. Example (for message [google.protobuf.Duration][]): 52975 52976 { 52977 "@type": "type.googleapis.com/google.protobuf.Duration", 52978 "value": "1.212s" 52979 } 52980 jailed: 52981 type: boolean 52982 description: >- 52983 jailed defined whether the validator has been jailed from bonded 52984 status or not. 52985 status: 52986 description: status is the validator status (bonded/unbonding/unbonded). 52987 type: string 52988 enum: 52989 - BOND_STATUS_UNSPECIFIED 52990 - BOND_STATUS_UNBONDED 52991 - BOND_STATUS_UNBONDING 52992 - BOND_STATUS_BONDED 52993 default: BOND_STATUS_UNSPECIFIED 52994 tokens: 52995 type: string 52996 description: tokens define the delegated tokens (incl. self-delegation). 52997 delegator_shares: 52998 type: string 52999 description: >- 53000 delegator_shares defines total shares issued to a validator's 53001 delegators. 53002 description: 53003 description: description defines the description terms for the validator. 53004 type: object 53005 properties: 53006 moniker: 53007 type: string 53008 description: moniker defines a human-readable name for the validator. 53009 identity: 53010 type: string 53011 description: >- 53012 identity defines an optional identity signature (ex. UPort 53013 or Keybase). 53014 website: 53015 type: string 53016 description: website defines an optional website link. 53017 security_contact: 53018 type: string 53019 description: >- 53020 security_contact defines an optional email for security 53021 contact. 53022 details: 53023 type: string 53024 description: details define other optional details. 53025 unbonding_height: 53026 type: string 53027 format: int64 53028 description: >- 53029 unbonding_height defines, if unbonding, the height at which this 53030 validator has begun unbonding. 53031 unbonding_time: 53032 type: string 53033 format: date-time 53034 description: >- 53035 unbonding_time defines, if unbonding, the min time for the 53036 validator to complete unbonding. 53037 commission: 53038 description: commission defines the commission parameters. 53039 type: object 53040 properties: 53041 commission_rates: 53042 description: >- 53043 commission_rates defines the initial commission rates to be 53044 used for creating a validator. 53045 type: object 53046 properties: 53047 rate: 53048 type: string 53049 description: >- 53050 rate is the commission rate charged to delegators, as a 53051 fraction. 53052 max_rate: 53053 type: string 53054 description: >- 53055 max_rate defines the maximum commission rate which 53056 validator can ever charge, as a fraction. 53057 max_change_rate: 53058 type: string 53059 description: >- 53060 max_change_rate defines the maximum daily increase of 53061 the validator commission, as a fraction. 53062 update_time: 53063 type: string 53064 format: date-time 53065 description: >- 53066 update_time is the last time the commission rate was 53067 changed. 53068 min_self_delegation: 53069 type: string 53070 description: >- 53071 min_self_delegation is the validator's self declared minimum 53072 self delegation. 53073 53074 53075 Since: cosmos-sdk 0.46 53076 unbonding_on_hold_ref_count: 53077 type: string 53078 format: int64 53079 title: >- 53080 strictly positive if this validator's unbonding has been stopped 53081 by external modules 53082 unbonding_ids: 53083 type: array 53084 items: 53085 type: string 53086 format: uint64 53087 title: >- 53088 list of unbonding ids, each uniquely identifing an unbonding of 53089 this validator 53090 description: >- 53091 Validator defines a validator, together with the total amount of the 53092 53093 Validator's bond shares and their exchange rate to coins. Slashing 53094 results in 53095 53096 a decrease in the exchange rate, allowing correct calculation of 53097 future 53098 53099 undelegations without iterating over delegators. When coins are 53100 delegated to 53101 53102 this validator, the validator is credited with a delegation whose 53103 number of 53104 53105 bond shares is based on the amount of coins delegated divided by the 53106 current 53107 53108 exchange rate. Voting power can be calculated as total bonded shares 53109 53110 multiplied by exchange rate. 53111 description: validators defines the validators' info of a delegator. 53112 pagination: 53113 description: pagination defines the pagination in the response. 53114 type: object 53115 properties: 53116 next_key: 53117 type: string 53118 format: byte 53119 description: |- 53120 next_key is the key to be passed to PageRequest.key to 53121 query the next page most efficiently. It will be empty if 53122 there are no more results. 53123 total: 53124 type: string 53125 format: uint64 53126 title: >- 53127 total is total number of results available if 53128 PageRequest.count_total 53129 53130 was set, its value is undefined otherwise 53131 description: |- 53132 QueryDelegatorValidatorsResponse is response type for the 53133 Query/DelegatorValidators RPC method. 53134 cosmos.staking.v1beta1.QueryHistoricalInfoResponse: 53135 type: object 53136 properties: 53137 hist: 53138 description: hist defines the historical info at the given height. 53139 type: object 53140 properties: 53141 header: 53142 type: object 53143 properties: 53144 version: 53145 title: basic block info 53146 type: object 53147 properties: 53148 block: 53149 type: string 53150 format: uint64 53151 app: 53152 type: string 53153 format: uint64 53154 description: >- 53155 Consensus captures the consensus rules for processing a block 53156 in the blockchain, 53157 53158 including all blockchain data structures and the rules of the 53159 application's 53160 53161 state transition machine. 53162 chain_id: 53163 type: string 53164 height: 53165 type: string 53166 format: int64 53167 time: 53168 type: string 53169 format: date-time 53170 last_block_id: 53171 title: prev block info 53172 type: object 53173 properties: 53174 hash: 53175 type: string 53176 format: byte 53177 part_set_header: 53178 type: object 53179 properties: 53180 total: 53181 type: integer 53182 format: int64 53183 hash: 53184 type: string 53185 format: byte 53186 title: PartsetHeader 53187 last_commit_hash: 53188 type: string 53189 format: byte 53190 title: hashes of block data 53191 data_hash: 53192 type: string 53193 format: byte 53194 validators_hash: 53195 type: string 53196 format: byte 53197 title: hashes from the app output from the prev block 53198 next_validators_hash: 53199 type: string 53200 format: byte 53201 consensus_hash: 53202 type: string 53203 format: byte 53204 app_hash: 53205 type: string 53206 format: byte 53207 last_results_hash: 53208 type: string 53209 format: byte 53210 evidence_hash: 53211 type: string 53212 format: byte 53213 title: consensus info 53214 proposer_address: 53215 type: string 53216 format: byte 53217 description: Header defines the structure of a block header. 53218 valset: 53219 type: array 53220 items: 53221 type: object 53222 properties: 53223 operator_address: 53224 type: string 53225 description: >- 53226 operator_address defines the address of the validator's 53227 operator; bech encoded in JSON. 53228 consensus_pubkey: 53229 type: object 53230 properties: 53231 type_url: 53232 type: string 53233 description: >- 53234 A URL/resource name that uniquely identifies the type of 53235 the serialized 53236 53237 protocol buffer message. This string must contain at 53238 least 53239 53240 one "/" character. The last segment of the URL's path 53241 must represent 53242 53243 the fully qualified name of the type (as in 53244 53245 `path/google.protobuf.Duration`). The name should be in 53246 a canonical form 53247 53248 (e.g., leading "." is not accepted). 53249 53250 53251 In practice, teams usually precompile into the binary 53252 all types that they 53253 53254 expect it to use in the context of Any. However, for 53255 URLs which use the 53256 53257 scheme `http`, `https`, or no scheme, one can optionally 53258 set up a type 53259 53260 server that maps type URLs to message definitions as 53261 follows: 53262 53263 53264 * If no scheme is provided, `https` is assumed. 53265 53266 * An HTTP GET on the URL must yield a 53267 [google.protobuf.Type][] 53268 value in binary format, or produce an error. 53269 * Applications are allowed to cache lookup results based 53270 on the 53271 URL, or have them precompiled into a binary to avoid any 53272 lookup. Therefore, binary compatibility needs to be preserved 53273 on changes to types. (Use versioned type names to manage 53274 breaking changes.) 53275 53276 Note: this functionality is not currently available in 53277 the official 53278 53279 protobuf release, and it is not used for type URLs 53280 beginning with 53281 53282 type.googleapis.com. 53283 53284 53285 Schemes other than `http`, `https` (or the empty scheme) 53286 might be 53287 53288 used with implementation specific semantics. 53289 value: 53290 type: string 53291 format: byte 53292 description: >- 53293 Must be a valid serialized protocol buffer of the above 53294 specified type. 53295 description: >- 53296 `Any` contains an arbitrary serialized protocol buffer 53297 message along with a 53298 53299 URL that describes the type of the serialized message. 53300 53301 53302 Protobuf library provides support to pack/unpack Any values 53303 in the form 53304 53305 of utility functions or additional generated methods of the 53306 Any type. 53307 53308 53309 Example 1: Pack and unpack a message in C++. 53310 53311 Foo foo = ...; 53312 Any any; 53313 any.PackFrom(foo); 53314 ... 53315 if (any.UnpackTo(&foo)) { 53316 ... 53317 } 53318 53319 Example 2: Pack and unpack a message in Java. 53320 53321 Foo foo = ...; 53322 Any any = Any.pack(foo); 53323 ... 53324 if (any.is(Foo.class)) { 53325 foo = any.unpack(Foo.class); 53326 } 53327 // or ... 53328 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 53329 foo = any.unpack(Foo.getDefaultInstance()); 53330 } 53331 53332 Example 3: Pack and unpack a message in Python. 53333 53334 foo = Foo(...) 53335 any = Any() 53336 any.Pack(foo) 53337 ... 53338 if any.Is(Foo.DESCRIPTOR): 53339 any.Unpack(foo) 53340 ... 53341 53342 Example 4: Pack and unpack a message in Go 53343 53344 foo := &pb.Foo{...} 53345 any, err := anypb.New(foo) 53346 if err != nil { 53347 ... 53348 } 53349 ... 53350 foo := &pb.Foo{} 53351 if err := any.UnmarshalTo(foo); err != nil { 53352 ... 53353 } 53354 53355 The pack methods provided by protobuf library will by 53356 default use 53357 53358 'type.googleapis.com/full.type.name' as the type URL and the 53359 unpack 53360 53361 methods only use the fully qualified type name after the 53362 last '/' 53363 53364 in the type URL, for example "foo.bar.com/x/y.z" will yield 53365 type 53366 53367 name "y.z". 53368 53369 53370 JSON 53371 53372 53373 The JSON representation of an `Any` value uses the regular 53374 53375 representation of the deserialized, embedded message, with 53376 an 53377 53378 additional field `@type` which contains the type URL. 53379 Example: 53380 53381 package google.profile; 53382 message Person { 53383 string first_name = 1; 53384 string last_name = 2; 53385 } 53386 53387 { 53388 "@type": "type.googleapis.com/google.profile.Person", 53389 "firstName": <string>, 53390 "lastName": <string> 53391 } 53392 53393 If the embedded message type is well-known and has a custom 53394 JSON 53395 53396 representation, that representation will be embedded adding 53397 a field 53398 53399 `value` which holds the custom JSON in addition to the 53400 `@type` 53401 53402 field. Example (for message [google.protobuf.Duration][]): 53403 53404 { 53405 "@type": "type.googleapis.com/google.protobuf.Duration", 53406 "value": "1.212s" 53407 } 53408 jailed: 53409 type: boolean 53410 description: >- 53411 jailed defined whether the validator has been jailed from 53412 bonded status or not. 53413 status: 53414 description: status is the validator status (bonded/unbonding/unbonded). 53415 type: string 53416 enum: 53417 - BOND_STATUS_UNSPECIFIED 53418 - BOND_STATUS_UNBONDED 53419 - BOND_STATUS_UNBONDING 53420 - BOND_STATUS_BONDED 53421 default: BOND_STATUS_UNSPECIFIED 53422 tokens: 53423 type: string 53424 description: tokens define the delegated tokens (incl. self-delegation). 53425 delegator_shares: 53426 type: string 53427 description: >- 53428 delegator_shares defines total shares issued to a 53429 validator's delegators. 53430 description: 53431 description: description defines the description terms for the validator. 53432 type: object 53433 properties: 53434 moniker: 53435 type: string 53436 description: moniker defines a human-readable name for the validator. 53437 identity: 53438 type: string 53439 description: >- 53440 identity defines an optional identity signature (ex. 53441 UPort or Keybase). 53442 website: 53443 type: string 53444 description: website defines an optional website link. 53445 security_contact: 53446 type: string 53447 description: >- 53448 security_contact defines an optional email for security 53449 contact. 53450 details: 53451 type: string 53452 description: details define other optional details. 53453 unbonding_height: 53454 type: string 53455 format: int64 53456 description: >- 53457 unbonding_height defines, if unbonding, the height at which 53458 this validator has begun unbonding. 53459 unbonding_time: 53460 type: string 53461 format: date-time 53462 description: >- 53463 unbonding_time defines, if unbonding, the min time for the 53464 validator to complete unbonding. 53465 commission: 53466 description: commission defines the commission parameters. 53467 type: object 53468 properties: 53469 commission_rates: 53470 description: >- 53471 commission_rates defines the initial commission rates to 53472 be used for creating a validator. 53473 type: object 53474 properties: 53475 rate: 53476 type: string 53477 description: >- 53478 rate is the commission rate charged to delegators, 53479 as a fraction. 53480 max_rate: 53481 type: string 53482 description: >- 53483 max_rate defines the maximum commission rate which 53484 validator can ever charge, as a fraction. 53485 max_change_rate: 53486 type: string 53487 description: >- 53488 max_change_rate defines the maximum daily increase 53489 of the validator commission, as a fraction. 53490 update_time: 53491 type: string 53492 format: date-time 53493 description: >- 53494 update_time is the last time the commission rate was 53495 changed. 53496 min_self_delegation: 53497 type: string 53498 description: >- 53499 min_self_delegation is the validator's self declared minimum 53500 self delegation. 53501 53502 53503 Since: cosmos-sdk 0.46 53504 unbonding_on_hold_ref_count: 53505 type: string 53506 format: int64 53507 title: >- 53508 strictly positive if this validator's unbonding has been 53509 stopped by external modules 53510 unbonding_ids: 53511 type: array 53512 items: 53513 type: string 53514 format: uint64 53515 title: >- 53516 list of unbonding ids, each uniquely identifing an unbonding 53517 of this validator 53518 description: >- 53519 Validator defines a validator, together with the total amount of 53520 the 53521 53522 Validator's bond shares and their exchange rate to coins. 53523 Slashing results in 53524 53525 a decrease in the exchange rate, allowing correct calculation of 53526 future 53527 53528 undelegations without iterating over delegators. When coins are 53529 delegated to 53530 53531 this validator, the validator is credited with a delegation 53532 whose number of 53533 53534 bond shares is based on the amount of coins delegated divided by 53535 the current 53536 53537 exchange rate. Voting power can be calculated as total bonded 53538 shares 53539 53540 multiplied by exchange rate. 53541 description: >- 53542 QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo 53543 RPC 53544 53545 method. 53546 cosmos.staking.v1beta1.QueryParamsResponse: 53547 type: object 53548 properties: 53549 params: 53550 description: params holds all the parameters of this module. 53551 type: object 53552 properties: 53553 unbonding_time: 53554 type: string 53555 description: unbonding_time is the time duration of unbonding. 53556 max_validators: 53557 type: integer 53558 format: int64 53559 description: max_validators is the maximum number of validators. 53560 max_entries: 53561 type: integer 53562 format: int64 53563 description: >- 53564 max_entries is the max entries for either unbonding delegation or 53565 redelegation (per pair/trio). 53566 historical_entries: 53567 type: integer 53568 format: int64 53569 description: historical_entries is the number of historical entries to persist. 53570 bond_denom: 53571 type: string 53572 description: bond_denom defines the bondable coin denomination. 53573 min_commission_rate: 53574 type: string 53575 title: >- 53576 min_commission_rate is the chain-wide minimum commission rate that 53577 a validator can charge their delegators 53578 description: QueryParamsResponse is response type for the Query/Params RPC method. 53579 cosmos.staking.v1beta1.QueryPoolResponse: 53580 type: object 53581 properties: 53582 pool: 53583 description: pool defines the pool info. 53584 type: object 53585 properties: 53586 not_bonded_tokens: 53587 type: string 53588 bonded_tokens: 53589 type: string 53590 description: QueryPoolResponse is response type for the Query/Pool RPC method. 53591 cosmos.staking.v1beta1.QueryRedelegationsResponse: 53592 type: object 53593 properties: 53594 redelegation_responses: 53595 type: array 53596 items: 53597 type: object 53598 properties: 53599 redelegation: 53600 type: object 53601 properties: 53602 delegator_address: 53603 type: string 53604 description: >- 53605 delegator_address is the bech32-encoded address of the 53606 delegator. 53607 validator_src_address: 53608 type: string 53609 description: >- 53610 validator_src_address is the validator redelegation source 53611 operator address. 53612 validator_dst_address: 53613 type: string 53614 description: >- 53615 validator_dst_address is the validator redelegation 53616 destination operator address. 53617 entries: 53618 type: array 53619 items: 53620 type: object 53621 properties: 53622 creation_height: 53623 type: string 53624 format: int64 53625 description: >- 53626 creation_height defines the height which the 53627 redelegation took place. 53628 completion_time: 53629 type: string 53630 format: date-time 53631 description: >- 53632 completion_time defines the unix time for redelegation 53633 completion. 53634 initial_balance: 53635 type: string 53636 description: >- 53637 initial_balance defines the initial balance when 53638 redelegation started. 53639 shares_dst: 53640 type: string 53641 description: >- 53642 shares_dst is the amount of destination-validator 53643 shares created by redelegation. 53644 unbonding_id: 53645 type: string 53646 format: uint64 53647 title: Incrementing id that uniquely identifies this entry 53648 unbonding_on_hold_ref_count: 53649 type: string 53650 format: int64 53651 title: >- 53652 Strictly positive if this entry's unbonding has been 53653 stopped by external modules 53654 description: >- 53655 RedelegationEntry defines a redelegation object with 53656 relevant metadata. 53657 description: entries are the redelegation entries. 53658 description: >- 53659 Redelegation contains the list of a particular delegator's 53660 redelegating bonds 53661 53662 from a particular source validator to a particular destination 53663 validator. 53664 entries: 53665 type: array 53666 items: 53667 type: object 53668 properties: 53669 redelegation_entry: 53670 type: object 53671 properties: 53672 creation_height: 53673 type: string 53674 format: int64 53675 description: >- 53676 creation_height defines the height which the 53677 redelegation took place. 53678 completion_time: 53679 type: string 53680 format: date-time 53681 description: >- 53682 completion_time defines the unix time for redelegation 53683 completion. 53684 initial_balance: 53685 type: string 53686 description: >- 53687 initial_balance defines the initial balance when 53688 redelegation started. 53689 shares_dst: 53690 type: string 53691 description: >- 53692 shares_dst is the amount of destination-validator 53693 shares created by redelegation. 53694 unbonding_id: 53695 type: string 53696 format: uint64 53697 title: Incrementing id that uniquely identifies this entry 53698 unbonding_on_hold_ref_count: 53699 type: string 53700 format: int64 53701 title: >- 53702 Strictly positive if this entry's unbonding has been 53703 stopped by external modules 53704 description: >- 53705 RedelegationEntry defines a redelegation object with 53706 relevant metadata. 53707 balance: 53708 type: string 53709 description: >- 53710 RedelegationEntryResponse is equivalent to a RedelegationEntry 53711 except that it 53712 53713 contains a balance in addition to shares which is more 53714 suitable for client 53715 53716 responses. 53717 description: >- 53718 RedelegationResponse is equivalent to a Redelegation except that its 53719 entries 53720 53721 contain a balance in addition to shares which is more suitable for 53722 client 53723 53724 responses. 53725 pagination: 53726 description: pagination defines the pagination in the response. 53727 type: object 53728 properties: 53729 next_key: 53730 type: string 53731 format: byte 53732 description: |- 53733 next_key is the key to be passed to PageRequest.key to 53734 query the next page most efficiently. It will be empty if 53735 there are no more results. 53736 total: 53737 type: string 53738 format: uint64 53739 title: >- 53740 total is total number of results available if 53741 PageRequest.count_total 53742 53743 was set, its value is undefined otherwise 53744 description: >- 53745 QueryRedelegationsResponse is response type for the Query/Redelegations 53746 RPC 53747 53748 method. 53749 cosmos.staking.v1beta1.QueryUnbondingDelegationResponse: 53750 type: object 53751 properties: 53752 unbond: 53753 type: object 53754 properties: 53755 delegator_address: 53756 type: string 53757 description: delegator_address is the encoded address of the delegator. 53758 validator_address: 53759 type: string 53760 description: validator_address is the encoded address of the validator. 53761 entries: 53762 type: array 53763 items: 53764 type: object 53765 properties: 53766 creation_height: 53767 type: string 53768 format: int64 53769 description: >- 53770 creation_height is the height which the unbonding took 53771 place. 53772 completion_time: 53773 type: string 53774 format: date-time 53775 description: completion_time is the unix time for unbonding completion. 53776 initial_balance: 53777 type: string 53778 description: >- 53779 initial_balance defines the tokens initially scheduled to 53780 receive at completion. 53781 balance: 53782 type: string 53783 description: balance defines the tokens to receive at completion. 53784 unbonding_id: 53785 type: string 53786 format: uint64 53787 title: Incrementing id that uniquely identifies this entry 53788 unbonding_on_hold_ref_count: 53789 type: string 53790 format: int64 53791 title: >- 53792 Strictly positive if this entry's unbonding has been stopped 53793 by external modules 53794 description: >- 53795 UnbondingDelegationEntry defines an unbonding object with 53796 relevant metadata. 53797 description: entries are the unbonding delegation entries. 53798 description: |- 53799 UnbondingDelegation stores all of a single delegator's unbonding bonds 53800 for a single validator in an time-ordered list. 53801 description: |- 53802 QueryDelegationResponse is response type for the Query/UnbondingDelegation 53803 RPC method. 53804 cosmos.staking.v1beta1.QueryValidatorDelegationsResponse: 53805 type: object 53806 properties: 53807 delegation_responses: 53808 type: array 53809 items: 53810 type: object 53811 properties: 53812 delegation: 53813 type: object 53814 properties: 53815 delegator_address: 53816 type: string 53817 description: delegator_address is the encoded address of the delegator. 53818 validator_address: 53819 type: string 53820 description: validator_address is the encoded address of the validator. 53821 shares: 53822 type: string 53823 description: shares define the delegation shares received. 53824 description: >- 53825 Delegation represents the bond with tokens held by an account. 53826 It is 53827 53828 owned by one delegator, and is associated with the voting power 53829 of one 53830 53831 validator. 53832 balance: 53833 type: object 53834 properties: 53835 denom: 53836 type: string 53837 amount: 53838 type: string 53839 description: >- 53840 Coin defines a token with a denomination and an amount. 53841 53842 53843 NOTE: The amount field is an Int which implements the custom 53844 method 53845 53846 signatures required by gogoproto. 53847 description: >- 53848 DelegationResponse is equivalent to Delegation except that it 53849 contains a 53850 53851 balance in addition to shares which is more suitable for client 53852 responses. 53853 pagination: 53854 description: pagination defines the pagination in the response. 53855 type: object 53856 properties: 53857 next_key: 53858 type: string 53859 format: byte 53860 description: |- 53861 next_key is the key to be passed to PageRequest.key to 53862 query the next page most efficiently. It will be empty if 53863 there are no more results. 53864 total: 53865 type: string 53866 format: uint64 53867 title: >- 53868 total is total number of results available if 53869 PageRequest.count_total 53870 53871 was set, its value is undefined otherwise 53872 title: |- 53873 QueryValidatorDelegationsResponse is response type for the 53874 Query/ValidatorDelegations RPC method 53875 cosmos.staking.v1beta1.QueryValidatorResponse: 53876 type: object 53877 properties: 53878 validator: 53879 type: object 53880 properties: 53881 operator_address: 53882 type: string 53883 description: >- 53884 operator_address defines the address of the validator's operator; 53885 bech encoded in JSON. 53886 consensus_pubkey: 53887 type: object 53888 properties: 53889 type_url: 53890 type: string 53891 description: >- 53892 A URL/resource name that uniquely identifies the type of the 53893 serialized 53894 53895 protocol buffer message. This string must contain at least 53896 53897 one "/" character. The last segment of the URL's path must 53898 represent 53899 53900 the fully qualified name of the type (as in 53901 53902 `path/google.protobuf.Duration`). The name should be in a 53903 canonical form 53904 53905 (e.g., leading "." is not accepted). 53906 53907 53908 In practice, teams usually precompile into the binary all 53909 types that they 53910 53911 expect it to use in the context of Any. However, for URLs 53912 which use the 53913 53914 scheme `http`, `https`, or no scheme, one can optionally set 53915 up a type 53916 53917 server that maps type URLs to message definitions as follows: 53918 53919 53920 * If no scheme is provided, `https` is assumed. 53921 53922 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 53923 value in binary format, or produce an error. 53924 * Applications are allowed to cache lookup results based on 53925 the 53926 URL, or have them precompiled into a binary to avoid any 53927 lookup. Therefore, binary compatibility needs to be preserved 53928 on changes to types. (Use versioned type names to manage 53929 breaking changes.) 53930 53931 Note: this functionality is not currently available in the 53932 official 53933 53934 protobuf release, and it is not used for type URLs beginning 53935 with 53936 53937 type.googleapis.com. 53938 53939 53940 Schemes other than `http`, `https` (or the empty scheme) might 53941 be 53942 53943 used with implementation specific semantics. 53944 value: 53945 type: string 53946 format: byte 53947 description: >- 53948 Must be a valid serialized protocol buffer of the above 53949 specified type. 53950 description: >- 53951 `Any` contains an arbitrary serialized protocol buffer message 53952 along with a 53953 53954 URL that describes the type of the serialized message. 53955 53956 53957 Protobuf library provides support to pack/unpack Any values in the 53958 form 53959 53960 of utility functions or additional generated methods of the Any 53961 type. 53962 53963 53964 Example 1: Pack and unpack a message in C++. 53965 53966 Foo foo = ...; 53967 Any any; 53968 any.PackFrom(foo); 53969 ... 53970 if (any.UnpackTo(&foo)) { 53971 ... 53972 } 53973 53974 Example 2: Pack and unpack a message in Java. 53975 53976 Foo foo = ...; 53977 Any any = Any.pack(foo); 53978 ... 53979 if (any.is(Foo.class)) { 53980 foo = any.unpack(Foo.class); 53981 } 53982 // or ... 53983 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 53984 foo = any.unpack(Foo.getDefaultInstance()); 53985 } 53986 53987 Example 3: Pack and unpack a message in Python. 53988 53989 foo = Foo(...) 53990 any = Any() 53991 any.Pack(foo) 53992 ... 53993 if any.Is(Foo.DESCRIPTOR): 53994 any.Unpack(foo) 53995 ... 53996 53997 Example 4: Pack and unpack a message in Go 53998 53999 foo := &pb.Foo{...} 54000 any, err := anypb.New(foo) 54001 if err != nil { 54002 ... 54003 } 54004 ... 54005 foo := &pb.Foo{} 54006 if err := any.UnmarshalTo(foo); err != nil { 54007 ... 54008 } 54009 54010 The pack methods provided by protobuf library will by default use 54011 54012 'type.googleapis.com/full.type.name' as the type URL and the 54013 unpack 54014 54015 methods only use the fully qualified type name after the last '/' 54016 54017 in the type URL, for example "foo.bar.com/x/y.z" will yield type 54018 54019 name "y.z". 54020 54021 54022 JSON 54023 54024 54025 The JSON representation of an `Any` value uses the regular 54026 54027 representation of the deserialized, embedded message, with an 54028 54029 additional field `@type` which contains the type URL. Example: 54030 54031 package google.profile; 54032 message Person { 54033 string first_name = 1; 54034 string last_name = 2; 54035 } 54036 54037 { 54038 "@type": "type.googleapis.com/google.profile.Person", 54039 "firstName": <string>, 54040 "lastName": <string> 54041 } 54042 54043 If the embedded message type is well-known and has a custom JSON 54044 54045 representation, that representation will be embedded adding a 54046 field 54047 54048 `value` which holds the custom JSON in addition to the `@type` 54049 54050 field. Example (for message [google.protobuf.Duration][]): 54051 54052 { 54053 "@type": "type.googleapis.com/google.protobuf.Duration", 54054 "value": "1.212s" 54055 } 54056 jailed: 54057 type: boolean 54058 description: >- 54059 jailed defined whether the validator has been jailed from bonded 54060 status or not. 54061 status: 54062 description: status is the validator status (bonded/unbonding/unbonded). 54063 type: string 54064 enum: 54065 - BOND_STATUS_UNSPECIFIED 54066 - BOND_STATUS_UNBONDED 54067 - BOND_STATUS_UNBONDING 54068 - BOND_STATUS_BONDED 54069 default: BOND_STATUS_UNSPECIFIED 54070 tokens: 54071 type: string 54072 description: tokens define the delegated tokens (incl. self-delegation). 54073 delegator_shares: 54074 type: string 54075 description: >- 54076 delegator_shares defines total shares issued to a validator's 54077 delegators. 54078 description: 54079 description: description defines the description terms for the validator. 54080 type: object 54081 properties: 54082 moniker: 54083 type: string 54084 description: moniker defines a human-readable name for the validator. 54085 identity: 54086 type: string 54087 description: >- 54088 identity defines an optional identity signature (ex. UPort or 54089 Keybase). 54090 website: 54091 type: string 54092 description: website defines an optional website link. 54093 security_contact: 54094 type: string 54095 description: >- 54096 security_contact defines an optional email for security 54097 contact. 54098 details: 54099 type: string 54100 description: details define other optional details. 54101 unbonding_height: 54102 type: string 54103 format: int64 54104 description: >- 54105 unbonding_height defines, if unbonding, the height at which this 54106 validator has begun unbonding. 54107 unbonding_time: 54108 type: string 54109 format: date-time 54110 description: >- 54111 unbonding_time defines, if unbonding, the min time for the 54112 validator to complete unbonding. 54113 commission: 54114 description: commission defines the commission parameters. 54115 type: object 54116 properties: 54117 commission_rates: 54118 description: >- 54119 commission_rates defines the initial commission rates to be 54120 used for creating a validator. 54121 type: object 54122 properties: 54123 rate: 54124 type: string 54125 description: >- 54126 rate is the commission rate charged to delegators, as a 54127 fraction. 54128 max_rate: 54129 type: string 54130 description: >- 54131 max_rate defines the maximum commission rate which 54132 validator can ever charge, as a fraction. 54133 max_change_rate: 54134 type: string 54135 description: >- 54136 max_change_rate defines the maximum daily increase of the 54137 validator commission, as a fraction. 54138 update_time: 54139 type: string 54140 format: date-time 54141 description: update_time is the last time the commission rate was changed. 54142 min_self_delegation: 54143 type: string 54144 description: >- 54145 min_self_delegation is the validator's self declared minimum self 54146 delegation. 54147 54148 54149 Since: cosmos-sdk 0.46 54150 unbonding_on_hold_ref_count: 54151 type: string 54152 format: int64 54153 title: >- 54154 strictly positive if this validator's unbonding has been stopped 54155 by external modules 54156 unbonding_ids: 54157 type: array 54158 items: 54159 type: string 54160 format: uint64 54161 title: >- 54162 list of unbonding ids, each uniquely identifing an unbonding of 54163 this validator 54164 description: >- 54165 Validator defines a validator, together with the total amount of the 54166 54167 Validator's bond shares and their exchange rate to coins. Slashing 54168 results in 54169 54170 a decrease in the exchange rate, allowing correct calculation of 54171 future 54172 54173 undelegations without iterating over delegators. When coins are 54174 delegated to 54175 54176 this validator, the validator is credited with a delegation whose 54177 number of 54178 54179 bond shares is based on the amount of coins delegated divided by the 54180 current 54181 54182 exchange rate. Voting power can be calculated as total bonded shares 54183 54184 multiplied by exchange rate. 54185 title: QueryValidatorResponse is response type for the Query/Validator RPC method 54186 cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse: 54187 type: object 54188 properties: 54189 unbonding_responses: 54190 type: array 54191 items: 54192 type: object 54193 properties: 54194 delegator_address: 54195 type: string 54196 description: delegator_address is the encoded address of the delegator. 54197 validator_address: 54198 type: string 54199 description: validator_address is the encoded address of the validator. 54200 entries: 54201 type: array 54202 items: 54203 type: object 54204 properties: 54205 creation_height: 54206 type: string 54207 format: int64 54208 description: >- 54209 creation_height is the height which the unbonding took 54210 place. 54211 completion_time: 54212 type: string 54213 format: date-time 54214 description: completion_time is the unix time for unbonding completion. 54215 initial_balance: 54216 type: string 54217 description: >- 54218 initial_balance defines the tokens initially scheduled to 54219 receive at completion. 54220 balance: 54221 type: string 54222 description: balance defines the tokens to receive at completion. 54223 unbonding_id: 54224 type: string 54225 format: uint64 54226 title: Incrementing id that uniquely identifies this entry 54227 unbonding_on_hold_ref_count: 54228 type: string 54229 format: int64 54230 title: >- 54231 Strictly positive if this entry's unbonding has been 54232 stopped by external modules 54233 description: >- 54234 UnbondingDelegationEntry defines an unbonding object with 54235 relevant metadata. 54236 description: entries are the unbonding delegation entries. 54237 description: >- 54238 UnbondingDelegation stores all of a single delegator's unbonding 54239 bonds 54240 54241 for a single validator in an time-ordered list. 54242 pagination: 54243 description: pagination defines the pagination in the response. 54244 type: object 54245 properties: 54246 next_key: 54247 type: string 54248 format: byte 54249 description: |- 54250 next_key is the key to be passed to PageRequest.key to 54251 query the next page most efficiently. It will be empty if 54252 there are no more results. 54253 total: 54254 type: string 54255 format: uint64 54256 title: >- 54257 total is total number of results available if 54258 PageRequest.count_total 54259 54260 was set, its value is undefined otherwise 54261 description: |- 54262 QueryValidatorUnbondingDelegationsResponse is response type for the 54263 Query/ValidatorUnbondingDelegations RPC method. 54264 cosmos.staking.v1beta1.QueryValidatorsResponse: 54265 type: object 54266 properties: 54267 validators: 54268 type: array 54269 items: 54270 type: object 54271 properties: 54272 operator_address: 54273 type: string 54274 description: >- 54275 operator_address defines the address of the validator's 54276 operator; bech encoded in JSON. 54277 consensus_pubkey: 54278 type: object 54279 properties: 54280 type_url: 54281 type: string 54282 description: >- 54283 A URL/resource name that uniquely identifies the type of the 54284 serialized 54285 54286 protocol buffer message. This string must contain at least 54287 54288 one "/" character. The last segment of the URL's path must 54289 represent 54290 54291 the fully qualified name of the type (as in 54292 54293 `path/google.protobuf.Duration`). The name should be in a 54294 canonical form 54295 54296 (e.g., leading "." is not accepted). 54297 54298 54299 In practice, teams usually precompile into the binary all 54300 types that they 54301 54302 expect it to use in the context of Any. However, for URLs 54303 which use the 54304 54305 scheme `http`, `https`, or no scheme, one can optionally set 54306 up a type 54307 54308 server that maps type URLs to message definitions as 54309 follows: 54310 54311 54312 * If no scheme is provided, `https` is assumed. 54313 54314 * An HTTP GET on the URL must yield a 54315 [google.protobuf.Type][] 54316 value in binary format, or produce an error. 54317 * Applications are allowed to cache lookup results based on 54318 the 54319 URL, or have them precompiled into a binary to avoid any 54320 lookup. Therefore, binary compatibility needs to be preserved 54321 on changes to types. (Use versioned type names to manage 54322 breaking changes.) 54323 54324 Note: this functionality is not currently available in the 54325 official 54326 54327 protobuf release, and it is not used for type URLs beginning 54328 with 54329 54330 type.googleapis.com. 54331 54332 54333 Schemes other than `http`, `https` (or the empty scheme) 54334 might be 54335 54336 used with implementation specific semantics. 54337 value: 54338 type: string 54339 format: byte 54340 description: >- 54341 Must be a valid serialized protocol buffer of the above 54342 specified type. 54343 description: >- 54344 `Any` contains an arbitrary serialized protocol buffer message 54345 along with a 54346 54347 URL that describes the type of the serialized message. 54348 54349 54350 Protobuf library provides support to pack/unpack Any values in 54351 the form 54352 54353 of utility functions or additional generated methods of the Any 54354 type. 54355 54356 54357 Example 1: Pack and unpack a message in C++. 54358 54359 Foo foo = ...; 54360 Any any; 54361 any.PackFrom(foo); 54362 ... 54363 if (any.UnpackTo(&foo)) { 54364 ... 54365 } 54366 54367 Example 2: Pack and unpack a message in Java. 54368 54369 Foo foo = ...; 54370 Any any = Any.pack(foo); 54371 ... 54372 if (any.is(Foo.class)) { 54373 foo = any.unpack(Foo.class); 54374 } 54375 // or ... 54376 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 54377 foo = any.unpack(Foo.getDefaultInstance()); 54378 } 54379 54380 Example 3: Pack and unpack a message in Python. 54381 54382 foo = Foo(...) 54383 any = Any() 54384 any.Pack(foo) 54385 ... 54386 if any.Is(Foo.DESCRIPTOR): 54387 any.Unpack(foo) 54388 ... 54389 54390 Example 4: Pack and unpack a message in Go 54391 54392 foo := &pb.Foo{...} 54393 any, err := anypb.New(foo) 54394 if err != nil { 54395 ... 54396 } 54397 ... 54398 foo := &pb.Foo{} 54399 if err := any.UnmarshalTo(foo); err != nil { 54400 ... 54401 } 54402 54403 The pack methods provided by protobuf library will by default 54404 use 54405 54406 'type.googleapis.com/full.type.name' as the type URL and the 54407 unpack 54408 54409 methods only use the fully qualified type name after the last 54410 '/' 54411 54412 in the type URL, for example "foo.bar.com/x/y.z" will yield type 54413 54414 name "y.z". 54415 54416 54417 JSON 54418 54419 54420 The JSON representation of an `Any` value uses the regular 54421 54422 representation of the deserialized, embedded message, with an 54423 54424 additional field `@type` which contains the type URL. Example: 54425 54426 package google.profile; 54427 message Person { 54428 string first_name = 1; 54429 string last_name = 2; 54430 } 54431 54432 { 54433 "@type": "type.googleapis.com/google.profile.Person", 54434 "firstName": <string>, 54435 "lastName": <string> 54436 } 54437 54438 If the embedded message type is well-known and has a custom JSON 54439 54440 representation, that representation will be embedded adding a 54441 field 54442 54443 `value` which holds the custom JSON in addition to the `@type` 54444 54445 field. Example (for message [google.protobuf.Duration][]): 54446 54447 { 54448 "@type": "type.googleapis.com/google.protobuf.Duration", 54449 "value": "1.212s" 54450 } 54451 jailed: 54452 type: boolean 54453 description: >- 54454 jailed defined whether the validator has been jailed from bonded 54455 status or not. 54456 status: 54457 description: status is the validator status (bonded/unbonding/unbonded). 54458 type: string 54459 enum: 54460 - BOND_STATUS_UNSPECIFIED 54461 - BOND_STATUS_UNBONDED 54462 - BOND_STATUS_UNBONDING 54463 - BOND_STATUS_BONDED 54464 default: BOND_STATUS_UNSPECIFIED 54465 tokens: 54466 type: string 54467 description: tokens define the delegated tokens (incl. self-delegation). 54468 delegator_shares: 54469 type: string 54470 description: >- 54471 delegator_shares defines total shares issued to a validator's 54472 delegators. 54473 description: 54474 description: description defines the description terms for the validator. 54475 type: object 54476 properties: 54477 moniker: 54478 type: string 54479 description: moniker defines a human-readable name for the validator. 54480 identity: 54481 type: string 54482 description: >- 54483 identity defines an optional identity signature (ex. UPort 54484 or Keybase). 54485 website: 54486 type: string 54487 description: website defines an optional website link. 54488 security_contact: 54489 type: string 54490 description: >- 54491 security_contact defines an optional email for security 54492 contact. 54493 details: 54494 type: string 54495 description: details define other optional details. 54496 unbonding_height: 54497 type: string 54498 format: int64 54499 description: >- 54500 unbonding_height defines, if unbonding, the height at which this 54501 validator has begun unbonding. 54502 unbonding_time: 54503 type: string 54504 format: date-time 54505 description: >- 54506 unbonding_time defines, if unbonding, the min time for the 54507 validator to complete unbonding. 54508 commission: 54509 description: commission defines the commission parameters. 54510 type: object 54511 properties: 54512 commission_rates: 54513 description: >- 54514 commission_rates defines the initial commission rates to be 54515 used for creating a validator. 54516 type: object 54517 properties: 54518 rate: 54519 type: string 54520 description: >- 54521 rate is the commission rate charged to delegators, as a 54522 fraction. 54523 max_rate: 54524 type: string 54525 description: >- 54526 max_rate defines the maximum commission rate which 54527 validator can ever charge, as a fraction. 54528 max_change_rate: 54529 type: string 54530 description: >- 54531 max_change_rate defines the maximum daily increase of 54532 the validator commission, as a fraction. 54533 update_time: 54534 type: string 54535 format: date-time 54536 description: >- 54537 update_time is the last time the commission rate was 54538 changed. 54539 min_self_delegation: 54540 type: string 54541 description: >- 54542 min_self_delegation is the validator's self declared minimum 54543 self delegation. 54544 54545 54546 Since: cosmos-sdk 0.46 54547 unbonding_on_hold_ref_count: 54548 type: string 54549 format: int64 54550 title: >- 54551 strictly positive if this validator's unbonding has been stopped 54552 by external modules 54553 unbonding_ids: 54554 type: array 54555 items: 54556 type: string 54557 format: uint64 54558 title: >- 54559 list of unbonding ids, each uniquely identifing an unbonding of 54560 this validator 54561 description: >- 54562 Validator defines a validator, together with the total amount of the 54563 54564 Validator's bond shares and their exchange rate to coins. Slashing 54565 results in 54566 54567 a decrease in the exchange rate, allowing correct calculation of 54568 future 54569 54570 undelegations without iterating over delegators. When coins are 54571 delegated to 54572 54573 this validator, the validator is credited with a delegation whose 54574 number of 54575 54576 bond shares is based on the amount of coins delegated divided by the 54577 current 54578 54579 exchange rate. Voting power can be calculated as total bonded shares 54580 54581 multiplied by exchange rate. 54582 description: validators contains all the queried validators. 54583 pagination: 54584 description: pagination defines the pagination in the response. 54585 type: object 54586 properties: 54587 next_key: 54588 type: string 54589 format: byte 54590 description: |- 54591 next_key is the key to be passed to PageRequest.key to 54592 query the next page most efficiently. It will be empty if 54593 there are no more results. 54594 total: 54595 type: string 54596 format: uint64 54597 title: >- 54598 total is total number of results available if 54599 PageRequest.count_total 54600 54601 was set, its value is undefined otherwise 54602 title: >- 54603 QueryValidatorsResponse is response type for the Query/Validators RPC 54604 method 54605 cosmos.staking.v1beta1.Redelegation: 54606 type: object 54607 properties: 54608 delegator_address: 54609 type: string 54610 description: delegator_address is the bech32-encoded address of the delegator. 54611 validator_src_address: 54612 type: string 54613 description: >- 54614 validator_src_address is the validator redelegation source operator 54615 address. 54616 validator_dst_address: 54617 type: string 54618 description: >- 54619 validator_dst_address is the validator redelegation destination 54620 operator address. 54621 entries: 54622 type: array 54623 items: 54624 type: object 54625 properties: 54626 creation_height: 54627 type: string 54628 format: int64 54629 description: >- 54630 creation_height defines the height which the redelegation took 54631 place. 54632 completion_time: 54633 type: string 54634 format: date-time 54635 description: >- 54636 completion_time defines the unix time for redelegation 54637 completion. 54638 initial_balance: 54639 type: string 54640 description: >- 54641 initial_balance defines the initial balance when redelegation 54642 started. 54643 shares_dst: 54644 type: string 54645 description: >- 54646 shares_dst is the amount of destination-validator shares created 54647 by redelegation. 54648 unbonding_id: 54649 type: string 54650 format: uint64 54651 title: Incrementing id that uniquely identifies this entry 54652 unbonding_on_hold_ref_count: 54653 type: string 54654 format: int64 54655 title: >- 54656 Strictly positive if this entry's unbonding has been stopped by 54657 external modules 54658 description: >- 54659 RedelegationEntry defines a redelegation object with relevant 54660 metadata. 54661 description: entries are the redelegation entries. 54662 description: >- 54663 Redelegation contains the list of a particular delegator's redelegating 54664 bonds 54665 54666 from a particular source validator to a particular destination validator. 54667 cosmos.staking.v1beta1.RedelegationEntry: 54668 type: object 54669 properties: 54670 creation_height: 54671 type: string 54672 format: int64 54673 description: creation_height defines the height which the redelegation took place. 54674 completion_time: 54675 type: string 54676 format: date-time 54677 description: completion_time defines the unix time for redelegation completion. 54678 initial_balance: 54679 type: string 54680 description: initial_balance defines the initial balance when redelegation started. 54681 shares_dst: 54682 type: string 54683 description: >- 54684 shares_dst is the amount of destination-validator shares created by 54685 redelegation. 54686 unbonding_id: 54687 type: string 54688 format: uint64 54689 title: Incrementing id that uniquely identifies this entry 54690 unbonding_on_hold_ref_count: 54691 type: string 54692 format: int64 54693 title: >- 54694 Strictly positive if this entry's unbonding has been stopped by 54695 external modules 54696 description: RedelegationEntry defines a redelegation object with relevant metadata. 54697 cosmos.staking.v1beta1.RedelegationEntryResponse: 54698 type: object 54699 properties: 54700 redelegation_entry: 54701 type: object 54702 properties: 54703 creation_height: 54704 type: string 54705 format: int64 54706 description: >- 54707 creation_height defines the height which the redelegation took 54708 place. 54709 completion_time: 54710 type: string 54711 format: date-time 54712 description: completion_time defines the unix time for redelegation completion. 54713 initial_balance: 54714 type: string 54715 description: >- 54716 initial_balance defines the initial balance when redelegation 54717 started. 54718 shares_dst: 54719 type: string 54720 description: >- 54721 shares_dst is the amount of destination-validator shares created 54722 by redelegation. 54723 unbonding_id: 54724 type: string 54725 format: uint64 54726 title: Incrementing id that uniquely identifies this entry 54727 unbonding_on_hold_ref_count: 54728 type: string 54729 format: int64 54730 title: >- 54731 Strictly positive if this entry's unbonding has been stopped by 54732 external modules 54733 description: >- 54734 RedelegationEntry defines a redelegation object with relevant 54735 metadata. 54736 balance: 54737 type: string 54738 description: >- 54739 RedelegationEntryResponse is equivalent to a RedelegationEntry except that 54740 it 54741 54742 contains a balance in addition to shares which is more suitable for client 54743 54744 responses. 54745 cosmos.staking.v1beta1.RedelegationResponse: 54746 type: object 54747 properties: 54748 redelegation: 54749 type: object 54750 properties: 54751 delegator_address: 54752 type: string 54753 description: delegator_address is the bech32-encoded address of the delegator. 54754 validator_src_address: 54755 type: string 54756 description: >- 54757 validator_src_address is the validator redelegation source 54758 operator address. 54759 validator_dst_address: 54760 type: string 54761 description: >- 54762 validator_dst_address is the validator redelegation destination 54763 operator address. 54764 entries: 54765 type: array 54766 items: 54767 type: object 54768 properties: 54769 creation_height: 54770 type: string 54771 format: int64 54772 description: >- 54773 creation_height defines the height which the redelegation 54774 took place. 54775 completion_time: 54776 type: string 54777 format: date-time 54778 description: >- 54779 completion_time defines the unix time for redelegation 54780 completion. 54781 initial_balance: 54782 type: string 54783 description: >- 54784 initial_balance defines the initial balance when 54785 redelegation started. 54786 shares_dst: 54787 type: string 54788 description: >- 54789 shares_dst is the amount of destination-validator shares 54790 created by redelegation. 54791 unbonding_id: 54792 type: string 54793 format: uint64 54794 title: Incrementing id that uniquely identifies this entry 54795 unbonding_on_hold_ref_count: 54796 type: string 54797 format: int64 54798 title: >- 54799 Strictly positive if this entry's unbonding has been stopped 54800 by external modules 54801 description: >- 54802 RedelegationEntry defines a redelegation object with relevant 54803 metadata. 54804 description: entries are the redelegation entries. 54805 description: >- 54806 Redelegation contains the list of a particular delegator's 54807 redelegating bonds 54808 54809 from a particular source validator to a particular destination 54810 validator. 54811 entries: 54812 type: array 54813 items: 54814 type: object 54815 properties: 54816 redelegation_entry: 54817 type: object 54818 properties: 54819 creation_height: 54820 type: string 54821 format: int64 54822 description: >- 54823 creation_height defines the height which the redelegation 54824 took place. 54825 completion_time: 54826 type: string 54827 format: date-time 54828 description: >- 54829 completion_time defines the unix time for redelegation 54830 completion. 54831 initial_balance: 54832 type: string 54833 description: >- 54834 initial_balance defines the initial balance when 54835 redelegation started. 54836 shares_dst: 54837 type: string 54838 description: >- 54839 shares_dst is the amount of destination-validator shares 54840 created by redelegation. 54841 unbonding_id: 54842 type: string 54843 format: uint64 54844 title: Incrementing id that uniquely identifies this entry 54845 unbonding_on_hold_ref_count: 54846 type: string 54847 format: int64 54848 title: >- 54849 Strictly positive if this entry's unbonding has been stopped 54850 by external modules 54851 description: >- 54852 RedelegationEntry defines a redelegation object with relevant 54853 metadata. 54854 balance: 54855 type: string 54856 description: >- 54857 RedelegationEntryResponse is equivalent to a RedelegationEntry 54858 except that it 54859 54860 contains a balance in addition to shares which is more suitable for 54861 client 54862 54863 responses. 54864 description: >- 54865 RedelegationResponse is equivalent to a Redelegation except that its 54866 entries 54867 54868 contain a balance in addition to shares which is more suitable for client 54869 54870 responses. 54871 cosmos.staking.v1beta1.UnbondingDelegation: 54872 type: object 54873 properties: 54874 delegator_address: 54875 type: string 54876 description: delegator_address is the encoded address of the delegator. 54877 validator_address: 54878 type: string 54879 description: validator_address is the encoded address of the validator. 54880 entries: 54881 type: array 54882 items: 54883 type: object 54884 properties: 54885 creation_height: 54886 type: string 54887 format: int64 54888 description: creation_height is the height which the unbonding took place. 54889 completion_time: 54890 type: string 54891 format: date-time 54892 description: completion_time is the unix time for unbonding completion. 54893 initial_balance: 54894 type: string 54895 description: >- 54896 initial_balance defines the tokens initially scheduled to 54897 receive at completion. 54898 balance: 54899 type: string 54900 description: balance defines the tokens to receive at completion. 54901 unbonding_id: 54902 type: string 54903 format: uint64 54904 title: Incrementing id that uniquely identifies this entry 54905 unbonding_on_hold_ref_count: 54906 type: string 54907 format: int64 54908 title: >- 54909 Strictly positive if this entry's unbonding has been stopped by 54910 external modules 54911 description: >- 54912 UnbondingDelegationEntry defines an unbonding object with relevant 54913 metadata. 54914 description: entries are the unbonding delegation entries. 54915 description: |- 54916 UnbondingDelegation stores all of a single delegator's unbonding bonds 54917 for a single validator in an time-ordered list. 54918 cosmos.staking.v1beta1.UnbondingDelegationEntry: 54919 type: object 54920 properties: 54921 creation_height: 54922 type: string 54923 format: int64 54924 description: creation_height is the height which the unbonding took place. 54925 completion_time: 54926 type: string 54927 format: date-time 54928 description: completion_time is the unix time for unbonding completion. 54929 initial_balance: 54930 type: string 54931 description: >- 54932 initial_balance defines the tokens initially scheduled to receive at 54933 completion. 54934 balance: 54935 type: string 54936 description: balance defines the tokens to receive at completion. 54937 unbonding_id: 54938 type: string 54939 format: uint64 54940 title: Incrementing id that uniquely identifies this entry 54941 unbonding_on_hold_ref_count: 54942 type: string 54943 format: int64 54944 title: >- 54945 Strictly positive if this entry's unbonding has been stopped by 54946 external modules 54947 description: >- 54948 UnbondingDelegationEntry defines an unbonding object with relevant 54949 metadata. 54950 cosmos.staking.v1beta1.Validator: 54951 type: object 54952 properties: 54953 operator_address: 54954 type: string 54955 description: >- 54956 operator_address defines the address of the validator's operator; bech 54957 encoded in JSON. 54958 consensus_pubkey: 54959 type: object 54960 properties: 54961 type_url: 54962 type: string 54963 description: >- 54964 A URL/resource name that uniquely identifies the type of the 54965 serialized 54966 54967 protocol buffer message. This string must contain at least 54968 54969 one "/" character. The last segment of the URL's path must 54970 represent 54971 54972 the fully qualified name of the type (as in 54973 54974 `path/google.protobuf.Duration`). The name should be in a 54975 canonical form 54976 54977 (e.g., leading "." is not accepted). 54978 54979 54980 In practice, teams usually precompile into the binary all types 54981 that they 54982 54983 expect it to use in the context of Any. However, for URLs which 54984 use the 54985 54986 scheme `http`, `https`, or no scheme, one can optionally set up a 54987 type 54988 54989 server that maps type URLs to message definitions as follows: 54990 54991 54992 * If no scheme is provided, `https` is assumed. 54993 54994 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 54995 value in binary format, or produce an error. 54996 * Applications are allowed to cache lookup results based on the 54997 URL, or have them precompiled into a binary to avoid any 54998 lookup. Therefore, binary compatibility needs to be preserved 54999 on changes to types. (Use versioned type names to manage 55000 breaking changes.) 55001 55002 Note: this functionality is not currently available in the 55003 official 55004 55005 protobuf release, and it is not used for type URLs beginning with 55006 55007 type.googleapis.com. 55008 55009 55010 Schemes other than `http`, `https` (or the empty scheme) might be 55011 55012 used with implementation specific semantics. 55013 value: 55014 type: string 55015 format: byte 55016 description: >- 55017 Must be a valid serialized protocol buffer of the above specified 55018 type. 55019 description: >- 55020 `Any` contains an arbitrary serialized protocol buffer message along 55021 with a 55022 55023 URL that describes the type of the serialized message. 55024 55025 55026 Protobuf library provides support to pack/unpack Any values in the 55027 form 55028 55029 of utility functions or additional generated methods of the Any type. 55030 55031 55032 Example 1: Pack and unpack a message in C++. 55033 55034 Foo foo = ...; 55035 Any any; 55036 any.PackFrom(foo); 55037 ... 55038 if (any.UnpackTo(&foo)) { 55039 ... 55040 } 55041 55042 Example 2: Pack and unpack a message in Java. 55043 55044 Foo foo = ...; 55045 Any any = Any.pack(foo); 55046 ... 55047 if (any.is(Foo.class)) { 55048 foo = any.unpack(Foo.class); 55049 } 55050 // or ... 55051 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 55052 foo = any.unpack(Foo.getDefaultInstance()); 55053 } 55054 55055 Example 3: Pack and unpack a message in Python. 55056 55057 foo = Foo(...) 55058 any = Any() 55059 any.Pack(foo) 55060 ... 55061 if any.Is(Foo.DESCRIPTOR): 55062 any.Unpack(foo) 55063 ... 55064 55065 Example 4: Pack and unpack a message in Go 55066 55067 foo := &pb.Foo{...} 55068 any, err := anypb.New(foo) 55069 if err != nil { 55070 ... 55071 } 55072 ... 55073 foo := &pb.Foo{} 55074 if err := any.UnmarshalTo(foo); err != nil { 55075 ... 55076 } 55077 55078 The pack methods provided by protobuf library will by default use 55079 55080 'type.googleapis.com/full.type.name' as the type URL and the unpack 55081 55082 methods only use the fully qualified type name after the last '/' 55083 55084 in the type URL, for example "foo.bar.com/x/y.z" will yield type 55085 55086 name "y.z". 55087 55088 55089 JSON 55090 55091 55092 The JSON representation of an `Any` value uses the regular 55093 55094 representation of the deserialized, embedded message, with an 55095 55096 additional field `@type` which contains the type URL. Example: 55097 55098 package google.profile; 55099 message Person { 55100 string first_name = 1; 55101 string last_name = 2; 55102 } 55103 55104 { 55105 "@type": "type.googleapis.com/google.profile.Person", 55106 "firstName": <string>, 55107 "lastName": <string> 55108 } 55109 55110 If the embedded message type is well-known and has a custom JSON 55111 55112 representation, that representation will be embedded adding a field 55113 55114 `value` which holds the custom JSON in addition to the `@type` 55115 55116 field. Example (for message [google.protobuf.Duration][]): 55117 55118 { 55119 "@type": "type.googleapis.com/google.protobuf.Duration", 55120 "value": "1.212s" 55121 } 55122 jailed: 55123 type: boolean 55124 description: >- 55125 jailed defined whether the validator has been jailed from bonded 55126 status or not. 55127 status: 55128 description: status is the validator status (bonded/unbonding/unbonded). 55129 type: string 55130 enum: 55131 - BOND_STATUS_UNSPECIFIED 55132 - BOND_STATUS_UNBONDED 55133 - BOND_STATUS_UNBONDING 55134 - BOND_STATUS_BONDED 55135 default: BOND_STATUS_UNSPECIFIED 55136 tokens: 55137 type: string 55138 description: tokens define the delegated tokens (incl. self-delegation). 55139 delegator_shares: 55140 type: string 55141 description: >- 55142 delegator_shares defines total shares issued to a validator's 55143 delegators. 55144 description: 55145 description: description defines the description terms for the validator. 55146 type: object 55147 properties: 55148 moniker: 55149 type: string 55150 description: moniker defines a human-readable name for the validator. 55151 identity: 55152 type: string 55153 description: >- 55154 identity defines an optional identity signature (ex. UPort or 55155 Keybase). 55156 website: 55157 type: string 55158 description: website defines an optional website link. 55159 security_contact: 55160 type: string 55161 description: security_contact defines an optional email for security contact. 55162 details: 55163 type: string 55164 description: details define other optional details. 55165 unbonding_height: 55166 type: string 55167 format: int64 55168 description: >- 55169 unbonding_height defines, if unbonding, the height at which this 55170 validator has begun unbonding. 55171 unbonding_time: 55172 type: string 55173 format: date-time 55174 description: >- 55175 unbonding_time defines, if unbonding, the min time for the validator 55176 to complete unbonding. 55177 commission: 55178 description: commission defines the commission parameters. 55179 type: object 55180 properties: 55181 commission_rates: 55182 description: >- 55183 commission_rates defines the initial commission rates to be used 55184 for creating a validator. 55185 type: object 55186 properties: 55187 rate: 55188 type: string 55189 description: >- 55190 rate is the commission rate charged to delegators, as a 55191 fraction. 55192 max_rate: 55193 type: string 55194 description: >- 55195 max_rate defines the maximum commission rate which validator 55196 can ever charge, as a fraction. 55197 max_change_rate: 55198 type: string 55199 description: >- 55200 max_change_rate defines the maximum daily increase of the 55201 validator commission, as a fraction. 55202 update_time: 55203 type: string 55204 format: date-time 55205 description: update_time is the last time the commission rate was changed. 55206 min_self_delegation: 55207 type: string 55208 description: >- 55209 min_self_delegation is the validator's self declared minimum self 55210 delegation. 55211 55212 55213 Since: cosmos-sdk 0.46 55214 unbonding_on_hold_ref_count: 55215 type: string 55216 format: int64 55217 title: >- 55218 strictly positive if this validator's unbonding has been stopped by 55219 external modules 55220 unbonding_ids: 55221 type: array 55222 items: 55223 type: string 55224 format: uint64 55225 title: >- 55226 list of unbonding ids, each uniquely identifing an unbonding of this 55227 validator 55228 description: >- 55229 Validator defines a validator, together with the total amount of the 55230 55231 Validator's bond shares and their exchange rate to coins. Slashing results 55232 in 55233 55234 a decrease in the exchange rate, allowing correct calculation of future 55235 55236 undelegations without iterating over delegators. When coins are delegated 55237 to 55238 55239 this validator, the validator is credited with a delegation whose number 55240 of 55241 55242 bond shares is based on the amount of coins delegated divided by the 55243 current 55244 55245 exchange rate. Voting power can be calculated as total bonded shares 55246 55247 multiplied by exchange rate. 55248 cosmos.base.abci.v1beta1.ABCIMessageLog: 55249 type: object 55250 properties: 55251 msg_index: 55252 type: integer 55253 format: int64 55254 log: 55255 type: string 55256 events: 55257 type: array 55258 items: 55259 type: object 55260 properties: 55261 type: 55262 type: string 55263 attributes: 55264 type: array 55265 items: 55266 type: object 55267 properties: 55268 key: 55269 type: string 55270 value: 55271 type: string 55272 description: >- 55273 Attribute defines an attribute wrapper where the key and value 55274 are 55275 55276 strings instead of raw bytes. 55277 description: |- 55278 StringEvent defines en Event object wrapper where all the attributes 55279 contain key/value pairs that are strings instead of raw bytes. 55280 description: |- 55281 Events contains a slice of Event objects that were emitted during some 55282 execution. 55283 description: >- 55284 ABCIMessageLog defines a structure containing an indexed tx ABCI message 55285 log. 55286 cosmos.base.abci.v1beta1.Attribute: 55287 type: object 55288 properties: 55289 key: 55290 type: string 55291 value: 55292 type: string 55293 description: |- 55294 Attribute defines an attribute wrapper where the key and value are 55295 strings instead of raw bytes. 55296 cosmos.base.abci.v1beta1.GasInfo: 55297 type: object 55298 properties: 55299 gas_wanted: 55300 type: string 55301 format: uint64 55302 description: GasWanted is the maximum units of work we allow this tx to perform. 55303 gas_used: 55304 type: string 55305 format: uint64 55306 description: GasUsed is the amount of gas actually consumed. 55307 description: GasInfo defines tx execution gas context. 55308 cosmos.base.abci.v1beta1.Result: 55309 type: object 55310 properties: 55311 data: 55312 type: string 55313 format: byte 55314 description: >- 55315 Data is any data returned from message or handler execution. It MUST 55316 be 55317 55318 length prefixed in order to separate data from multiple message 55319 executions. 55320 55321 Deprecated. This field is still populated, but prefer msg_response 55322 instead 55323 55324 because it also contains the Msg response typeURL. 55325 log: 55326 type: string 55327 description: Log contains the log information from message or handler execution. 55328 events: 55329 type: array 55330 items: 55331 type: object 55332 properties: 55333 type: 55334 type: string 55335 attributes: 55336 type: array 55337 items: 55338 type: object 55339 properties: 55340 key: 55341 type: string 55342 value: 55343 type: string 55344 index: 55345 type: boolean 55346 description: >- 55347 EventAttribute is a single key-value pair, associated with an 55348 event. 55349 description: >- 55350 Event allows application developers to attach additional information 55351 to 55352 55353 ResponseFinalizeBlock and ResponseCheckTx. 55354 55355 Later, transactions may be queried using these events. 55356 description: >- 55357 Events contains a slice of Event objects that were emitted during 55358 message 55359 55360 or handler execution. 55361 msg_responses: 55362 type: array 55363 items: 55364 type: object 55365 properties: 55366 type_url: 55367 type: string 55368 description: >- 55369 A URL/resource name that uniquely identifies the type of the 55370 serialized 55371 55372 protocol buffer message. This string must contain at least 55373 55374 one "/" character. The last segment of the URL's path must 55375 represent 55376 55377 the fully qualified name of the type (as in 55378 55379 `path/google.protobuf.Duration`). The name should be in a 55380 canonical form 55381 55382 (e.g., leading "." is not accepted). 55383 55384 55385 In practice, teams usually precompile into the binary all types 55386 that they 55387 55388 expect it to use in the context of Any. However, for URLs which 55389 use the 55390 55391 scheme `http`, `https`, or no scheme, one can optionally set up 55392 a type 55393 55394 server that maps type URLs to message definitions as follows: 55395 55396 55397 * If no scheme is provided, `https` is assumed. 55398 55399 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 55400 value in binary format, or produce an error. 55401 * Applications are allowed to cache lookup results based on the 55402 URL, or have them precompiled into a binary to avoid any 55403 lookup. Therefore, binary compatibility needs to be preserved 55404 on changes to types. (Use versioned type names to manage 55405 breaking changes.) 55406 55407 Note: this functionality is not currently available in the 55408 official 55409 55410 protobuf release, and it is not used for type URLs beginning 55411 with 55412 55413 type.googleapis.com. 55414 55415 55416 Schemes other than `http`, `https` (or the empty scheme) might 55417 be 55418 55419 used with implementation specific semantics. 55420 value: 55421 type: string 55422 format: byte 55423 description: >- 55424 Must be a valid serialized protocol buffer of the above 55425 specified type. 55426 description: >- 55427 `Any` contains an arbitrary serialized protocol buffer message along 55428 with a 55429 55430 URL that describes the type of the serialized message. 55431 55432 55433 Protobuf library provides support to pack/unpack Any values in the 55434 form 55435 55436 of utility functions or additional generated methods of the Any 55437 type. 55438 55439 55440 Example 1: Pack and unpack a message in C++. 55441 55442 Foo foo = ...; 55443 Any any; 55444 any.PackFrom(foo); 55445 ... 55446 if (any.UnpackTo(&foo)) { 55447 ... 55448 } 55449 55450 Example 2: Pack and unpack a message in Java. 55451 55452 Foo foo = ...; 55453 Any any = Any.pack(foo); 55454 ... 55455 if (any.is(Foo.class)) { 55456 foo = any.unpack(Foo.class); 55457 } 55458 // or ... 55459 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 55460 foo = any.unpack(Foo.getDefaultInstance()); 55461 } 55462 55463 Example 3: Pack and unpack a message in Python. 55464 55465 foo = Foo(...) 55466 any = Any() 55467 any.Pack(foo) 55468 ... 55469 if any.Is(Foo.DESCRIPTOR): 55470 any.Unpack(foo) 55471 ... 55472 55473 Example 4: Pack and unpack a message in Go 55474 55475 foo := &pb.Foo{...} 55476 any, err := anypb.New(foo) 55477 if err != nil { 55478 ... 55479 } 55480 ... 55481 foo := &pb.Foo{} 55482 if err := any.UnmarshalTo(foo); err != nil { 55483 ... 55484 } 55485 55486 The pack methods provided by protobuf library will by default use 55487 55488 'type.googleapis.com/full.type.name' as the type URL and the unpack 55489 55490 methods only use the fully qualified type name after the last '/' 55491 55492 in the type URL, for example "foo.bar.com/x/y.z" will yield type 55493 55494 name "y.z". 55495 55496 55497 JSON 55498 55499 55500 The JSON representation of an `Any` value uses the regular 55501 55502 representation of the deserialized, embedded message, with an 55503 55504 additional field `@type` which contains the type URL. Example: 55505 55506 package google.profile; 55507 message Person { 55508 string first_name = 1; 55509 string last_name = 2; 55510 } 55511 55512 { 55513 "@type": "type.googleapis.com/google.profile.Person", 55514 "firstName": <string>, 55515 "lastName": <string> 55516 } 55517 55518 If the embedded message type is well-known and has a custom JSON 55519 55520 representation, that representation will be embedded adding a field 55521 55522 `value` which holds the custom JSON in addition to the `@type` 55523 55524 field. Example (for message [google.protobuf.Duration][]): 55525 55526 { 55527 "@type": "type.googleapis.com/google.protobuf.Duration", 55528 "value": "1.212s" 55529 } 55530 description: |- 55531 msg_responses contains the Msg handler responses type packed in Anys. 55532 55533 Since: cosmos-sdk 0.46 55534 description: Result is the union of ResponseFormat and ResponseCheckTx. 55535 cosmos.base.abci.v1beta1.StringEvent: 55536 type: object 55537 properties: 55538 type: 55539 type: string 55540 attributes: 55541 type: array 55542 items: 55543 type: object 55544 properties: 55545 key: 55546 type: string 55547 value: 55548 type: string 55549 description: |- 55550 Attribute defines an attribute wrapper where the key and value are 55551 strings instead of raw bytes. 55552 description: |- 55553 StringEvent defines en Event object wrapper where all the attributes 55554 contain key/value pairs that are strings instead of raw bytes. 55555 cosmos.base.abci.v1beta1.TxResponse: 55556 type: object 55557 properties: 55558 height: 55559 type: string 55560 format: int64 55561 title: The block height 55562 txhash: 55563 type: string 55564 description: The transaction hash. 55565 codespace: 55566 type: string 55567 title: Namespace for the Code 55568 code: 55569 type: integer 55570 format: int64 55571 description: Response code. 55572 data: 55573 type: string 55574 description: Result bytes, if any. 55575 raw_log: 55576 type: string 55577 description: |- 55578 The output of the application's logger (raw string). May be 55579 non-deterministic. 55580 logs: 55581 type: array 55582 items: 55583 type: object 55584 properties: 55585 msg_index: 55586 type: integer 55587 format: int64 55588 log: 55589 type: string 55590 events: 55591 type: array 55592 items: 55593 type: object 55594 properties: 55595 type: 55596 type: string 55597 attributes: 55598 type: array 55599 items: 55600 type: object 55601 properties: 55602 key: 55603 type: string 55604 value: 55605 type: string 55606 description: >- 55607 Attribute defines an attribute wrapper where the key and 55608 value are 55609 55610 strings instead of raw bytes. 55611 description: >- 55612 StringEvent defines en Event object wrapper where all the 55613 attributes 55614 55615 contain key/value pairs that are strings instead of raw bytes. 55616 description: >- 55617 Events contains a slice of Event objects that were emitted 55618 during some 55619 55620 execution. 55621 description: >- 55622 ABCIMessageLog defines a structure containing an indexed tx ABCI 55623 message log. 55624 description: >- 55625 The output of the application's logger (typed). May be 55626 non-deterministic. 55627 info: 55628 type: string 55629 description: Additional information. May be non-deterministic. 55630 gas_wanted: 55631 type: string 55632 format: int64 55633 description: Amount of gas requested for transaction. 55634 gas_used: 55635 type: string 55636 format: int64 55637 description: Amount of gas consumed by transaction. 55638 tx: 55639 type: object 55640 properties: 55641 type_url: 55642 type: string 55643 description: >- 55644 A URL/resource name that uniquely identifies the type of the 55645 serialized 55646 55647 protocol buffer message. This string must contain at least 55648 55649 one "/" character. The last segment of the URL's path must 55650 represent 55651 55652 the fully qualified name of the type (as in 55653 55654 `path/google.protobuf.Duration`). The name should be in a 55655 canonical form 55656 55657 (e.g., leading "." is not accepted). 55658 55659 55660 In practice, teams usually precompile into the binary all types 55661 that they 55662 55663 expect it to use in the context of Any. However, for URLs which 55664 use the 55665 55666 scheme `http`, `https`, or no scheme, one can optionally set up a 55667 type 55668 55669 server that maps type URLs to message definitions as follows: 55670 55671 55672 * If no scheme is provided, `https` is assumed. 55673 55674 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 55675 value in binary format, or produce an error. 55676 * Applications are allowed to cache lookup results based on the 55677 URL, or have them precompiled into a binary to avoid any 55678 lookup. Therefore, binary compatibility needs to be preserved 55679 on changes to types. (Use versioned type names to manage 55680 breaking changes.) 55681 55682 Note: this functionality is not currently available in the 55683 official 55684 55685 protobuf release, and it is not used for type URLs beginning with 55686 55687 type.googleapis.com. 55688 55689 55690 Schemes other than `http`, `https` (or the empty scheme) might be 55691 55692 used with implementation specific semantics. 55693 value: 55694 type: string 55695 format: byte 55696 description: >- 55697 Must be a valid serialized protocol buffer of the above specified 55698 type. 55699 description: >- 55700 `Any` contains an arbitrary serialized protocol buffer message along 55701 with a 55702 55703 URL that describes the type of the serialized message. 55704 55705 55706 Protobuf library provides support to pack/unpack Any values in the 55707 form 55708 55709 of utility functions or additional generated methods of the Any type. 55710 55711 55712 Example 1: Pack and unpack a message in C++. 55713 55714 Foo foo = ...; 55715 Any any; 55716 any.PackFrom(foo); 55717 ... 55718 if (any.UnpackTo(&foo)) { 55719 ... 55720 } 55721 55722 Example 2: Pack and unpack a message in Java. 55723 55724 Foo foo = ...; 55725 Any any = Any.pack(foo); 55726 ... 55727 if (any.is(Foo.class)) { 55728 foo = any.unpack(Foo.class); 55729 } 55730 // or ... 55731 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 55732 foo = any.unpack(Foo.getDefaultInstance()); 55733 } 55734 55735 Example 3: Pack and unpack a message in Python. 55736 55737 foo = Foo(...) 55738 any = Any() 55739 any.Pack(foo) 55740 ... 55741 if any.Is(Foo.DESCRIPTOR): 55742 any.Unpack(foo) 55743 ... 55744 55745 Example 4: Pack and unpack a message in Go 55746 55747 foo := &pb.Foo{...} 55748 any, err := anypb.New(foo) 55749 if err != nil { 55750 ... 55751 } 55752 ... 55753 foo := &pb.Foo{} 55754 if err := any.UnmarshalTo(foo); err != nil { 55755 ... 55756 } 55757 55758 The pack methods provided by protobuf library will by default use 55759 55760 'type.googleapis.com/full.type.name' as the type URL and the unpack 55761 55762 methods only use the fully qualified type name after the last '/' 55763 55764 in the type URL, for example "foo.bar.com/x/y.z" will yield type 55765 55766 name "y.z". 55767 55768 55769 JSON 55770 55771 55772 The JSON representation of an `Any` value uses the regular 55773 55774 representation of the deserialized, embedded message, with an 55775 55776 additional field `@type` which contains the type URL. Example: 55777 55778 package google.profile; 55779 message Person { 55780 string first_name = 1; 55781 string last_name = 2; 55782 } 55783 55784 { 55785 "@type": "type.googleapis.com/google.profile.Person", 55786 "firstName": <string>, 55787 "lastName": <string> 55788 } 55789 55790 If the embedded message type is well-known and has a custom JSON 55791 55792 representation, that representation will be embedded adding a field 55793 55794 `value` which holds the custom JSON in addition to the `@type` 55795 55796 field. Example (for message [google.protobuf.Duration][]): 55797 55798 { 55799 "@type": "type.googleapis.com/google.protobuf.Duration", 55800 "value": "1.212s" 55801 } 55802 timestamp: 55803 type: string 55804 description: >- 55805 Time of the previous block. For heights > 1, it's the weighted median 55806 of 55807 55808 the timestamps of the valid votes in the block.LastCommit. For height 55809 == 1, 55810 55811 it's genesis time. 55812 events: 55813 type: array 55814 items: 55815 type: object 55816 properties: 55817 type: 55818 type: string 55819 attributes: 55820 type: array 55821 items: 55822 type: object 55823 properties: 55824 key: 55825 type: string 55826 value: 55827 type: string 55828 index: 55829 type: boolean 55830 description: >- 55831 EventAttribute is a single key-value pair, associated with an 55832 event. 55833 description: >- 55834 Event allows application developers to attach additional information 55835 to 55836 55837 ResponseFinalizeBlock and ResponseCheckTx. 55838 55839 Later, transactions may be queried using these events. 55840 description: >- 55841 Events defines all the events emitted by processing a transaction. 55842 Note, 55843 55844 these events include those emitted by processing all the messages and 55845 those 55846 55847 emitted from the ante. Whereas Logs contains the events, with 55848 55849 additional metadata, emitted only by processing the messages. 55850 55851 55852 Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 55853 description: >- 55854 TxResponse defines a structure containing relevant tx data and metadata. 55855 The 55856 55857 tags are stringified and the log is JSON decoded. 55858 cosmos.crypto.multisig.v1beta1.CompactBitArray: 55859 type: object 55860 properties: 55861 extra_bits_stored: 55862 type: integer 55863 format: int64 55864 elems: 55865 type: string 55866 format: byte 55867 description: |- 55868 CompactBitArray is an implementation of a space efficient bit array. 55869 This is used to ensure that the encoded data takes up a minimal amount of 55870 space after proto encoding. 55871 This is not thread safe, and is not intended for concurrent usage. 55872 cosmos.tx.signing.v1beta1.SignMode: 55873 type: string 55874 enum: 55875 - SIGN_MODE_UNSPECIFIED 55876 - SIGN_MODE_DIRECT 55877 - SIGN_MODE_TEXTUAL 55878 - SIGN_MODE_DIRECT_AUX 55879 - SIGN_MODE_LEGACY_AMINO_JSON 55880 - SIGN_MODE_EIP_191 55881 default: SIGN_MODE_UNSPECIFIED 55882 description: |- 55883 SignMode represents a signing mode with its own security guarantees. 55884 55885 This enum should be considered a registry of all known sign modes 55886 in the Cosmos ecosystem. Apps are not expected to support all known 55887 sign modes. Apps that would like to support custom sign modes are 55888 encouraged to open a small PR against this file to add a new case 55889 to this SignMode enum describing their sign mode so that different 55890 apps have a consistent version of this enum. 55891 55892 - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be 55893 rejected. 55894 - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is 55895 verified with raw bytes from Tx. 55896 - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some 55897 human-readable textual representation on top of the binary representation 55898 from SIGN_MODE_DIRECT. 55899 55900 Since: cosmos-sdk 0.50 55901 - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses 55902 SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not 55903 require signers signing over other signers' `signer_info`. 55904 55905 Since: cosmos-sdk 0.46 55906 - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses 55907 Amino JSON and will be removed in the future. 55908 - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos 55909 SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 55910 55911 Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, 55912 but is not implemented on the SDK by default. To enable EIP-191, you need 55913 to pass a custom `TxConfig` that has an implementation of 55914 `SignModeHandler` for EIP-191. The SDK may decide to fully support 55915 EIP-191 in the future. 55916 55917 Since: cosmos-sdk 0.45.2 55918 cosmos.tx.v1beta1.AuthInfo: 55919 type: object 55920 properties: 55921 signer_infos: 55922 type: array 55923 items: 55924 $ref: '#/definitions/cosmos.tx.v1beta1.SignerInfo' 55925 description: >- 55926 signer_infos defines the signing modes for the required signers. The 55927 number 55928 55929 and order of elements must match the required signers from TxBody's 55930 55931 messages. The first element is the primary signer and the one which 55932 pays 55933 55934 the fee. 55935 fee: 55936 description: >- 55937 Fee is the fee and gas limit for the transaction. The first signer is 55938 the 55939 55940 primary signer and the one which pays the fee. The fee can be 55941 calculated 55942 55943 based on the cost of evaluating the body and doing signature 55944 verification 55945 55946 of the signers. This can be estimated via simulation. 55947 type: object 55948 properties: 55949 amount: 55950 type: array 55951 items: 55952 type: object 55953 properties: 55954 denom: 55955 type: string 55956 amount: 55957 type: string 55958 description: >- 55959 Coin defines a token with a denomination and an amount. 55960 55961 55962 NOTE: The amount field is an Int which implements the custom 55963 method 55964 55965 signatures required by gogoproto. 55966 title: amount is the amount of coins to be paid as a fee 55967 gas_limit: 55968 type: string 55969 format: uint64 55970 title: >- 55971 gas_limit is the maximum gas that can be used in transaction 55972 processing 55973 55974 before an out of gas error occurs 55975 payer: 55976 type: string 55977 description: >- 55978 if unset, the first signer is responsible for paying the fees. If 55979 set, the specified account must pay the fees. 55980 55981 the payer must be a tx signer (and thus have signed this field in 55982 AuthInfo). 55983 55984 setting this field does *not* change the ordering of required 55985 signers for the transaction. 55986 granter: 55987 type: string 55988 title: >- 55989 if set, the fee payer (either the first signer or the value of the 55990 payer field) requests that a fee grant be used 55991 55992 to pay fees instead of the fee payer's own balance. If an 55993 appropriate fee grant does not exist or the chain does 55994 55995 not support fee grants, this will fail 55996 tip: 55997 description: >- 55998 Tip is the optional tip used for transactions fees paid in another 55999 denom. 56000 56001 56002 This field is ignored if the chain didn't enable tips, i.e. didn't add 56003 the 56004 56005 `TipDecorator` in its posthandler. 56006 56007 56008 Since: cosmos-sdk 0.46 56009 type: object 56010 properties: 56011 amount: 56012 type: array 56013 items: 56014 type: object 56015 properties: 56016 denom: 56017 type: string 56018 amount: 56019 type: string 56020 description: >- 56021 Coin defines a token with a denomination and an amount. 56022 56023 56024 NOTE: The amount field is an Int which implements the custom 56025 method 56026 56027 signatures required by gogoproto. 56028 title: amount is the amount of the tip 56029 tipper: 56030 type: string 56031 title: tipper is the address of the account paying for the tip 56032 description: |- 56033 AuthInfo describes the fee and signer modes that are used to sign a 56034 transaction. 56035 cosmos.tx.v1beta1.BroadcastMode: 56036 type: string 56037 enum: 56038 - BROADCAST_MODE_UNSPECIFIED 56039 - BROADCAST_MODE_BLOCK 56040 - BROADCAST_MODE_SYNC 56041 - BROADCAST_MODE_ASYNC 56042 default: BROADCAST_MODE_UNSPECIFIED 56043 description: |- 56044 BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC 56045 method. 56046 56047 - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering 56048 - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, 56049 BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. 56050 - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits 56051 for a CheckTx execution response only. 56052 - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client 56053 returns immediately. 56054 cosmos.tx.v1beta1.BroadcastTxRequest: 56055 type: object 56056 properties: 56057 tx_bytes: 56058 type: string 56059 format: byte 56060 description: tx_bytes is the raw transaction. 56061 mode: 56062 type: string 56063 enum: 56064 - BROADCAST_MODE_UNSPECIFIED 56065 - BROADCAST_MODE_BLOCK 56066 - BROADCAST_MODE_SYNC 56067 - BROADCAST_MODE_ASYNC 56068 default: BROADCAST_MODE_UNSPECIFIED 56069 description: >- 56070 BroadcastMode specifies the broadcast mode for the TxService.Broadcast 56071 RPC 56072 56073 method. 56074 56075 - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering 56076 - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, 56077 BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. 56078 - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits 56079 for a CheckTx execution response only. 56080 - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client 56081 returns immediately. 56082 description: |- 56083 BroadcastTxRequest is the request type for the Service.BroadcastTxRequest 56084 RPC method. 56085 cosmos.tx.v1beta1.BroadcastTxResponse: 56086 type: object 56087 properties: 56088 tx_response: 56089 type: object 56090 properties: 56091 height: 56092 type: string 56093 format: int64 56094 title: The block height 56095 txhash: 56096 type: string 56097 description: The transaction hash. 56098 codespace: 56099 type: string 56100 title: Namespace for the Code 56101 code: 56102 type: integer 56103 format: int64 56104 description: Response code. 56105 data: 56106 type: string 56107 description: Result bytes, if any. 56108 raw_log: 56109 type: string 56110 description: |- 56111 The output of the application's logger (raw string). May be 56112 non-deterministic. 56113 logs: 56114 type: array 56115 items: 56116 type: object 56117 properties: 56118 msg_index: 56119 type: integer 56120 format: int64 56121 log: 56122 type: string 56123 events: 56124 type: array 56125 items: 56126 type: object 56127 properties: 56128 type: 56129 type: string 56130 attributes: 56131 type: array 56132 items: 56133 type: object 56134 properties: 56135 key: 56136 type: string 56137 value: 56138 type: string 56139 description: >- 56140 Attribute defines an attribute wrapper where the key 56141 and value are 56142 56143 strings instead of raw bytes. 56144 description: >- 56145 StringEvent defines en Event object wrapper where all the 56146 attributes 56147 56148 contain key/value pairs that are strings instead of raw 56149 bytes. 56150 description: >- 56151 Events contains a slice of Event objects that were emitted 56152 during some 56153 56154 execution. 56155 description: >- 56156 ABCIMessageLog defines a structure containing an indexed tx ABCI 56157 message log. 56158 description: >- 56159 The output of the application's logger (typed). May be 56160 non-deterministic. 56161 info: 56162 type: string 56163 description: Additional information. May be non-deterministic. 56164 gas_wanted: 56165 type: string 56166 format: int64 56167 description: Amount of gas requested for transaction. 56168 gas_used: 56169 type: string 56170 format: int64 56171 description: Amount of gas consumed by transaction. 56172 tx: 56173 type: object 56174 properties: 56175 type_url: 56176 type: string 56177 description: >- 56178 A URL/resource name that uniquely identifies the type of the 56179 serialized 56180 56181 protocol buffer message. This string must contain at least 56182 56183 one "/" character. The last segment of the URL's path must 56184 represent 56185 56186 the fully qualified name of the type (as in 56187 56188 `path/google.protobuf.Duration`). The name should be in a 56189 canonical form 56190 56191 (e.g., leading "." is not accepted). 56192 56193 56194 In practice, teams usually precompile into the binary all 56195 types that they 56196 56197 expect it to use in the context of Any. However, for URLs 56198 which use the 56199 56200 scheme `http`, `https`, or no scheme, one can optionally set 56201 up a type 56202 56203 server that maps type URLs to message definitions as follows: 56204 56205 56206 * If no scheme is provided, `https` is assumed. 56207 56208 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 56209 value in binary format, or produce an error. 56210 * Applications are allowed to cache lookup results based on 56211 the 56212 URL, or have them precompiled into a binary to avoid any 56213 lookup. Therefore, binary compatibility needs to be preserved 56214 on changes to types. (Use versioned type names to manage 56215 breaking changes.) 56216 56217 Note: this functionality is not currently available in the 56218 official 56219 56220 protobuf release, and it is not used for type URLs beginning 56221 with 56222 56223 type.googleapis.com. 56224 56225 56226 Schemes other than `http`, `https` (or the empty scheme) might 56227 be 56228 56229 used with implementation specific semantics. 56230 value: 56231 type: string 56232 format: byte 56233 description: >- 56234 Must be a valid serialized protocol buffer of the above 56235 specified type. 56236 description: >- 56237 `Any` contains an arbitrary serialized protocol buffer message 56238 along with a 56239 56240 URL that describes the type of the serialized message. 56241 56242 56243 Protobuf library provides support to pack/unpack Any values in the 56244 form 56245 56246 of utility functions or additional generated methods of the Any 56247 type. 56248 56249 56250 Example 1: Pack and unpack a message in C++. 56251 56252 Foo foo = ...; 56253 Any any; 56254 any.PackFrom(foo); 56255 ... 56256 if (any.UnpackTo(&foo)) { 56257 ... 56258 } 56259 56260 Example 2: Pack and unpack a message in Java. 56261 56262 Foo foo = ...; 56263 Any any = Any.pack(foo); 56264 ... 56265 if (any.is(Foo.class)) { 56266 foo = any.unpack(Foo.class); 56267 } 56268 // or ... 56269 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 56270 foo = any.unpack(Foo.getDefaultInstance()); 56271 } 56272 56273 Example 3: Pack and unpack a message in Python. 56274 56275 foo = Foo(...) 56276 any = Any() 56277 any.Pack(foo) 56278 ... 56279 if any.Is(Foo.DESCRIPTOR): 56280 any.Unpack(foo) 56281 ... 56282 56283 Example 4: Pack and unpack a message in Go 56284 56285 foo := &pb.Foo{...} 56286 any, err := anypb.New(foo) 56287 if err != nil { 56288 ... 56289 } 56290 ... 56291 foo := &pb.Foo{} 56292 if err := any.UnmarshalTo(foo); err != nil { 56293 ... 56294 } 56295 56296 The pack methods provided by protobuf library will by default use 56297 56298 'type.googleapis.com/full.type.name' as the type URL and the 56299 unpack 56300 56301 methods only use the fully qualified type name after the last '/' 56302 56303 in the type URL, for example "foo.bar.com/x/y.z" will yield type 56304 56305 name "y.z". 56306 56307 56308 JSON 56309 56310 56311 The JSON representation of an `Any` value uses the regular 56312 56313 representation of the deserialized, embedded message, with an 56314 56315 additional field `@type` which contains the type URL. Example: 56316 56317 package google.profile; 56318 message Person { 56319 string first_name = 1; 56320 string last_name = 2; 56321 } 56322 56323 { 56324 "@type": "type.googleapis.com/google.profile.Person", 56325 "firstName": <string>, 56326 "lastName": <string> 56327 } 56328 56329 If the embedded message type is well-known and has a custom JSON 56330 56331 representation, that representation will be embedded adding a 56332 field 56333 56334 `value` which holds the custom JSON in addition to the `@type` 56335 56336 field. Example (for message [google.protobuf.Duration][]): 56337 56338 { 56339 "@type": "type.googleapis.com/google.protobuf.Duration", 56340 "value": "1.212s" 56341 } 56342 timestamp: 56343 type: string 56344 description: >- 56345 Time of the previous block. For heights > 1, it's the weighted 56346 median of 56347 56348 the timestamps of the valid votes in the block.LastCommit. For 56349 height == 1, 56350 56351 it's genesis time. 56352 events: 56353 type: array 56354 items: 56355 type: object 56356 properties: 56357 type: 56358 type: string 56359 attributes: 56360 type: array 56361 items: 56362 type: object 56363 properties: 56364 key: 56365 type: string 56366 value: 56367 type: string 56368 index: 56369 type: boolean 56370 description: >- 56371 EventAttribute is a single key-value pair, associated with 56372 an event. 56373 description: >- 56374 Event allows application developers to attach additional 56375 information to 56376 56377 ResponseFinalizeBlock and ResponseCheckTx. 56378 56379 Later, transactions may be queried using these events. 56380 description: >- 56381 Events defines all the events emitted by processing a transaction. 56382 Note, 56383 56384 these events include those emitted by processing all the messages 56385 and those 56386 56387 emitted from the ante. Whereas Logs contains the events, with 56388 56389 additional metadata, emitted only by processing the messages. 56390 56391 56392 Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 56393 description: >- 56394 TxResponse defines a structure containing relevant tx data and 56395 metadata. The 56396 56397 tags are stringified and the log is JSON decoded. 56398 description: |- 56399 BroadcastTxResponse is the response type for the 56400 Service.BroadcastTx method. 56401 cosmos.tx.v1beta1.Fee: 56402 type: object 56403 properties: 56404 amount: 56405 type: array 56406 items: 56407 type: object 56408 properties: 56409 denom: 56410 type: string 56411 amount: 56412 type: string 56413 description: |- 56414 Coin defines a token with a denomination and an amount. 56415 56416 NOTE: The amount field is an Int which implements the custom method 56417 signatures required by gogoproto. 56418 title: amount is the amount of coins to be paid as a fee 56419 gas_limit: 56420 type: string 56421 format: uint64 56422 title: >- 56423 gas_limit is the maximum gas that can be used in transaction 56424 processing 56425 56426 before an out of gas error occurs 56427 payer: 56428 type: string 56429 description: >- 56430 if unset, the first signer is responsible for paying the fees. If set, 56431 the specified account must pay the fees. 56432 56433 the payer must be a tx signer (and thus have signed this field in 56434 AuthInfo). 56435 56436 setting this field does *not* change the ordering of required signers 56437 for the transaction. 56438 granter: 56439 type: string 56440 title: >- 56441 if set, the fee payer (either the first signer or the value of the 56442 payer field) requests that a fee grant be used 56443 56444 to pay fees instead of the fee payer's own balance. If an appropriate 56445 fee grant does not exist or the chain does 56446 56447 not support fee grants, this will fail 56448 description: >- 56449 Fee includes the amount of coins paid in fees and the maximum 56450 56451 gas to be used by the transaction. The ratio yields an effective 56452 "gasprice", 56453 56454 which must be above some miminum to be accepted into the mempool. 56455 cosmos.tx.v1beta1.GetBlockWithTxsResponse: 56456 type: object 56457 properties: 56458 txs: 56459 type: array 56460 items: 56461 $ref: '#/definitions/cosmos.tx.v1beta1.Tx' 56462 description: txs are the transactions in the block. 56463 block_id: 56464 type: object 56465 properties: 56466 hash: 56467 type: string 56468 format: byte 56469 part_set_header: 56470 type: object 56471 properties: 56472 total: 56473 type: integer 56474 format: int64 56475 hash: 56476 type: string 56477 format: byte 56478 title: PartsetHeader 56479 title: BlockID 56480 block: 56481 type: object 56482 properties: 56483 header: 56484 type: object 56485 properties: 56486 version: 56487 title: basic block info 56488 type: object 56489 properties: 56490 block: 56491 type: string 56492 format: uint64 56493 app: 56494 type: string 56495 format: uint64 56496 description: >- 56497 Consensus captures the consensus rules for processing a block 56498 in the blockchain, 56499 56500 including all blockchain data structures and the rules of the 56501 application's 56502 56503 state transition machine. 56504 chain_id: 56505 type: string 56506 height: 56507 type: string 56508 format: int64 56509 time: 56510 type: string 56511 format: date-time 56512 last_block_id: 56513 type: object 56514 properties: 56515 hash: 56516 type: string 56517 format: byte 56518 part_set_header: 56519 type: object 56520 properties: 56521 total: 56522 type: integer 56523 format: int64 56524 hash: 56525 type: string 56526 format: byte 56527 title: PartsetHeader 56528 title: BlockID 56529 last_commit_hash: 56530 type: string 56531 format: byte 56532 title: hashes of block data 56533 data_hash: 56534 type: string 56535 format: byte 56536 validators_hash: 56537 type: string 56538 format: byte 56539 title: hashes from the app output from the prev block 56540 next_validators_hash: 56541 type: string 56542 format: byte 56543 consensus_hash: 56544 type: string 56545 format: byte 56546 app_hash: 56547 type: string 56548 format: byte 56549 last_results_hash: 56550 type: string 56551 format: byte 56552 evidence_hash: 56553 type: string 56554 format: byte 56555 title: consensus info 56556 proposer_address: 56557 type: string 56558 format: byte 56559 description: Header defines the structure of a block header. 56560 data: 56561 type: object 56562 properties: 56563 txs: 56564 type: array 56565 items: 56566 type: string 56567 format: byte 56568 description: >- 56569 Txs that will be applied by state @ block.Height+1. 56570 56571 NOTE: not all txs here are valid. We're just agreeing on the 56572 order first. 56573 56574 This means that block.AppHash does not include these txs. 56575 title: Data contains the set of transactions included in the block 56576 evidence: 56577 type: object 56578 properties: 56579 evidence: 56580 type: array 56581 items: 56582 type: object 56583 properties: 56584 duplicate_vote_evidence: 56585 type: object 56586 properties: 56587 vote_a: 56588 type: object 56589 properties: 56590 type: 56591 type: string 56592 enum: 56593 - SIGNED_MSG_TYPE_UNKNOWN 56594 - SIGNED_MSG_TYPE_PREVOTE 56595 - SIGNED_MSG_TYPE_PRECOMMIT 56596 - SIGNED_MSG_TYPE_PROPOSAL 56597 default: SIGNED_MSG_TYPE_UNKNOWN 56598 description: >- 56599 SignedMsgType is a type of signed message in the 56600 consensus. 56601 56602 - SIGNED_MSG_TYPE_PREVOTE: Votes 56603 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 56604 height: 56605 type: string 56606 format: int64 56607 round: 56608 type: integer 56609 format: int32 56610 block_id: 56611 type: object 56612 properties: 56613 hash: 56614 type: string 56615 format: byte 56616 part_set_header: 56617 type: object 56618 properties: 56619 total: 56620 type: integer 56621 format: int64 56622 hash: 56623 type: string 56624 format: byte 56625 title: PartsetHeader 56626 title: BlockID 56627 timestamp: 56628 type: string 56629 format: date-time 56630 validator_address: 56631 type: string 56632 format: byte 56633 validator_index: 56634 type: integer 56635 format: int32 56636 signature: 56637 type: string 56638 format: byte 56639 description: >- 56640 Vote signature by the validator if they 56641 participated in consensus for the 56642 56643 associated block. 56644 extension: 56645 type: string 56646 format: byte 56647 description: >- 56648 Vote extension provided by the application. Only 56649 valid for precommit 56650 56651 messages. 56652 extension_signature: 56653 type: string 56654 format: byte 56655 description: >- 56656 Vote extension signature by the validator if 56657 they participated in 56658 56659 consensus for the associated block. 56660 56661 Only valid for precommit messages. 56662 description: >- 56663 Vote represents a prevote or precommit vote from 56664 validators for 56665 56666 consensus. 56667 vote_b: 56668 type: object 56669 properties: 56670 type: 56671 type: string 56672 enum: 56673 - SIGNED_MSG_TYPE_UNKNOWN 56674 - SIGNED_MSG_TYPE_PREVOTE 56675 - SIGNED_MSG_TYPE_PRECOMMIT 56676 - SIGNED_MSG_TYPE_PROPOSAL 56677 default: SIGNED_MSG_TYPE_UNKNOWN 56678 description: >- 56679 SignedMsgType is a type of signed message in the 56680 consensus. 56681 56682 - SIGNED_MSG_TYPE_PREVOTE: Votes 56683 - SIGNED_MSG_TYPE_PROPOSAL: Proposals 56684 height: 56685 type: string 56686 format: int64 56687 round: 56688 type: integer 56689 format: int32 56690 block_id: 56691 type: object 56692 properties: 56693 hash: 56694 type: string 56695 format: byte 56696 part_set_header: 56697 type: object 56698 properties: 56699 total: 56700 type: integer 56701 format: int64 56702 hash: 56703 type: string 56704 format: byte 56705 title: PartsetHeader 56706 title: BlockID 56707 timestamp: 56708 type: string 56709 format: date-time 56710 validator_address: 56711 type: string 56712 format: byte 56713 validator_index: 56714 type: integer 56715 format: int32 56716 signature: 56717 type: string 56718 format: byte 56719 description: >- 56720 Vote signature by the validator if they 56721 participated in consensus for the 56722 56723 associated block. 56724 extension: 56725 type: string 56726 format: byte 56727 description: >- 56728 Vote extension provided by the application. Only 56729 valid for precommit 56730 56731 messages. 56732 extension_signature: 56733 type: string 56734 format: byte 56735 description: >- 56736 Vote extension signature by the validator if 56737 they participated in 56738 56739 consensus for the associated block. 56740 56741 Only valid for precommit messages. 56742 description: >- 56743 Vote represents a prevote or precommit vote from 56744 validators for 56745 56746 consensus. 56747 total_voting_power: 56748 type: string 56749 format: int64 56750 validator_power: 56751 type: string 56752 format: int64 56753 timestamp: 56754 type: string 56755 format: date-time 56756 description: >- 56757 DuplicateVoteEvidence contains evidence of a validator 56758 signed two conflicting votes. 56759 light_client_attack_evidence: 56760 type: object 56761 properties: 56762 conflicting_block: 56763 type: object 56764 properties: 56765 signed_header: 56766 type: object 56767 properties: 56768 header: 56769 type: object 56770 properties: 56771 version: 56772 title: basic block info 56773 type: object 56774 properties: 56775 block: 56776 type: string 56777 format: uint64 56778 app: 56779 type: string 56780 format: uint64 56781 description: >- 56782 Consensus captures the consensus rules 56783 for processing a block in the 56784 blockchain, 56785 56786 including all blockchain data structures 56787 and the rules of the application's 56788 56789 state transition machine. 56790 chain_id: 56791 type: string 56792 height: 56793 type: string 56794 format: int64 56795 time: 56796 type: string 56797 format: date-time 56798 last_block_id: 56799 type: object 56800 properties: 56801 hash: 56802 type: string 56803 format: byte 56804 part_set_header: 56805 type: object 56806 properties: 56807 total: 56808 type: integer 56809 format: int64 56810 hash: 56811 type: string 56812 format: byte 56813 title: PartsetHeader 56814 title: BlockID 56815 last_commit_hash: 56816 type: string 56817 format: byte 56818 title: hashes of block data 56819 data_hash: 56820 type: string 56821 format: byte 56822 validators_hash: 56823 type: string 56824 format: byte 56825 title: >- 56826 hashes from the app output from the prev 56827 block 56828 next_validators_hash: 56829 type: string 56830 format: byte 56831 consensus_hash: 56832 type: string 56833 format: byte 56834 app_hash: 56835 type: string 56836 format: byte 56837 last_results_hash: 56838 type: string 56839 format: byte 56840 evidence_hash: 56841 type: string 56842 format: byte 56843 title: consensus info 56844 proposer_address: 56845 type: string 56846 format: byte 56847 description: >- 56848 Header defines the structure of a block 56849 header. 56850 commit: 56851 type: object 56852 properties: 56853 height: 56854 type: string 56855 format: int64 56856 round: 56857 type: integer 56858 format: int32 56859 block_id: 56860 type: object 56861 properties: 56862 hash: 56863 type: string 56864 format: byte 56865 part_set_header: 56866 type: object 56867 properties: 56868 total: 56869 type: integer 56870 format: int64 56871 hash: 56872 type: string 56873 format: byte 56874 title: PartsetHeader 56875 title: BlockID 56876 signatures: 56877 type: array 56878 items: 56879 type: object 56880 properties: 56881 block_id_flag: 56882 type: string 56883 enum: 56884 - BLOCK_ID_FLAG_UNKNOWN 56885 - BLOCK_ID_FLAG_ABSENT 56886 - BLOCK_ID_FLAG_COMMIT 56887 - BLOCK_ID_FLAG_NIL 56888 default: BLOCK_ID_FLAG_UNKNOWN 56889 title: >- 56890 BlockIdFlag indicates which BlockID the 56891 signature is for 56892 validator_address: 56893 type: string 56894 format: byte 56895 timestamp: 56896 type: string 56897 format: date-time 56898 signature: 56899 type: string 56900 format: byte 56901 description: >- 56902 CommitSig is a part of the Vote included 56903 in a Commit. 56904 description: >- 56905 Commit contains the evidence that a block 56906 was committed by a set of validators. 56907 validator_set: 56908 type: object 56909 properties: 56910 validators: 56911 type: array 56912 items: 56913 type: object 56914 properties: 56915 address: 56916 type: string 56917 format: byte 56918 pub_key: 56919 type: object 56920 properties: 56921 ed25519: 56922 type: string 56923 format: byte 56924 secp256k1: 56925 type: string 56926 format: byte 56927 title: >- 56928 PublicKey defines the keys available for 56929 use with Validators 56930 voting_power: 56931 type: string 56932 format: int64 56933 proposer_priority: 56934 type: string 56935 format: int64 56936 proposer: 56937 type: object 56938 properties: 56939 address: 56940 type: string 56941 format: byte 56942 pub_key: 56943 type: object 56944 properties: 56945 ed25519: 56946 type: string 56947 format: byte 56948 secp256k1: 56949 type: string 56950 format: byte 56951 title: >- 56952 PublicKey defines the keys available for 56953 use with Validators 56954 voting_power: 56955 type: string 56956 format: int64 56957 proposer_priority: 56958 type: string 56959 format: int64 56960 total_voting_power: 56961 type: string 56962 format: int64 56963 common_height: 56964 type: string 56965 format: int64 56966 byzantine_validators: 56967 type: array 56968 items: 56969 type: object 56970 properties: 56971 address: 56972 type: string 56973 format: byte 56974 pub_key: 56975 type: object 56976 properties: 56977 ed25519: 56978 type: string 56979 format: byte 56980 secp256k1: 56981 type: string 56982 format: byte 56983 title: >- 56984 PublicKey defines the keys available for use 56985 with Validators 56986 voting_power: 56987 type: string 56988 format: int64 56989 proposer_priority: 56990 type: string 56991 format: int64 56992 total_voting_power: 56993 type: string 56994 format: int64 56995 timestamp: 56996 type: string 56997 format: date-time 56998 description: >- 56999 LightClientAttackEvidence contains evidence of a set of 57000 validators attempting to mislead a light client. 57001 last_commit: 57002 type: object 57003 properties: 57004 height: 57005 type: string 57006 format: int64 57007 round: 57008 type: integer 57009 format: int32 57010 block_id: 57011 type: object 57012 properties: 57013 hash: 57014 type: string 57015 format: byte 57016 part_set_header: 57017 type: object 57018 properties: 57019 total: 57020 type: integer 57021 format: int64 57022 hash: 57023 type: string 57024 format: byte 57025 title: PartsetHeader 57026 title: BlockID 57027 signatures: 57028 type: array 57029 items: 57030 type: object 57031 properties: 57032 block_id_flag: 57033 type: string 57034 enum: 57035 - BLOCK_ID_FLAG_UNKNOWN 57036 - BLOCK_ID_FLAG_ABSENT 57037 - BLOCK_ID_FLAG_COMMIT 57038 - BLOCK_ID_FLAG_NIL 57039 default: BLOCK_ID_FLAG_UNKNOWN 57040 title: BlockIdFlag indicates which BlockID the signature is for 57041 validator_address: 57042 type: string 57043 format: byte 57044 timestamp: 57045 type: string 57046 format: date-time 57047 signature: 57048 type: string 57049 format: byte 57050 description: CommitSig is a part of the Vote included in a Commit. 57051 description: >- 57052 Commit contains the evidence that a block was committed by a set 57053 of validators. 57054 pagination: 57055 description: pagination defines a pagination for the response. 57056 type: object 57057 properties: 57058 next_key: 57059 type: string 57060 format: byte 57061 description: |- 57062 next_key is the key to be passed to PageRequest.key to 57063 query the next page most efficiently. It will be empty if 57064 there are no more results. 57065 total: 57066 type: string 57067 format: uint64 57068 title: >- 57069 total is total number of results available if 57070 PageRequest.count_total 57071 57072 was set, its value is undefined otherwise 57073 description: >- 57074 GetBlockWithTxsResponse is the response type for the 57075 Service.GetBlockWithTxs 57076 57077 method. 57078 57079 57080 Since: cosmos-sdk 0.45.2 57081 cosmos.tx.v1beta1.GetTxResponse: 57082 type: object 57083 properties: 57084 tx: 57085 $ref: '#/definitions/cosmos.tx.v1beta1.Tx' 57086 description: tx is the queried transaction. 57087 tx_response: 57088 type: object 57089 properties: 57090 height: 57091 type: string 57092 format: int64 57093 title: The block height 57094 txhash: 57095 type: string 57096 description: The transaction hash. 57097 codespace: 57098 type: string 57099 title: Namespace for the Code 57100 code: 57101 type: integer 57102 format: int64 57103 description: Response code. 57104 data: 57105 type: string 57106 description: Result bytes, if any. 57107 raw_log: 57108 type: string 57109 description: |- 57110 The output of the application's logger (raw string). May be 57111 non-deterministic. 57112 logs: 57113 type: array 57114 items: 57115 type: object 57116 properties: 57117 msg_index: 57118 type: integer 57119 format: int64 57120 log: 57121 type: string 57122 events: 57123 type: array 57124 items: 57125 type: object 57126 properties: 57127 type: 57128 type: string 57129 attributes: 57130 type: array 57131 items: 57132 type: object 57133 properties: 57134 key: 57135 type: string 57136 value: 57137 type: string 57138 description: >- 57139 Attribute defines an attribute wrapper where the key 57140 and value are 57141 57142 strings instead of raw bytes. 57143 description: >- 57144 StringEvent defines en Event object wrapper where all the 57145 attributes 57146 57147 contain key/value pairs that are strings instead of raw 57148 bytes. 57149 description: >- 57150 Events contains a slice of Event objects that were emitted 57151 during some 57152 57153 execution. 57154 description: >- 57155 ABCIMessageLog defines a structure containing an indexed tx ABCI 57156 message log. 57157 description: >- 57158 The output of the application's logger (typed). May be 57159 non-deterministic. 57160 info: 57161 type: string 57162 description: Additional information. May be non-deterministic. 57163 gas_wanted: 57164 type: string 57165 format: int64 57166 description: Amount of gas requested for transaction. 57167 gas_used: 57168 type: string 57169 format: int64 57170 description: Amount of gas consumed by transaction. 57171 tx: 57172 type: object 57173 properties: 57174 type_url: 57175 type: string 57176 description: >- 57177 A URL/resource name that uniquely identifies the type of the 57178 serialized 57179 57180 protocol buffer message. This string must contain at least 57181 57182 one "/" character. The last segment of the URL's path must 57183 represent 57184 57185 the fully qualified name of the type (as in 57186 57187 `path/google.protobuf.Duration`). The name should be in a 57188 canonical form 57189 57190 (e.g., leading "." is not accepted). 57191 57192 57193 In practice, teams usually precompile into the binary all 57194 types that they 57195 57196 expect it to use in the context of Any. However, for URLs 57197 which use the 57198 57199 scheme `http`, `https`, or no scheme, one can optionally set 57200 up a type 57201 57202 server that maps type URLs to message definitions as follows: 57203 57204 57205 * If no scheme is provided, `https` is assumed. 57206 57207 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 57208 value in binary format, or produce an error. 57209 * Applications are allowed to cache lookup results based on 57210 the 57211 URL, or have them precompiled into a binary to avoid any 57212 lookup. Therefore, binary compatibility needs to be preserved 57213 on changes to types. (Use versioned type names to manage 57214 breaking changes.) 57215 57216 Note: this functionality is not currently available in the 57217 official 57218 57219 protobuf release, and it is not used for type URLs beginning 57220 with 57221 57222 type.googleapis.com. 57223 57224 57225 Schemes other than `http`, `https` (or the empty scheme) might 57226 be 57227 57228 used with implementation specific semantics. 57229 value: 57230 type: string 57231 format: byte 57232 description: >- 57233 Must be a valid serialized protocol buffer of the above 57234 specified type. 57235 description: >- 57236 `Any` contains an arbitrary serialized protocol buffer message 57237 along with a 57238 57239 URL that describes the type of the serialized message. 57240 57241 57242 Protobuf library provides support to pack/unpack Any values in the 57243 form 57244 57245 of utility functions or additional generated methods of the Any 57246 type. 57247 57248 57249 Example 1: Pack and unpack a message in C++. 57250 57251 Foo foo = ...; 57252 Any any; 57253 any.PackFrom(foo); 57254 ... 57255 if (any.UnpackTo(&foo)) { 57256 ... 57257 } 57258 57259 Example 2: Pack and unpack a message in Java. 57260 57261 Foo foo = ...; 57262 Any any = Any.pack(foo); 57263 ... 57264 if (any.is(Foo.class)) { 57265 foo = any.unpack(Foo.class); 57266 } 57267 // or ... 57268 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 57269 foo = any.unpack(Foo.getDefaultInstance()); 57270 } 57271 57272 Example 3: Pack and unpack a message in Python. 57273 57274 foo = Foo(...) 57275 any = Any() 57276 any.Pack(foo) 57277 ... 57278 if any.Is(Foo.DESCRIPTOR): 57279 any.Unpack(foo) 57280 ... 57281 57282 Example 4: Pack and unpack a message in Go 57283 57284 foo := &pb.Foo{...} 57285 any, err := anypb.New(foo) 57286 if err != nil { 57287 ... 57288 } 57289 ... 57290 foo := &pb.Foo{} 57291 if err := any.UnmarshalTo(foo); err != nil { 57292 ... 57293 } 57294 57295 The pack methods provided by protobuf library will by default use 57296 57297 'type.googleapis.com/full.type.name' as the type URL and the 57298 unpack 57299 57300 methods only use the fully qualified type name after the last '/' 57301 57302 in the type URL, for example "foo.bar.com/x/y.z" will yield type 57303 57304 name "y.z". 57305 57306 57307 JSON 57308 57309 57310 The JSON representation of an `Any` value uses the regular 57311 57312 representation of the deserialized, embedded message, with an 57313 57314 additional field `@type` which contains the type URL. Example: 57315 57316 package google.profile; 57317 message Person { 57318 string first_name = 1; 57319 string last_name = 2; 57320 } 57321 57322 { 57323 "@type": "type.googleapis.com/google.profile.Person", 57324 "firstName": <string>, 57325 "lastName": <string> 57326 } 57327 57328 If the embedded message type is well-known and has a custom JSON 57329 57330 representation, that representation will be embedded adding a 57331 field 57332 57333 `value` which holds the custom JSON in addition to the `@type` 57334 57335 field. Example (for message [google.protobuf.Duration][]): 57336 57337 { 57338 "@type": "type.googleapis.com/google.protobuf.Duration", 57339 "value": "1.212s" 57340 } 57341 timestamp: 57342 type: string 57343 description: >- 57344 Time of the previous block. For heights > 1, it's the weighted 57345 median of 57346 57347 the timestamps of the valid votes in the block.LastCommit. For 57348 height == 1, 57349 57350 it's genesis time. 57351 events: 57352 type: array 57353 items: 57354 type: object 57355 properties: 57356 type: 57357 type: string 57358 attributes: 57359 type: array 57360 items: 57361 type: object 57362 properties: 57363 key: 57364 type: string 57365 value: 57366 type: string 57367 index: 57368 type: boolean 57369 description: >- 57370 EventAttribute is a single key-value pair, associated with 57371 an event. 57372 description: >- 57373 Event allows application developers to attach additional 57374 information to 57375 57376 ResponseFinalizeBlock and ResponseCheckTx. 57377 57378 Later, transactions may be queried using these events. 57379 description: >- 57380 Events defines all the events emitted by processing a transaction. 57381 Note, 57382 57383 these events include those emitted by processing all the messages 57384 and those 57385 57386 emitted from the ante. Whereas Logs contains the events, with 57387 57388 additional metadata, emitted only by processing the messages. 57389 57390 57391 Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 57392 description: >- 57393 TxResponse defines a structure containing relevant tx data and 57394 metadata. The 57395 57396 tags are stringified and the log is JSON decoded. 57397 description: GetTxResponse is the response type for the Service.GetTx method. 57398 cosmos.tx.v1beta1.GetTxsEventResponse: 57399 type: object 57400 properties: 57401 txs: 57402 type: array 57403 items: 57404 $ref: '#/definitions/cosmos.tx.v1beta1.Tx' 57405 description: txs is the list of queried transactions. 57406 tx_responses: 57407 type: array 57408 items: 57409 type: object 57410 properties: 57411 height: 57412 type: string 57413 format: int64 57414 title: The block height 57415 txhash: 57416 type: string 57417 description: The transaction hash. 57418 codespace: 57419 type: string 57420 title: Namespace for the Code 57421 code: 57422 type: integer 57423 format: int64 57424 description: Response code. 57425 data: 57426 type: string 57427 description: Result bytes, if any. 57428 raw_log: 57429 type: string 57430 description: |- 57431 The output of the application's logger (raw string). May be 57432 non-deterministic. 57433 logs: 57434 type: array 57435 items: 57436 type: object 57437 properties: 57438 msg_index: 57439 type: integer 57440 format: int64 57441 log: 57442 type: string 57443 events: 57444 type: array 57445 items: 57446 type: object 57447 properties: 57448 type: 57449 type: string 57450 attributes: 57451 type: array 57452 items: 57453 type: object 57454 properties: 57455 key: 57456 type: string 57457 value: 57458 type: string 57459 description: >- 57460 Attribute defines an attribute wrapper where the 57461 key and value are 57462 57463 strings instead of raw bytes. 57464 description: >- 57465 StringEvent defines en Event object wrapper where all 57466 the attributes 57467 57468 contain key/value pairs that are strings instead of raw 57469 bytes. 57470 description: >- 57471 Events contains a slice of Event objects that were emitted 57472 during some 57473 57474 execution. 57475 description: >- 57476 ABCIMessageLog defines a structure containing an indexed tx 57477 ABCI message log. 57478 description: >- 57479 The output of the application's logger (typed). May be 57480 non-deterministic. 57481 info: 57482 type: string 57483 description: Additional information. May be non-deterministic. 57484 gas_wanted: 57485 type: string 57486 format: int64 57487 description: Amount of gas requested for transaction. 57488 gas_used: 57489 type: string 57490 format: int64 57491 description: Amount of gas consumed by transaction. 57492 tx: 57493 type: object 57494 properties: 57495 type_url: 57496 type: string 57497 description: >- 57498 A URL/resource name that uniquely identifies the type of the 57499 serialized 57500 57501 protocol buffer message. This string must contain at least 57502 57503 one "/" character. The last segment of the URL's path must 57504 represent 57505 57506 the fully qualified name of the type (as in 57507 57508 `path/google.protobuf.Duration`). The name should be in a 57509 canonical form 57510 57511 (e.g., leading "." is not accepted). 57512 57513 57514 In practice, teams usually precompile into the binary all 57515 types that they 57516 57517 expect it to use in the context of Any. However, for URLs 57518 which use the 57519 57520 scheme `http`, `https`, or no scheme, one can optionally set 57521 up a type 57522 57523 server that maps type URLs to message definitions as 57524 follows: 57525 57526 57527 * If no scheme is provided, `https` is assumed. 57528 57529 * An HTTP GET on the URL must yield a 57530 [google.protobuf.Type][] 57531 value in binary format, or produce an error. 57532 * Applications are allowed to cache lookup results based on 57533 the 57534 URL, or have them precompiled into a binary to avoid any 57535 lookup. Therefore, binary compatibility needs to be preserved 57536 on changes to types. (Use versioned type names to manage 57537 breaking changes.) 57538 57539 Note: this functionality is not currently available in the 57540 official 57541 57542 protobuf release, and it is not used for type URLs beginning 57543 with 57544 57545 type.googleapis.com. 57546 57547 57548 Schemes other than `http`, `https` (or the empty scheme) 57549 might be 57550 57551 used with implementation specific semantics. 57552 value: 57553 type: string 57554 format: byte 57555 description: >- 57556 Must be a valid serialized protocol buffer of the above 57557 specified type. 57558 description: >- 57559 `Any` contains an arbitrary serialized protocol buffer message 57560 along with a 57561 57562 URL that describes the type of the serialized message. 57563 57564 57565 Protobuf library provides support to pack/unpack Any values in 57566 the form 57567 57568 of utility functions or additional generated methods of the Any 57569 type. 57570 57571 57572 Example 1: Pack and unpack a message in C++. 57573 57574 Foo foo = ...; 57575 Any any; 57576 any.PackFrom(foo); 57577 ... 57578 if (any.UnpackTo(&foo)) { 57579 ... 57580 } 57581 57582 Example 2: Pack and unpack a message in Java. 57583 57584 Foo foo = ...; 57585 Any any = Any.pack(foo); 57586 ... 57587 if (any.is(Foo.class)) { 57588 foo = any.unpack(Foo.class); 57589 } 57590 // or ... 57591 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 57592 foo = any.unpack(Foo.getDefaultInstance()); 57593 } 57594 57595 Example 3: Pack and unpack a message in Python. 57596 57597 foo = Foo(...) 57598 any = Any() 57599 any.Pack(foo) 57600 ... 57601 if any.Is(Foo.DESCRIPTOR): 57602 any.Unpack(foo) 57603 ... 57604 57605 Example 4: Pack and unpack a message in Go 57606 57607 foo := &pb.Foo{...} 57608 any, err := anypb.New(foo) 57609 if err != nil { 57610 ... 57611 } 57612 ... 57613 foo := &pb.Foo{} 57614 if err := any.UnmarshalTo(foo); err != nil { 57615 ... 57616 } 57617 57618 The pack methods provided by protobuf library will by default 57619 use 57620 57621 'type.googleapis.com/full.type.name' as the type URL and the 57622 unpack 57623 57624 methods only use the fully qualified type name after the last 57625 '/' 57626 57627 in the type URL, for example "foo.bar.com/x/y.z" will yield type 57628 57629 name "y.z". 57630 57631 57632 JSON 57633 57634 57635 The JSON representation of an `Any` value uses the regular 57636 57637 representation of the deserialized, embedded message, with an 57638 57639 additional field `@type` which contains the type URL. Example: 57640 57641 package google.profile; 57642 message Person { 57643 string first_name = 1; 57644 string last_name = 2; 57645 } 57646 57647 { 57648 "@type": "type.googleapis.com/google.profile.Person", 57649 "firstName": <string>, 57650 "lastName": <string> 57651 } 57652 57653 If the embedded message type is well-known and has a custom JSON 57654 57655 representation, that representation will be embedded adding a 57656 field 57657 57658 `value` which holds the custom JSON in addition to the `@type` 57659 57660 field. Example (for message [google.protobuf.Duration][]): 57661 57662 { 57663 "@type": "type.googleapis.com/google.protobuf.Duration", 57664 "value": "1.212s" 57665 } 57666 timestamp: 57667 type: string 57668 description: >- 57669 Time of the previous block. For heights > 1, it's the weighted 57670 median of 57671 57672 the timestamps of the valid votes in the block.LastCommit. For 57673 height == 1, 57674 57675 it's genesis time. 57676 events: 57677 type: array 57678 items: 57679 type: object 57680 properties: 57681 type: 57682 type: string 57683 attributes: 57684 type: array 57685 items: 57686 type: object 57687 properties: 57688 key: 57689 type: string 57690 value: 57691 type: string 57692 index: 57693 type: boolean 57694 description: >- 57695 EventAttribute is a single key-value pair, associated 57696 with an event. 57697 description: >- 57698 Event allows application developers to attach additional 57699 information to 57700 57701 ResponseFinalizeBlock and ResponseCheckTx. 57702 57703 Later, transactions may be queried using these events. 57704 description: >- 57705 Events defines all the events emitted by processing a 57706 transaction. Note, 57707 57708 these events include those emitted by processing all the 57709 messages and those 57710 57711 emitted from the ante. Whereas Logs contains the events, with 57712 57713 additional metadata, emitted only by processing the messages. 57714 57715 57716 Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 57717 description: >- 57718 TxResponse defines a structure containing relevant tx data and 57719 metadata. The 57720 57721 tags are stringified and the log is JSON decoded. 57722 description: tx_responses is the list of queried TxResponses. 57723 pagination: 57724 description: |- 57725 pagination defines a pagination for the response. 57726 Deprecated post v0.46.x: use total instead. 57727 type: object 57728 properties: 57729 next_key: 57730 type: string 57731 format: byte 57732 description: |- 57733 next_key is the key to be passed to PageRequest.key to 57734 query the next page most efficiently. It will be empty if 57735 there are no more results. 57736 total: 57737 type: string 57738 format: uint64 57739 title: >- 57740 total is total number of results available if 57741 PageRequest.count_total 57742 57743 was set, its value is undefined otherwise 57744 total: 57745 type: string 57746 format: uint64 57747 title: total is total number of results available 57748 description: |- 57749 GetTxsEventResponse is the response type for the Service.TxsByEvents 57750 RPC method. 57751 cosmos.tx.v1beta1.ModeInfo: 57752 type: object 57753 properties: 57754 single: 57755 title: single represents a single signer 57756 type: object 57757 properties: 57758 mode: 57759 title: mode is the signing mode of the single signer 57760 type: string 57761 enum: 57762 - SIGN_MODE_UNSPECIFIED 57763 - SIGN_MODE_DIRECT 57764 - SIGN_MODE_TEXTUAL 57765 - SIGN_MODE_DIRECT_AUX 57766 - SIGN_MODE_LEGACY_AMINO_JSON 57767 - SIGN_MODE_EIP_191 57768 default: SIGN_MODE_UNSPECIFIED 57769 description: >- 57770 SignMode represents a signing mode with its own security 57771 guarantees. 57772 57773 57774 This enum should be considered a registry of all known sign modes 57775 57776 in the Cosmos ecosystem. Apps are not expected to support all 57777 known 57778 57779 sign modes. Apps that would like to support custom sign modes are 57780 57781 encouraged to open a small PR against this file to add a new case 57782 57783 to this SignMode enum describing their sign mode so that different 57784 57785 apps have a consistent version of this enum. 57786 57787 - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be 57788 rejected. 57789 - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is 57790 verified with raw bytes from Tx. 57791 - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some 57792 human-readable textual representation on top of the binary 57793 representation 57794 57795 from SIGN_MODE_DIRECT. 57796 57797 57798 Since: cosmos-sdk 0.50 57799 - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses 57800 SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode 57801 does not 57802 57803 require signers signing over other signers' `signer_info`. 57804 57805 57806 Since: cosmos-sdk 0.46 57807 - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses 57808 Amino JSON and will be removed in the future. 57809 - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos 57810 SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 57811 57812 57813 Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum 57814 variant, 57815 57816 but is not implemented on the SDK by default. To enable EIP-191, 57817 you need 57818 57819 to pass a custom `TxConfig` that has an implementation of 57820 57821 `SignModeHandler` for EIP-191. The SDK may decide to fully support 57822 57823 EIP-191 in the future. 57824 57825 57826 Since: cosmos-sdk 0.45.2 57827 multi: 57828 $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo.Multi' 57829 title: multi represents a nested multisig signer 57830 description: ModeInfo describes the signing mode of a single or nested multisig signer. 57831 cosmos.tx.v1beta1.ModeInfo.Multi: 57832 type: object 57833 properties: 57834 bitarray: 57835 title: bitarray specifies which keys within the multisig are signing 57836 type: object 57837 properties: 57838 extra_bits_stored: 57839 type: integer 57840 format: int64 57841 elems: 57842 type: string 57843 format: byte 57844 description: >- 57845 CompactBitArray is an implementation of a space efficient bit array. 57846 57847 This is used to ensure that the encoded data takes up a minimal amount 57848 of 57849 57850 space after proto encoding. 57851 57852 This is not thread safe, and is not intended for concurrent usage. 57853 mode_infos: 57854 type: array 57855 items: 57856 $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo' 57857 title: |- 57858 mode_infos is the corresponding modes of the signers of the multisig 57859 which could include nested multisig public keys 57860 title: Multi is the mode info for a multisig public key 57861 cosmos.tx.v1beta1.ModeInfo.Single: 57862 type: object 57863 properties: 57864 mode: 57865 title: mode is the signing mode of the single signer 57866 type: string 57867 enum: 57868 - SIGN_MODE_UNSPECIFIED 57869 - SIGN_MODE_DIRECT 57870 - SIGN_MODE_TEXTUAL 57871 - SIGN_MODE_DIRECT_AUX 57872 - SIGN_MODE_LEGACY_AMINO_JSON 57873 - SIGN_MODE_EIP_191 57874 default: SIGN_MODE_UNSPECIFIED 57875 description: >- 57876 SignMode represents a signing mode with its own security guarantees. 57877 57878 57879 This enum should be considered a registry of all known sign modes 57880 57881 in the Cosmos ecosystem. Apps are not expected to support all known 57882 57883 sign modes. Apps that would like to support custom sign modes are 57884 57885 encouraged to open a small PR against this file to add a new case 57886 57887 to this SignMode enum describing their sign mode so that different 57888 57889 apps have a consistent version of this enum. 57890 57891 - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be 57892 rejected. 57893 - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is 57894 verified with raw bytes from Tx. 57895 - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some 57896 human-readable textual representation on top of the binary 57897 representation 57898 57899 from SIGN_MODE_DIRECT. 57900 57901 57902 Since: cosmos-sdk 0.50 57903 - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses 57904 SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does 57905 not 57906 57907 require signers signing over other signers' `signer_info`. 57908 57909 57910 Since: cosmos-sdk 0.46 57911 - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses 57912 Amino JSON and will be removed in the future. 57913 - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos 57914 SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 57915 57916 57917 Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, 57918 57919 but is not implemented on the SDK by default. To enable EIP-191, you 57920 need 57921 57922 to pass a custom `TxConfig` that has an implementation of 57923 57924 `SignModeHandler` for EIP-191. The SDK may decide to fully support 57925 57926 EIP-191 in the future. 57927 57928 57929 Since: cosmos-sdk 0.45.2 57930 title: |- 57931 Single is the mode info for a single signer. It is structured as a message 57932 to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the 57933 future 57934 cosmos.tx.v1beta1.OrderBy: 57935 type: string 57936 enum: 57937 - ORDER_BY_UNSPECIFIED 57938 - ORDER_BY_ASC 57939 - ORDER_BY_DESC 57940 default: ORDER_BY_UNSPECIFIED 57941 description: >- 57942 - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting 57943 order. OrderBy defaults 57944 57945 to ASC in this case. 57946 - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order 57947 - ORDER_BY_DESC: ORDER_BY_DESC defines descending order 57948 title: OrderBy defines the sorting order 57949 cosmos.tx.v1beta1.SignerInfo: 57950 type: object 57951 properties: 57952 public_key: 57953 type: object 57954 properties: 57955 type_url: 57956 type: string 57957 description: >- 57958 A URL/resource name that uniquely identifies the type of the 57959 serialized 57960 57961 protocol buffer message. This string must contain at least 57962 57963 one "/" character. The last segment of the URL's path must 57964 represent 57965 57966 the fully qualified name of the type (as in 57967 57968 `path/google.protobuf.Duration`). The name should be in a 57969 canonical form 57970 57971 (e.g., leading "." is not accepted). 57972 57973 57974 In practice, teams usually precompile into the binary all types 57975 that they 57976 57977 expect it to use in the context of Any. However, for URLs which 57978 use the 57979 57980 scheme `http`, `https`, or no scheme, one can optionally set up a 57981 type 57982 57983 server that maps type URLs to message definitions as follows: 57984 57985 57986 * If no scheme is provided, `https` is assumed. 57987 57988 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 57989 value in binary format, or produce an error. 57990 * Applications are allowed to cache lookup results based on the 57991 URL, or have them precompiled into a binary to avoid any 57992 lookup. Therefore, binary compatibility needs to be preserved 57993 on changes to types. (Use versioned type names to manage 57994 breaking changes.) 57995 57996 Note: this functionality is not currently available in the 57997 official 57998 57999 protobuf release, and it is not used for type URLs beginning with 58000 58001 type.googleapis.com. 58002 58003 58004 Schemes other than `http`, `https` (or the empty scheme) might be 58005 58006 used with implementation specific semantics. 58007 value: 58008 type: string 58009 format: byte 58010 description: >- 58011 Must be a valid serialized protocol buffer of the above specified 58012 type. 58013 description: >- 58014 `Any` contains an arbitrary serialized protocol buffer message along 58015 with a 58016 58017 URL that describes the type of the serialized message. 58018 58019 58020 Protobuf library provides support to pack/unpack Any values in the 58021 form 58022 58023 of utility functions or additional generated methods of the Any type. 58024 58025 58026 Example 1: Pack and unpack a message in C++. 58027 58028 Foo foo = ...; 58029 Any any; 58030 any.PackFrom(foo); 58031 ... 58032 if (any.UnpackTo(&foo)) { 58033 ... 58034 } 58035 58036 Example 2: Pack and unpack a message in Java. 58037 58038 Foo foo = ...; 58039 Any any = Any.pack(foo); 58040 ... 58041 if (any.is(Foo.class)) { 58042 foo = any.unpack(Foo.class); 58043 } 58044 // or ... 58045 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 58046 foo = any.unpack(Foo.getDefaultInstance()); 58047 } 58048 58049 Example 3: Pack and unpack a message in Python. 58050 58051 foo = Foo(...) 58052 any = Any() 58053 any.Pack(foo) 58054 ... 58055 if any.Is(Foo.DESCRIPTOR): 58056 any.Unpack(foo) 58057 ... 58058 58059 Example 4: Pack and unpack a message in Go 58060 58061 foo := &pb.Foo{...} 58062 any, err := anypb.New(foo) 58063 if err != nil { 58064 ... 58065 } 58066 ... 58067 foo := &pb.Foo{} 58068 if err := any.UnmarshalTo(foo); err != nil { 58069 ... 58070 } 58071 58072 The pack methods provided by protobuf library will by default use 58073 58074 'type.googleapis.com/full.type.name' as the type URL and the unpack 58075 58076 methods only use the fully qualified type name after the last '/' 58077 58078 in the type URL, for example "foo.bar.com/x/y.z" will yield type 58079 58080 name "y.z". 58081 58082 58083 JSON 58084 58085 58086 The JSON representation of an `Any` value uses the regular 58087 58088 representation of the deserialized, embedded message, with an 58089 58090 additional field `@type` which contains the type URL. Example: 58091 58092 package google.profile; 58093 message Person { 58094 string first_name = 1; 58095 string last_name = 2; 58096 } 58097 58098 { 58099 "@type": "type.googleapis.com/google.profile.Person", 58100 "firstName": <string>, 58101 "lastName": <string> 58102 } 58103 58104 If the embedded message type is well-known and has a custom JSON 58105 58106 representation, that representation will be embedded adding a field 58107 58108 `value` which holds the custom JSON in addition to the `@type` 58109 58110 field. Example (for message [google.protobuf.Duration][]): 58111 58112 { 58113 "@type": "type.googleapis.com/google.protobuf.Duration", 58114 "value": "1.212s" 58115 } 58116 mode_info: 58117 $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo' 58118 title: |- 58119 mode_info describes the signing mode of the signer and is a nested 58120 structure to support nested multisig pubkey's 58121 sequence: 58122 type: string 58123 format: uint64 58124 description: >- 58125 sequence is the sequence of the account, which describes the 58126 58127 number of committed transactions signed by a given address. It is used 58128 to 58129 58130 prevent replay attacks. 58131 description: |- 58132 SignerInfo describes the public key and signing mode of a single top-level 58133 signer. 58134 cosmos.tx.v1beta1.SimulateRequest: 58135 type: object 58136 properties: 58137 tx: 58138 $ref: '#/definitions/cosmos.tx.v1beta1.Tx' 58139 description: |- 58140 tx is the transaction to simulate. 58141 Deprecated. Send raw tx bytes instead. 58142 tx_bytes: 58143 type: string 58144 format: byte 58145 description: |- 58146 tx_bytes is the raw transaction. 58147 58148 Since: cosmos-sdk 0.43 58149 description: |- 58150 SimulateRequest is the request type for the Service.Simulate 58151 RPC method. 58152 cosmos.tx.v1beta1.SimulateResponse: 58153 type: object 58154 properties: 58155 gas_info: 58156 description: gas_info is the information about gas used in the simulation. 58157 type: object 58158 properties: 58159 gas_wanted: 58160 type: string 58161 format: uint64 58162 description: >- 58163 GasWanted is the maximum units of work we allow this tx to 58164 perform. 58165 gas_used: 58166 type: string 58167 format: uint64 58168 description: GasUsed is the amount of gas actually consumed. 58169 result: 58170 description: result is the result of the simulation. 58171 type: object 58172 properties: 58173 data: 58174 type: string 58175 format: byte 58176 description: >- 58177 Data is any data returned from message or handler execution. It 58178 MUST be 58179 58180 length prefixed in order to separate data from multiple message 58181 executions. 58182 58183 Deprecated. This field is still populated, but prefer msg_response 58184 instead 58185 58186 because it also contains the Msg response typeURL. 58187 log: 58188 type: string 58189 description: >- 58190 Log contains the log information from message or handler 58191 execution. 58192 events: 58193 type: array 58194 items: 58195 type: object 58196 properties: 58197 type: 58198 type: string 58199 attributes: 58200 type: array 58201 items: 58202 type: object 58203 properties: 58204 key: 58205 type: string 58206 value: 58207 type: string 58208 index: 58209 type: boolean 58210 description: >- 58211 EventAttribute is a single key-value pair, associated with 58212 an event. 58213 description: >- 58214 Event allows application developers to attach additional 58215 information to 58216 58217 ResponseFinalizeBlock and ResponseCheckTx. 58218 58219 Later, transactions may be queried using these events. 58220 description: >- 58221 Events contains a slice of Event objects that were emitted during 58222 message 58223 58224 or handler execution. 58225 msg_responses: 58226 type: array 58227 items: 58228 type: object 58229 properties: 58230 type_url: 58231 type: string 58232 description: >- 58233 A URL/resource name that uniquely identifies the type of the 58234 serialized 58235 58236 protocol buffer message. This string must contain at least 58237 58238 one "/" character. The last segment of the URL's path must 58239 represent 58240 58241 the fully qualified name of the type (as in 58242 58243 `path/google.protobuf.Duration`). The name should be in a 58244 canonical form 58245 58246 (e.g., leading "." is not accepted). 58247 58248 58249 In practice, teams usually precompile into the binary all 58250 types that they 58251 58252 expect it to use in the context of Any. However, for URLs 58253 which use the 58254 58255 scheme `http`, `https`, or no scheme, one can optionally set 58256 up a type 58257 58258 server that maps type URLs to message definitions as 58259 follows: 58260 58261 58262 * If no scheme is provided, `https` is assumed. 58263 58264 * An HTTP GET on the URL must yield a 58265 [google.protobuf.Type][] 58266 value in binary format, or produce an error. 58267 * Applications are allowed to cache lookup results based on 58268 the 58269 URL, or have them precompiled into a binary to avoid any 58270 lookup. Therefore, binary compatibility needs to be preserved 58271 on changes to types. (Use versioned type names to manage 58272 breaking changes.) 58273 58274 Note: this functionality is not currently available in the 58275 official 58276 58277 protobuf release, and it is not used for type URLs beginning 58278 with 58279 58280 type.googleapis.com. 58281 58282 58283 Schemes other than `http`, `https` (or the empty scheme) 58284 might be 58285 58286 used with implementation specific semantics. 58287 value: 58288 type: string 58289 format: byte 58290 description: >- 58291 Must be a valid serialized protocol buffer of the above 58292 specified type. 58293 description: >- 58294 `Any` contains an arbitrary serialized protocol buffer message 58295 along with a 58296 58297 URL that describes the type of the serialized message. 58298 58299 58300 Protobuf library provides support to pack/unpack Any values in 58301 the form 58302 58303 of utility functions or additional generated methods of the Any 58304 type. 58305 58306 58307 Example 1: Pack and unpack a message in C++. 58308 58309 Foo foo = ...; 58310 Any any; 58311 any.PackFrom(foo); 58312 ... 58313 if (any.UnpackTo(&foo)) { 58314 ... 58315 } 58316 58317 Example 2: Pack and unpack a message in Java. 58318 58319 Foo foo = ...; 58320 Any any = Any.pack(foo); 58321 ... 58322 if (any.is(Foo.class)) { 58323 foo = any.unpack(Foo.class); 58324 } 58325 // or ... 58326 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 58327 foo = any.unpack(Foo.getDefaultInstance()); 58328 } 58329 58330 Example 3: Pack and unpack a message in Python. 58331 58332 foo = Foo(...) 58333 any = Any() 58334 any.Pack(foo) 58335 ... 58336 if any.Is(Foo.DESCRIPTOR): 58337 any.Unpack(foo) 58338 ... 58339 58340 Example 4: Pack and unpack a message in Go 58341 58342 foo := &pb.Foo{...} 58343 any, err := anypb.New(foo) 58344 if err != nil { 58345 ... 58346 } 58347 ... 58348 foo := &pb.Foo{} 58349 if err := any.UnmarshalTo(foo); err != nil { 58350 ... 58351 } 58352 58353 The pack methods provided by protobuf library will by default 58354 use 58355 58356 'type.googleapis.com/full.type.name' as the type URL and the 58357 unpack 58358 58359 methods only use the fully qualified type name after the last 58360 '/' 58361 58362 in the type URL, for example "foo.bar.com/x/y.z" will yield type 58363 58364 name "y.z". 58365 58366 58367 JSON 58368 58369 58370 The JSON representation of an `Any` value uses the regular 58371 58372 representation of the deserialized, embedded message, with an 58373 58374 additional field `@type` which contains the type URL. Example: 58375 58376 package google.profile; 58377 message Person { 58378 string first_name = 1; 58379 string last_name = 2; 58380 } 58381 58382 { 58383 "@type": "type.googleapis.com/google.profile.Person", 58384 "firstName": <string>, 58385 "lastName": <string> 58386 } 58387 58388 If the embedded message type is well-known and has a custom JSON 58389 58390 representation, that representation will be embedded adding a 58391 field 58392 58393 `value` which holds the custom JSON in addition to the `@type` 58394 58395 field. Example (for message [google.protobuf.Duration][]): 58396 58397 { 58398 "@type": "type.googleapis.com/google.protobuf.Duration", 58399 "value": "1.212s" 58400 } 58401 description: >- 58402 msg_responses contains the Msg handler responses type packed in 58403 Anys. 58404 58405 58406 Since: cosmos-sdk 0.46 58407 description: |- 58408 SimulateResponse is the response type for the 58409 Service.SimulateRPC method. 58410 cosmos.tx.v1beta1.Tip: 58411 type: object 58412 properties: 58413 amount: 58414 type: array 58415 items: 58416 type: object 58417 properties: 58418 denom: 58419 type: string 58420 amount: 58421 type: string 58422 description: |- 58423 Coin defines a token with a denomination and an amount. 58424 58425 NOTE: The amount field is an Int which implements the custom method 58426 signatures required by gogoproto. 58427 title: amount is the amount of the tip 58428 tipper: 58429 type: string 58430 title: tipper is the address of the account paying for the tip 58431 description: |- 58432 Tip is the tip used for meta-transactions. 58433 58434 Since: cosmos-sdk 0.46 58435 cosmos.tx.v1beta1.Tx: 58436 type: object 58437 properties: 58438 body: 58439 title: body is the processable content of the transaction 58440 type: object 58441 properties: 58442 messages: 58443 type: array 58444 items: 58445 type: object 58446 properties: 58447 type_url: 58448 type: string 58449 description: >- 58450 A URL/resource name that uniquely identifies the type of the 58451 serialized 58452 58453 protocol buffer message. This string must contain at least 58454 58455 one "/" character. The last segment of the URL's path must 58456 represent 58457 58458 the fully qualified name of the type (as in 58459 58460 `path/google.protobuf.Duration`). The name should be in a 58461 canonical form 58462 58463 (e.g., leading "." is not accepted). 58464 58465 58466 In practice, teams usually precompile into the binary all 58467 types that they 58468 58469 expect it to use in the context of Any. However, for URLs 58470 which use the 58471 58472 scheme `http`, `https`, or no scheme, one can optionally set 58473 up a type 58474 58475 server that maps type URLs to message definitions as 58476 follows: 58477 58478 58479 * If no scheme is provided, `https` is assumed. 58480 58481 * An HTTP GET on the URL must yield a 58482 [google.protobuf.Type][] 58483 value in binary format, or produce an error. 58484 * Applications are allowed to cache lookup results based on 58485 the 58486 URL, or have them precompiled into a binary to avoid any 58487 lookup. Therefore, binary compatibility needs to be preserved 58488 on changes to types. (Use versioned type names to manage 58489 breaking changes.) 58490 58491 Note: this functionality is not currently available in the 58492 official 58493 58494 protobuf release, and it is not used for type URLs beginning 58495 with 58496 58497 type.googleapis.com. 58498 58499 58500 Schemes other than `http`, `https` (or the empty scheme) 58501 might be 58502 58503 used with implementation specific semantics. 58504 value: 58505 type: string 58506 format: byte 58507 description: >- 58508 Must be a valid serialized protocol buffer of the above 58509 specified type. 58510 description: >- 58511 `Any` contains an arbitrary serialized protocol buffer message 58512 along with a 58513 58514 URL that describes the type of the serialized message. 58515 58516 58517 Protobuf library provides support to pack/unpack Any values in 58518 the form 58519 58520 of utility functions or additional generated methods of the Any 58521 type. 58522 58523 58524 Example 1: Pack and unpack a message in C++. 58525 58526 Foo foo = ...; 58527 Any any; 58528 any.PackFrom(foo); 58529 ... 58530 if (any.UnpackTo(&foo)) { 58531 ... 58532 } 58533 58534 Example 2: Pack and unpack a message in Java. 58535 58536 Foo foo = ...; 58537 Any any = Any.pack(foo); 58538 ... 58539 if (any.is(Foo.class)) { 58540 foo = any.unpack(Foo.class); 58541 } 58542 // or ... 58543 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 58544 foo = any.unpack(Foo.getDefaultInstance()); 58545 } 58546 58547 Example 3: Pack and unpack a message in Python. 58548 58549 foo = Foo(...) 58550 any = Any() 58551 any.Pack(foo) 58552 ... 58553 if any.Is(Foo.DESCRIPTOR): 58554 any.Unpack(foo) 58555 ... 58556 58557 Example 4: Pack and unpack a message in Go 58558 58559 foo := &pb.Foo{...} 58560 any, err := anypb.New(foo) 58561 if err != nil { 58562 ... 58563 } 58564 ... 58565 foo := &pb.Foo{} 58566 if err := any.UnmarshalTo(foo); err != nil { 58567 ... 58568 } 58569 58570 The pack methods provided by protobuf library will by default 58571 use 58572 58573 'type.googleapis.com/full.type.name' as the type URL and the 58574 unpack 58575 58576 methods only use the fully qualified type name after the last 58577 '/' 58578 58579 in the type URL, for example "foo.bar.com/x/y.z" will yield type 58580 58581 name "y.z". 58582 58583 58584 JSON 58585 58586 58587 The JSON representation of an `Any` value uses the regular 58588 58589 representation of the deserialized, embedded message, with an 58590 58591 additional field `@type` which contains the type URL. Example: 58592 58593 package google.profile; 58594 message Person { 58595 string first_name = 1; 58596 string last_name = 2; 58597 } 58598 58599 { 58600 "@type": "type.googleapis.com/google.profile.Person", 58601 "firstName": <string>, 58602 "lastName": <string> 58603 } 58604 58605 If the embedded message type is well-known and has a custom JSON 58606 58607 representation, that representation will be embedded adding a 58608 field 58609 58610 `value` which holds the custom JSON in addition to the `@type` 58611 58612 field. Example (for message [google.protobuf.Duration][]): 58613 58614 { 58615 "@type": "type.googleapis.com/google.protobuf.Duration", 58616 "value": "1.212s" 58617 } 58618 description: >- 58619 messages is a list of messages to be executed. The required 58620 signers of 58621 58622 those messages define the number and order of elements in 58623 AuthInfo's 58624 58625 signer_infos and Tx's signatures. Each required signer address is 58626 added to 58627 58628 the list only the first time it occurs. 58629 58630 By convention, the first required signer (usually from the first 58631 message) 58632 58633 is referred to as the primary signer and pays the fee for the 58634 whole 58635 58636 transaction. 58637 memo: 58638 type: string 58639 description: >- 58640 memo is any arbitrary note/comment to be added to the transaction. 58641 58642 WARNING: in clients, any publicly exposed text should not be 58643 called memo, 58644 58645 but should be called `note` instead (see 58646 https://github.com/cosmos/cosmos-sdk/issues/9122). 58647 timeout_height: 58648 type: string 58649 format: uint64 58650 title: |- 58651 timeout is the block height after which this transaction will not 58652 be processed by the chain 58653 extension_options: 58654 type: array 58655 items: 58656 type: object 58657 properties: 58658 type_url: 58659 type: string 58660 description: >- 58661 A URL/resource name that uniquely identifies the type of the 58662 serialized 58663 58664 protocol buffer message. This string must contain at least 58665 58666 one "/" character. The last segment of the URL's path must 58667 represent 58668 58669 the fully qualified name of the type (as in 58670 58671 `path/google.protobuf.Duration`). The name should be in a 58672 canonical form 58673 58674 (e.g., leading "." is not accepted). 58675 58676 58677 In practice, teams usually precompile into the binary all 58678 types that they 58679 58680 expect it to use in the context of Any. However, for URLs 58681 which use the 58682 58683 scheme `http`, `https`, or no scheme, one can optionally set 58684 up a type 58685 58686 server that maps type URLs to message definitions as 58687 follows: 58688 58689 58690 * If no scheme is provided, `https` is assumed. 58691 58692 * An HTTP GET on the URL must yield a 58693 [google.protobuf.Type][] 58694 value in binary format, or produce an error. 58695 * Applications are allowed to cache lookup results based on 58696 the 58697 URL, or have them precompiled into a binary to avoid any 58698 lookup. Therefore, binary compatibility needs to be preserved 58699 on changes to types. (Use versioned type names to manage 58700 breaking changes.) 58701 58702 Note: this functionality is not currently available in the 58703 official 58704 58705 protobuf release, and it is not used for type URLs beginning 58706 with 58707 58708 type.googleapis.com. 58709 58710 58711 Schemes other than `http`, `https` (or the empty scheme) 58712 might be 58713 58714 used with implementation specific semantics. 58715 value: 58716 type: string 58717 format: byte 58718 description: >- 58719 Must be a valid serialized protocol buffer of the above 58720 specified type. 58721 description: >- 58722 `Any` contains an arbitrary serialized protocol buffer message 58723 along with a 58724 58725 URL that describes the type of the serialized message. 58726 58727 58728 Protobuf library provides support to pack/unpack Any values in 58729 the form 58730 58731 of utility functions or additional generated methods of the Any 58732 type. 58733 58734 58735 Example 1: Pack and unpack a message in C++. 58736 58737 Foo foo = ...; 58738 Any any; 58739 any.PackFrom(foo); 58740 ... 58741 if (any.UnpackTo(&foo)) { 58742 ... 58743 } 58744 58745 Example 2: Pack and unpack a message in Java. 58746 58747 Foo foo = ...; 58748 Any any = Any.pack(foo); 58749 ... 58750 if (any.is(Foo.class)) { 58751 foo = any.unpack(Foo.class); 58752 } 58753 // or ... 58754 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 58755 foo = any.unpack(Foo.getDefaultInstance()); 58756 } 58757 58758 Example 3: Pack and unpack a message in Python. 58759 58760 foo = Foo(...) 58761 any = Any() 58762 any.Pack(foo) 58763 ... 58764 if any.Is(Foo.DESCRIPTOR): 58765 any.Unpack(foo) 58766 ... 58767 58768 Example 4: Pack and unpack a message in Go 58769 58770 foo := &pb.Foo{...} 58771 any, err := anypb.New(foo) 58772 if err != nil { 58773 ... 58774 } 58775 ... 58776 foo := &pb.Foo{} 58777 if err := any.UnmarshalTo(foo); err != nil { 58778 ... 58779 } 58780 58781 The pack methods provided by protobuf library will by default 58782 use 58783 58784 'type.googleapis.com/full.type.name' as the type URL and the 58785 unpack 58786 58787 methods only use the fully qualified type name after the last 58788 '/' 58789 58790 in the type URL, for example "foo.bar.com/x/y.z" will yield type 58791 58792 name "y.z". 58793 58794 58795 JSON 58796 58797 58798 The JSON representation of an `Any` value uses the regular 58799 58800 representation of the deserialized, embedded message, with an 58801 58802 additional field `@type` which contains the type URL. Example: 58803 58804 package google.profile; 58805 message Person { 58806 string first_name = 1; 58807 string last_name = 2; 58808 } 58809 58810 { 58811 "@type": "type.googleapis.com/google.profile.Person", 58812 "firstName": <string>, 58813 "lastName": <string> 58814 } 58815 58816 If the embedded message type is well-known and has a custom JSON 58817 58818 representation, that representation will be embedded adding a 58819 field 58820 58821 `value` which holds the custom JSON in addition to the `@type` 58822 58823 field. Example (for message [google.protobuf.Duration][]): 58824 58825 { 58826 "@type": "type.googleapis.com/google.protobuf.Duration", 58827 "value": "1.212s" 58828 } 58829 title: >- 58830 extension_options are arbitrary options that can be added by 58831 chains 58832 58833 when the default options are not sufficient. If any of these are 58834 present 58835 58836 and can't be handled, the transaction will be rejected 58837 non_critical_extension_options: 58838 type: array 58839 items: 58840 type: object 58841 properties: 58842 type_url: 58843 type: string 58844 description: >- 58845 A URL/resource name that uniquely identifies the type of the 58846 serialized 58847 58848 protocol buffer message. This string must contain at least 58849 58850 one "/" character. The last segment of the URL's path must 58851 represent 58852 58853 the fully qualified name of the type (as in 58854 58855 `path/google.protobuf.Duration`). The name should be in a 58856 canonical form 58857 58858 (e.g., leading "." is not accepted). 58859 58860 58861 In practice, teams usually precompile into the binary all 58862 types that they 58863 58864 expect it to use in the context of Any. However, for URLs 58865 which use the 58866 58867 scheme `http`, `https`, or no scheme, one can optionally set 58868 up a type 58869 58870 server that maps type URLs to message definitions as 58871 follows: 58872 58873 58874 * If no scheme is provided, `https` is assumed. 58875 58876 * An HTTP GET on the URL must yield a 58877 [google.protobuf.Type][] 58878 value in binary format, or produce an error. 58879 * Applications are allowed to cache lookup results based on 58880 the 58881 URL, or have them precompiled into a binary to avoid any 58882 lookup. Therefore, binary compatibility needs to be preserved 58883 on changes to types. (Use versioned type names to manage 58884 breaking changes.) 58885 58886 Note: this functionality is not currently available in the 58887 official 58888 58889 protobuf release, and it is not used for type URLs beginning 58890 with 58891 58892 type.googleapis.com. 58893 58894 58895 Schemes other than `http`, `https` (or the empty scheme) 58896 might be 58897 58898 used with implementation specific semantics. 58899 value: 58900 type: string 58901 format: byte 58902 description: >- 58903 Must be a valid serialized protocol buffer of the above 58904 specified type. 58905 description: >- 58906 `Any` contains an arbitrary serialized protocol buffer message 58907 along with a 58908 58909 URL that describes the type of the serialized message. 58910 58911 58912 Protobuf library provides support to pack/unpack Any values in 58913 the form 58914 58915 of utility functions or additional generated methods of the Any 58916 type. 58917 58918 58919 Example 1: Pack and unpack a message in C++. 58920 58921 Foo foo = ...; 58922 Any any; 58923 any.PackFrom(foo); 58924 ... 58925 if (any.UnpackTo(&foo)) { 58926 ... 58927 } 58928 58929 Example 2: Pack and unpack a message in Java. 58930 58931 Foo foo = ...; 58932 Any any = Any.pack(foo); 58933 ... 58934 if (any.is(Foo.class)) { 58935 foo = any.unpack(Foo.class); 58936 } 58937 // or ... 58938 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 58939 foo = any.unpack(Foo.getDefaultInstance()); 58940 } 58941 58942 Example 3: Pack and unpack a message in Python. 58943 58944 foo = Foo(...) 58945 any = Any() 58946 any.Pack(foo) 58947 ... 58948 if any.Is(Foo.DESCRIPTOR): 58949 any.Unpack(foo) 58950 ... 58951 58952 Example 4: Pack and unpack a message in Go 58953 58954 foo := &pb.Foo{...} 58955 any, err := anypb.New(foo) 58956 if err != nil { 58957 ... 58958 } 58959 ... 58960 foo := &pb.Foo{} 58961 if err := any.UnmarshalTo(foo); err != nil { 58962 ... 58963 } 58964 58965 The pack methods provided by protobuf library will by default 58966 use 58967 58968 'type.googleapis.com/full.type.name' as the type URL and the 58969 unpack 58970 58971 methods only use the fully qualified type name after the last 58972 '/' 58973 58974 in the type URL, for example "foo.bar.com/x/y.z" will yield type 58975 58976 name "y.z". 58977 58978 58979 JSON 58980 58981 58982 The JSON representation of an `Any` value uses the regular 58983 58984 representation of the deserialized, embedded message, with an 58985 58986 additional field `@type` which contains the type URL. Example: 58987 58988 package google.profile; 58989 message Person { 58990 string first_name = 1; 58991 string last_name = 2; 58992 } 58993 58994 { 58995 "@type": "type.googleapis.com/google.profile.Person", 58996 "firstName": <string>, 58997 "lastName": <string> 58998 } 58999 59000 If the embedded message type is well-known and has a custom JSON 59001 59002 representation, that representation will be embedded adding a 59003 field 59004 59005 `value` which holds the custom JSON in addition to the `@type` 59006 59007 field. Example (for message [google.protobuf.Duration][]): 59008 59009 { 59010 "@type": "type.googleapis.com/google.protobuf.Duration", 59011 "value": "1.212s" 59012 } 59013 title: >- 59014 extension_options are arbitrary options that can be added by 59015 chains 59016 59017 when the default options are not sufficient. If any of these are 59018 present 59019 59020 and can't be handled, they will be ignored 59021 description: TxBody is the body of a transaction that all signers sign over. 59022 auth_info: 59023 $ref: '#/definitions/cosmos.tx.v1beta1.AuthInfo' 59024 title: |- 59025 auth_info is the authorization related content of the transaction, 59026 specifically signers, signer modes and fee 59027 signatures: 59028 type: array 59029 items: 59030 type: string 59031 format: byte 59032 description: >- 59033 signatures is a list of signatures that matches the length and order 59034 of 59035 59036 AuthInfo's signer_infos to allow connecting signature meta information 59037 like 59038 59039 public key and signing mode by position. 59040 description: Tx is the standard type used for broadcasting transactions. 59041 cosmos.tx.v1beta1.TxBody: 59042 type: object 59043 properties: 59044 messages: 59045 type: array 59046 items: 59047 type: object 59048 properties: 59049 type_url: 59050 type: string 59051 description: >- 59052 A URL/resource name that uniquely identifies the type of the 59053 serialized 59054 59055 protocol buffer message. This string must contain at least 59056 59057 one "/" character. The last segment of the URL's path must 59058 represent 59059 59060 the fully qualified name of the type (as in 59061 59062 `path/google.protobuf.Duration`). The name should be in a 59063 canonical form 59064 59065 (e.g., leading "." is not accepted). 59066 59067 59068 In practice, teams usually precompile into the binary all types 59069 that they 59070 59071 expect it to use in the context of Any. However, for URLs which 59072 use the 59073 59074 scheme `http`, `https`, or no scheme, one can optionally set up 59075 a type 59076 59077 server that maps type URLs to message definitions as follows: 59078 59079 59080 * If no scheme is provided, `https` is assumed. 59081 59082 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 59083 value in binary format, or produce an error. 59084 * Applications are allowed to cache lookup results based on the 59085 URL, or have them precompiled into a binary to avoid any 59086 lookup. Therefore, binary compatibility needs to be preserved 59087 on changes to types. (Use versioned type names to manage 59088 breaking changes.) 59089 59090 Note: this functionality is not currently available in the 59091 official 59092 59093 protobuf release, and it is not used for type URLs beginning 59094 with 59095 59096 type.googleapis.com. 59097 59098 59099 Schemes other than `http`, `https` (or the empty scheme) might 59100 be 59101 59102 used with implementation specific semantics. 59103 value: 59104 type: string 59105 format: byte 59106 description: >- 59107 Must be a valid serialized protocol buffer of the above 59108 specified type. 59109 description: >- 59110 `Any` contains an arbitrary serialized protocol buffer message along 59111 with a 59112 59113 URL that describes the type of the serialized message. 59114 59115 59116 Protobuf library provides support to pack/unpack Any values in the 59117 form 59118 59119 of utility functions or additional generated methods of the Any 59120 type. 59121 59122 59123 Example 1: Pack and unpack a message in C++. 59124 59125 Foo foo = ...; 59126 Any any; 59127 any.PackFrom(foo); 59128 ... 59129 if (any.UnpackTo(&foo)) { 59130 ... 59131 } 59132 59133 Example 2: Pack and unpack a message in Java. 59134 59135 Foo foo = ...; 59136 Any any = Any.pack(foo); 59137 ... 59138 if (any.is(Foo.class)) { 59139 foo = any.unpack(Foo.class); 59140 } 59141 // or ... 59142 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 59143 foo = any.unpack(Foo.getDefaultInstance()); 59144 } 59145 59146 Example 3: Pack and unpack a message in Python. 59147 59148 foo = Foo(...) 59149 any = Any() 59150 any.Pack(foo) 59151 ... 59152 if any.Is(Foo.DESCRIPTOR): 59153 any.Unpack(foo) 59154 ... 59155 59156 Example 4: Pack and unpack a message in Go 59157 59158 foo := &pb.Foo{...} 59159 any, err := anypb.New(foo) 59160 if err != nil { 59161 ... 59162 } 59163 ... 59164 foo := &pb.Foo{} 59165 if err := any.UnmarshalTo(foo); err != nil { 59166 ... 59167 } 59168 59169 The pack methods provided by protobuf library will by default use 59170 59171 'type.googleapis.com/full.type.name' as the type URL and the unpack 59172 59173 methods only use the fully qualified type name after the last '/' 59174 59175 in the type URL, for example "foo.bar.com/x/y.z" will yield type 59176 59177 name "y.z". 59178 59179 59180 JSON 59181 59182 59183 The JSON representation of an `Any` value uses the regular 59184 59185 representation of the deserialized, embedded message, with an 59186 59187 additional field `@type` which contains the type URL. Example: 59188 59189 package google.profile; 59190 message Person { 59191 string first_name = 1; 59192 string last_name = 2; 59193 } 59194 59195 { 59196 "@type": "type.googleapis.com/google.profile.Person", 59197 "firstName": <string>, 59198 "lastName": <string> 59199 } 59200 59201 If the embedded message type is well-known and has a custom JSON 59202 59203 representation, that representation will be embedded adding a field 59204 59205 `value` which holds the custom JSON in addition to the `@type` 59206 59207 field. Example (for message [google.protobuf.Duration][]): 59208 59209 { 59210 "@type": "type.googleapis.com/google.protobuf.Duration", 59211 "value": "1.212s" 59212 } 59213 description: >- 59214 messages is a list of messages to be executed. The required signers of 59215 59216 those messages define the number and order of elements in AuthInfo's 59217 59218 signer_infos and Tx's signatures. Each required signer address is 59219 added to 59220 59221 the list only the first time it occurs. 59222 59223 By convention, the first required signer (usually from the first 59224 message) 59225 59226 is referred to as the primary signer and pays the fee for the whole 59227 59228 transaction. 59229 memo: 59230 type: string 59231 description: >- 59232 memo is any arbitrary note/comment to be added to the transaction. 59233 59234 WARNING: in clients, any publicly exposed text should not be called 59235 memo, 59236 59237 but should be called `note` instead (see 59238 https://github.com/cosmos/cosmos-sdk/issues/9122). 59239 timeout_height: 59240 type: string 59241 format: uint64 59242 title: |- 59243 timeout is the block height after which this transaction will not 59244 be processed by the chain 59245 extension_options: 59246 type: array 59247 items: 59248 type: object 59249 properties: 59250 type_url: 59251 type: string 59252 description: >- 59253 A URL/resource name that uniquely identifies the type of the 59254 serialized 59255 59256 protocol buffer message. This string must contain at least 59257 59258 one "/" character. The last segment of the URL's path must 59259 represent 59260 59261 the fully qualified name of the type (as in 59262 59263 `path/google.protobuf.Duration`). The name should be in a 59264 canonical form 59265 59266 (e.g., leading "." is not accepted). 59267 59268 59269 In practice, teams usually precompile into the binary all types 59270 that they 59271 59272 expect it to use in the context of Any. However, for URLs which 59273 use the 59274 59275 scheme `http`, `https`, or no scheme, one can optionally set up 59276 a type 59277 59278 server that maps type URLs to message definitions as follows: 59279 59280 59281 * If no scheme is provided, `https` is assumed. 59282 59283 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 59284 value in binary format, or produce an error. 59285 * Applications are allowed to cache lookup results based on the 59286 URL, or have them precompiled into a binary to avoid any 59287 lookup. Therefore, binary compatibility needs to be preserved 59288 on changes to types. (Use versioned type names to manage 59289 breaking changes.) 59290 59291 Note: this functionality is not currently available in the 59292 official 59293 59294 protobuf release, and it is not used for type URLs beginning 59295 with 59296 59297 type.googleapis.com. 59298 59299 59300 Schemes other than `http`, `https` (or the empty scheme) might 59301 be 59302 59303 used with implementation specific semantics. 59304 value: 59305 type: string 59306 format: byte 59307 description: >- 59308 Must be a valid serialized protocol buffer of the above 59309 specified type. 59310 description: >- 59311 `Any` contains an arbitrary serialized protocol buffer message along 59312 with a 59313 59314 URL that describes the type of the serialized message. 59315 59316 59317 Protobuf library provides support to pack/unpack Any values in the 59318 form 59319 59320 of utility functions or additional generated methods of the Any 59321 type. 59322 59323 59324 Example 1: Pack and unpack a message in C++. 59325 59326 Foo foo = ...; 59327 Any any; 59328 any.PackFrom(foo); 59329 ... 59330 if (any.UnpackTo(&foo)) { 59331 ... 59332 } 59333 59334 Example 2: Pack and unpack a message in Java. 59335 59336 Foo foo = ...; 59337 Any any = Any.pack(foo); 59338 ... 59339 if (any.is(Foo.class)) { 59340 foo = any.unpack(Foo.class); 59341 } 59342 // or ... 59343 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 59344 foo = any.unpack(Foo.getDefaultInstance()); 59345 } 59346 59347 Example 3: Pack and unpack a message in Python. 59348 59349 foo = Foo(...) 59350 any = Any() 59351 any.Pack(foo) 59352 ... 59353 if any.Is(Foo.DESCRIPTOR): 59354 any.Unpack(foo) 59355 ... 59356 59357 Example 4: Pack and unpack a message in Go 59358 59359 foo := &pb.Foo{...} 59360 any, err := anypb.New(foo) 59361 if err != nil { 59362 ... 59363 } 59364 ... 59365 foo := &pb.Foo{} 59366 if err := any.UnmarshalTo(foo); err != nil { 59367 ... 59368 } 59369 59370 The pack methods provided by protobuf library will by default use 59371 59372 'type.googleapis.com/full.type.name' as the type URL and the unpack 59373 59374 methods only use the fully qualified type name after the last '/' 59375 59376 in the type URL, for example "foo.bar.com/x/y.z" will yield type 59377 59378 name "y.z". 59379 59380 59381 JSON 59382 59383 59384 The JSON representation of an `Any` value uses the regular 59385 59386 representation of the deserialized, embedded message, with an 59387 59388 additional field `@type` which contains the type URL. Example: 59389 59390 package google.profile; 59391 message Person { 59392 string first_name = 1; 59393 string last_name = 2; 59394 } 59395 59396 { 59397 "@type": "type.googleapis.com/google.profile.Person", 59398 "firstName": <string>, 59399 "lastName": <string> 59400 } 59401 59402 If the embedded message type is well-known and has a custom JSON 59403 59404 representation, that representation will be embedded adding a field 59405 59406 `value` which holds the custom JSON in addition to the `@type` 59407 59408 field. Example (for message [google.protobuf.Duration][]): 59409 59410 { 59411 "@type": "type.googleapis.com/google.protobuf.Duration", 59412 "value": "1.212s" 59413 } 59414 title: >- 59415 extension_options are arbitrary options that can be added by chains 59416 59417 when the default options are not sufficient. If any of these are 59418 present 59419 59420 and can't be handled, the transaction will be rejected 59421 non_critical_extension_options: 59422 type: array 59423 items: 59424 type: object 59425 properties: 59426 type_url: 59427 type: string 59428 description: >- 59429 A URL/resource name that uniquely identifies the type of the 59430 serialized 59431 59432 protocol buffer message. This string must contain at least 59433 59434 one "/" character. The last segment of the URL's path must 59435 represent 59436 59437 the fully qualified name of the type (as in 59438 59439 `path/google.protobuf.Duration`). The name should be in a 59440 canonical form 59441 59442 (e.g., leading "." is not accepted). 59443 59444 59445 In practice, teams usually precompile into the binary all types 59446 that they 59447 59448 expect it to use in the context of Any. However, for URLs which 59449 use the 59450 59451 scheme `http`, `https`, or no scheme, one can optionally set up 59452 a type 59453 59454 server that maps type URLs to message definitions as follows: 59455 59456 59457 * If no scheme is provided, `https` is assumed. 59458 59459 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 59460 value in binary format, or produce an error. 59461 * Applications are allowed to cache lookup results based on the 59462 URL, or have them precompiled into a binary to avoid any 59463 lookup. Therefore, binary compatibility needs to be preserved 59464 on changes to types. (Use versioned type names to manage 59465 breaking changes.) 59466 59467 Note: this functionality is not currently available in the 59468 official 59469 59470 protobuf release, and it is not used for type URLs beginning 59471 with 59472 59473 type.googleapis.com. 59474 59475 59476 Schemes other than `http`, `https` (or the empty scheme) might 59477 be 59478 59479 used with implementation specific semantics. 59480 value: 59481 type: string 59482 format: byte 59483 description: >- 59484 Must be a valid serialized protocol buffer of the above 59485 specified type. 59486 description: >- 59487 `Any` contains an arbitrary serialized protocol buffer message along 59488 with a 59489 59490 URL that describes the type of the serialized message. 59491 59492 59493 Protobuf library provides support to pack/unpack Any values in the 59494 form 59495 59496 of utility functions or additional generated methods of the Any 59497 type. 59498 59499 59500 Example 1: Pack and unpack a message in C++. 59501 59502 Foo foo = ...; 59503 Any any; 59504 any.PackFrom(foo); 59505 ... 59506 if (any.UnpackTo(&foo)) { 59507 ... 59508 } 59509 59510 Example 2: Pack and unpack a message in Java. 59511 59512 Foo foo = ...; 59513 Any any = Any.pack(foo); 59514 ... 59515 if (any.is(Foo.class)) { 59516 foo = any.unpack(Foo.class); 59517 } 59518 // or ... 59519 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 59520 foo = any.unpack(Foo.getDefaultInstance()); 59521 } 59522 59523 Example 3: Pack and unpack a message in Python. 59524 59525 foo = Foo(...) 59526 any = Any() 59527 any.Pack(foo) 59528 ... 59529 if any.Is(Foo.DESCRIPTOR): 59530 any.Unpack(foo) 59531 ... 59532 59533 Example 4: Pack and unpack a message in Go 59534 59535 foo := &pb.Foo{...} 59536 any, err := anypb.New(foo) 59537 if err != nil { 59538 ... 59539 } 59540 ... 59541 foo := &pb.Foo{} 59542 if err := any.UnmarshalTo(foo); err != nil { 59543 ... 59544 } 59545 59546 The pack methods provided by protobuf library will by default use 59547 59548 'type.googleapis.com/full.type.name' as the type URL and the unpack 59549 59550 methods only use the fully qualified type name after the last '/' 59551 59552 in the type URL, for example "foo.bar.com/x/y.z" will yield type 59553 59554 name "y.z". 59555 59556 59557 JSON 59558 59559 59560 The JSON representation of an `Any` value uses the regular 59561 59562 representation of the deserialized, embedded message, with an 59563 59564 additional field `@type` which contains the type URL. Example: 59565 59566 package google.profile; 59567 message Person { 59568 string first_name = 1; 59569 string last_name = 2; 59570 } 59571 59572 { 59573 "@type": "type.googleapis.com/google.profile.Person", 59574 "firstName": <string>, 59575 "lastName": <string> 59576 } 59577 59578 If the embedded message type is well-known and has a custom JSON 59579 59580 representation, that representation will be embedded adding a field 59581 59582 `value` which holds the custom JSON in addition to the `@type` 59583 59584 field. Example (for message [google.protobuf.Duration][]): 59585 59586 { 59587 "@type": "type.googleapis.com/google.protobuf.Duration", 59588 "value": "1.212s" 59589 } 59590 title: >- 59591 extension_options are arbitrary options that can be added by chains 59592 59593 when the default options are not sufficient. If any of these are 59594 present 59595 59596 and can't be handled, they will be ignored 59597 description: TxBody is the body of a transaction that all signers sign over. 59598 cosmos.tx.v1beta1.TxDecodeAminoRequest: 59599 type: object 59600 properties: 59601 amino_binary: 59602 type: string 59603 format: byte 59604 description: |- 59605 TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino 59606 RPC method. 59607 59608 Since: cosmos-sdk 0.47 59609 cosmos.tx.v1beta1.TxDecodeAminoResponse: 59610 type: object 59611 properties: 59612 amino_json: 59613 type: string 59614 description: |- 59615 TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino 59616 RPC method. 59617 59618 Since: cosmos-sdk 0.47 59619 cosmos.tx.v1beta1.TxDecodeRequest: 59620 type: object 59621 properties: 59622 tx_bytes: 59623 type: string 59624 format: byte 59625 description: tx_bytes is the raw transaction. 59626 description: |- 59627 TxDecodeRequest is the request type for the Service.TxDecode 59628 RPC method. 59629 59630 Since: cosmos-sdk 0.47 59631 cosmos.tx.v1beta1.TxDecodeResponse: 59632 type: object 59633 properties: 59634 tx: 59635 $ref: '#/definitions/cosmos.tx.v1beta1.Tx' 59636 description: tx is the decoded transaction. 59637 description: |- 59638 TxDecodeResponse is the response type for the 59639 Service.TxDecode method. 59640 59641 Since: cosmos-sdk 0.47 59642 cosmos.tx.v1beta1.TxEncodeAminoRequest: 59643 type: object 59644 properties: 59645 amino_json: 59646 type: string 59647 description: |- 59648 TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino 59649 RPC method. 59650 59651 Since: cosmos-sdk 0.47 59652 cosmos.tx.v1beta1.TxEncodeAminoResponse: 59653 type: object 59654 properties: 59655 amino_binary: 59656 type: string 59657 format: byte 59658 description: |- 59659 TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino 59660 RPC method. 59661 59662 Since: cosmos-sdk 0.47 59663 cosmos.tx.v1beta1.TxEncodeRequest: 59664 type: object 59665 properties: 59666 tx: 59667 $ref: '#/definitions/cosmos.tx.v1beta1.Tx' 59668 description: tx is the transaction to encode. 59669 description: |- 59670 TxEncodeRequest is the request type for the Service.TxEncode 59671 RPC method. 59672 59673 Since: cosmos-sdk 0.47 59674 cosmos.tx.v1beta1.TxEncodeResponse: 59675 type: object 59676 properties: 59677 tx_bytes: 59678 type: string 59679 format: byte 59680 description: tx_bytes is the encoded transaction bytes. 59681 description: |- 59682 TxEncodeResponse is the response type for the 59683 Service.TxEncode method. 59684 59685 Since: cosmos-sdk 0.47 59686 tendermint.abci.Event: 59687 type: object 59688 properties: 59689 type: 59690 type: string 59691 attributes: 59692 type: array 59693 items: 59694 type: object 59695 properties: 59696 key: 59697 type: string 59698 value: 59699 type: string 59700 index: 59701 type: boolean 59702 description: EventAttribute is a single key-value pair, associated with an event. 59703 description: |- 59704 Event allows application developers to attach additional information to 59705 ResponseFinalizeBlock and ResponseCheckTx. 59706 Later, transactions may be queried using these events. 59707 tendermint.abci.EventAttribute: 59708 type: object 59709 properties: 59710 key: 59711 type: string 59712 value: 59713 type: string 59714 index: 59715 type: boolean 59716 description: EventAttribute is a single key-value pair, associated with an event. 59717 cosmos.upgrade.v1beta1.ModuleVersion: 59718 type: object 59719 properties: 59720 name: 59721 type: string 59722 title: name of the app module 59723 version: 59724 type: string 59725 format: uint64 59726 title: consensus version of the app module 59727 description: |- 59728 ModuleVersion specifies a module and its consensus version. 59729 59730 Since: cosmos-sdk 0.43 59731 cosmos.upgrade.v1beta1.Plan: 59732 type: object 59733 properties: 59734 name: 59735 type: string 59736 description: >- 59737 Sets the name for the upgrade. This name will be used by the upgraded 59738 59739 version of the software to apply any special "on-upgrade" commands 59740 during 59741 59742 the first BeginBlock method after the upgrade is applied. It is also 59743 used 59744 59745 to detect whether a software version can handle a given upgrade. If no 59746 59747 upgrade handler with this name has been set in the software, it will 59748 be 59749 59750 assumed that the software is out-of-date when the upgrade Time or 59751 Height is 59752 59753 reached and the software will exit. 59754 time: 59755 type: string 59756 format: date-time 59757 description: >- 59758 Deprecated: Time based upgrades have been deprecated. Time based 59759 upgrade logic 59760 59761 has been removed from the SDK. 59762 59763 If this field is not empty, an error will be thrown. 59764 height: 59765 type: string 59766 format: int64 59767 description: The height at which the upgrade must be performed. 59768 info: 59769 type: string 59770 title: |- 59771 Any application specific upgrade info to be included on-chain 59772 such as a git commit that validators could automatically upgrade to 59773 upgraded_client_state: 59774 type: object 59775 properties: 59776 type_url: 59777 type: string 59778 description: >- 59779 A URL/resource name that uniquely identifies the type of the 59780 serialized 59781 59782 protocol buffer message. This string must contain at least 59783 59784 one "/" character. The last segment of the URL's path must 59785 represent 59786 59787 the fully qualified name of the type (as in 59788 59789 `path/google.protobuf.Duration`). The name should be in a 59790 canonical form 59791 59792 (e.g., leading "." is not accepted). 59793 59794 59795 In practice, teams usually precompile into the binary all types 59796 that they 59797 59798 expect it to use in the context of Any. However, for URLs which 59799 use the 59800 59801 scheme `http`, `https`, or no scheme, one can optionally set up a 59802 type 59803 59804 server that maps type URLs to message definitions as follows: 59805 59806 59807 * If no scheme is provided, `https` is assumed. 59808 59809 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 59810 value in binary format, or produce an error. 59811 * Applications are allowed to cache lookup results based on the 59812 URL, or have them precompiled into a binary to avoid any 59813 lookup. Therefore, binary compatibility needs to be preserved 59814 on changes to types. (Use versioned type names to manage 59815 breaking changes.) 59816 59817 Note: this functionality is not currently available in the 59818 official 59819 59820 protobuf release, and it is not used for type URLs beginning with 59821 59822 type.googleapis.com. 59823 59824 59825 Schemes other than `http`, `https` (or the empty scheme) might be 59826 59827 used with implementation specific semantics. 59828 value: 59829 type: string 59830 format: byte 59831 description: >- 59832 Must be a valid serialized protocol buffer of the above specified 59833 type. 59834 description: >- 59835 `Any` contains an arbitrary serialized protocol buffer message along 59836 with a 59837 59838 URL that describes the type of the serialized message. 59839 59840 59841 Protobuf library provides support to pack/unpack Any values in the 59842 form 59843 59844 of utility functions or additional generated methods of the Any type. 59845 59846 59847 Example 1: Pack and unpack a message in C++. 59848 59849 Foo foo = ...; 59850 Any any; 59851 any.PackFrom(foo); 59852 ... 59853 if (any.UnpackTo(&foo)) { 59854 ... 59855 } 59856 59857 Example 2: Pack and unpack a message in Java. 59858 59859 Foo foo = ...; 59860 Any any = Any.pack(foo); 59861 ... 59862 if (any.is(Foo.class)) { 59863 foo = any.unpack(Foo.class); 59864 } 59865 // or ... 59866 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 59867 foo = any.unpack(Foo.getDefaultInstance()); 59868 } 59869 59870 Example 3: Pack and unpack a message in Python. 59871 59872 foo = Foo(...) 59873 any = Any() 59874 any.Pack(foo) 59875 ... 59876 if any.Is(Foo.DESCRIPTOR): 59877 any.Unpack(foo) 59878 ... 59879 59880 Example 4: Pack and unpack a message in Go 59881 59882 foo := &pb.Foo{...} 59883 any, err := anypb.New(foo) 59884 if err != nil { 59885 ... 59886 } 59887 ... 59888 foo := &pb.Foo{} 59889 if err := any.UnmarshalTo(foo); err != nil { 59890 ... 59891 } 59892 59893 The pack methods provided by protobuf library will by default use 59894 59895 'type.googleapis.com/full.type.name' as the type URL and the unpack 59896 59897 methods only use the fully qualified type name after the last '/' 59898 59899 in the type URL, for example "foo.bar.com/x/y.z" will yield type 59900 59901 name "y.z". 59902 59903 59904 JSON 59905 59906 59907 The JSON representation of an `Any` value uses the regular 59908 59909 representation of the deserialized, embedded message, with an 59910 59911 additional field `@type` which contains the type URL. Example: 59912 59913 package google.profile; 59914 message Person { 59915 string first_name = 1; 59916 string last_name = 2; 59917 } 59918 59919 { 59920 "@type": "type.googleapis.com/google.profile.Person", 59921 "firstName": <string>, 59922 "lastName": <string> 59923 } 59924 59925 If the embedded message type is well-known and has a custom JSON 59926 59927 representation, that representation will be embedded adding a field 59928 59929 `value` which holds the custom JSON in addition to the `@type` 59930 59931 field. Example (for message [google.protobuf.Duration][]): 59932 59933 { 59934 "@type": "type.googleapis.com/google.protobuf.Duration", 59935 "value": "1.212s" 59936 } 59937 description: >- 59938 Plan specifies information about a planned upgrade and when it should 59939 occur. 59940 cosmos.upgrade.v1beta1.QueryAppliedPlanResponse: 59941 type: object 59942 properties: 59943 height: 59944 type: string 59945 format: int64 59946 description: height is the block height at which the plan was applied. 59947 description: >- 59948 QueryAppliedPlanResponse is the response type for the Query/AppliedPlan 59949 RPC 59950 59951 method. 59952 cosmos.upgrade.v1beta1.QueryAuthorityResponse: 59953 type: object 59954 properties: 59955 address: 59956 type: string 59957 description: 'Since: cosmos-sdk 0.46' 59958 title: QueryAuthorityResponse is the response type for Query/Authority 59959 cosmos.upgrade.v1beta1.QueryCurrentPlanResponse: 59960 type: object 59961 properties: 59962 plan: 59963 description: plan is the current upgrade plan. 59964 type: object 59965 properties: 59966 name: 59967 type: string 59968 description: >- 59969 Sets the name for the upgrade. This name will be used by the 59970 upgraded 59971 59972 version of the software to apply any special "on-upgrade" commands 59973 during 59974 59975 the first BeginBlock method after the upgrade is applied. It is 59976 also used 59977 59978 to detect whether a software version can handle a given upgrade. 59979 If no 59980 59981 upgrade handler with this name has been set in the software, it 59982 will be 59983 59984 assumed that the software is out-of-date when the upgrade Time or 59985 Height is 59986 59987 reached and the software will exit. 59988 time: 59989 type: string 59990 format: date-time 59991 description: >- 59992 Deprecated: Time based upgrades have been deprecated. Time based 59993 upgrade logic 59994 59995 has been removed from the SDK. 59996 59997 If this field is not empty, an error will be thrown. 59998 height: 59999 type: string 60000 format: int64 60001 description: The height at which the upgrade must be performed. 60002 info: 60003 type: string 60004 title: >- 60005 Any application specific upgrade info to be included on-chain 60006 60007 such as a git commit that validators could automatically upgrade 60008 to 60009 upgraded_client_state: 60010 type: object 60011 properties: 60012 type_url: 60013 type: string 60014 description: >- 60015 A URL/resource name that uniquely identifies the type of the 60016 serialized 60017 60018 protocol buffer message. This string must contain at least 60019 60020 one "/" character. The last segment of the URL's path must 60021 represent 60022 60023 the fully qualified name of the type (as in 60024 60025 `path/google.protobuf.Duration`). The name should be in a 60026 canonical form 60027 60028 (e.g., leading "." is not accepted). 60029 60030 60031 In practice, teams usually precompile into the binary all 60032 types that they 60033 60034 expect it to use in the context of Any. However, for URLs 60035 which use the 60036 60037 scheme `http`, `https`, or no scheme, one can optionally set 60038 up a type 60039 60040 server that maps type URLs to message definitions as follows: 60041 60042 60043 * If no scheme is provided, `https` is assumed. 60044 60045 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 60046 value in binary format, or produce an error. 60047 * Applications are allowed to cache lookup results based on 60048 the 60049 URL, or have them precompiled into a binary to avoid any 60050 lookup. Therefore, binary compatibility needs to be preserved 60051 on changes to types. (Use versioned type names to manage 60052 breaking changes.) 60053 60054 Note: this functionality is not currently available in the 60055 official 60056 60057 protobuf release, and it is not used for type URLs beginning 60058 with 60059 60060 type.googleapis.com. 60061 60062 60063 Schemes other than `http`, `https` (or the empty scheme) might 60064 be 60065 60066 used with implementation specific semantics. 60067 value: 60068 type: string 60069 format: byte 60070 description: >- 60071 Must be a valid serialized protocol buffer of the above 60072 specified type. 60073 description: >- 60074 `Any` contains an arbitrary serialized protocol buffer message 60075 along with a 60076 60077 URL that describes the type of the serialized message. 60078 60079 60080 Protobuf library provides support to pack/unpack Any values in the 60081 form 60082 60083 of utility functions or additional generated methods of the Any 60084 type. 60085 60086 60087 Example 1: Pack and unpack a message in C++. 60088 60089 Foo foo = ...; 60090 Any any; 60091 any.PackFrom(foo); 60092 ... 60093 if (any.UnpackTo(&foo)) { 60094 ... 60095 } 60096 60097 Example 2: Pack and unpack a message in Java. 60098 60099 Foo foo = ...; 60100 Any any = Any.pack(foo); 60101 ... 60102 if (any.is(Foo.class)) { 60103 foo = any.unpack(Foo.class); 60104 } 60105 // or ... 60106 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 60107 foo = any.unpack(Foo.getDefaultInstance()); 60108 } 60109 60110 Example 3: Pack and unpack a message in Python. 60111 60112 foo = Foo(...) 60113 any = Any() 60114 any.Pack(foo) 60115 ... 60116 if any.Is(Foo.DESCRIPTOR): 60117 any.Unpack(foo) 60118 ... 60119 60120 Example 4: Pack and unpack a message in Go 60121 60122 foo := &pb.Foo{...} 60123 any, err := anypb.New(foo) 60124 if err != nil { 60125 ... 60126 } 60127 ... 60128 foo := &pb.Foo{} 60129 if err := any.UnmarshalTo(foo); err != nil { 60130 ... 60131 } 60132 60133 The pack methods provided by protobuf library will by default use 60134 60135 'type.googleapis.com/full.type.name' as the type URL and the 60136 unpack 60137 60138 methods only use the fully qualified type name after the last '/' 60139 60140 in the type URL, for example "foo.bar.com/x/y.z" will yield type 60141 60142 name "y.z". 60143 60144 60145 JSON 60146 60147 60148 The JSON representation of an `Any` value uses the regular 60149 60150 representation of the deserialized, embedded message, with an 60151 60152 additional field `@type` which contains the type URL. Example: 60153 60154 package google.profile; 60155 message Person { 60156 string first_name = 1; 60157 string last_name = 2; 60158 } 60159 60160 { 60161 "@type": "type.googleapis.com/google.profile.Person", 60162 "firstName": <string>, 60163 "lastName": <string> 60164 } 60165 60166 If the embedded message type is well-known and has a custom JSON 60167 60168 representation, that representation will be embedded adding a 60169 field 60170 60171 `value` which holds the custom JSON in addition to the `@type` 60172 60173 field. Example (for message [google.protobuf.Duration][]): 60174 60175 { 60176 "@type": "type.googleapis.com/google.protobuf.Duration", 60177 "value": "1.212s" 60178 } 60179 description: >- 60180 QueryCurrentPlanResponse is the response type for the Query/CurrentPlan 60181 RPC 60182 60183 method. 60184 cosmos.upgrade.v1beta1.QueryModuleVersionsResponse: 60185 type: object 60186 properties: 60187 module_versions: 60188 type: array 60189 items: 60190 type: object 60191 properties: 60192 name: 60193 type: string 60194 title: name of the app module 60195 version: 60196 type: string 60197 format: uint64 60198 title: consensus version of the app module 60199 description: |- 60200 ModuleVersion specifies a module and its consensus version. 60201 60202 Since: cosmos-sdk 0.43 60203 description: >- 60204 module_versions is a list of module names with their consensus 60205 versions. 60206 description: >- 60207 QueryModuleVersionsResponse is the response type for the 60208 Query/ModuleVersions 60209 60210 RPC method. 60211 60212 60213 Since: cosmos-sdk 0.43 60214 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse: 60215 type: object 60216 properties: 60217 upgraded_consensus_state: 60218 type: string 60219 format: byte 60220 title: 'Since: cosmos-sdk 0.43' 60221 description: >- 60222 QueryUpgradedConsensusStateResponse is the response type for the 60223 Query/UpgradedConsensusState 60224 60225 RPC method. 60226 cosmos.authz.v1beta1.Grant: 60227 type: object 60228 properties: 60229 authorization: 60230 type: object 60231 properties: 60232 type_url: 60233 type: string 60234 description: >- 60235 A URL/resource name that uniquely identifies the type of the 60236 serialized 60237 60238 protocol buffer message. This string must contain at least 60239 60240 one "/" character. The last segment of the URL's path must 60241 represent 60242 60243 the fully qualified name of the type (as in 60244 60245 `path/google.protobuf.Duration`). The name should be in a 60246 canonical form 60247 60248 (e.g., leading "." is not accepted). 60249 60250 60251 In practice, teams usually precompile into the binary all types 60252 that they 60253 60254 expect it to use in the context of Any. However, for URLs which 60255 use the 60256 60257 scheme `http`, `https`, or no scheme, one can optionally set up a 60258 type 60259 60260 server that maps type URLs to message definitions as follows: 60261 60262 60263 * If no scheme is provided, `https` is assumed. 60264 60265 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 60266 value in binary format, or produce an error. 60267 * Applications are allowed to cache lookup results based on the 60268 URL, or have them precompiled into a binary to avoid any 60269 lookup. Therefore, binary compatibility needs to be preserved 60270 on changes to types. (Use versioned type names to manage 60271 breaking changes.) 60272 60273 Note: this functionality is not currently available in the 60274 official 60275 60276 protobuf release, and it is not used for type URLs beginning with 60277 60278 type.googleapis.com. 60279 60280 60281 Schemes other than `http`, `https` (or the empty scheme) might be 60282 60283 used with implementation specific semantics. 60284 value: 60285 type: string 60286 format: byte 60287 description: >- 60288 Must be a valid serialized protocol buffer of the above specified 60289 type. 60290 description: >- 60291 `Any` contains an arbitrary serialized protocol buffer message along 60292 with a 60293 60294 URL that describes the type of the serialized message. 60295 60296 60297 Protobuf library provides support to pack/unpack Any values in the 60298 form 60299 60300 of utility functions or additional generated methods of the Any type. 60301 60302 60303 Example 1: Pack and unpack a message in C++. 60304 60305 Foo foo = ...; 60306 Any any; 60307 any.PackFrom(foo); 60308 ... 60309 if (any.UnpackTo(&foo)) { 60310 ... 60311 } 60312 60313 Example 2: Pack and unpack a message in Java. 60314 60315 Foo foo = ...; 60316 Any any = Any.pack(foo); 60317 ... 60318 if (any.is(Foo.class)) { 60319 foo = any.unpack(Foo.class); 60320 } 60321 // or ... 60322 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 60323 foo = any.unpack(Foo.getDefaultInstance()); 60324 } 60325 60326 Example 3: Pack and unpack a message in Python. 60327 60328 foo = Foo(...) 60329 any = Any() 60330 any.Pack(foo) 60331 ... 60332 if any.Is(Foo.DESCRIPTOR): 60333 any.Unpack(foo) 60334 ... 60335 60336 Example 4: Pack and unpack a message in Go 60337 60338 foo := &pb.Foo{...} 60339 any, err := anypb.New(foo) 60340 if err != nil { 60341 ... 60342 } 60343 ... 60344 foo := &pb.Foo{} 60345 if err := any.UnmarshalTo(foo); err != nil { 60346 ... 60347 } 60348 60349 The pack methods provided by protobuf library will by default use 60350 60351 'type.googleapis.com/full.type.name' as the type URL and the unpack 60352 60353 methods only use the fully qualified type name after the last '/' 60354 60355 in the type URL, for example "foo.bar.com/x/y.z" will yield type 60356 60357 name "y.z". 60358 60359 60360 JSON 60361 60362 60363 The JSON representation of an `Any` value uses the regular 60364 60365 representation of the deserialized, embedded message, with an 60366 60367 additional field `@type` which contains the type URL. Example: 60368 60369 package google.profile; 60370 message Person { 60371 string first_name = 1; 60372 string last_name = 2; 60373 } 60374 60375 { 60376 "@type": "type.googleapis.com/google.profile.Person", 60377 "firstName": <string>, 60378 "lastName": <string> 60379 } 60380 60381 If the embedded message type is well-known and has a custom JSON 60382 60383 representation, that representation will be embedded adding a field 60384 60385 `value` which holds the custom JSON in addition to the `@type` 60386 60387 field. Example (for message [google.protobuf.Duration][]): 60388 60389 { 60390 "@type": "type.googleapis.com/google.protobuf.Duration", 60391 "value": "1.212s" 60392 } 60393 expiration: 60394 type: string 60395 format: date-time 60396 title: >- 60397 time when the grant will expire and will be pruned. If null, then the 60398 grant 60399 60400 doesn't have a time expiration (other conditions in `authorization` 60401 60402 may apply to invalidate the grant) 60403 description: |- 60404 Grant gives permissions to execute 60405 the provide method with expiration time. 60406 cosmos.authz.v1beta1.GrantAuthorization: 60407 type: object 60408 properties: 60409 granter: 60410 type: string 60411 grantee: 60412 type: string 60413 authorization: 60414 type: object 60415 properties: 60416 type_url: 60417 type: string 60418 description: >- 60419 A URL/resource name that uniquely identifies the type of the 60420 serialized 60421 60422 protocol buffer message. This string must contain at least 60423 60424 one "/" character. The last segment of the URL's path must 60425 represent 60426 60427 the fully qualified name of the type (as in 60428 60429 `path/google.protobuf.Duration`). The name should be in a 60430 canonical form 60431 60432 (e.g., leading "." is not accepted). 60433 60434 60435 In practice, teams usually precompile into the binary all types 60436 that they 60437 60438 expect it to use in the context of Any. However, for URLs which 60439 use the 60440 60441 scheme `http`, `https`, or no scheme, one can optionally set up a 60442 type 60443 60444 server that maps type URLs to message definitions as follows: 60445 60446 60447 * If no scheme is provided, `https` is assumed. 60448 60449 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 60450 value in binary format, or produce an error. 60451 * Applications are allowed to cache lookup results based on the 60452 URL, or have them precompiled into a binary to avoid any 60453 lookup. Therefore, binary compatibility needs to be preserved 60454 on changes to types. (Use versioned type names to manage 60455 breaking changes.) 60456 60457 Note: this functionality is not currently available in the 60458 official 60459 60460 protobuf release, and it is not used for type URLs beginning with 60461 60462 type.googleapis.com. 60463 60464 60465 Schemes other than `http`, `https` (or the empty scheme) might be 60466 60467 used with implementation specific semantics. 60468 value: 60469 type: string 60470 format: byte 60471 description: >- 60472 Must be a valid serialized protocol buffer of the above specified 60473 type. 60474 description: >- 60475 `Any` contains an arbitrary serialized protocol buffer message along 60476 with a 60477 60478 URL that describes the type of the serialized message. 60479 60480 60481 Protobuf library provides support to pack/unpack Any values in the 60482 form 60483 60484 of utility functions or additional generated methods of the Any type. 60485 60486 60487 Example 1: Pack and unpack a message in C++. 60488 60489 Foo foo = ...; 60490 Any any; 60491 any.PackFrom(foo); 60492 ... 60493 if (any.UnpackTo(&foo)) { 60494 ... 60495 } 60496 60497 Example 2: Pack and unpack a message in Java. 60498 60499 Foo foo = ...; 60500 Any any = Any.pack(foo); 60501 ... 60502 if (any.is(Foo.class)) { 60503 foo = any.unpack(Foo.class); 60504 } 60505 // or ... 60506 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 60507 foo = any.unpack(Foo.getDefaultInstance()); 60508 } 60509 60510 Example 3: Pack and unpack a message in Python. 60511 60512 foo = Foo(...) 60513 any = Any() 60514 any.Pack(foo) 60515 ... 60516 if any.Is(Foo.DESCRIPTOR): 60517 any.Unpack(foo) 60518 ... 60519 60520 Example 4: Pack and unpack a message in Go 60521 60522 foo := &pb.Foo{...} 60523 any, err := anypb.New(foo) 60524 if err != nil { 60525 ... 60526 } 60527 ... 60528 foo := &pb.Foo{} 60529 if err := any.UnmarshalTo(foo); err != nil { 60530 ... 60531 } 60532 60533 The pack methods provided by protobuf library will by default use 60534 60535 'type.googleapis.com/full.type.name' as the type URL and the unpack 60536 60537 methods only use the fully qualified type name after the last '/' 60538 60539 in the type URL, for example "foo.bar.com/x/y.z" will yield type 60540 60541 name "y.z". 60542 60543 60544 JSON 60545 60546 60547 The JSON representation of an `Any` value uses the regular 60548 60549 representation of the deserialized, embedded message, with an 60550 60551 additional field `@type` which contains the type URL. Example: 60552 60553 package google.profile; 60554 message Person { 60555 string first_name = 1; 60556 string last_name = 2; 60557 } 60558 60559 { 60560 "@type": "type.googleapis.com/google.profile.Person", 60561 "firstName": <string>, 60562 "lastName": <string> 60563 } 60564 60565 If the embedded message type is well-known and has a custom JSON 60566 60567 representation, that representation will be embedded adding a field 60568 60569 `value` which holds the custom JSON in addition to the `@type` 60570 60571 field. Example (for message [google.protobuf.Duration][]): 60572 60573 { 60574 "@type": "type.googleapis.com/google.protobuf.Duration", 60575 "value": "1.212s" 60576 } 60577 expiration: 60578 type: string 60579 format: date-time 60580 title: >- 60581 GrantAuthorization extends a grant with both the addresses of the grantee 60582 and granter. 60583 60584 It is used in genesis.proto and query.proto 60585 cosmos.authz.v1beta1.QueryGranteeGrantsResponse: 60586 type: object 60587 properties: 60588 grants: 60589 type: array 60590 items: 60591 type: object 60592 properties: 60593 granter: 60594 type: string 60595 grantee: 60596 type: string 60597 authorization: 60598 type: object 60599 properties: 60600 type_url: 60601 type: string 60602 description: >- 60603 A URL/resource name that uniquely identifies the type of the 60604 serialized 60605 60606 protocol buffer message. This string must contain at least 60607 60608 one "/" character. The last segment of the URL's path must 60609 represent 60610 60611 the fully qualified name of the type (as in 60612 60613 `path/google.protobuf.Duration`). The name should be in a 60614 canonical form 60615 60616 (e.g., leading "." is not accepted). 60617 60618 60619 In practice, teams usually precompile into the binary all 60620 types that they 60621 60622 expect it to use in the context of Any. However, for URLs 60623 which use the 60624 60625 scheme `http`, `https`, or no scheme, one can optionally set 60626 up a type 60627 60628 server that maps type URLs to message definitions as 60629 follows: 60630 60631 60632 * If no scheme is provided, `https` is assumed. 60633 60634 * An HTTP GET on the URL must yield a 60635 [google.protobuf.Type][] 60636 value in binary format, or produce an error. 60637 * Applications are allowed to cache lookup results based on 60638 the 60639 URL, or have them precompiled into a binary to avoid any 60640 lookup. Therefore, binary compatibility needs to be preserved 60641 on changes to types. (Use versioned type names to manage 60642 breaking changes.) 60643 60644 Note: this functionality is not currently available in the 60645 official 60646 60647 protobuf release, and it is not used for type URLs beginning 60648 with 60649 60650 type.googleapis.com. 60651 60652 60653 Schemes other than `http`, `https` (or the empty scheme) 60654 might be 60655 60656 used with implementation specific semantics. 60657 value: 60658 type: string 60659 format: byte 60660 description: >- 60661 Must be a valid serialized protocol buffer of the above 60662 specified type. 60663 description: >- 60664 `Any` contains an arbitrary serialized protocol buffer message 60665 along with a 60666 60667 URL that describes the type of the serialized message. 60668 60669 60670 Protobuf library provides support to pack/unpack Any values in 60671 the form 60672 60673 of utility functions or additional generated methods of the Any 60674 type. 60675 60676 60677 Example 1: Pack and unpack a message in C++. 60678 60679 Foo foo = ...; 60680 Any any; 60681 any.PackFrom(foo); 60682 ... 60683 if (any.UnpackTo(&foo)) { 60684 ... 60685 } 60686 60687 Example 2: Pack and unpack a message in Java. 60688 60689 Foo foo = ...; 60690 Any any = Any.pack(foo); 60691 ... 60692 if (any.is(Foo.class)) { 60693 foo = any.unpack(Foo.class); 60694 } 60695 // or ... 60696 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 60697 foo = any.unpack(Foo.getDefaultInstance()); 60698 } 60699 60700 Example 3: Pack and unpack a message in Python. 60701 60702 foo = Foo(...) 60703 any = Any() 60704 any.Pack(foo) 60705 ... 60706 if any.Is(Foo.DESCRIPTOR): 60707 any.Unpack(foo) 60708 ... 60709 60710 Example 4: Pack and unpack a message in Go 60711 60712 foo := &pb.Foo{...} 60713 any, err := anypb.New(foo) 60714 if err != nil { 60715 ... 60716 } 60717 ... 60718 foo := &pb.Foo{} 60719 if err := any.UnmarshalTo(foo); err != nil { 60720 ... 60721 } 60722 60723 The pack methods provided by protobuf library will by default 60724 use 60725 60726 'type.googleapis.com/full.type.name' as the type URL and the 60727 unpack 60728 60729 methods only use the fully qualified type name after the last 60730 '/' 60731 60732 in the type URL, for example "foo.bar.com/x/y.z" will yield type 60733 60734 name "y.z". 60735 60736 60737 JSON 60738 60739 60740 The JSON representation of an `Any` value uses the regular 60741 60742 representation of the deserialized, embedded message, with an 60743 60744 additional field `@type` which contains the type URL. Example: 60745 60746 package google.profile; 60747 message Person { 60748 string first_name = 1; 60749 string last_name = 2; 60750 } 60751 60752 { 60753 "@type": "type.googleapis.com/google.profile.Person", 60754 "firstName": <string>, 60755 "lastName": <string> 60756 } 60757 60758 If the embedded message type is well-known and has a custom JSON 60759 60760 representation, that representation will be embedded adding a 60761 field 60762 60763 `value` which holds the custom JSON in addition to the `@type` 60764 60765 field. Example (for message [google.protobuf.Duration][]): 60766 60767 { 60768 "@type": "type.googleapis.com/google.protobuf.Duration", 60769 "value": "1.212s" 60770 } 60771 expiration: 60772 type: string 60773 format: date-time 60774 title: >- 60775 GrantAuthorization extends a grant with both the addresses of the 60776 grantee and granter. 60777 60778 It is used in genesis.proto and query.proto 60779 description: grants is a list of grants granted to the grantee. 60780 pagination: 60781 description: pagination defines an pagination for the response. 60782 type: object 60783 properties: 60784 next_key: 60785 type: string 60786 format: byte 60787 description: |- 60788 next_key is the key to be passed to PageRequest.key to 60789 query the next page most efficiently. It will be empty if 60790 there are no more results. 60791 total: 60792 type: string 60793 format: uint64 60794 title: >- 60795 total is total number of results available if 60796 PageRequest.count_total 60797 60798 was set, its value is undefined otherwise 60799 description: >- 60800 QueryGranteeGrantsResponse is the response type for the 60801 Query/GranteeGrants RPC method. 60802 cosmos.authz.v1beta1.QueryGranterGrantsResponse: 60803 type: object 60804 properties: 60805 grants: 60806 type: array 60807 items: 60808 type: object 60809 properties: 60810 granter: 60811 type: string 60812 grantee: 60813 type: string 60814 authorization: 60815 type: object 60816 properties: 60817 type_url: 60818 type: string 60819 description: >- 60820 A URL/resource name that uniquely identifies the type of the 60821 serialized 60822 60823 protocol buffer message. This string must contain at least 60824 60825 one "/" character. The last segment of the URL's path must 60826 represent 60827 60828 the fully qualified name of the type (as in 60829 60830 `path/google.protobuf.Duration`). The name should be in a 60831 canonical form 60832 60833 (e.g., leading "." is not accepted). 60834 60835 60836 In practice, teams usually precompile into the binary all 60837 types that they 60838 60839 expect it to use in the context of Any. However, for URLs 60840 which use the 60841 60842 scheme `http`, `https`, or no scheme, one can optionally set 60843 up a type 60844 60845 server that maps type URLs to message definitions as 60846 follows: 60847 60848 60849 * If no scheme is provided, `https` is assumed. 60850 60851 * An HTTP GET on the URL must yield a 60852 [google.protobuf.Type][] 60853 value in binary format, or produce an error. 60854 * Applications are allowed to cache lookup results based on 60855 the 60856 URL, or have them precompiled into a binary to avoid any 60857 lookup. Therefore, binary compatibility needs to be preserved 60858 on changes to types. (Use versioned type names to manage 60859 breaking changes.) 60860 60861 Note: this functionality is not currently available in the 60862 official 60863 60864 protobuf release, and it is not used for type URLs beginning 60865 with 60866 60867 type.googleapis.com. 60868 60869 60870 Schemes other than `http`, `https` (or the empty scheme) 60871 might be 60872 60873 used with implementation specific semantics. 60874 value: 60875 type: string 60876 format: byte 60877 description: >- 60878 Must be a valid serialized protocol buffer of the above 60879 specified type. 60880 description: >- 60881 `Any` contains an arbitrary serialized protocol buffer message 60882 along with a 60883 60884 URL that describes the type of the serialized message. 60885 60886 60887 Protobuf library provides support to pack/unpack Any values in 60888 the form 60889 60890 of utility functions or additional generated methods of the Any 60891 type. 60892 60893 60894 Example 1: Pack and unpack a message in C++. 60895 60896 Foo foo = ...; 60897 Any any; 60898 any.PackFrom(foo); 60899 ... 60900 if (any.UnpackTo(&foo)) { 60901 ... 60902 } 60903 60904 Example 2: Pack and unpack a message in Java. 60905 60906 Foo foo = ...; 60907 Any any = Any.pack(foo); 60908 ... 60909 if (any.is(Foo.class)) { 60910 foo = any.unpack(Foo.class); 60911 } 60912 // or ... 60913 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 60914 foo = any.unpack(Foo.getDefaultInstance()); 60915 } 60916 60917 Example 3: Pack and unpack a message in Python. 60918 60919 foo = Foo(...) 60920 any = Any() 60921 any.Pack(foo) 60922 ... 60923 if any.Is(Foo.DESCRIPTOR): 60924 any.Unpack(foo) 60925 ... 60926 60927 Example 4: Pack and unpack a message in Go 60928 60929 foo := &pb.Foo{...} 60930 any, err := anypb.New(foo) 60931 if err != nil { 60932 ... 60933 } 60934 ... 60935 foo := &pb.Foo{} 60936 if err := any.UnmarshalTo(foo); err != nil { 60937 ... 60938 } 60939 60940 The pack methods provided by protobuf library will by default 60941 use 60942 60943 'type.googleapis.com/full.type.name' as the type URL and the 60944 unpack 60945 60946 methods only use the fully qualified type name after the last 60947 '/' 60948 60949 in the type URL, for example "foo.bar.com/x/y.z" will yield type 60950 60951 name "y.z". 60952 60953 60954 JSON 60955 60956 60957 The JSON representation of an `Any` value uses the regular 60958 60959 representation of the deserialized, embedded message, with an 60960 60961 additional field `@type` which contains the type URL. Example: 60962 60963 package google.profile; 60964 message Person { 60965 string first_name = 1; 60966 string last_name = 2; 60967 } 60968 60969 { 60970 "@type": "type.googleapis.com/google.profile.Person", 60971 "firstName": <string>, 60972 "lastName": <string> 60973 } 60974 60975 If the embedded message type is well-known and has a custom JSON 60976 60977 representation, that representation will be embedded adding a 60978 field 60979 60980 `value` which holds the custom JSON in addition to the `@type` 60981 60982 field. Example (for message [google.protobuf.Duration][]): 60983 60984 { 60985 "@type": "type.googleapis.com/google.protobuf.Duration", 60986 "value": "1.212s" 60987 } 60988 expiration: 60989 type: string 60990 format: date-time 60991 title: >- 60992 GrantAuthorization extends a grant with both the addresses of the 60993 grantee and granter. 60994 60995 It is used in genesis.proto and query.proto 60996 description: grants is a list of grants granted by the granter. 60997 pagination: 60998 description: pagination defines an pagination for the response. 60999 type: object 61000 properties: 61001 next_key: 61002 type: string 61003 format: byte 61004 description: |- 61005 next_key is the key to be passed to PageRequest.key to 61006 query the next page most efficiently. It will be empty if 61007 there are no more results. 61008 total: 61009 type: string 61010 format: uint64 61011 title: >- 61012 total is total number of results available if 61013 PageRequest.count_total 61014 61015 was set, its value is undefined otherwise 61016 description: >- 61017 QueryGranterGrantsResponse is the response type for the 61018 Query/GranterGrants RPC method. 61019 cosmos.authz.v1beta1.QueryGrantsResponse: 61020 type: object 61021 properties: 61022 grants: 61023 type: array 61024 items: 61025 type: object 61026 properties: 61027 authorization: 61028 type: object 61029 properties: 61030 type_url: 61031 type: string 61032 description: >- 61033 A URL/resource name that uniquely identifies the type of the 61034 serialized 61035 61036 protocol buffer message. This string must contain at least 61037 61038 one "/" character. The last segment of the URL's path must 61039 represent 61040 61041 the fully qualified name of the type (as in 61042 61043 `path/google.protobuf.Duration`). The name should be in a 61044 canonical form 61045 61046 (e.g., leading "." is not accepted). 61047 61048 61049 In practice, teams usually precompile into the binary all 61050 types that they 61051 61052 expect it to use in the context of Any. However, for URLs 61053 which use the 61054 61055 scheme `http`, `https`, or no scheme, one can optionally set 61056 up a type 61057 61058 server that maps type URLs to message definitions as 61059 follows: 61060 61061 61062 * If no scheme is provided, `https` is assumed. 61063 61064 * An HTTP GET on the URL must yield a 61065 [google.protobuf.Type][] 61066 value in binary format, or produce an error. 61067 * Applications are allowed to cache lookup results based on 61068 the 61069 URL, or have them precompiled into a binary to avoid any 61070 lookup. Therefore, binary compatibility needs to be preserved 61071 on changes to types. (Use versioned type names to manage 61072 breaking changes.) 61073 61074 Note: this functionality is not currently available in the 61075 official 61076 61077 protobuf release, and it is not used for type URLs beginning 61078 with 61079 61080 type.googleapis.com. 61081 61082 61083 Schemes other than `http`, `https` (or the empty scheme) 61084 might be 61085 61086 used with implementation specific semantics. 61087 value: 61088 type: string 61089 format: byte 61090 description: >- 61091 Must be a valid serialized protocol buffer of the above 61092 specified type. 61093 description: >- 61094 `Any` contains an arbitrary serialized protocol buffer message 61095 along with a 61096 61097 URL that describes the type of the serialized message. 61098 61099 61100 Protobuf library provides support to pack/unpack Any values in 61101 the form 61102 61103 of utility functions or additional generated methods of the Any 61104 type. 61105 61106 61107 Example 1: Pack and unpack a message in C++. 61108 61109 Foo foo = ...; 61110 Any any; 61111 any.PackFrom(foo); 61112 ... 61113 if (any.UnpackTo(&foo)) { 61114 ... 61115 } 61116 61117 Example 2: Pack and unpack a message in Java. 61118 61119 Foo foo = ...; 61120 Any any = Any.pack(foo); 61121 ... 61122 if (any.is(Foo.class)) { 61123 foo = any.unpack(Foo.class); 61124 } 61125 // or ... 61126 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 61127 foo = any.unpack(Foo.getDefaultInstance()); 61128 } 61129 61130 Example 3: Pack and unpack a message in Python. 61131 61132 foo = Foo(...) 61133 any = Any() 61134 any.Pack(foo) 61135 ... 61136 if any.Is(Foo.DESCRIPTOR): 61137 any.Unpack(foo) 61138 ... 61139 61140 Example 4: Pack and unpack a message in Go 61141 61142 foo := &pb.Foo{...} 61143 any, err := anypb.New(foo) 61144 if err != nil { 61145 ... 61146 } 61147 ... 61148 foo := &pb.Foo{} 61149 if err := any.UnmarshalTo(foo); err != nil { 61150 ... 61151 } 61152 61153 The pack methods provided by protobuf library will by default 61154 use 61155 61156 'type.googleapis.com/full.type.name' as the type URL and the 61157 unpack 61158 61159 methods only use the fully qualified type name after the last 61160 '/' 61161 61162 in the type URL, for example "foo.bar.com/x/y.z" will yield type 61163 61164 name "y.z". 61165 61166 61167 JSON 61168 61169 61170 The JSON representation of an `Any` value uses the regular 61171 61172 representation of the deserialized, embedded message, with an 61173 61174 additional field `@type` which contains the type URL. Example: 61175 61176 package google.profile; 61177 message Person { 61178 string first_name = 1; 61179 string last_name = 2; 61180 } 61181 61182 { 61183 "@type": "type.googleapis.com/google.profile.Person", 61184 "firstName": <string>, 61185 "lastName": <string> 61186 } 61187 61188 If the embedded message type is well-known and has a custom JSON 61189 61190 representation, that representation will be embedded adding a 61191 field 61192 61193 `value` which holds the custom JSON in addition to the `@type` 61194 61195 field. Example (for message [google.protobuf.Duration][]): 61196 61197 { 61198 "@type": "type.googleapis.com/google.protobuf.Duration", 61199 "value": "1.212s" 61200 } 61201 expiration: 61202 type: string 61203 format: date-time 61204 title: >- 61205 time when the grant will expire and will be pruned. If null, 61206 then the grant 61207 61208 doesn't have a time expiration (other conditions in 61209 `authorization` 61210 61211 may apply to invalidate the grant) 61212 description: |- 61213 Grant gives permissions to execute 61214 the provide method with expiration time. 61215 description: authorizations is a list of grants granted for grantee by granter. 61216 pagination: 61217 description: pagination defines an pagination for the response. 61218 type: object 61219 properties: 61220 next_key: 61221 type: string 61222 format: byte 61223 description: |- 61224 next_key is the key to be passed to PageRequest.key to 61225 query the next page most efficiently. It will be empty if 61226 there are no more results. 61227 total: 61228 type: string 61229 format: uint64 61230 title: >- 61231 total is total number of results available if 61232 PageRequest.count_total 61233 61234 was set, its value is undefined otherwise 61235 description: >- 61236 QueryGrantsResponse is the response type for the Query/Authorizations RPC 61237 method. 61238 cosmos.feegrant.v1beta1.Grant: 61239 type: object 61240 properties: 61241 granter: 61242 type: string 61243 description: >- 61244 granter is the address of the user granting an allowance of their 61245 funds. 61246 grantee: 61247 type: string 61248 description: >- 61249 grantee is the address of the user being granted an allowance of 61250 another user's funds. 61251 allowance: 61252 description: allowance can be any of basic, periodic, allowed fee allowance. 61253 type: object 61254 properties: 61255 type_url: 61256 type: string 61257 description: >- 61258 A URL/resource name that uniquely identifies the type of the 61259 serialized 61260 61261 protocol buffer message. This string must contain at least 61262 61263 one "/" character. The last segment of the URL's path must 61264 represent 61265 61266 the fully qualified name of the type (as in 61267 61268 `path/google.protobuf.Duration`). The name should be in a 61269 canonical form 61270 61271 (e.g., leading "." is not accepted). 61272 61273 61274 In practice, teams usually precompile into the binary all types 61275 that they 61276 61277 expect it to use in the context of Any. However, for URLs which 61278 use the 61279 61280 scheme `http`, `https`, or no scheme, one can optionally set up a 61281 type 61282 61283 server that maps type URLs to message definitions as follows: 61284 61285 61286 * If no scheme is provided, `https` is assumed. 61287 61288 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 61289 value in binary format, or produce an error. 61290 * Applications are allowed to cache lookup results based on the 61291 URL, or have them precompiled into a binary to avoid any 61292 lookup. Therefore, binary compatibility needs to be preserved 61293 on changes to types. (Use versioned type names to manage 61294 breaking changes.) 61295 61296 Note: this functionality is not currently available in the 61297 official 61298 61299 protobuf release, and it is not used for type URLs beginning with 61300 61301 type.googleapis.com. 61302 61303 61304 Schemes other than `http`, `https` (or the empty scheme) might be 61305 61306 used with implementation specific semantics. 61307 value: 61308 type: string 61309 format: byte 61310 description: >- 61311 Must be a valid serialized protocol buffer of the above specified 61312 type. 61313 title: Grant is stored in the KVStore to record a grant with full context 61314 cosmos.feegrant.v1beta1.QueryAllowanceResponse: 61315 type: object 61316 properties: 61317 allowance: 61318 description: allowance is a allowance granted for grantee by granter. 61319 type: object 61320 properties: 61321 granter: 61322 type: string 61323 description: >- 61324 granter is the address of the user granting an allowance of their 61325 funds. 61326 grantee: 61327 type: string 61328 description: >- 61329 grantee is the address of the user being granted an allowance of 61330 another user's funds. 61331 allowance: 61332 description: allowance can be any of basic, periodic, allowed fee allowance. 61333 type: object 61334 properties: 61335 type_url: 61336 type: string 61337 description: >- 61338 A URL/resource name that uniquely identifies the type of the 61339 serialized 61340 61341 protocol buffer message. This string must contain at least 61342 61343 one "/" character. The last segment of the URL's path must 61344 represent 61345 61346 the fully qualified name of the type (as in 61347 61348 `path/google.protobuf.Duration`). The name should be in a 61349 canonical form 61350 61351 (e.g., leading "." is not accepted). 61352 61353 61354 In practice, teams usually precompile into the binary all 61355 types that they 61356 61357 expect it to use in the context of Any. However, for URLs 61358 which use the 61359 61360 scheme `http`, `https`, or no scheme, one can optionally set 61361 up a type 61362 61363 server that maps type URLs to message definitions as follows: 61364 61365 61366 * If no scheme is provided, `https` is assumed. 61367 61368 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 61369 value in binary format, or produce an error. 61370 * Applications are allowed to cache lookup results based on 61371 the 61372 URL, or have them precompiled into a binary to avoid any 61373 lookup. Therefore, binary compatibility needs to be preserved 61374 on changes to types. (Use versioned type names to manage 61375 breaking changes.) 61376 61377 Note: this functionality is not currently available in the 61378 official 61379 61380 protobuf release, and it is not used for type URLs beginning 61381 with 61382 61383 type.googleapis.com. 61384 61385 61386 Schemes other than `http`, `https` (or the empty scheme) might 61387 be 61388 61389 used with implementation specific semantics. 61390 value: 61391 type: string 61392 format: byte 61393 description: >- 61394 Must be a valid serialized protocol buffer of the above 61395 specified type. 61396 title: Grant is stored in the KVStore to record a grant with full context 61397 description: >- 61398 QueryAllowanceResponse is the response type for the Query/Allowance RPC 61399 method. 61400 cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse: 61401 type: object 61402 properties: 61403 allowances: 61404 type: array 61405 items: 61406 type: object 61407 properties: 61408 granter: 61409 type: string 61410 description: >- 61411 granter is the address of the user granting an allowance of 61412 their funds. 61413 grantee: 61414 type: string 61415 description: >- 61416 grantee is the address of the user being granted an allowance of 61417 another user's funds. 61418 allowance: 61419 description: allowance can be any of basic, periodic, allowed fee allowance. 61420 type: object 61421 properties: 61422 type_url: 61423 type: string 61424 description: >- 61425 A URL/resource name that uniquely identifies the type of the 61426 serialized 61427 61428 protocol buffer message. This string must contain at least 61429 61430 one "/" character. The last segment of the URL's path must 61431 represent 61432 61433 the fully qualified name of the type (as in 61434 61435 `path/google.protobuf.Duration`). The name should be in a 61436 canonical form 61437 61438 (e.g., leading "." is not accepted). 61439 61440 61441 In practice, teams usually precompile into the binary all 61442 types that they 61443 61444 expect it to use in the context of Any. However, for URLs 61445 which use the 61446 61447 scheme `http`, `https`, or no scheme, one can optionally set 61448 up a type 61449 61450 server that maps type URLs to message definitions as 61451 follows: 61452 61453 61454 * If no scheme is provided, `https` is assumed. 61455 61456 * An HTTP GET on the URL must yield a 61457 [google.protobuf.Type][] 61458 value in binary format, or produce an error. 61459 * Applications are allowed to cache lookup results based on 61460 the 61461 URL, or have them precompiled into a binary to avoid any 61462 lookup. Therefore, binary compatibility needs to be preserved 61463 on changes to types. (Use versioned type names to manage 61464 breaking changes.) 61465 61466 Note: this functionality is not currently available in the 61467 official 61468 61469 protobuf release, and it is not used for type URLs beginning 61470 with 61471 61472 type.googleapis.com. 61473 61474 61475 Schemes other than `http`, `https` (or the empty scheme) 61476 might be 61477 61478 used with implementation specific semantics. 61479 value: 61480 type: string 61481 format: byte 61482 description: >- 61483 Must be a valid serialized protocol buffer of the above 61484 specified type. 61485 title: Grant is stored in the KVStore to record a grant with full context 61486 description: allowances that have been issued by the granter. 61487 pagination: 61488 description: pagination defines an pagination for the response. 61489 type: object 61490 properties: 61491 next_key: 61492 type: string 61493 format: byte 61494 description: |- 61495 next_key is the key to be passed to PageRequest.key to 61496 query the next page most efficiently. It will be empty if 61497 there are no more results. 61498 total: 61499 type: string 61500 format: uint64 61501 title: >- 61502 total is total number of results available if 61503 PageRequest.count_total 61504 61505 was set, its value is undefined otherwise 61506 description: >- 61507 QueryAllowancesByGranterResponse is the response type for the 61508 Query/AllowancesByGranter RPC method. 61509 61510 61511 Since: cosmos-sdk 0.46 61512 cosmos.feegrant.v1beta1.QueryAllowancesResponse: 61513 type: object 61514 properties: 61515 allowances: 61516 type: array 61517 items: 61518 type: object 61519 properties: 61520 granter: 61521 type: string 61522 description: >- 61523 granter is the address of the user granting an allowance of 61524 their funds. 61525 grantee: 61526 type: string 61527 description: >- 61528 grantee is the address of the user being granted an allowance of 61529 another user's funds. 61530 allowance: 61531 description: allowance can be any of basic, periodic, allowed fee allowance. 61532 type: object 61533 properties: 61534 type_url: 61535 type: string 61536 description: >- 61537 A URL/resource name that uniquely identifies the type of the 61538 serialized 61539 61540 protocol buffer message. This string must contain at least 61541 61542 one "/" character. The last segment of the URL's path must 61543 represent 61544 61545 the fully qualified name of the type (as in 61546 61547 `path/google.protobuf.Duration`). The name should be in a 61548 canonical form 61549 61550 (e.g., leading "." is not accepted). 61551 61552 61553 In practice, teams usually precompile into the binary all 61554 types that they 61555 61556 expect it to use in the context of Any. However, for URLs 61557 which use the 61558 61559 scheme `http`, `https`, or no scheme, one can optionally set 61560 up a type 61561 61562 server that maps type URLs to message definitions as 61563 follows: 61564 61565 61566 * If no scheme is provided, `https` is assumed. 61567 61568 * An HTTP GET on the URL must yield a 61569 [google.protobuf.Type][] 61570 value in binary format, or produce an error. 61571 * Applications are allowed to cache lookup results based on 61572 the 61573 URL, or have them precompiled into a binary to avoid any 61574 lookup. Therefore, binary compatibility needs to be preserved 61575 on changes to types. (Use versioned type names to manage 61576 breaking changes.) 61577 61578 Note: this functionality is not currently available in the 61579 official 61580 61581 protobuf release, and it is not used for type URLs beginning 61582 with 61583 61584 type.googleapis.com. 61585 61586 61587 Schemes other than `http`, `https` (or the empty scheme) 61588 might be 61589 61590 used with implementation specific semantics. 61591 value: 61592 type: string 61593 format: byte 61594 description: >- 61595 Must be a valid serialized protocol buffer of the above 61596 specified type. 61597 title: Grant is stored in the KVStore to record a grant with full context 61598 description: allowances are allowance's granted for grantee by granter. 61599 pagination: 61600 description: pagination defines an pagination for the response. 61601 type: object 61602 properties: 61603 next_key: 61604 type: string 61605 format: byte 61606 description: |- 61607 next_key is the key to be passed to PageRequest.key to 61608 query the next page most efficiently. It will be empty if 61609 there are no more results. 61610 total: 61611 type: string 61612 format: uint64 61613 title: >- 61614 total is total number of results available if 61615 PageRequest.count_total 61616 61617 was set, its value is undefined otherwise 61618 description: >- 61619 QueryAllowancesResponse is the response type for the Query/Allowances RPC 61620 method. 61621 cosmos.nft.v1beta1.Class: 61622 type: object 61623 properties: 61624 id: 61625 type: string 61626 title: >- 61627 id defines the unique identifier of the NFT classification, similar to 61628 the contract address of ERC721 61629 name: 61630 type: string 61631 title: >- 61632 name defines the human-readable name of the NFT classification. 61633 Optional 61634 symbol: 61635 type: string 61636 title: symbol is an abbreviated name for nft classification. Optional 61637 description: 61638 type: string 61639 title: description is a brief description of nft classification. Optional 61640 uri: 61641 type: string 61642 title: >- 61643 uri for the class metadata stored off chain. It can define schema for 61644 Class and NFT `Data` attributes. Optional 61645 uri_hash: 61646 type: string 61647 title: uri_hash is a hash of the document pointed by uri. Optional 61648 data: 61649 type: object 61650 properties: 61651 type_url: 61652 type: string 61653 description: >- 61654 A URL/resource name that uniquely identifies the type of the 61655 serialized 61656 61657 protocol buffer message. This string must contain at least 61658 61659 one "/" character. The last segment of the URL's path must 61660 represent 61661 61662 the fully qualified name of the type (as in 61663 61664 `path/google.protobuf.Duration`). The name should be in a 61665 canonical form 61666 61667 (e.g., leading "." is not accepted). 61668 61669 61670 In practice, teams usually precompile into the binary all types 61671 that they 61672 61673 expect it to use in the context of Any. However, for URLs which 61674 use the 61675 61676 scheme `http`, `https`, or no scheme, one can optionally set up a 61677 type 61678 61679 server that maps type URLs to message definitions as follows: 61680 61681 61682 * If no scheme is provided, `https` is assumed. 61683 61684 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 61685 value in binary format, or produce an error. 61686 * Applications are allowed to cache lookup results based on the 61687 URL, or have them precompiled into a binary to avoid any 61688 lookup. Therefore, binary compatibility needs to be preserved 61689 on changes to types. (Use versioned type names to manage 61690 breaking changes.) 61691 61692 Note: this functionality is not currently available in the 61693 official 61694 61695 protobuf release, and it is not used for type URLs beginning with 61696 61697 type.googleapis.com. 61698 61699 61700 Schemes other than `http`, `https` (or the empty scheme) might be 61701 61702 used with implementation specific semantics. 61703 value: 61704 type: string 61705 format: byte 61706 description: >- 61707 Must be a valid serialized protocol buffer of the above specified 61708 type. 61709 description: >- 61710 `Any` contains an arbitrary serialized protocol buffer message along 61711 with a 61712 61713 URL that describes the type of the serialized message. 61714 61715 61716 Protobuf library provides support to pack/unpack Any values in the 61717 form 61718 61719 of utility functions or additional generated methods of the Any type. 61720 61721 61722 Example 1: Pack and unpack a message in C++. 61723 61724 Foo foo = ...; 61725 Any any; 61726 any.PackFrom(foo); 61727 ... 61728 if (any.UnpackTo(&foo)) { 61729 ... 61730 } 61731 61732 Example 2: Pack and unpack a message in Java. 61733 61734 Foo foo = ...; 61735 Any any = Any.pack(foo); 61736 ... 61737 if (any.is(Foo.class)) { 61738 foo = any.unpack(Foo.class); 61739 } 61740 // or ... 61741 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 61742 foo = any.unpack(Foo.getDefaultInstance()); 61743 } 61744 61745 Example 3: Pack and unpack a message in Python. 61746 61747 foo = Foo(...) 61748 any = Any() 61749 any.Pack(foo) 61750 ... 61751 if any.Is(Foo.DESCRIPTOR): 61752 any.Unpack(foo) 61753 ... 61754 61755 Example 4: Pack and unpack a message in Go 61756 61757 foo := &pb.Foo{...} 61758 any, err := anypb.New(foo) 61759 if err != nil { 61760 ... 61761 } 61762 ... 61763 foo := &pb.Foo{} 61764 if err := any.UnmarshalTo(foo); err != nil { 61765 ... 61766 } 61767 61768 The pack methods provided by protobuf library will by default use 61769 61770 'type.googleapis.com/full.type.name' as the type URL and the unpack 61771 61772 methods only use the fully qualified type name after the last '/' 61773 61774 in the type URL, for example "foo.bar.com/x/y.z" will yield type 61775 61776 name "y.z". 61777 61778 61779 JSON 61780 61781 61782 The JSON representation of an `Any` value uses the regular 61783 61784 representation of the deserialized, embedded message, with an 61785 61786 additional field `@type` which contains the type URL. Example: 61787 61788 package google.profile; 61789 message Person { 61790 string first_name = 1; 61791 string last_name = 2; 61792 } 61793 61794 { 61795 "@type": "type.googleapis.com/google.profile.Person", 61796 "firstName": <string>, 61797 "lastName": <string> 61798 } 61799 61800 If the embedded message type is well-known and has a custom JSON 61801 61802 representation, that representation will be embedded adding a field 61803 61804 `value` which holds the custom JSON in addition to the `@type` 61805 61806 field. Example (for message [google.protobuf.Duration][]): 61807 61808 { 61809 "@type": "type.googleapis.com/google.protobuf.Duration", 61810 "value": "1.212s" 61811 } 61812 title: data is the app specific metadata of the NFT class. Optional 61813 description: Class defines the class of the nft type. 61814 cosmos.nft.v1beta1.NFT: 61815 type: object 61816 properties: 61817 class_id: 61818 type: string 61819 title: >- 61820 class_id associated with the NFT, similar to the contract address of 61821 ERC721 61822 id: 61823 type: string 61824 title: id is a unique identifier of the NFT 61825 uri: 61826 type: string 61827 title: uri for the NFT metadata stored off chain 61828 uri_hash: 61829 type: string 61830 title: uri_hash is a hash of the document pointed by uri 61831 data: 61832 type: object 61833 properties: 61834 type_url: 61835 type: string 61836 description: >- 61837 A URL/resource name that uniquely identifies the type of the 61838 serialized 61839 61840 protocol buffer message. This string must contain at least 61841 61842 one "/" character. The last segment of the URL's path must 61843 represent 61844 61845 the fully qualified name of the type (as in 61846 61847 `path/google.protobuf.Duration`). The name should be in a 61848 canonical form 61849 61850 (e.g., leading "." is not accepted). 61851 61852 61853 In practice, teams usually precompile into the binary all types 61854 that they 61855 61856 expect it to use in the context of Any. However, for URLs which 61857 use the 61858 61859 scheme `http`, `https`, or no scheme, one can optionally set up a 61860 type 61861 61862 server that maps type URLs to message definitions as follows: 61863 61864 61865 * If no scheme is provided, `https` is assumed. 61866 61867 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 61868 value in binary format, or produce an error. 61869 * Applications are allowed to cache lookup results based on the 61870 URL, or have them precompiled into a binary to avoid any 61871 lookup. Therefore, binary compatibility needs to be preserved 61872 on changes to types. (Use versioned type names to manage 61873 breaking changes.) 61874 61875 Note: this functionality is not currently available in the 61876 official 61877 61878 protobuf release, and it is not used for type URLs beginning with 61879 61880 type.googleapis.com. 61881 61882 61883 Schemes other than `http`, `https` (or the empty scheme) might be 61884 61885 used with implementation specific semantics. 61886 value: 61887 type: string 61888 format: byte 61889 description: >- 61890 Must be a valid serialized protocol buffer of the above specified 61891 type. 61892 description: >- 61893 `Any` contains an arbitrary serialized protocol buffer message along 61894 with a 61895 61896 URL that describes the type of the serialized message. 61897 61898 61899 Protobuf library provides support to pack/unpack Any values in the 61900 form 61901 61902 of utility functions or additional generated methods of the Any type. 61903 61904 61905 Example 1: Pack and unpack a message in C++. 61906 61907 Foo foo = ...; 61908 Any any; 61909 any.PackFrom(foo); 61910 ... 61911 if (any.UnpackTo(&foo)) { 61912 ... 61913 } 61914 61915 Example 2: Pack and unpack a message in Java. 61916 61917 Foo foo = ...; 61918 Any any = Any.pack(foo); 61919 ... 61920 if (any.is(Foo.class)) { 61921 foo = any.unpack(Foo.class); 61922 } 61923 // or ... 61924 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 61925 foo = any.unpack(Foo.getDefaultInstance()); 61926 } 61927 61928 Example 3: Pack and unpack a message in Python. 61929 61930 foo = Foo(...) 61931 any = Any() 61932 any.Pack(foo) 61933 ... 61934 if any.Is(Foo.DESCRIPTOR): 61935 any.Unpack(foo) 61936 ... 61937 61938 Example 4: Pack and unpack a message in Go 61939 61940 foo := &pb.Foo{...} 61941 any, err := anypb.New(foo) 61942 if err != nil { 61943 ... 61944 } 61945 ... 61946 foo := &pb.Foo{} 61947 if err := any.UnmarshalTo(foo); err != nil { 61948 ... 61949 } 61950 61951 The pack methods provided by protobuf library will by default use 61952 61953 'type.googleapis.com/full.type.name' as the type URL and the unpack 61954 61955 methods only use the fully qualified type name after the last '/' 61956 61957 in the type URL, for example "foo.bar.com/x/y.z" will yield type 61958 61959 name "y.z". 61960 61961 61962 JSON 61963 61964 61965 The JSON representation of an `Any` value uses the regular 61966 61967 representation of the deserialized, embedded message, with an 61968 61969 additional field `@type` which contains the type URL. Example: 61970 61971 package google.profile; 61972 message Person { 61973 string first_name = 1; 61974 string last_name = 2; 61975 } 61976 61977 { 61978 "@type": "type.googleapis.com/google.profile.Person", 61979 "firstName": <string>, 61980 "lastName": <string> 61981 } 61982 61983 If the embedded message type is well-known and has a custom JSON 61984 61985 representation, that representation will be embedded adding a field 61986 61987 `value` which holds the custom JSON in addition to the `@type` 61988 61989 field. Example (for message [google.protobuf.Duration][]): 61990 61991 { 61992 "@type": "type.googleapis.com/google.protobuf.Duration", 61993 "value": "1.212s" 61994 } 61995 title: data is an app specific data of the NFT. Optional 61996 description: NFT defines the NFT. 61997 cosmos.nft.v1beta1.QueryBalanceResponse: 61998 type: object 61999 properties: 62000 amount: 62001 type: string 62002 format: uint64 62003 title: amount is the number of all NFTs of a given class owned by the owner 62004 title: QueryBalanceResponse is the response type for the Query/Balance RPC method 62005 cosmos.nft.v1beta1.QueryClassResponse: 62006 type: object 62007 properties: 62008 class: 62009 type: object 62010 properties: 62011 id: 62012 type: string 62013 title: >- 62014 id defines the unique identifier of the NFT classification, 62015 similar to the contract address of ERC721 62016 name: 62017 type: string 62018 title: >- 62019 name defines the human-readable name of the NFT classification. 62020 Optional 62021 symbol: 62022 type: string 62023 title: symbol is an abbreviated name for nft classification. Optional 62024 description: 62025 type: string 62026 title: description is a brief description of nft classification. Optional 62027 uri: 62028 type: string 62029 title: >- 62030 uri for the class metadata stored off chain. It can define schema 62031 for Class and NFT `Data` attributes. Optional 62032 uri_hash: 62033 type: string 62034 title: uri_hash is a hash of the document pointed by uri. Optional 62035 data: 62036 type: object 62037 properties: 62038 type_url: 62039 type: string 62040 description: >- 62041 A URL/resource name that uniquely identifies the type of the 62042 serialized 62043 62044 protocol buffer message. This string must contain at least 62045 62046 one "/" character. The last segment of the URL's path must 62047 represent 62048 62049 the fully qualified name of the type (as in 62050 62051 `path/google.protobuf.Duration`). The name should be in a 62052 canonical form 62053 62054 (e.g., leading "." is not accepted). 62055 62056 62057 In practice, teams usually precompile into the binary all 62058 types that they 62059 62060 expect it to use in the context of Any. However, for URLs 62061 which use the 62062 62063 scheme `http`, `https`, or no scheme, one can optionally set 62064 up a type 62065 62066 server that maps type URLs to message definitions as follows: 62067 62068 62069 * If no scheme is provided, `https` is assumed. 62070 62071 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 62072 value in binary format, or produce an error. 62073 * Applications are allowed to cache lookup results based on 62074 the 62075 URL, or have them precompiled into a binary to avoid any 62076 lookup. Therefore, binary compatibility needs to be preserved 62077 on changes to types. (Use versioned type names to manage 62078 breaking changes.) 62079 62080 Note: this functionality is not currently available in the 62081 official 62082 62083 protobuf release, and it is not used for type URLs beginning 62084 with 62085 62086 type.googleapis.com. 62087 62088 62089 Schemes other than `http`, `https` (or the empty scheme) might 62090 be 62091 62092 used with implementation specific semantics. 62093 value: 62094 type: string 62095 format: byte 62096 description: >- 62097 Must be a valid serialized protocol buffer of the above 62098 specified type. 62099 description: >- 62100 `Any` contains an arbitrary serialized protocol buffer message 62101 along with a 62102 62103 URL that describes the type of the serialized message. 62104 62105 62106 Protobuf library provides support to pack/unpack Any values in the 62107 form 62108 62109 of utility functions or additional generated methods of the Any 62110 type. 62111 62112 62113 Example 1: Pack and unpack a message in C++. 62114 62115 Foo foo = ...; 62116 Any any; 62117 any.PackFrom(foo); 62118 ... 62119 if (any.UnpackTo(&foo)) { 62120 ... 62121 } 62122 62123 Example 2: Pack and unpack a message in Java. 62124 62125 Foo foo = ...; 62126 Any any = Any.pack(foo); 62127 ... 62128 if (any.is(Foo.class)) { 62129 foo = any.unpack(Foo.class); 62130 } 62131 // or ... 62132 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 62133 foo = any.unpack(Foo.getDefaultInstance()); 62134 } 62135 62136 Example 3: Pack and unpack a message in Python. 62137 62138 foo = Foo(...) 62139 any = Any() 62140 any.Pack(foo) 62141 ... 62142 if any.Is(Foo.DESCRIPTOR): 62143 any.Unpack(foo) 62144 ... 62145 62146 Example 4: Pack and unpack a message in Go 62147 62148 foo := &pb.Foo{...} 62149 any, err := anypb.New(foo) 62150 if err != nil { 62151 ... 62152 } 62153 ... 62154 foo := &pb.Foo{} 62155 if err := any.UnmarshalTo(foo); err != nil { 62156 ... 62157 } 62158 62159 The pack methods provided by protobuf library will by default use 62160 62161 'type.googleapis.com/full.type.name' as the type URL and the 62162 unpack 62163 62164 methods only use the fully qualified type name after the last '/' 62165 62166 in the type URL, for example "foo.bar.com/x/y.z" will yield type 62167 62168 name "y.z". 62169 62170 62171 JSON 62172 62173 62174 The JSON representation of an `Any` value uses the regular 62175 62176 representation of the deserialized, embedded message, with an 62177 62178 additional field `@type` which contains the type URL. Example: 62179 62180 package google.profile; 62181 message Person { 62182 string first_name = 1; 62183 string last_name = 2; 62184 } 62185 62186 { 62187 "@type": "type.googleapis.com/google.profile.Person", 62188 "firstName": <string>, 62189 "lastName": <string> 62190 } 62191 62192 If the embedded message type is well-known and has a custom JSON 62193 62194 representation, that representation will be embedded adding a 62195 field 62196 62197 `value` which holds the custom JSON in addition to the `@type` 62198 62199 field. Example (for message [google.protobuf.Duration][]): 62200 62201 { 62202 "@type": "type.googleapis.com/google.protobuf.Duration", 62203 "value": "1.212s" 62204 } 62205 title: data is the app specific metadata of the NFT class. Optional 62206 description: Class defines the class of the nft type. 62207 title: QueryClassResponse is the response type for the Query/Class RPC method 62208 cosmos.nft.v1beta1.QueryClassesResponse: 62209 type: object 62210 properties: 62211 classes: 62212 type: array 62213 items: 62214 type: object 62215 properties: 62216 id: 62217 type: string 62218 title: >- 62219 id defines the unique identifier of the NFT classification, 62220 similar to the contract address of ERC721 62221 name: 62222 type: string 62223 title: >- 62224 name defines the human-readable name of the NFT classification. 62225 Optional 62226 symbol: 62227 type: string 62228 title: symbol is an abbreviated name for nft classification. Optional 62229 description: 62230 type: string 62231 title: >- 62232 description is a brief description of nft classification. 62233 Optional 62234 uri: 62235 type: string 62236 title: >- 62237 uri for the class metadata stored off chain. It can define 62238 schema for Class and NFT `Data` attributes. Optional 62239 uri_hash: 62240 type: string 62241 title: uri_hash is a hash of the document pointed by uri. Optional 62242 data: 62243 type: object 62244 properties: 62245 type_url: 62246 type: string 62247 description: >- 62248 A URL/resource name that uniquely identifies the type of the 62249 serialized 62250 62251 protocol buffer message. This string must contain at least 62252 62253 one "/" character. The last segment of the URL's path must 62254 represent 62255 62256 the fully qualified name of the type (as in 62257 62258 `path/google.protobuf.Duration`). The name should be in a 62259 canonical form 62260 62261 (e.g., leading "." is not accepted). 62262 62263 62264 In practice, teams usually precompile into the binary all 62265 types that they 62266 62267 expect it to use in the context of Any. However, for URLs 62268 which use the 62269 62270 scheme `http`, `https`, or no scheme, one can optionally set 62271 up a type 62272 62273 server that maps type URLs to message definitions as 62274 follows: 62275 62276 62277 * If no scheme is provided, `https` is assumed. 62278 62279 * An HTTP GET on the URL must yield a 62280 [google.protobuf.Type][] 62281 value in binary format, or produce an error. 62282 * Applications are allowed to cache lookup results based on 62283 the 62284 URL, or have them precompiled into a binary to avoid any 62285 lookup. Therefore, binary compatibility needs to be preserved 62286 on changes to types. (Use versioned type names to manage 62287 breaking changes.) 62288 62289 Note: this functionality is not currently available in the 62290 official 62291 62292 protobuf release, and it is not used for type URLs beginning 62293 with 62294 62295 type.googleapis.com. 62296 62297 62298 Schemes other than `http`, `https` (or the empty scheme) 62299 might be 62300 62301 used with implementation specific semantics. 62302 value: 62303 type: string 62304 format: byte 62305 description: >- 62306 Must be a valid serialized protocol buffer of the above 62307 specified type. 62308 description: >- 62309 `Any` contains an arbitrary serialized protocol buffer message 62310 along with a 62311 62312 URL that describes the type of the serialized message. 62313 62314 62315 Protobuf library provides support to pack/unpack Any values in 62316 the form 62317 62318 of utility functions or additional generated methods of the Any 62319 type. 62320 62321 62322 Example 1: Pack and unpack a message in C++. 62323 62324 Foo foo = ...; 62325 Any any; 62326 any.PackFrom(foo); 62327 ... 62328 if (any.UnpackTo(&foo)) { 62329 ... 62330 } 62331 62332 Example 2: Pack and unpack a message in Java. 62333 62334 Foo foo = ...; 62335 Any any = Any.pack(foo); 62336 ... 62337 if (any.is(Foo.class)) { 62338 foo = any.unpack(Foo.class); 62339 } 62340 // or ... 62341 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 62342 foo = any.unpack(Foo.getDefaultInstance()); 62343 } 62344 62345 Example 3: Pack and unpack a message in Python. 62346 62347 foo = Foo(...) 62348 any = Any() 62349 any.Pack(foo) 62350 ... 62351 if any.Is(Foo.DESCRIPTOR): 62352 any.Unpack(foo) 62353 ... 62354 62355 Example 4: Pack and unpack a message in Go 62356 62357 foo := &pb.Foo{...} 62358 any, err := anypb.New(foo) 62359 if err != nil { 62360 ... 62361 } 62362 ... 62363 foo := &pb.Foo{} 62364 if err := any.UnmarshalTo(foo); err != nil { 62365 ... 62366 } 62367 62368 The pack methods provided by protobuf library will by default 62369 use 62370 62371 'type.googleapis.com/full.type.name' as the type URL and the 62372 unpack 62373 62374 methods only use the fully qualified type name after the last 62375 '/' 62376 62377 in the type URL, for example "foo.bar.com/x/y.z" will yield type 62378 62379 name "y.z". 62380 62381 62382 JSON 62383 62384 62385 The JSON representation of an `Any` value uses the regular 62386 62387 representation of the deserialized, embedded message, with an 62388 62389 additional field `@type` which contains the type URL. Example: 62390 62391 package google.profile; 62392 message Person { 62393 string first_name = 1; 62394 string last_name = 2; 62395 } 62396 62397 { 62398 "@type": "type.googleapis.com/google.profile.Person", 62399 "firstName": <string>, 62400 "lastName": <string> 62401 } 62402 62403 If the embedded message type is well-known and has a custom JSON 62404 62405 representation, that representation will be embedded adding a 62406 field 62407 62408 `value` which holds the custom JSON in addition to the `@type` 62409 62410 field. Example (for message [google.protobuf.Duration][]): 62411 62412 { 62413 "@type": "type.googleapis.com/google.protobuf.Duration", 62414 "value": "1.212s" 62415 } 62416 title: data is the app specific metadata of the NFT class. Optional 62417 description: Class defines the class of the nft type. 62418 description: class defines the class of the nft type. 62419 pagination: 62420 description: pagination defines the pagination in the response. 62421 type: object 62422 properties: 62423 next_key: 62424 type: string 62425 format: byte 62426 description: |- 62427 next_key is the key to be passed to PageRequest.key to 62428 query the next page most efficiently. It will be empty if 62429 there are no more results. 62430 total: 62431 type: string 62432 format: uint64 62433 title: >- 62434 total is total number of results available if 62435 PageRequest.count_total 62436 62437 was set, its value is undefined otherwise 62438 title: QueryClassesResponse is the response type for the Query/Classes RPC method 62439 cosmos.nft.v1beta1.QueryNFTResponse: 62440 type: object 62441 properties: 62442 nft: 62443 type: object 62444 properties: 62445 class_id: 62446 type: string 62447 title: >- 62448 class_id associated with the NFT, similar to the contract address 62449 of ERC721 62450 id: 62451 type: string 62452 title: id is a unique identifier of the NFT 62453 uri: 62454 type: string 62455 title: uri for the NFT metadata stored off chain 62456 uri_hash: 62457 type: string 62458 title: uri_hash is a hash of the document pointed by uri 62459 data: 62460 type: object 62461 properties: 62462 type_url: 62463 type: string 62464 description: >- 62465 A URL/resource name that uniquely identifies the type of the 62466 serialized 62467 62468 protocol buffer message. This string must contain at least 62469 62470 one "/" character. The last segment of the URL's path must 62471 represent 62472 62473 the fully qualified name of the type (as in 62474 62475 `path/google.protobuf.Duration`). The name should be in a 62476 canonical form 62477 62478 (e.g., leading "." is not accepted). 62479 62480 62481 In practice, teams usually precompile into the binary all 62482 types that they 62483 62484 expect it to use in the context of Any. However, for URLs 62485 which use the 62486 62487 scheme `http`, `https`, or no scheme, one can optionally set 62488 up a type 62489 62490 server that maps type URLs to message definitions as follows: 62491 62492 62493 * If no scheme is provided, `https` is assumed. 62494 62495 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 62496 value in binary format, or produce an error. 62497 * Applications are allowed to cache lookup results based on 62498 the 62499 URL, or have them precompiled into a binary to avoid any 62500 lookup. Therefore, binary compatibility needs to be preserved 62501 on changes to types. (Use versioned type names to manage 62502 breaking changes.) 62503 62504 Note: this functionality is not currently available in the 62505 official 62506 62507 protobuf release, and it is not used for type URLs beginning 62508 with 62509 62510 type.googleapis.com. 62511 62512 62513 Schemes other than `http`, `https` (or the empty scheme) might 62514 be 62515 62516 used with implementation specific semantics. 62517 value: 62518 type: string 62519 format: byte 62520 description: >- 62521 Must be a valid serialized protocol buffer of the above 62522 specified type. 62523 description: >- 62524 `Any` contains an arbitrary serialized protocol buffer message 62525 along with a 62526 62527 URL that describes the type of the serialized message. 62528 62529 62530 Protobuf library provides support to pack/unpack Any values in the 62531 form 62532 62533 of utility functions or additional generated methods of the Any 62534 type. 62535 62536 62537 Example 1: Pack and unpack a message in C++. 62538 62539 Foo foo = ...; 62540 Any any; 62541 any.PackFrom(foo); 62542 ... 62543 if (any.UnpackTo(&foo)) { 62544 ... 62545 } 62546 62547 Example 2: Pack and unpack a message in Java. 62548 62549 Foo foo = ...; 62550 Any any = Any.pack(foo); 62551 ... 62552 if (any.is(Foo.class)) { 62553 foo = any.unpack(Foo.class); 62554 } 62555 // or ... 62556 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 62557 foo = any.unpack(Foo.getDefaultInstance()); 62558 } 62559 62560 Example 3: Pack and unpack a message in Python. 62561 62562 foo = Foo(...) 62563 any = Any() 62564 any.Pack(foo) 62565 ... 62566 if any.Is(Foo.DESCRIPTOR): 62567 any.Unpack(foo) 62568 ... 62569 62570 Example 4: Pack and unpack a message in Go 62571 62572 foo := &pb.Foo{...} 62573 any, err := anypb.New(foo) 62574 if err != nil { 62575 ... 62576 } 62577 ... 62578 foo := &pb.Foo{} 62579 if err := any.UnmarshalTo(foo); err != nil { 62580 ... 62581 } 62582 62583 The pack methods provided by protobuf library will by default use 62584 62585 'type.googleapis.com/full.type.name' as the type URL and the 62586 unpack 62587 62588 methods only use the fully qualified type name after the last '/' 62589 62590 in the type URL, for example "foo.bar.com/x/y.z" will yield type 62591 62592 name "y.z". 62593 62594 62595 JSON 62596 62597 62598 The JSON representation of an `Any` value uses the regular 62599 62600 representation of the deserialized, embedded message, with an 62601 62602 additional field `@type` which contains the type URL. Example: 62603 62604 package google.profile; 62605 message Person { 62606 string first_name = 1; 62607 string last_name = 2; 62608 } 62609 62610 { 62611 "@type": "type.googleapis.com/google.profile.Person", 62612 "firstName": <string>, 62613 "lastName": <string> 62614 } 62615 62616 If the embedded message type is well-known and has a custom JSON 62617 62618 representation, that representation will be embedded adding a 62619 field 62620 62621 `value` which holds the custom JSON in addition to the `@type` 62622 62623 field. Example (for message [google.protobuf.Duration][]): 62624 62625 { 62626 "@type": "type.googleapis.com/google.protobuf.Duration", 62627 "value": "1.212s" 62628 } 62629 title: data is an app specific data of the NFT. Optional 62630 description: NFT defines the NFT. 62631 title: owner is the owner address of the nft 62632 title: QueryNFTResponse is the response type for the Query/NFT RPC method 62633 cosmos.nft.v1beta1.QueryNFTsResponse: 62634 type: object 62635 properties: 62636 nfts: 62637 type: array 62638 items: 62639 type: object 62640 properties: 62641 class_id: 62642 type: string 62643 title: >- 62644 class_id associated with the NFT, similar to the contract 62645 address of ERC721 62646 id: 62647 type: string 62648 title: id is a unique identifier of the NFT 62649 uri: 62650 type: string 62651 title: uri for the NFT metadata stored off chain 62652 uri_hash: 62653 type: string 62654 title: uri_hash is a hash of the document pointed by uri 62655 data: 62656 type: object 62657 properties: 62658 type_url: 62659 type: string 62660 description: >- 62661 A URL/resource name that uniquely identifies the type of the 62662 serialized 62663 62664 protocol buffer message. This string must contain at least 62665 62666 one "/" character. The last segment of the URL's path must 62667 represent 62668 62669 the fully qualified name of the type (as in 62670 62671 `path/google.protobuf.Duration`). The name should be in a 62672 canonical form 62673 62674 (e.g., leading "." is not accepted). 62675 62676 62677 In practice, teams usually precompile into the binary all 62678 types that they 62679 62680 expect it to use in the context of Any. However, for URLs 62681 which use the 62682 62683 scheme `http`, `https`, or no scheme, one can optionally set 62684 up a type 62685 62686 server that maps type URLs to message definitions as 62687 follows: 62688 62689 62690 * If no scheme is provided, `https` is assumed. 62691 62692 * An HTTP GET on the URL must yield a 62693 [google.protobuf.Type][] 62694 value in binary format, or produce an error. 62695 * Applications are allowed to cache lookup results based on 62696 the 62697 URL, or have them precompiled into a binary to avoid any 62698 lookup. Therefore, binary compatibility needs to be preserved 62699 on changes to types. (Use versioned type names to manage 62700 breaking changes.) 62701 62702 Note: this functionality is not currently available in the 62703 official 62704 62705 protobuf release, and it is not used for type URLs beginning 62706 with 62707 62708 type.googleapis.com. 62709 62710 62711 Schemes other than `http`, `https` (or the empty scheme) 62712 might be 62713 62714 used with implementation specific semantics. 62715 value: 62716 type: string 62717 format: byte 62718 description: >- 62719 Must be a valid serialized protocol buffer of the above 62720 specified type. 62721 description: >- 62722 `Any` contains an arbitrary serialized protocol buffer message 62723 along with a 62724 62725 URL that describes the type of the serialized message. 62726 62727 62728 Protobuf library provides support to pack/unpack Any values in 62729 the form 62730 62731 of utility functions or additional generated methods of the Any 62732 type. 62733 62734 62735 Example 1: Pack and unpack a message in C++. 62736 62737 Foo foo = ...; 62738 Any any; 62739 any.PackFrom(foo); 62740 ... 62741 if (any.UnpackTo(&foo)) { 62742 ... 62743 } 62744 62745 Example 2: Pack and unpack a message in Java. 62746 62747 Foo foo = ...; 62748 Any any = Any.pack(foo); 62749 ... 62750 if (any.is(Foo.class)) { 62751 foo = any.unpack(Foo.class); 62752 } 62753 // or ... 62754 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 62755 foo = any.unpack(Foo.getDefaultInstance()); 62756 } 62757 62758 Example 3: Pack and unpack a message in Python. 62759 62760 foo = Foo(...) 62761 any = Any() 62762 any.Pack(foo) 62763 ... 62764 if any.Is(Foo.DESCRIPTOR): 62765 any.Unpack(foo) 62766 ... 62767 62768 Example 4: Pack and unpack a message in Go 62769 62770 foo := &pb.Foo{...} 62771 any, err := anypb.New(foo) 62772 if err != nil { 62773 ... 62774 } 62775 ... 62776 foo := &pb.Foo{} 62777 if err := any.UnmarshalTo(foo); err != nil { 62778 ... 62779 } 62780 62781 The pack methods provided by protobuf library will by default 62782 use 62783 62784 'type.googleapis.com/full.type.name' as the type URL and the 62785 unpack 62786 62787 methods only use the fully qualified type name after the last 62788 '/' 62789 62790 in the type URL, for example "foo.bar.com/x/y.z" will yield type 62791 62792 name "y.z". 62793 62794 62795 JSON 62796 62797 62798 The JSON representation of an `Any` value uses the regular 62799 62800 representation of the deserialized, embedded message, with an 62801 62802 additional field `@type` which contains the type URL. Example: 62803 62804 package google.profile; 62805 message Person { 62806 string first_name = 1; 62807 string last_name = 2; 62808 } 62809 62810 { 62811 "@type": "type.googleapis.com/google.profile.Person", 62812 "firstName": <string>, 62813 "lastName": <string> 62814 } 62815 62816 If the embedded message type is well-known and has a custom JSON 62817 62818 representation, that representation will be embedded adding a 62819 field 62820 62821 `value` which holds the custom JSON in addition to the `@type` 62822 62823 field. Example (for message [google.protobuf.Duration][]): 62824 62825 { 62826 "@type": "type.googleapis.com/google.protobuf.Duration", 62827 "value": "1.212s" 62828 } 62829 title: data is an app specific data of the NFT. Optional 62830 description: NFT defines the NFT. 62831 title: NFT defines the NFT 62832 pagination: 62833 description: pagination defines the pagination in the response. 62834 type: object 62835 properties: 62836 next_key: 62837 type: string 62838 format: byte 62839 description: |- 62840 next_key is the key to be passed to PageRequest.key to 62841 query the next page most efficiently. It will be empty if 62842 there are no more results. 62843 total: 62844 type: string 62845 format: uint64 62846 title: >- 62847 total is total number of results available if 62848 PageRequest.count_total 62849 62850 was set, its value is undefined otherwise 62851 title: QueryNFTsResponse is the response type for the Query/NFTs RPC methods 62852 cosmos.nft.v1beta1.QueryOwnerResponse: 62853 type: object 62854 properties: 62855 owner: 62856 type: string 62857 title: owner is the owner address of the nft 62858 title: QueryOwnerResponse is the response type for the Query/Owner RPC method 62859 cosmos.nft.v1beta1.QuerySupplyResponse: 62860 type: object 62861 properties: 62862 amount: 62863 type: string 62864 format: uint64 62865 title: amount is the number of all NFTs from the given class 62866 title: QuerySupplyResponse is the response type for the Query/Supply RPC method 62867 cosmos.group.v1.GroupInfo: 62868 type: object 62869 properties: 62870 id: 62871 type: string 62872 format: uint64 62873 description: id is the unique ID of the group. 62874 admin: 62875 type: string 62876 description: admin is the account address of the group's admin. 62877 metadata: 62878 type: string 62879 title: >- 62880 metadata is any arbitrary metadata to attached to the group. 62881 62882 the recommended format of the metadata is to be found here: 62883 https://docs.cosmos.network/v0.47/modules/group#group-1 62884 version: 62885 type: string 62886 format: uint64 62887 title: >- 62888 version is used to track changes to a group's membership structure 62889 that 62890 62891 would break existing proposals. Whenever any members weight is 62892 changed, 62893 62894 or any member is added or removed this version is incremented and will 62895 62896 cause proposals based on older versions of this group to fail 62897 total_weight: 62898 type: string 62899 description: total_weight is the sum of the group members' weights. 62900 created_at: 62901 type: string 62902 format: date-time 62903 description: created_at is a timestamp specifying when a group was created. 62904 description: GroupInfo represents the high-level on-chain information for a group. 62905 cosmos.group.v1.GroupMember: 62906 type: object 62907 properties: 62908 group_id: 62909 type: string 62910 format: uint64 62911 description: group_id is the unique ID of the group. 62912 member: 62913 description: member is the member data. 62914 type: object 62915 properties: 62916 address: 62917 type: string 62918 description: address is the member's account address. 62919 weight: 62920 type: string 62921 description: >- 62922 weight is the member's voting weight that should be greater than 62923 0. 62924 metadata: 62925 type: string 62926 description: metadata is any arbitrary metadata attached to the member. 62927 added_at: 62928 type: string 62929 format: date-time 62930 description: added_at is a timestamp specifying when a member was added. 62931 description: GroupMember represents the relationship between a group and a member. 62932 cosmos.group.v1.GroupPolicyInfo: 62933 type: object 62934 properties: 62935 address: 62936 type: string 62937 description: address is the account address of group policy. 62938 group_id: 62939 type: string 62940 format: uint64 62941 description: group_id is the unique ID of the group. 62942 admin: 62943 type: string 62944 description: admin is the account address of the group admin. 62945 metadata: 62946 type: string 62947 title: |- 62948 metadata is any arbitrary metadata attached to the group policy. 62949 the recommended format of the metadata is to be found here: 62950 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 62951 version: 62952 type: string 62953 format: uint64 62954 description: >- 62955 version is used to track changes to a group's GroupPolicyInfo 62956 structure that 62957 62958 would create a different result on a running proposal. 62959 decision_policy: 62960 type: object 62961 properties: 62962 type_url: 62963 type: string 62964 description: >- 62965 A URL/resource name that uniquely identifies the type of the 62966 serialized 62967 62968 protocol buffer message. This string must contain at least 62969 62970 one "/" character. The last segment of the URL's path must 62971 represent 62972 62973 the fully qualified name of the type (as in 62974 62975 `path/google.protobuf.Duration`). The name should be in a 62976 canonical form 62977 62978 (e.g., leading "." is not accepted). 62979 62980 62981 In practice, teams usually precompile into the binary all types 62982 that they 62983 62984 expect it to use in the context of Any. However, for URLs which 62985 use the 62986 62987 scheme `http`, `https`, or no scheme, one can optionally set up a 62988 type 62989 62990 server that maps type URLs to message definitions as follows: 62991 62992 62993 * If no scheme is provided, `https` is assumed. 62994 62995 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 62996 value in binary format, or produce an error. 62997 * Applications are allowed to cache lookup results based on the 62998 URL, or have them precompiled into a binary to avoid any 62999 lookup. Therefore, binary compatibility needs to be preserved 63000 on changes to types. (Use versioned type names to manage 63001 breaking changes.) 63002 63003 Note: this functionality is not currently available in the 63004 official 63005 63006 protobuf release, and it is not used for type URLs beginning with 63007 63008 type.googleapis.com. 63009 63010 63011 Schemes other than `http`, `https` (or the empty scheme) might be 63012 63013 used with implementation specific semantics. 63014 value: 63015 type: string 63016 format: byte 63017 description: >- 63018 Must be a valid serialized protocol buffer of the above specified 63019 type. 63020 description: >- 63021 `Any` contains an arbitrary serialized protocol buffer message along 63022 with a 63023 63024 URL that describes the type of the serialized message. 63025 63026 63027 Protobuf library provides support to pack/unpack Any values in the 63028 form 63029 63030 of utility functions or additional generated methods of the Any type. 63031 63032 63033 Example 1: Pack and unpack a message in C++. 63034 63035 Foo foo = ...; 63036 Any any; 63037 any.PackFrom(foo); 63038 ... 63039 if (any.UnpackTo(&foo)) { 63040 ... 63041 } 63042 63043 Example 2: Pack and unpack a message in Java. 63044 63045 Foo foo = ...; 63046 Any any = Any.pack(foo); 63047 ... 63048 if (any.is(Foo.class)) { 63049 foo = any.unpack(Foo.class); 63050 } 63051 // or ... 63052 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 63053 foo = any.unpack(Foo.getDefaultInstance()); 63054 } 63055 63056 Example 3: Pack and unpack a message in Python. 63057 63058 foo = Foo(...) 63059 any = Any() 63060 any.Pack(foo) 63061 ... 63062 if any.Is(Foo.DESCRIPTOR): 63063 any.Unpack(foo) 63064 ... 63065 63066 Example 4: Pack and unpack a message in Go 63067 63068 foo := &pb.Foo{...} 63069 any, err := anypb.New(foo) 63070 if err != nil { 63071 ... 63072 } 63073 ... 63074 foo := &pb.Foo{} 63075 if err := any.UnmarshalTo(foo); err != nil { 63076 ... 63077 } 63078 63079 The pack methods provided by protobuf library will by default use 63080 63081 'type.googleapis.com/full.type.name' as the type URL and the unpack 63082 63083 methods only use the fully qualified type name after the last '/' 63084 63085 in the type URL, for example "foo.bar.com/x/y.z" will yield type 63086 63087 name "y.z". 63088 63089 63090 JSON 63091 63092 63093 The JSON representation of an `Any` value uses the regular 63094 63095 representation of the deserialized, embedded message, with an 63096 63097 additional field `@type` which contains the type URL. Example: 63098 63099 package google.profile; 63100 message Person { 63101 string first_name = 1; 63102 string last_name = 2; 63103 } 63104 63105 { 63106 "@type": "type.googleapis.com/google.profile.Person", 63107 "firstName": <string>, 63108 "lastName": <string> 63109 } 63110 63111 If the embedded message type is well-known and has a custom JSON 63112 63113 representation, that representation will be embedded adding a field 63114 63115 `value` which holds the custom JSON in addition to the `@type` 63116 63117 field. Example (for message [google.protobuf.Duration][]): 63118 63119 { 63120 "@type": "type.googleapis.com/google.protobuf.Duration", 63121 "value": "1.212s" 63122 } 63123 created_at: 63124 type: string 63125 format: date-time 63126 description: created_at is a timestamp specifying when a group policy was created. 63127 description: >- 63128 GroupPolicyInfo represents the high-level on-chain information for a group 63129 policy. 63130 cosmos.group.v1.Member: 63131 type: object 63132 properties: 63133 address: 63134 type: string 63135 description: address is the member's account address. 63136 weight: 63137 type: string 63138 description: weight is the member's voting weight that should be greater than 0. 63139 metadata: 63140 type: string 63141 description: metadata is any arbitrary metadata attached to the member. 63142 added_at: 63143 type: string 63144 format: date-time 63145 description: added_at is a timestamp specifying when a member was added. 63146 description: |- 63147 Member represents a group member with an account address, 63148 non-zero weight, metadata and added_at timestamp. 63149 cosmos.group.v1.Proposal: 63150 type: object 63151 properties: 63152 id: 63153 type: string 63154 format: uint64 63155 description: id is the unique id of the proposal. 63156 group_policy_address: 63157 type: string 63158 description: group_policy_address is the account address of group policy. 63159 metadata: 63160 type: string 63161 title: |- 63162 metadata is any arbitrary metadata attached to the proposal. 63163 the recommended format of the metadata is to be found here: 63164 https://docs.cosmos.network/v0.47/modules/group#proposal-4 63165 proposers: 63166 type: array 63167 items: 63168 type: string 63169 description: proposers are the account addresses of the proposers. 63170 submit_time: 63171 type: string 63172 format: date-time 63173 description: submit_time is a timestamp specifying when a proposal was submitted. 63174 group_version: 63175 type: string 63176 format: uint64 63177 description: |- 63178 group_version tracks the version of the group at proposal submission. 63179 This field is here for informational purposes only. 63180 group_policy_version: 63181 type: string 63182 format: uint64 63183 description: >- 63184 group_policy_version tracks the version of the group policy at 63185 proposal submission. 63186 63187 When a decision policy is changed, existing proposals from previous 63188 policy 63189 63190 versions will become invalid with the `ABORTED` status. 63191 63192 This field is here for informational purposes only. 63193 status: 63194 description: >- 63195 status represents the high level position in the life cycle of the 63196 proposal. Initial value is Submitted. 63197 type: string 63198 enum: 63199 - PROPOSAL_STATUS_UNSPECIFIED 63200 - PROPOSAL_STATUS_SUBMITTED 63201 - PROPOSAL_STATUS_ACCEPTED 63202 - PROPOSAL_STATUS_REJECTED 63203 - PROPOSAL_STATUS_ABORTED 63204 - PROPOSAL_STATUS_WITHDRAWN 63205 default: PROPOSAL_STATUS_UNSPECIFIED 63206 final_tally_result: 63207 description: >- 63208 final_tally_result contains the sums of all weighted votes for this 63209 63210 proposal for each vote option. It is empty at submission, and only 63211 63212 populated after tallying, at voting period end or at proposal 63213 execution, 63214 63215 whichever happens first. 63216 type: object 63217 properties: 63218 yes_count: 63219 type: string 63220 description: yes_count is the weighted sum of yes votes. 63221 abstain_count: 63222 type: string 63223 description: abstain_count is the weighted sum of abstainers. 63224 no_count: 63225 type: string 63226 description: no_count is the weighted sum of no votes. 63227 no_with_veto_count: 63228 type: string 63229 description: no_with_veto_count is the weighted sum of veto. 63230 voting_period_end: 63231 type: string 63232 format: date-time 63233 description: >- 63234 voting_period_end is the timestamp before which voting must be done. 63235 63236 Unless a successful MsgExec is called before (to execute a proposal 63237 whose 63238 63239 tally is successful before the voting period ends), tallying will be 63240 done 63241 63242 at this point, and the `final_tally_result`and `status` fields will be 63243 63244 accordingly updated. 63245 executor_result: 63246 description: >- 63247 executor_result is the final result of the proposal execution. Initial 63248 value is NotRun. 63249 type: string 63250 enum: 63251 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 63252 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN 63253 - PROPOSAL_EXECUTOR_RESULT_SUCCESS 63254 - PROPOSAL_EXECUTOR_RESULT_FAILURE 63255 default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 63256 messages: 63257 type: array 63258 items: 63259 type: object 63260 properties: 63261 type_url: 63262 type: string 63263 description: >- 63264 A URL/resource name that uniquely identifies the type of the 63265 serialized 63266 63267 protocol buffer message. This string must contain at least 63268 63269 one "/" character. The last segment of the URL's path must 63270 represent 63271 63272 the fully qualified name of the type (as in 63273 63274 `path/google.protobuf.Duration`). The name should be in a 63275 canonical form 63276 63277 (e.g., leading "." is not accepted). 63278 63279 63280 In practice, teams usually precompile into the binary all types 63281 that they 63282 63283 expect it to use in the context of Any. However, for URLs which 63284 use the 63285 63286 scheme `http`, `https`, or no scheme, one can optionally set up 63287 a type 63288 63289 server that maps type URLs to message definitions as follows: 63290 63291 63292 * If no scheme is provided, `https` is assumed. 63293 63294 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 63295 value in binary format, or produce an error. 63296 * Applications are allowed to cache lookup results based on the 63297 URL, or have them precompiled into a binary to avoid any 63298 lookup. Therefore, binary compatibility needs to be preserved 63299 on changes to types. (Use versioned type names to manage 63300 breaking changes.) 63301 63302 Note: this functionality is not currently available in the 63303 official 63304 63305 protobuf release, and it is not used for type URLs beginning 63306 with 63307 63308 type.googleapis.com. 63309 63310 63311 Schemes other than `http`, `https` (or the empty scheme) might 63312 be 63313 63314 used with implementation specific semantics. 63315 value: 63316 type: string 63317 format: byte 63318 description: >- 63319 Must be a valid serialized protocol buffer of the above 63320 specified type. 63321 description: >- 63322 `Any` contains an arbitrary serialized protocol buffer message along 63323 with a 63324 63325 URL that describes the type of the serialized message. 63326 63327 63328 Protobuf library provides support to pack/unpack Any values in the 63329 form 63330 63331 of utility functions or additional generated methods of the Any 63332 type. 63333 63334 63335 Example 1: Pack and unpack a message in C++. 63336 63337 Foo foo = ...; 63338 Any any; 63339 any.PackFrom(foo); 63340 ... 63341 if (any.UnpackTo(&foo)) { 63342 ... 63343 } 63344 63345 Example 2: Pack and unpack a message in Java. 63346 63347 Foo foo = ...; 63348 Any any = Any.pack(foo); 63349 ... 63350 if (any.is(Foo.class)) { 63351 foo = any.unpack(Foo.class); 63352 } 63353 // or ... 63354 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 63355 foo = any.unpack(Foo.getDefaultInstance()); 63356 } 63357 63358 Example 3: Pack and unpack a message in Python. 63359 63360 foo = Foo(...) 63361 any = Any() 63362 any.Pack(foo) 63363 ... 63364 if any.Is(Foo.DESCRIPTOR): 63365 any.Unpack(foo) 63366 ... 63367 63368 Example 4: Pack and unpack a message in Go 63369 63370 foo := &pb.Foo{...} 63371 any, err := anypb.New(foo) 63372 if err != nil { 63373 ... 63374 } 63375 ... 63376 foo := &pb.Foo{} 63377 if err := any.UnmarshalTo(foo); err != nil { 63378 ... 63379 } 63380 63381 The pack methods provided by protobuf library will by default use 63382 63383 'type.googleapis.com/full.type.name' as the type URL and the unpack 63384 63385 methods only use the fully qualified type name after the last '/' 63386 63387 in the type URL, for example "foo.bar.com/x/y.z" will yield type 63388 63389 name "y.z". 63390 63391 63392 JSON 63393 63394 63395 The JSON representation of an `Any` value uses the regular 63396 63397 representation of the deserialized, embedded message, with an 63398 63399 additional field `@type` which contains the type URL. Example: 63400 63401 package google.profile; 63402 message Person { 63403 string first_name = 1; 63404 string last_name = 2; 63405 } 63406 63407 { 63408 "@type": "type.googleapis.com/google.profile.Person", 63409 "firstName": <string>, 63410 "lastName": <string> 63411 } 63412 63413 If the embedded message type is well-known and has a custom JSON 63414 63415 representation, that representation will be embedded adding a field 63416 63417 `value` which holds the custom JSON in addition to the `@type` 63418 63419 field. Example (for message [google.protobuf.Duration][]): 63420 63421 { 63422 "@type": "type.googleapis.com/google.protobuf.Duration", 63423 "value": "1.212s" 63424 } 63425 description: >- 63426 messages is a list of `sdk.Msg`s that will be executed if the proposal 63427 passes. 63428 title: 63429 type: string 63430 description: 'Since: cosmos-sdk 0.47' 63431 title: title is the title of the proposal 63432 summary: 63433 type: string 63434 description: 'Since: cosmos-sdk 0.47' 63435 title: summary is a short summary of the proposal 63436 description: >- 63437 Proposal defines a group proposal. Any member of a group can submit a 63438 proposal 63439 63440 for a group policy to decide upon. 63441 63442 A proposal consists of a set of `sdk.Msg`s that will be executed if the 63443 proposal 63444 63445 passes as well as some optional metadata associated with the proposal. 63446 cosmos.group.v1.ProposalExecutorResult: 63447 type: string 63448 enum: 63449 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 63450 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN 63451 - PROPOSAL_EXECUTOR_RESULT_SUCCESS 63452 - PROPOSAL_EXECUTOR_RESULT_FAILURE 63453 default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 63454 description: |- 63455 ProposalExecutorResult defines types of proposal executor results. 63456 63457 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: An empty value is not allowed. 63458 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN: We have not yet run the executor. 63459 - PROPOSAL_EXECUTOR_RESULT_SUCCESS: The executor was successful and proposed action updated state. 63460 - PROPOSAL_EXECUTOR_RESULT_FAILURE: The executor returned an error and proposed action didn't update state. 63461 cosmos.group.v1.ProposalStatus: 63462 type: string 63463 enum: 63464 - PROPOSAL_STATUS_UNSPECIFIED 63465 - PROPOSAL_STATUS_SUBMITTED 63466 - PROPOSAL_STATUS_ACCEPTED 63467 - PROPOSAL_STATUS_REJECTED 63468 - PROPOSAL_STATUS_ABORTED 63469 - PROPOSAL_STATUS_WITHDRAWN 63470 default: PROPOSAL_STATUS_UNSPECIFIED 63471 description: |- 63472 ProposalStatus defines proposal statuses. 63473 63474 - PROPOSAL_STATUS_UNSPECIFIED: An empty value is invalid and not allowed. 63475 - PROPOSAL_STATUS_SUBMITTED: Initial status of a proposal when submitted. 63476 - PROPOSAL_STATUS_ACCEPTED: Final status of a proposal when the final tally is done and the outcome 63477 passes the group policy's decision policy. 63478 - PROPOSAL_STATUS_REJECTED: Final status of a proposal when the final tally is done and the outcome 63479 is rejected by the group policy's decision policy. 63480 - PROPOSAL_STATUS_ABORTED: Final status of a proposal when the group policy is modified before the 63481 final tally. 63482 - PROPOSAL_STATUS_WITHDRAWN: A proposal can be withdrawn before the voting start time by the owner. 63483 When this happens the final status is Withdrawn. 63484 cosmos.group.v1.QueryGroupInfoResponse: 63485 type: object 63486 properties: 63487 info: 63488 description: info is the GroupInfo of the group. 63489 type: object 63490 properties: 63491 id: 63492 type: string 63493 format: uint64 63494 description: id is the unique ID of the group. 63495 admin: 63496 type: string 63497 description: admin is the account address of the group's admin. 63498 metadata: 63499 type: string 63500 title: >- 63501 metadata is any arbitrary metadata to attached to the group. 63502 63503 the recommended format of the metadata is to be found here: 63504 https://docs.cosmos.network/v0.47/modules/group#group-1 63505 version: 63506 type: string 63507 format: uint64 63508 title: >- 63509 version is used to track changes to a group's membership structure 63510 that 63511 63512 would break existing proposals. Whenever any members weight is 63513 changed, 63514 63515 or any member is added or removed this version is incremented and 63516 will 63517 63518 cause proposals based on older versions of this group to fail 63519 total_weight: 63520 type: string 63521 description: total_weight is the sum of the group members' weights. 63522 created_at: 63523 type: string 63524 format: date-time 63525 description: created_at is a timestamp specifying when a group was created. 63526 description: QueryGroupInfoResponse is the Query/GroupInfo response type. 63527 cosmos.group.v1.QueryGroupMembersResponse: 63528 type: object 63529 properties: 63530 members: 63531 type: array 63532 items: 63533 type: object 63534 properties: 63535 group_id: 63536 type: string 63537 format: uint64 63538 description: group_id is the unique ID of the group. 63539 member: 63540 description: member is the member data. 63541 type: object 63542 properties: 63543 address: 63544 type: string 63545 description: address is the member's account address. 63546 weight: 63547 type: string 63548 description: >- 63549 weight is the member's voting weight that should be greater 63550 than 0. 63551 metadata: 63552 type: string 63553 description: metadata is any arbitrary metadata attached to the member. 63554 added_at: 63555 type: string 63556 format: date-time 63557 description: added_at is a timestamp specifying when a member was added. 63558 description: >- 63559 GroupMember represents the relationship between a group and a 63560 member. 63561 description: members are the members of the group with given group_id. 63562 pagination: 63563 description: pagination defines the pagination in the response. 63564 type: object 63565 properties: 63566 next_key: 63567 type: string 63568 format: byte 63569 description: |- 63570 next_key is the key to be passed to PageRequest.key to 63571 query the next page most efficiently. It will be empty if 63572 there are no more results. 63573 total: 63574 type: string 63575 format: uint64 63576 title: >- 63577 total is total number of results available if 63578 PageRequest.count_total 63579 63580 was set, its value is undefined otherwise 63581 description: QueryGroupMembersResponse is the Query/GroupMembersResponse response type. 63582 cosmos.group.v1.QueryGroupPoliciesByAdminResponse: 63583 type: object 63584 properties: 63585 group_policies: 63586 type: array 63587 items: 63588 type: object 63589 properties: 63590 address: 63591 type: string 63592 description: address is the account address of group policy. 63593 group_id: 63594 type: string 63595 format: uint64 63596 description: group_id is the unique ID of the group. 63597 admin: 63598 type: string 63599 description: admin is the account address of the group admin. 63600 metadata: 63601 type: string 63602 title: >- 63603 metadata is any arbitrary metadata attached to the group policy. 63604 63605 the recommended format of the metadata is to be found here: 63606 63607 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 63608 version: 63609 type: string 63610 format: uint64 63611 description: >- 63612 version is used to track changes to a group's GroupPolicyInfo 63613 structure that 63614 63615 would create a different result on a running proposal. 63616 decision_policy: 63617 type: object 63618 properties: 63619 type_url: 63620 type: string 63621 description: >- 63622 A URL/resource name that uniquely identifies the type of the 63623 serialized 63624 63625 protocol buffer message. This string must contain at least 63626 63627 one "/" character. The last segment of the URL's path must 63628 represent 63629 63630 the fully qualified name of the type (as in 63631 63632 `path/google.protobuf.Duration`). The name should be in a 63633 canonical form 63634 63635 (e.g., leading "." is not accepted). 63636 63637 63638 In practice, teams usually precompile into the binary all 63639 types that they 63640 63641 expect it to use in the context of Any. However, for URLs 63642 which use the 63643 63644 scheme `http`, `https`, or no scheme, one can optionally set 63645 up a type 63646 63647 server that maps type URLs to message definitions as 63648 follows: 63649 63650 63651 * If no scheme is provided, `https` is assumed. 63652 63653 * An HTTP GET on the URL must yield a 63654 [google.protobuf.Type][] 63655 value in binary format, or produce an error. 63656 * Applications are allowed to cache lookup results based on 63657 the 63658 URL, or have them precompiled into a binary to avoid any 63659 lookup. Therefore, binary compatibility needs to be preserved 63660 on changes to types. (Use versioned type names to manage 63661 breaking changes.) 63662 63663 Note: this functionality is not currently available in the 63664 official 63665 63666 protobuf release, and it is not used for type URLs beginning 63667 with 63668 63669 type.googleapis.com. 63670 63671 63672 Schemes other than `http`, `https` (or the empty scheme) 63673 might be 63674 63675 used with implementation specific semantics. 63676 value: 63677 type: string 63678 format: byte 63679 description: >- 63680 Must be a valid serialized protocol buffer of the above 63681 specified type. 63682 description: >- 63683 `Any` contains an arbitrary serialized protocol buffer message 63684 along with a 63685 63686 URL that describes the type of the serialized message. 63687 63688 63689 Protobuf library provides support to pack/unpack Any values in 63690 the form 63691 63692 of utility functions or additional generated methods of the Any 63693 type. 63694 63695 63696 Example 1: Pack and unpack a message in C++. 63697 63698 Foo foo = ...; 63699 Any any; 63700 any.PackFrom(foo); 63701 ... 63702 if (any.UnpackTo(&foo)) { 63703 ... 63704 } 63705 63706 Example 2: Pack and unpack a message in Java. 63707 63708 Foo foo = ...; 63709 Any any = Any.pack(foo); 63710 ... 63711 if (any.is(Foo.class)) { 63712 foo = any.unpack(Foo.class); 63713 } 63714 // or ... 63715 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 63716 foo = any.unpack(Foo.getDefaultInstance()); 63717 } 63718 63719 Example 3: Pack and unpack a message in Python. 63720 63721 foo = Foo(...) 63722 any = Any() 63723 any.Pack(foo) 63724 ... 63725 if any.Is(Foo.DESCRIPTOR): 63726 any.Unpack(foo) 63727 ... 63728 63729 Example 4: Pack and unpack a message in Go 63730 63731 foo := &pb.Foo{...} 63732 any, err := anypb.New(foo) 63733 if err != nil { 63734 ... 63735 } 63736 ... 63737 foo := &pb.Foo{} 63738 if err := any.UnmarshalTo(foo); err != nil { 63739 ... 63740 } 63741 63742 The pack methods provided by protobuf library will by default 63743 use 63744 63745 'type.googleapis.com/full.type.name' as the type URL and the 63746 unpack 63747 63748 methods only use the fully qualified type name after the last 63749 '/' 63750 63751 in the type URL, for example "foo.bar.com/x/y.z" will yield type 63752 63753 name "y.z". 63754 63755 63756 JSON 63757 63758 63759 The JSON representation of an `Any` value uses the regular 63760 63761 representation of the deserialized, embedded message, with an 63762 63763 additional field `@type` which contains the type URL. Example: 63764 63765 package google.profile; 63766 message Person { 63767 string first_name = 1; 63768 string last_name = 2; 63769 } 63770 63771 { 63772 "@type": "type.googleapis.com/google.profile.Person", 63773 "firstName": <string>, 63774 "lastName": <string> 63775 } 63776 63777 If the embedded message type is well-known and has a custom JSON 63778 63779 representation, that representation will be embedded adding a 63780 field 63781 63782 `value` which holds the custom JSON in addition to the `@type` 63783 63784 field. Example (for message [google.protobuf.Duration][]): 63785 63786 { 63787 "@type": "type.googleapis.com/google.protobuf.Duration", 63788 "value": "1.212s" 63789 } 63790 created_at: 63791 type: string 63792 format: date-time 63793 description: >- 63794 created_at is a timestamp specifying when a group policy was 63795 created. 63796 description: >- 63797 GroupPolicyInfo represents the high-level on-chain information for a 63798 group policy. 63799 description: group_policies are the group policies info with provided admin. 63800 pagination: 63801 description: pagination defines the pagination in the response. 63802 type: object 63803 properties: 63804 next_key: 63805 type: string 63806 format: byte 63807 description: |- 63808 next_key is the key to be passed to PageRequest.key to 63809 query the next page most efficiently. It will be empty if 63810 there are no more results. 63811 total: 63812 type: string 63813 format: uint64 63814 title: >- 63815 total is total number of results available if 63816 PageRequest.count_total 63817 63818 was set, its value is undefined otherwise 63819 description: >- 63820 QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin 63821 response type. 63822 cosmos.group.v1.QueryGroupPoliciesByGroupResponse: 63823 type: object 63824 properties: 63825 group_policies: 63826 type: array 63827 items: 63828 type: object 63829 properties: 63830 address: 63831 type: string 63832 description: address is the account address of group policy. 63833 group_id: 63834 type: string 63835 format: uint64 63836 description: group_id is the unique ID of the group. 63837 admin: 63838 type: string 63839 description: admin is the account address of the group admin. 63840 metadata: 63841 type: string 63842 title: >- 63843 metadata is any arbitrary metadata attached to the group policy. 63844 63845 the recommended format of the metadata is to be found here: 63846 63847 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 63848 version: 63849 type: string 63850 format: uint64 63851 description: >- 63852 version is used to track changes to a group's GroupPolicyInfo 63853 structure that 63854 63855 would create a different result on a running proposal. 63856 decision_policy: 63857 type: object 63858 properties: 63859 type_url: 63860 type: string 63861 description: >- 63862 A URL/resource name that uniquely identifies the type of the 63863 serialized 63864 63865 protocol buffer message. This string must contain at least 63866 63867 one "/" character. The last segment of the URL's path must 63868 represent 63869 63870 the fully qualified name of the type (as in 63871 63872 `path/google.protobuf.Duration`). The name should be in a 63873 canonical form 63874 63875 (e.g., leading "." is not accepted). 63876 63877 63878 In practice, teams usually precompile into the binary all 63879 types that they 63880 63881 expect it to use in the context of Any. However, for URLs 63882 which use the 63883 63884 scheme `http`, `https`, or no scheme, one can optionally set 63885 up a type 63886 63887 server that maps type URLs to message definitions as 63888 follows: 63889 63890 63891 * If no scheme is provided, `https` is assumed. 63892 63893 * An HTTP GET on the URL must yield a 63894 [google.protobuf.Type][] 63895 value in binary format, or produce an error. 63896 * Applications are allowed to cache lookup results based on 63897 the 63898 URL, or have them precompiled into a binary to avoid any 63899 lookup. Therefore, binary compatibility needs to be preserved 63900 on changes to types. (Use versioned type names to manage 63901 breaking changes.) 63902 63903 Note: this functionality is not currently available in the 63904 official 63905 63906 protobuf release, and it is not used for type URLs beginning 63907 with 63908 63909 type.googleapis.com. 63910 63911 63912 Schemes other than `http`, `https` (or the empty scheme) 63913 might be 63914 63915 used with implementation specific semantics. 63916 value: 63917 type: string 63918 format: byte 63919 description: >- 63920 Must be a valid serialized protocol buffer of the above 63921 specified type. 63922 description: >- 63923 `Any` contains an arbitrary serialized protocol buffer message 63924 along with a 63925 63926 URL that describes the type of the serialized message. 63927 63928 63929 Protobuf library provides support to pack/unpack Any values in 63930 the form 63931 63932 of utility functions or additional generated methods of the Any 63933 type. 63934 63935 63936 Example 1: Pack and unpack a message in C++. 63937 63938 Foo foo = ...; 63939 Any any; 63940 any.PackFrom(foo); 63941 ... 63942 if (any.UnpackTo(&foo)) { 63943 ... 63944 } 63945 63946 Example 2: Pack and unpack a message in Java. 63947 63948 Foo foo = ...; 63949 Any any = Any.pack(foo); 63950 ... 63951 if (any.is(Foo.class)) { 63952 foo = any.unpack(Foo.class); 63953 } 63954 // or ... 63955 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 63956 foo = any.unpack(Foo.getDefaultInstance()); 63957 } 63958 63959 Example 3: Pack and unpack a message in Python. 63960 63961 foo = Foo(...) 63962 any = Any() 63963 any.Pack(foo) 63964 ... 63965 if any.Is(Foo.DESCRIPTOR): 63966 any.Unpack(foo) 63967 ... 63968 63969 Example 4: Pack and unpack a message in Go 63970 63971 foo := &pb.Foo{...} 63972 any, err := anypb.New(foo) 63973 if err != nil { 63974 ... 63975 } 63976 ... 63977 foo := &pb.Foo{} 63978 if err := any.UnmarshalTo(foo); err != nil { 63979 ... 63980 } 63981 63982 The pack methods provided by protobuf library will by default 63983 use 63984 63985 'type.googleapis.com/full.type.name' as the type URL and the 63986 unpack 63987 63988 methods only use the fully qualified type name after the last 63989 '/' 63990 63991 in the type URL, for example "foo.bar.com/x/y.z" will yield type 63992 63993 name "y.z". 63994 63995 63996 JSON 63997 63998 63999 The JSON representation of an `Any` value uses the regular 64000 64001 representation of the deserialized, embedded message, with an 64002 64003 additional field `@type` which contains the type URL. Example: 64004 64005 package google.profile; 64006 message Person { 64007 string first_name = 1; 64008 string last_name = 2; 64009 } 64010 64011 { 64012 "@type": "type.googleapis.com/google.profile.Person", 64013 "firstName": <string>, 64014 "lastName": <string> 64015 } 64016 64017 If the embedded message type is well-known and has a custom JSON 64018 64019 representation, that representation will be embedded adding a 64020 field 64021 64022 `value` which holds the custom JSON in addition to the `@type` 64023 64024 field. Example (for message [google.protobuf.Duration][]): 64025 64026 { 64027 "@type": "type.googleapis.com/google.protobuf.Duration", 64028 "value": "1.212s" 64029 } 64030 created_at: 64031 type: string 64032 format: date-time 64033 description: >- 64034 created_at is a timestamp specifying when a group policy was 64035 created. 64036 description: >- 64037 GroupPolicyInfo represents the high-level on-chain information for a 64038 group policy. 64039 description: >- 64040 group_policies are the group policies info associated with the 64041 provided group. 64042 pagination: 64043 description: pagination defines the pagination in the response. 64044 type: object 64045 properties: 64046 next_key: 64047 type: string 64048 format: byte 64049 description: |- 64050 next_key is the key to be passed to PageRequest.key to 64051 query the next page most efficiently. It will be empty if 64052 there are no more results. 64053 total: 64054 type: string 64055 format: uint64 64056 title: >- 64057 total is total number of results available if 64058 PageRequest.count_total 64059 64060 was set, its value is undefined otherwise 64061 description: >- 64062 QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup 64063 response type. 64064 cosmos.group.v1.QueryGroupPolicyInfoResponse: 64065 type: object 64066 properties: 64067 info: 64068 type: object 64069 properties: 64070 address: 64071 type: string 64072 description: address is the account address of group policy. 64073 group_id: 64074 type: string 64075 format: uint64 64076 description: group_id is the unique ID of the group. 64077 admin: 64078 type: string 64079 description: admin is the account address of the group admin. 64080 metadata: 64081 type: string 64082 title: |- 64083 metadata is any arbitrary metadata attached to the group policy. 64084 the recommended format of the metadata is to be found here: 64085 https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 64086 version: 64087 type: string 64088 format: uint64 64089 description: >- 64090 version is used to track changes to a group's GroupPolicyInfo 64091 structure that 64092 64093 would create a different result on a running proposal. 64094 decision_policy: 64095 type: object 64096 properties: 64097 type_url: 64098 type: string 64099 description: >- 64100 A URL/resource name that uniquely identifies the type of the 64101 serialized 64102 64103 protocol buffer message. This string must contain at least 64104 64105 one "/" character. The last segment of the URL's path must 64106 represent 64107 64108 the fully qualified name of the type (as in 64109 64110 `path/google.protobuf.Duration`). The name should be in a 64111 canonical form 64112 64113 (e.g., leading "." is not accepted). 64114 64115 64116 In practice, teams usually precompile into the binary all 64117 types that they 64118 64119 expect it to use in the context of Any. However, for URLs 64120 which use the 64121 64122 scheme `http`, `https`, or no scheme, one can optionally set 64123 up a type 64124 64125 server that maps type URLs to message definitions as follows: 64126 64127 64128 * If no scheme is provided, `https` is assumed. 64129 64130 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 64131 value in binary format, or produce an error. 64132 * Applications are allowed to cache lookup results based on 64133 the 64134 URL, or have them precompiled into a binary to avoid any 64135 lookup. Therefore, binary compatibility needs to be preserved 64136 on changes to types. (Use versioned type names to manage 64137 breaking changes.) 64138 64139 Note: this functionality is not currently available in the 64140 official 64141 64142 protobuf release, and it is not used for type URLs beginning 64143 with 64144 64145 type.googleapis.com. 64146 64147 64148 Schemes other than `http`, `https` (or the empty scheme) might 64149 be 64150 64151 used with implementation specific semantics. 64152 value: 64153 type: string 64154 format: byte 64155 description: >- 64156 Must be a valid serialized protocol buffer of the above 64157 specified type. 64158 description: >- 64159 `Any` contains an arbitrary serialized protocol buffer message 64160 along with a 64161 64162 URL that describes the type of the serialized message. 64163 64164 64165 Protobuf library provides support to pack/unpack Any values in the 64166 form 64167 64168 of utility functions or additional generated methods of the Any 64169 type. 64170 64171 64172 Example 1: Pack and unpack a message in C++. 64173 64174 Foo foo = ...; 64175 Any any; 64176 any.PackFrom(foo); 64177 ... 64178 if (any.UnpackTo(&foo)) { 64179 ... 64180 } 64181 64182 Example 2: Pack and unpack a message in Java. 64183 64184 Foo foo = ...; 64185 Any any = Any.pack(foo); 64186 ... 64187 if (any.is(Foo.class)) { 64188 foo = any.unpack(Foo.class); 64189 } 64190 // or ... 64191 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 64192 foo = any.unpack(Foo.getDefaultInstance()); 64193 } 64194 64195 Example 3: Pack and unpack a message in Python. 64196 64197 foo = Foo(...) 64198 any = Any() 64199 any.Pack(foo) 64200 ... 64201 if any.Is(Foo.DESCRIPTOR): 64202 any.Unpack(foo) 64203 ... 64204 64205 Example 4: Pack and unpack a message in Go 64206 64207 foo := &pb.Foo{...} 64208 any, err := anypb.New(foo) 64209 if err != nil { 64210 ... 64211 } 64212 ... 64213 foo := &pb.Foo{} 64214 if err := any.UnmarshalTo(foo); err != nil { 64215 ... 64216 } 64217 64218 The pack methods provided by protobuf library will by default use 64219 64220 'type.googleapis.com/full.type.name' as the type URL and the 64221 unpack 64222 64223 methods only use the fully qualified type name after the last '/' 64224 64225 in the type URL, for example "foo.bar.com/x/y.z" will yield type 64226 64227 name "y.z". 64228 64229 64230 JSON 64231 64232 64233 The JSON representation of an `Any` value uses the regular 64234 64235 representation of the deserialized, embedded message, with an 64236 64237 additional field `@type` which contains the type URL. Example: 64238 64239 package google.profile; 64240 message Person { 64241 string first_name = 1; 64242 string last_name = 2; 64243 } 64244 64245 { 64246 "@type": "type.googleapis.com/google.profile.Person", 64247 "firstName": <string>, 64248 "lastName": <string> 64249 } 64250 64251 If the embedded message type is well-known and has a custom JSON 64252 64253 representation, that representation will be embedded adding a 64254 field 64255 64256 `value` which holds the custom JSON in addition to the `@type` 64257 64258 field. Example (for message [google.protobuf.Duration][]): 64259 64260 { 64261 "@type": "type.googleapis.com/google.protobuf.Duration", 64262 "value": "1.212s" 64263 } 64264 created_at: 64265 type: string 64266 format: date-time 64267 description: >- 64268 created_at is a timestamp specifying when a group policy was 64269 created. 64270 description: >- 64271 GroupPolicyInfo represents the high-level on-chain information for a 64272 group policy. 64273 description: QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. 64274 cosmos.group.v1.QueryGroupsByAdminResponse: 64275 type: object 64276 properties: 64277 groups: 64278 type: array 64279 items: 64280 type: object 64281 properties: 64282 id: 64283 type: string 64284 format: uint64 64285 description: id is the unique ID of the group. 64286 admin: 64287 type: string 64288 description: admin is the account address of the group's admin. 64289 metadata: 64290 type: string 64291 title: >- 64292 metadata is any arbitrary metadata to attached to the group. 64293 64294 the recommended format of the metadata is to be found here: 64295 https://docs.cosmos.network/v0.47/modules/group#group-1 64296 version: 64297 type: string 64298 format: uint64 64299 title: >- 64300 version is used to track changes to a group's membership 64301 structure that 64302 64303 would break existing proposals. Whenever any members weight is 64304 changed, 64305 64306 or any member is added or removed this version is incremented 64307 and will 64308 64309 cause proposals based on older versions of this group to fail 64310 total_weight: 64311 type: string 64312 description: total_weight is the sum of the group members' weights. 64313 created_at: 64314 type: string 64315 format: date-time 64316 description: created_at is a timestamp specifying when a group was created. 64317 description: >- 64318 GroupInfo represents the high-level on-chain information for a 64319 group. 64320 description: groups are the groups info with the provided admin. 64321 pagination: 64322 description: pagination defines the pagination in the response. 64323 type: object 64324 properties: 64325 next_key: 64326 type: string 64327 format: byte 64328 description: |- 64329 next_key is the key to be passed to PageRequest.key to 64330 query the next page most efficiently. It will be empty if 64331 there are no more results. 64332 total: 64333 type: string 64334 format: uint64 64335 title: >- 64336 total is total number of results available if 64337 PageRequest.count_total 64338 64339 was set, its value is undefined otherwise 64340 description: >- 64341 QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response 64342 type. 64343 cosmos.group.v1.QueryGroupsByMemberResponse: 64344 type: object 64345 properties: 64346 groups: 64347 type: array 64348 items: 64349 type: object 64350 properties: 64351 id: 64352 type: string 64353 format: uint64 64354 description: id is the unique ID of the group. 64355 admin: 64356 type: string 64357 description: admin is the account address of the group's admin. 64358 metadata: 64359 type: string 64360 title: >- 64361 metadata is any arbitrary metadata to attached to the group. 64362 64363 the recommended format of the metadata is to be found here: 64364 https://docs.cosmos.network/v0.47/modules/group#group-1 64365 version: 64366 type: string 64367 format: uint64 64368 title: >- 64369 version is used to track changes to a group's membership 64370 structure that 64371 64372 would break existing proposals. Whenever any members weight is 64373 changed, 64374 64375 or any member is added or removed this version is incremented 64376 and will 64377 64378 cause proposals based on older versions of this group to fail 64379 total_weight: 64380 type: string 64381 description: total_weight is the sum of the group members' weights. 64382 created_at: 64383 type: string 64384 format: date-time 64385 description: created_at is a timestamp specifying when a group was created. 64386 description: >- 64387 GroupInfo represents the high-level on-chain information for a 64388 group. 64389 description: groups are the groups info with the provided group member. 64390 pagination: 64391 description: pagination defines the pagination in the response. 64392 type: object 64393 properties: 64394 next_key: 64395 type: string 64396 format: byte 64397 description: |- 64398 next_key is the key to be passed to PageRequest.key to 64399 query the next page most efficiently. It will be empty if 64400 there are no more results. 64401 total: 64402 type: string 64403 format: uint64 64404 title: >- 64405 total is total number of results available if 64406 PageRequest.count_total 64407 64408 was set, its value is undefined otherwise 64409 description: QueryGroupsByMemberResponse is the Query/GroupsByMember response type. 64410 cosmos.group.v1.QueryGroupsResponse: 64411 type: object 64412 properties: 64413 groups: 64414 type: array 64415 items: 64416 type: object 64417 properties: 64418 id: 64419 type: string 64420 format: uint64 64421 description: id is the unique ID of the group. 64422 admin: 64423 type: string 64424 description: admin is the account address of the group's admin. 64425 metadata: 64426 type: string 64427 title: >- 64428 metadata is any arbitrary metadata to attached to the group. 64429 64430 the recommended format of the metadata is to be found here: 64431 https://docs.cosmos.network/v0.47/modules/group#group-1 64432 version: 64433 type: string 64434 format: uint64 64435 title: >- 64436 version is used to track changes to a group's membership 64437 structure that 64438 64439 would break existing proposals. Whenever any members weight is 64440 changed, 64441 64442 or any member is added or removed this version is incremented 64443 and will 64444 64445 cause proposals based on older versions of this group to fail 64446 total_weight: 64447 type: string 64448 description: total_weight is the sum of the group members' weights. 64449 created_at: 64450 type: string 64451 format: date-time 64452 description: created_at is a timestamp specifying when a group was created. 64453 description: >- 64454 GroupInfo represents the high-level on-chain information for a 64455 group. 64456 description: '`groups` is all the groups present in state.' 64457 pagination: 64458 description: pagination defines the pagination in the response. 64459 type: object 64460 properties: 64461 next_key: 64462 type: string 64463 format: byte 64464 description: |- 64465 next_key is the key to be passed to PageRequest.key to 64466 query the next page most efficiently. It will be empty if 64467 there are no more results. 64468 total: 64469 type: string 64470 format: uint64 64471 title: >- 64472 total is total number of results available if 64473 PageRequest.count_total 64474 64475 was set, its value is undefined otherwise 64476 description: |- 64477 QueryGroupsResponse is the Query/Groups response type. 64478 64479 Since: cosmos-sdk 0.47.1 64480 cosmos.group.v1.QueryProposalResponse: 64481 type: object 64482 properties: 64483 proposal: 64484 description: proposal is the proposal info. 64485 type: object 64486 properties: 64487 id: 64488 type: string 64489 format: uint64 64490 description: id is the unique id of the proposal. 64491 group_policy_address: 64492 type: string 64493 description: group_policy_address is the account address of group policy. 64494 metadata: 64495 type: string 64496 title: |- 64497 metadata is any arbitrary metadata attached to the proposal. 64498 the recommended format of the metadata is to be found here: 64499 https://docs.cosmos.network/v0.47/modules/group#proposal-4 64500 proposers: 64501 type: array 64502 items: 64503 type: string 64504 description: proposers are the account addresses of the proposers. 64505 submit_time: 64506 type: string 64507 format: date-time 64508 description: >- 64509 submit_time is a timestamp specifying when a proposal was 64510 submitted. 64511 group_version: 64512 type: string 64513 format: uint64 64514 description: >- 64515 group_version tracks the version of the group at proposal 64516 submission. 64517 64518 This field is here for informational purposes only. 64519 group_policy_version: 64520 type: string 64521 format: uint64 64522 description: >- 64523 group_policy_version tracks the version of the group policy at 64524 proposal submission. 64525 64526 When a decision policy is changed, existing proposals from 64527 previous policy 64528 64529 versions will become invalid with the `ABORTED` status. 64530 64531 This field is here for informational purposes only. 64532 status: 64533 description: >- 64534 status represents the high level position in the life cycle of the 64535 proposal. Initial value is Submitted. 64536 type: string 64537 enum: 64538 - PROPOSAL_STATUS_UNSPECIFIED 64539 - PROPOSAL_STATUS_SUBMITTED 64540 - PROPOSAL_STATUS_ACCEPTED 64541 - PROPOSAL_STATUS_REJECTED 64542 - PROPOSAL_STATUS_ABORTED 64543 - PROPOSAL_STATUS_WITHDRAWN 64544 default: PROPOSAL_STATUS_UNSPECIFIED 64545 final_tally_result: 64546 description: >- 64547 final_tally_result contains the sums of all weighted votes for 64548 this 64549 64550 proposal for each vote option. It is empty at submission, and only 64551 64552 populated after tallying, at voting period end or at proposal 64553 execution, 64554 64555 whichever happens first. 64556 type: object 64557 properties: 64558 yes_count: 64559 type: string 64560 description: yes_count is the weighted sum of yes votes. 64561 abstain_count: 64562 type: string 64563 description: abstain_count is the weighted sum of abstainers. 64564 no_count: 64565 type: string 64566 description: no_count is the weighted sum of no votes. 64567 no_with_veto_count: 64568 type: string 64569 description: no_with_veto_count is the weighted sum of veto. 64570 voting_period_end: 64571 type: string 64572 format: date-time 64573 description: >- 64574 voting_period_end is the timestamp before which voting must be 64575 done. 64576 64577 Unless a successful MsgExec is called before (to execute a 64578 proposal whose 64579 64580 tally is successful before the voting period ends), tallying will 64581 be done 64582 64583 at this point, and the `final_tally_result`and `status` fields 64584 will be 64585 64586 accordingly updated. 64587 executor_result: 64588 description: >- 64589 executor_result is the final result of the proposal execution. 64590 Initial value is NotRun. 64591 type: string 64592 enum: 64593 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 64594 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN 64595 - PROPOSAL_EXECUTOR_RESULT_SUCCESS 64596 - PROPOSAL_EXECUTOR_RESULT_FAILURE 64597 default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 64598 messages: 64599 type: array 64600 items: 64601 type: object 64602 properties: 64603 type_url: 64604 type: string 64605 description: >- 64606 A URL/resource name that uniquely identifies the type of the 64607 serialized 64608 64609 protocol buffer message. This string must contain at least 64610 64611 one "/" character. The last segment of the URL's path must 64612 represent 64613 64614 the fully qualified name of the type (as in 64615 64616 `path/google.protobuf.Duration`). The name should be in a 64617 canonical form 64618 64619 (e.g., leading "." is not accepted). 64620 64621 64622 In practice, teams usually precompile into the binary all 64623 types that they 64624 64625 expect it to use in the context of Any. However, for URLs 64626 which use the 64627 64628 scheme `http`, `https`, or no scheme, one can optionally set 64629 up a type 64630 64631 server that maps type URLs to message definitions as 64632 follows: 64633 64634 64635 * If no scheme is provided, `https` is assumed. 64636 64637 * An HTTP GET on the URL must yield a 64638 [google.protobuf.Type][] 64639 value in binary format, or produce an error. 64640 * Applications are allowed to cache lookup results based on 64641 the 64642 URL, or have them precompiled into a binary to avoid any 64643 lookup. Therefore, binary compatibility needs to be preserved 64644 on changes to types. (Use versioned type names to manage 64645 breaking changes.) 64646 64647 Note: this functionality is not currently available in the 64648 official 64649 64650 protobuf release, and it is not used for type URLs beginning 64651 with 64652 64653 type.googleapis.com. 64654 64655 64656 Schemes other than `http`, `https` (or the empty scheme) 64657 might be 64658 64659 used with implementation specific semantics. 64660 value: 64661 type: string 64662 format: byte 64663 description: >- 64664 Must be a valid serialized protocol buffer of the above 64665 specified type. 64666 description: >- 64667 `Any` contains an arbitrary serialized protocol buffer message 64668 along with a 64669 64670 URL that describes the type of the serialized message. 64671 64672 64673 Protobuf library provides support to pack/unpack Any values in 64674 the form 64675 64676 of utility functions or additional generated methods of the Any 64677 type. 64678 64679 64680 Example 1: Pack and unpack a message in C++. 64681 64682 Foo foo = ...; 64683 Any any; 64684 any.PackFrom(foo); 64685 ... 64686 if (any.UnpackTo(&foo)) { 64687 ... 64688 } 64689 64690 Example 2: Pack and unpack a message in Java. 64691 64692 Foo foo = ...; 64693 Any any = Any.pack(foo); 64694 ... 64695 if (any.is(Foo.class)) { 64696 foo = any.unpack(Foo.class); 64697 } 64698 // or ... 64699 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 64700 foo = any.unpack(Foo.getDefaultInstance()); 64701 } 64702 64703 Example 3: Pack and unpack a message in Python. 64704 64705 foo = Foo(...) 64706 any = Any() 64707 any.Pack(foo) 64708 ... 64709 if any.Is(Foo.DESCRIPTOR): 64710 any.Unpack(foo) 64711 ... 64712 64713 Example 4: Pack and unpack a message in Go 64714 64715 foo := &pb.Foo{...} 64716 any, err := anypb.New(foo) 64717 if err != nil { 64718 ... 64719 } 64720 ... 64721 foo := &pb.Foo{} 64722 if err := any.UnmarshalTo(foo); err != nil { 64723 ... 64724 } 64725 64726 The pack methods provided by protobuf library will by default 64727 use 64728 64729 'type.googleapis.com/full.type.name' as the type URL and the 64730 unpack 64731 64732 methods only use the fully qualified type name after the last 64733 '/' 64734 64735 in the type URL, for example "foo.bar.com/x/y.z" will yield type 64736 64737 name "y.z". 64738 64739 64740 JSON 64741 64742 64743 The JSON representation of an `Any` value uses the regular 64744 64745 representation of the deserialized, embedded message, with an 64746 64747 additional field `@type` which contains the type URL. Example: 64748 64749 package google.profile; 64750 message Person { 64751 string first_name = 1; 64752 string last_name = 2; 64753 } 64754 64755 { 64756 "@type": "type.googleapis.com/google.profile.Person", 64757 "firstName": <string>, 64758 "lastName": <string> 64759 } 64760 64761 If the embedded message type is well-known and has a custom JSON 64762 64763 representation, that representation will be embedded adding a 64764 field 64765 64766 `value` which holds the custom JSON in addition to the `@type` 64767 64768 field. Example (for message [google.protobuf.Duration][]): 64769 64770 { 64771 "@type": "type.googleapis.com/google.protobuf.Duration", 64772 "value": "1.212s" 64773 } 64774 description: >- 64775 messages is a list of `sdk.Msg`s that will be executed if the 64776 proposal passes. 64777 title: 64778 type: string 64779 description: 'Since: cosmos-sdk 0.47' 64780 title: title is the title of the proposal 64781 summary: 64782 type: string 64783 description: 'Since: cosmos-sdk 0.47' 64784 title: summary is a short summary of the proposal 64785 description: QueryProposalResponse is the Query/Proposal response type. 64786 cosmos.group.v1.QueryProposalsByGroupPolicyResponse: 64787 type: object 64788 properties: 64789 proposals: 64790 type: array 64791 items: 64792 type: object 64793 properties: 64794 id: 64795 type: string 64796 format: uint64 64797 description: id is the unique id of the proposal. 64798 group_policy_address: 64799 type: string 64800 description: group_policy_address is the account address of group policy. 64801 metadata: 64802 type: string 64803 title: |- 64804 metadata is any arbitrary metadata attached to the proposal. 64805 the recommended format of the metadata is to be found here: 64806 https://docs.cosmos.network/v0.47/modules/group#proposal-4 64807 proposers: 64808 type: array 64809 items: 64810 type: string 64811 description: proposers are the account addresses of the proposers. 64812 submit_time: 64813 type: string 64814 format: date-time 64815 description: >- 64816 submit_time is a timestamp specifying when a proposal was 64817 submitted. 64818 group_version: 64819 type: string 64820 format: uint64 64821 description: >- 64822 group_version tracks the version of the group at proposal 64823 submission. 64824 64825 This field is here for informational purposes only. 64826 group_policy_version: 64827 type: string 64828 format: uint64 64829 description: >- 64830 group_policy_version tracks the version of the group policy at 64831 proposal submission. 64832 64833 When a decision policy is changed, existing proposals from 64834 previous policy 64835 64836 versions will become invalid with the `ABORTED` status. 64837 64838 This field is here for informational purposes only. 64839 status: 64840 description: >- 64841 status represents the high level position in the life cycle of 64842 the proposal. Initial value is Submitted. 64843 type: string 64844 enum: 64845 - PROPOSAL_STATUS_UNSPECIFIED 64846 - PROPOSAL_STATUS_SUBMITTED 64847 - PROPOSAL_STATUS_ACCEPTED 64848 - PROPOSAL_STATUS_REJECTED 64849 - PROPOSAL_STATUS_ABORTED 64850 - PROPOSAL_STATUS_WITHDRAWN 64851 default: PROPOSAL_STATUS_UNSPECIFIED 64852 final_tally_result: 64853 description: >- 64854 final_tally_result contains the sums of all weighted votes for 64855 this 64856 64857 proposal for each vote option. It is empty at submission, and 64858 only 64859 64860 populated after tallying, at voting period end or at proposal 64861 execution, 64862 64863 whichever happens first. 64864 type: object 64865 properties: 64866 yes_count: 64867 type: string 64868 description: yes_count is the weighted sum of yes votes. 64869 abstain_count: 64870 type: string 64871 description: abstain_count is the weighted sum of abstainers. 64872 no_count: 64873 type: string 64874 description: no_count is the weighted sum of no votes. 64875 no_with_veto_count: 64876 type: string 64877 description: no_with_veto_count is the weighted sum of veto. 64878 voting_period_end: 64879 type: string 64880 format: date-time 64881 description: >- 64882 voting_period_end is the timestamp before which voting must be 64883 done. 64884 64885 Unless a successful MsgExec is called before (to execute a 64886 proposal whose 64887 64888 tally is successful before the voting period ends), tallying 64889 will be done 64890 64891 at this point, and the `final_tally_result`and `status` fields 64892 will be 64893 64894 accordingly updated. 64895 executor_result: 64896 description: >- 64897 executor_result is the final result of the proposal execution. 64898 Initial value is NotRun. 64899 type: string 64900 enum: 64901 - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 64902 - PROPOSAL_EXECUTOR_RESULT_NOT_RUN 64903 - PROPOSAL_EXECUTOR_RESULT_SUCCESS 64904 - PROPOSAL_EXECUTOR_RESULT_FAILURE 64905 default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED 64906 messages: 64907 type: array 64908 items: 64909 type: object 64910 properties: 64911 type_url: 64912 type: string 64913 description: >- 64914 A URL/resource name that uniquely identifies the type of 64915 the serialized 64916 64917 protocol buffer message. This string must contain at least 64918 64919 one "/" character. The last segment of the URL's path must 64920 represent 64921 64922 the fully qualified name of the type (as in 64923 64924 `path/google.protobuf.Duration`). The name should be in a 64925 canonical form 64926 64927 (e.g., leading "." is not accepted). 64928 64929 64930 In practice, teams usually precompile into the binary all 64931 types that they 64932 64933 expect it to use in the context of Any. However, for URLs 64934 which use the 64935 64936 scheme `http`, `https`, or no scheme, one can optionally 64937 set up a type 64938 64939 server that maps type URLs to message definitions as 64940 follows: 64941 64942 64943 * If no scheme is provided, `https` is assumed. 64944 64945 * An HTTP GET on the URL must yield a 64946 [google.protobuf.Type][] 64947 value in binary format, or produce an error. 64948 * Applications are allowed to cache lookup results based 64949 on the 64950 URL, or have them precompiled into a binary to avoid any 64951 lookup. Therefore, binary compatibility needs to be preserved 64952 on changes to types. (Use versioned type names to manage 64953 breaking changes.) 64954 64955 Note: this functionality is not currently available in the 64956 official 64957 64958 protobuf release, and it is not used for type URLs 64959 beginning with 64960 64961 type.googleapis.com. 64962 64963 64964 Schemes other than `http`, `https` (or the empty scheme) 64965 might be 64966 64967 used with implementation specific semantics. 64968 value: 64969 type: string 64970 format: byte 64971 description: >- 64972 Must be a valid serialized protocol buffer of the above 64973 specified type. 64974 description: >- 64975 `Any` contains an arbitrary serialized protocol buffer message 64976 along with a 64977 64978 URL that describes the type of the serialized message. 64979 64980 64981 Protobuf library provides support to pack/unpack Any values in 64982 the form 64983 64984 of utility functions or additional generated methods of the 64985 Any type. 64986 64987 64988 Example 1: Pack and unpack a message in C++. 64989 64990 Foo foo = ...; 64991 Any any; 64992 any.PackFrom(foo); 64993 ... 64994 if (any.UnpackTo(&foo)) { 64995 ... 64996 } 64997 64998 Example 2: Pack and unpack a message in Java. 64999 65000 Foo foo = ...; 65001 Any any = Any.pack(foo); 65002 ... 65003 if (any.is(Foo.class)) { 65004 foo = any.unpack(Foo.class); 65005 } 65006 // or ... 65007 if (any.isSameTypeAs(Foo.getDefaultInstance())) { 65008 foo = any.unpack(Foo.getDefaultInstance()); 65009 } 65010 65011 Example 3: Pack and unpack a message in Python. 65012 65013 foo = Foo(...) 65014 any = Any() 65015 any.Pack(foo) 65016 ... 65017 if any.Is(Foo.DESCRIPTOR): 65018 any.Unpack(foo) 65019 ... 65020 65021 Example 4: Pack and unpack a message in Go 65022 65023 foo := &pb.Foo{...} 65024 any, err := anypb.New(foo) 65025 if err != nil { 65026 ... 65027 } 65028 ... 65029 foo := &pb.Foo{} 65030 if err := any.UnmarshalTo(foo); err != nil { 65031 ... 65032 } 65033 65034 The pack methods provided by protobuf library will by default 65035 use 65036 65037 'type.googleapis.com/full.type.name' as the type URL and the 65038 unpack 65039 65040 methods only use the fully qualified type name after the last 65041 '/' 65042 65043 in the type URL, for example "foo.bar.com/x/y.z" will yield 65044 type 65045 65046 name "y.z". 65047 65048 65049 JSON 65050 65051 65052 The JSON representation of an `Any` value uses the regular 65053 65054 representation of the deserialized, embedded message, with an 65055 65056 additional field `@type` which contains the type URL. Example: 65057 65058 package google.profile; 65059 message Person { 65060 string first_name = 1; 65061 string last_name = 2; 65062 } 65063 65064 { 65065 "@type": "type.googleapis.com/google.profile.Person", 65066 "firstName": <string>, 65067 "lastName": <string> 65068 } 65069 65070 If the embedded message type is well-known and has a custom 65071 JSON 65072 65073 representation, that representation will be embedded adding a 65074 field 65075 65076 `value` which holds the custom JSON in addition to the `@type` 65077 65078 field. Example (for message [google.protobuf.Duration][]): 65079 65080 { 65081 "@type": "type.googleapis.com/google.protobuf.Duration", 65082 "value": "1.212s" 65083 } 65084 description: >- 65085 messages is a list of `sdk.Msg`s that will be executed if the 65086 proposal passes. 65087 title: 65088 type: string 65089 description: 'Since: cosmos-sdk 0.47' 65090 title: title is the title of the proposal 65091 summary: 65092 type: string 65093 description: 'Since: cosmos-sdk 0.47' 65094 title: summary is a short summary of the proposal 65095 description: >- 65096 Proposal defines a group proposal. Any member of a group can submit 65097 a proposal 65098 65099 for a group policy to decide upon. 65100 65101 A proposal consists of a set of `sdk.Msg`s that will be executed if 65102 the proposal 65103 65104 passes as well as some optional metadata associated with the 65105 proposal. 65106 description: proposals are the proposals with given group policy. 65107 pagination: 65108 description: pagination defines the pagination in the response. 65109 type: object 65110 properties: 65111 next_key: 65112 type: string 65113 format: byte 65114 description: |- 65115 next_key is the key to be passed to PageRequest.key to 65116 query the next page most efficiently. It will be empty if 65117 there are no more results. 65118 total: 65119 type: string 65120 format: uint64 65121 title: >- 65122 total is total number of results available if 65123 PageRequest.count_total 65124 65125 was set, its value is undefined otherwise 65126 description: >- 65127 QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy 65128 response type. 65129 cosmos.group.v1.QueryTallyResultResponse: 65130 type: object 65131 properties: 65132 tally: 65133 description: tally defines the requested tally. 65134 type: object 65135 properties: 65136 yes_count: 65137 type: string 65138 description: yes_count is the weighted sum of yes votes. 65139 abstain_count: 65140 type: string 65141 description: abstain_count is the weighted sum of abstainers. 65142 no_count: 65143 type: string 65144 description: no_count is the weighted sum of no votes. 65145 no_with_veto_count: 65146 type: string 65147 description: no_with_veto_count is the weighted sum of veto. 65148 description: QueryTallyResultResponse is the Query/TallyResult response type. 65149 cosmos.group.v1.QueryVoteByProposalVoterResponse: 65150 type: object 65151 properties: 65152 vote: 65153 description: vote is the vote with given proposal_id and voter. 65154 type: object 65155 properties: 65156 proposal_id: 65157 type: string 65158 format: uint64 65159 description: proposal is the unique ID of the proposal. 65160 voter: 65161 type: string 65162 description: voter is the account address of the voter. 65163 option: 65164 description: option is the voter's choice on the proposal. 65165 type: string 65166 enum: 65167 - VOTE_OPTION_UNSPECIFIED 65168 - VOTE_OPTION_YES 65169 - VOTE_OPTION_ABSTAIN 65170 - VOTE_OPTION_NO 65171 - VOTE_OPTION_NO_WITH_VETO 65172 default: VOTE_OPTION_UNSPECIFIED 65173 metadata: 65174 type: string 65175 title: >- 65176 metadata is any arbitrary metadata attached to the vote. 65177 65178 the recommended format of the metadata is to be found here: 65179 https://docs.cosmos.network/v0.47/modules/group#vote-2 65180 submit_time: 65181 type: string 65182 format: date-time 65183 description: submit_time is the timestamp when the vote was submitted. 65184 title: Vote represents a vote for a proposal.string metadata 65185 description: >- 65186 QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response 65187 type. 65188 cosmos.group.v1.QueryVotesByProposalResponse: 65189 type: object 65190 properties: 65191 votes: 65192 type: array 65193 items: 65194 type: object 65195 properties: 65196 proposal_id: 65197 type: string 65198 format: uint64 65199 description: proposal is the unique ID of the proposal. 65200 voter: 65201 type: string 65202 description: voter is the account address of the voter. 65203 option: 65204 description: option is the voter's choice on the proposal. 65205 type: string 65206 enum: 65207 - VOTE_OPTION_UNSPECIFIED 65208 - VOTE_OPTION_YES 65209 - VOTE_OPTION_ABSTAIN 65210 - VOTE_OPTION_NO 65211 - VOTE_OPTION_NO_WITH_VETO 65212 default: VOTE_OPTION_UNSPECIFIED 65213 metadata: 65214 type: string 65215 title: >- 65216 metadata is any arbitrary metadata attached to the vote. 65217 65218 the recommended format of the metadata is to be found here: 65219 https://docs.cosmos.network/v0.47/modules/group#vote-2 65220 submit_time: 65221 type: string 65222 format: date-time 65223 description: submit_time is the timestamp when the vote was submitted. 65224 title: Vote represents a vote for a proposal.string metadata 65225 description: votes are the list of votes for given proposal_id. 65226 pagination: 65227 description: pagination defines the pagination in the response. 65228 type: object 65229 properties: 65230 next_key: 65231 type: string 65232 format: byte 65233 description: |- 65234 next_key is the key to be passed to PageRequest.key to 65235 query the next page most efficiently. It will be empty if 65236 there are no more results. 65237 total: 65238 type: string 65239 format: uint64 65240 title: >- 65241 total is total number of results available if 65242 PageRequest.count_total 65243 65244 was set, its value is undefined otherwise 65245 description: QueryVotesByProposalResponse is the Query/VotesByProposal response type. 65246 cosmos.group.v1.QueryVotesByVoterResponse: 65247 type: object 65248 properties: 65249 votes: 65250 type: array 65251 items: 65252 type: object 65253 properties: 65254 proposal_id: 65255 type: string 65256 format: uint64 65257 description: proposal is the unique ID of the proposal. 65258 voter: 65259 type: string 65260 description: voter is the account address of the voter. 65261 option: 65262 description: option is the voter's choice on the proposal. 65263 type: string 65264 enum: 65265 - VOTE_OPTION_UNSPECIFIED 65266 - VOTE_OPTION_YES 65267 - VOTE_OPTION_ABSTAIN 65268 - VOTE_OPTION_NO 65269 - VOTE_OPTION_NO_WITH_VETO 65270 default: VOTE_OPTION_UNSPECIFIED 65271 metadata: 65272 type: string 65273 title: >- 65274 metadata is any arbitrary metadata attached to the vote. 65275 65276 the recommended format of the metadata is to be found here: 65277 https://docs.cosmos.network/v0.47/modules/group#vote-2 65278 submit_time: 65279 type: string 65280 format: date-time 65281 description: submit_time is the timestamp when the vote was submitted. 65282 title: Vote represents a vote for a proposal.string metadata 65283 description: votes are the list of votes by given voter. 65284 pagination: 65285 description: pagination defines the pagination in the response. 65286 type: object 65287 properties: 65288 next_key: 65289 type: string 65290 format: byte 65291 description: |- 65292 next_key is the key to be passed to PageRequest.key to 65293 query the next page most efficiently. It will be empty if 65294 there are no more results. 65295 total: 65296 type: string 65297 format: uint64 65298 title: >- 65299 total is total number of results available if 65300 PageRequest.count_total 65301 65302 was set, its value is undefined otherwise 65303 description: QueryVotesByVoterResponse is the Query/VotesByVoter response type. 65304 cosmos.group.v1.TallyResult: 65305 type: object 65306 properties: 65307 yes_count: 65308 type: string 65309 description: yes_count is the weighted sum of yes votes. 65310 abstain_count: 65311 type: string 65312 description: abstain_count is the weighted sum of abstainers. 65313 no_count: 65314 type: string 65315 description: no_count is the weighted sum of no votes. 65316 no_with_veto_count: 65317 type: string 65318 description: no_with_veto_count is the weighted sum of veto. 65319 description: TallyResult represents the sum of weighted votes for each vote option. 65320 cosmos.group.v1.Vote: 65321 type: object 65322 properties: 65323 proposal_id: 65324 type: string 65325 format: uint64 65326 description: proposal is the unique ID of the proposal. 65327 voter: 65328 type: string 65329 description: voter is the account address of the voter. 65330 option: 65331 description: option is the voter's choice on the proposal. 65332 type: string 65333 enum: 65334 - VOTE_OPTION_UNSPECIFIED 65335 - VOTE_OPTION_YES 65336 - VOTE_OPTION_ABSTAIN 65337 - VOTE_OPTION_NO 65338 - VOTE_OPTION_NO_WITH_VETO 65339 default: VOTE_OPTION_UNSPECIFIED 65340 metadata: 65341 type: string 65342 title: >- 65343 metadata is any arbitrary metadata attached to the vote. 65344 65345 the recommended format of the metadata is to be found here: 65346 https://docs.cosmos.network/v0.47/modules/group#vote-2 65347 submit_time: 65348 type: string 65349 format: date-time 65350 description: submit_time is the timestamp when the vote was submitted. 65351 title: Vote represents a vote for a proposal.string metadata 65352 cosmos.group.v1.VoteOption: 65353 type: string 65354 enum: 65355 - VOTE_OPTION_UNSPECIFIED 65356 - VOTE_OPTION_YES 65357 - VOTE_OPTION_ABSTAIN 65358 - VOTE_OPTION_NO 65359 - VOTE_OPTION_NO_WITH_VETO 65360 default: VOTE_OPTION_UNSPECIFIED 65361 description: |- 65362 VoteOption enumerates the valid vote options for a given proposal. 65363 65364 - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will 65365 return an error. 65366 - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. 65367 - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. 65368 - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. 65369 - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. 65370 cosmos.circuit.v1.AccountResponse: 65371 type: object 65372 properties: 65373 permission: 65374 type: object 65375 properties: 65376 level: 65377 description: level is the level of permissions granted to this account. 65378 type: string 65379 enum: 65380 - LEVEL_NONE_UNSPECIFIED 65381 - LEVEL_SOME_MSGS 65382 - LEVEL_ALL_MSGS 65383 - LEVEL_SUPER_ADMIN 65384 default: LEVEL_NONE_UNSPECIFIED 65385 limit_type_urls: 65386 type: array 65387 items: 65388 type: string 65389 description: >- 65390 limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of 65391 Msg type 65392 65393 URLs that the account can trip. It is an error to use 65394 limit_type_urls with 65395 65396 a level other than LEVEL_SOME_MSGS. 65397 description: |- 65398 Permissions are the permissions that an account has to trip 65399 or reset the circuit breaker. 65400 description: AccountResponse is the response type for the Query/Account RPC method. 65401 cosmos.circuit.v1.AccountsResponse: 65402 type: object 65403 properties: 65404 accounts: 65405 type: array 65406 items: 65407 type: object 65408 properties: 65409 address: 65410 type: string 65411 permissions: 65412 type: object 65413 properties: 65414 level: 65415 description: level is the level of permissions granted to this account. 65416 type: string 65417 enum: 65418 - LEVEL_NONE_UNSPECIFIED 65419 - LEVEL_SOME_MSGS 65420 - LEVEL_ALL_MSGS 65421 - LEVEL_SUPER_ADMIN 65422 default: LEVEL_NONE_UNSPECIFIED 65423 limit_type_urls: 65424 type: array 65425 items: 65426 type: string 65427 description: >- 65428 limit_type_urls is used with LEVEL_SOME_MSGS to limit the 65429 lists of Msg type 65430 65431 URLs that the account can trip. It is an error to use 65432 limit_type_urls with 65433 65434 a level other than LEVEL_SOME_MSGS. 65435 description: |- 65436 Permissions are the permissions that an account has to trip 65437 or reset the circuit breaker. 65438 title: >- 65439 GenesisAccountPermissions is the account permissions for the circuit 65440 breaker in genesis 65441 pagination: 65442 description: pagination defines the pagination in the response. 65443 type: object 65444 properties: 65445 next_key: 65446 type: string 65447 format: byte 65448 description: |- 65449 next_key is the key to be passed to PageRequest.key to 65450 query the next page most efficiently. It will be empty if 65451 there are no more results. 65452 total: 65453 type: string 65454 format: uint64 65455 title: >- 65456 total is total number of results available if 65457 PageRequest.count_total 65458 65459 was set, its value is undefined otherwise 65460 description: AccountsResponse is the response type for the Query/Accounts RPC method. 65461 cosmos.circuit.v1.DisabledListResponse: 65462 type: object 65463 properties: 65464 disabled_list: 65465 type: array 65466 items: 65467 type: string 65468 description: >- 65469 DisabledListResponse is the response type for the Query/DisabledList RPC 65470 method. 65471 cosmos.circuit.v1.GenesisAccountPermissions: 65472 type: object 65473 properties: 65474 address: 65475 type: string 65476 permissions: 65477 type: object 65478 properties: 65479 level: 65480 description: level is the level of permissions granted to this account. 65481 type: string 65482 enum: 65483 - LEVEL_NONE_UNSPECIFIED 65484 - LEVEL_SOME_MSGS 65485 - LEVEL_ALL_MSGS 65486 - LEVEL_SUPER_ADMIN 65487 default: LEVEL_NONE_UNSPECIFIED 65488 limit_type_urls: 65489 type: array 65490 items: 65491 type: string 65492 description: >- 65493 limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of 65494 Msg type 65495 65496 URLs that the account can trip. It is an error to use 65497 limit_type_urls with 65498 65499 a level other than LEVEL_SOME_MSGS. 65500 description: |- 65501 Permissions are the permissions that an account has to trip 65502 or reset the circuit breaker. 65503 title: >- 65504 GenesisAccountPermissions is the account permissions for the circuit 65505 breaker in genesis 65506 cosmos.circuit.v1.Permissions: 65507 type: object 65508 properties: 65509 level: 65510 description: level is the level of permissions granted to this account. 65511 type: string 65512 enum: 65513 - LEVEL_NONE_UNSPECIFIED 65514 - LEVEL_SOME_MSGS 65515 - LEVEL_ALL_MSGS 65516 - LEVEL_SUPER_ADMIN 65517 default: LEVEL_NONE_UNSPECIFIED 65518 limit_type_urls: 65519 type: array 65520 items: 65521 type: string 65522 description: >- 65523 limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg 65524 type 65525 65526 URLs that the account can trip. It is an error to use limit_type_urls 65527 with 65528 65529 a level other than LEVEL_SOME_MSGS. 65530 description: |- 65531 Permissions are the permissions that an account has to trip 65532 or reset the circuit breaker. 65533 cosmos.circuit.v1.Permissions.Level: 65534 type: string 65535 enum: 65536 - LEVEL_NONE_UNSPECIFIED 65537 - LEVEL_SOME_MSGS 65538 - LEVEL_ALL_MSGS 65539 - LEVEL_SUPER_ADMIN 65540 default: LEVEL_NONE_UNSPECIFIED 65541 description: |- 65542 Level is the permission level. 65543 65544 - LEVEL_NONE_UNSPECIFIED: LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit 65545 breaker permissions. 65546 - LEVEL_SOME_MSGS: LEVEL_SOME_MSGS indicates that the account will have permission to 65547 trip or reset the circuit breaker for some Msg type URLs. If this level 65548 is chosen, a non-empty list of Msg type URLs must be provided in 65549 limit_type_urls. 65550 - LEVEL_ALL_MSGS: LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit 65551 breaker for Msg's of all type URLs. 65552 - LEVEL_SUPER_ADMIN: LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker 65553 actions and can grant permissions to other accounts. 65554 cosmos.consensus.v1.QueryParamsResponse: 65555 type: object 65556 properties: 65557 params: 65558 description: >- 65559 params are the tendermint consensus params stored in the consensus 65560 module. 65561 65562 Please note that `params.version` is not populated in this response, 65563 it is 65564 65565 tracked separately in the x/upgrade module. 65566 type: object 65567 properties: 65568 block: 65569 type: object 65570 properties: 65571 max_bytes: 65572 type: string 65573 format: int64 65574 title: |- 65575 Max block size, in bytes. 65576 Note: must be greater than 0 65577 max_gas: 65578 type: string 65579 format: int64 65580 title: |- 65581 Max gas per block. 65582 Note: must be greater or equal to -1 65583 description: BlockParams contains limits on the block size. 65584 evidence: 65585 type: object 65586 properties: 65587 max_age_num_blocks: 65588 type: string 65589 format: int64 65590 description: >- 65591 Max age of evidence, in blocks. 65592 65593 65594 The basic formula for calculating this is: MaxAgeDuration / 65595 {average block 65596 65597 time}. 65598 max_age_duration: 65599 type: string 65600 description: >- 65601 Max age of evidence, in time. 65602 65603 65604 It should correspond with an app's "unbonding period" or other 65605 similar 65606 65607 mechanism for handling [Nothing-At-Stake 65608 65609 attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). 65610 max_bytes: 65611 type: string 65612 format: int64 65613 title: >- 65614 This sets the maximum size of total evidence in bytes that can 65615 be committed in a single block. 65616 65617 and should fall comfortably under the max block bytes. 65618 65619 Default is 1048576 or 1MB 65620 description: EvidenceParams determine how we handle evidence of malfeasance. 65621 validator: 65622 type: object 65623 properties: 65624 pub_key_types: 65625 type: array 65626 items: 65627 type: string 65628 description: |- 65629 ValidatorParams restrict the public key types validators can use. 65630 NOTE: uses ABCI pubkey naming, not Amino names. 65631 version: 65632 type: object 65633 properties: 65634 app: 65635 type: string 65636 format: uint64 65637 description: VersionParams contains the ABCI application version. 65638 abci: 65639 type: object 65640 properties: 65641 vote_extensions_enable_height: 65642 type: string 65643 format: int64 65644 description: >- 65645 vote_extensions_enable_height configures the first height 65646 during which 65647 65648 vote extensions will be enabled. During this specified height, 65649 and for all 65650 65651 subsequent heights, precommit messages that do not contain 65652 valid extension data 65653 65654 will be considered invalid. Prior to this height, vote 65655 extensions will not 65656 65657 be used or accepted by validators on the network. 65658 65659 65660 Once enabled, vote extensions will be created by the 65661 application in ExtendVote, 65662 65663 passed to the application for validation in 65664 VerifyVoteExtension and given 65665 65666 to the application to use when proposing a block during 65667 PrepareProposal. 65668 description: >- 65669 ABCIParams configure functionality specific to the Application 65670 Blockchain Interface. 65671 description: >- 65672 QueryParamsResponse defines the response type for querying x/consensus 65673 parameters. 65674 tendermint.types.ABCIParams: 65675 type: object 65676 properties: 65677 vote_extensions_enable_height: 65678 type: string 65679 format: int64 65680 description: >- 65681 vote_extensions_enable_height configures the first height during which 65682 65683 vote extensions will be enabled. During this specified height, and for 65684 all 65685 65686 subsequent heights, precommit messages that do not contain valid 65687 extension data 65688 65689 will be considered invalid. Prior to this height, vote extensions will 65690 not 65691 65692 be used or accepted by validators on the network. 65693 65694 65695 Once enabled, vote extensions will be created by the application in 65696 ExtendVote, 65697 65698 passed to the application for validation in VerifyVoteExtension and 65699 given 65700 65701 to the application to use when proposing a block during 65702 PrepareProposal. 65703 description: >- 65704 ABCIParams configure functionality specific to the Application Blockchain 65705 Interface. 65706 tendermint.types.BlockParams: 65707 type: object 65708 properties: 65709 max_bytes: 65710 type: string 65711 format: int64 65712 title: |- 65713 Max block size, in bytes. 65714 Note: must be greater than 0 65715 max_gas: 65716 type: string 65717 format: int64 65718 title: |- 65719 Max gas per block. 65720 Note: must be greater or equal to -1 65721 description: BlockParams contains limits on the block size. 65722 tendermint.types.ConsensusParams: 65723 type: object 65724 properties: 65725 block: 65726 type: object 65727 properties: 65728 max_bytes: 65729 type: string 65730 format: int64 65731 title: |- 65732 Max block size, in bytes. 65733 Note: must be greater than 0 65734 max_gas: 65735 type: string 65736 format: int64 65737 title: |- 65738 Max gas per block. 65739 Note: must be greater or equal to -1 65740 description: BlockParams contains limits on the block size. 65741 evidence: 65742 type: object 65743 properties: 65744 max_age_num_blocks: 65745 type: string 65746 format: int64 65747 description: >- 65748 Max age of evidence, in blocks. 65749 65750 65751 The basic formula for calculating this is: MaxAgeDuration / 65752 {average block 65753 65754 time}. 65755 max_age_duration: 65756 type: string 65757 description: >- 65758 Max age of evidence, in time. 65759 65760 65761 It should correspond with an app's "unbonding period" or other 65762 similar 65763 65764 mechanism for handling [Nothing-At-Stake 65765 65766 attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). 65767 max_bytes: 65768 type: string 65769 format: int64 65770 title: >- 65771 This sets the maximum size of total evidence in bytes that can be 65772 committed in a single block. 65773 65774 and should fall comfortably under the max block bytes. 65775 65776 Default is 1048576 or 1MB 65777 description: EvidenceParams determine how we handle evidence of malfeasance. 65778 validator: 65779 type: object 65780 properties: 65781 pub_key_types: 65782 type: array 65783 items: 65784 type: string 65785 description: |- 65786 ValidatorParams restrict the public key types validators can use. 65787 NOTE: uses ABCI pubkey naming, not Amino names. 65788 version: 65789 type: object 65790 properties: 65791 app: 65792 type: string 65793 format: uint64 65794 description: VersionParams contains the ABCI application version. 65795 abci: 65796 type: object 65797 properties: 65798 vote_extensions_enable_height: 65799 type: string 65800 format: int64 65801 description: >- 65802 vote_extensions_enable_height configures the first height during 65803 which 65804 65805 vote extensions will be enabled. During this specified height, and 65806 for all 65807 65808 subsequent heights, precommit messages that do not contain valid 65809 extension data 65810 65811 will be considered invalid. Prior to this height, vote extensions 65812 will not 65813 65814 be used or accepted by validators on the network. 65815 65816 65817 Once enabled, vote extensions will be created by the application 65818 in ExtendVote, 65819 65820 passed to the application for validation in VerifyVoteExtension 65821 and given 65822 65823 to the application to use when proposing a block during 65824 PrepareProposal. 65825 description: >- 65826 ABCIParams configure functionality specific to the Application 65827 Blockchain Interface. 65828 description: |- 65829 ConsensusParams contains consensus critical parameters that determine the 65830 validity of blocks. 65831 tendermint.types.EvidenceParams: 65832 type: object 65833 properties: 65834 max_age_num_blocks: 65835 type: string 65836 format: int64 65837 description: >- 65838 Max age of evidence, in blocks. 65839 65840 65841 The basic formula for calculating this is: MaxAgeDuration / {average 65842 block 65843 65844 time}. 65845 max_age_duration: 65846 type: string 65847 description: >- 65848 Max age of evidence, in time. 65849 65850 65851 It should correspond with an app's "unbonding period" or other similar 65852 65853 mechanism for handling [Nothing-At-Stake 65854 65855 attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). 65856 max_bytes: 65857 type: string 65858 format: int64 65859 title: >- 65860 This sets the maximum size of total evidence in bytes that can be 65861 committed in a single block. 65862 65863 and should fall comfortably under the max block bytes. 65864 65865 Default is 1048576 or 1MB 65866 description: EvidenceParams determine how we handle evidence of malfeasance. 65867 tendermint.types.ValidatorParams: 65868 type: object 65869 properties: 65870 pub_key_types: 65871 type: array 65872 items: 65873 type: string 65874 description: |- 65875 ValidatorParams restrict the public key types validators can use. 65876 NOTE: uses ABCI pubkey naming, not Amino names. 65877 tendermint.types.VersionParams: 65878 type: object 65879 properties: 65880 app: 65881 type: string 65882 format: uint64 65883 description: VersionParams contains the ABCI application version. 65884 cosmos.app.v1alpha1.Config: 65885 type: object 65886 properties: 65887 modules: 65888 type: array 65889 items: 65890 type: object 65891 properties: 65892 name: 65893 type: string 65894 description: >- 65895 name is the unique name of the module within the app. It should 65896 be a name 65897 65898 that persists between different versions of a module so that 65899 modules 65900 65901 can be smoothly upgraded to new versions. 65902 65903 65904 For example, for the module cosmos.bank.module.v1.Module, we may 65905 chose 65906 65907 to simply name the module "bank" in the app. When we upgrade to 65908 65909 cosmos.bank.module.v2.Module, the app-specific name "bank" stays 65910 the same 65911 65912 and the framework knows that the v2 module should receive all 65913 the same state 65914 65915 that the v1 module had. Note: modules should provide info on 65916 which versions 65917 65918 they can migrate from in the ModuleDescriptor.can_migration_from 65919 field. 65920 config: 65921 description: >- 65922 config is the config object for the module. Module config 65923 messages should 65924 65925 define a ModuleDescriptor using the 65926 cosmos.app.v1alpha1.is_module extension. 65927 type: object 65928 properties: 65929 type_url: 65930 type: string 65931 description: >- 65932 A URL/resource name that uniquely identifies the type of the 65933 serialized 65934 65935 protocol buffer message. This string must contain at least 65936 65937 one "/" character. The last segment of the URL's path must 65938 represent 65939 65940 the fully qualified name of the type (as in 65941 65942 `path/google.protobuf.Duration`). The name should be in a 65943 canonical form 65944 65945 (e.g., leading "." is not accepted). 65946 65947 65948 In practice, teams usually precompile into the binary all 65949 types that they 65950 65951 expect it to use in the context of Any. However, for URLs 65952 which use the 65953 65954 scheme `http`, `https`, or no scheme, one can optionally set 65955 up a type 65956 65957 server that maps type URLs to message definitions as 65958 follows: 65959 65960 65961 * If no scheme is provided, `https` is assumed. 65962 65963 * An HTTP GET on the URL must yield a 65964 [google.protobuf.Type][] 65965 value in binary format, or produce an error. 65966 * Applications are allowed to cache lookup results based on 65967 the 65968 URL, or have them precompiled into a binary to avoid any 65969 lookup. Therefore, binary compatibility needs to be preserved 65970 on changes to types. (Use versioned type names to manage 65971 breaking changes.) 65972 65973 Note: this functionality is not currently available in the 65974 official 65975 65976 protobuf release, and it is not used for type URLs beginning 65977 with 65978 65979 type.googleapis.com. 65980 65981 65982 Schemes other than `http`, `https` (or the empty scheme) 65983 might be 65984 65985 used with implementation specific semantics. 65986 value: 65987 type: string 65988 format: byte 65989 description: >- 65990 Must be a valid serialized protocol buffer of the above 65991 specified type. 65992 golang_bindings: 65993 type: array 65994 items: 65995 type: object 65996 properties: 65997 interface_type: 65998 type: string 65999 title: >- 66000 interface_type is the interface type which will be bound 66001 to a specific implementation type 66002 implementation: 66003 type: string 66004 title: >- 66005 implementation is the implementing type which will be 66006 supplied when an input of type interface is requested 66007 description: >- 66008 GolangBinding is an explicit interface type to implementing 66009 type binding for dependency injection. 66010 description: >- 66011 golang_bindings specifies explicit interface to implementation 66012 type bindings which 66013 66014 depinject uses to resolve interface inputs to provider 66015 functions. The scope of this 66016 66017 field's configuration is module specific. 66018 description: ModuleConfig is a module configuration for an app. 66019 description: modules are the module configurations for the app. 66020 golang_bindings: 66021 type: array 66022 items: 66023 type: object 66024 properties: 66025 interface_type: 66026 type: string 66027 title: >- 66028 interface_type is the interface type which will be bound to a 66029 specific implementation type 66030 implementation: 66031 type: string 66032 title: >- 66033 implementation is the implementing type which will be supplied 66034 when an input of type interface is requested 66035 description: >- 66036 GolangBinding is an explicit interface type to implementing type 66037 binding for dependency injection. 66038 description: >- 66039 golang_bindings specifies explicit interface to implementation type 66040 bindings which 66041 66042 depinject uses to resolve interface inputs to provider functions. The 66043 scope of this 66044 66045 field's configuration is global (not module specific). 66046 description: >- 66047 Config represents the configuration for a Cosmos SDK ABCI app. 66048 66049 It is intended that all state machine logic including the version of 66050 66051 baseapp and tx handlers (and possibly even Tendermint) that an app needs 66052 66053 can be described in a config object. For compatibility, the framework 66054 should 66055 66056 allow a mixture of declarative and imperative app wiring, however, apps 66057 66058 that strive for the maximum ease of maintainability should be able to 66059 describe 66060 66061 their state machine with a config object alone. 66062 cosmos.app.v1alpha1.GolangBinding: 66063 type: object 66064 properties: 66065 interface_type: 66066 type: string 66067 title: >- 66068 interface_type is the interface type which will be bound to a specific 66069 implementation type 66070 implementation: 66071 type: string 66072 title: >- 66073 implementation is the implementing type which will be supplied when an 66074 input of type interface is requested 66075 description: >- 66076 GolangBinding is an explicit interface type to implementing type binding 66077 for dependency injection. 66078 cosmos.app.v1alpha1.ModuleConfig: 66079 type: object 66080 properties: 66081 name: 66082 type: string 66083 description: >- 66084 name is the unique name of the module within the app. It should be a 66085 name 66086 66087 that persists between different versions of a module so that modules 66088 66089 can be smoothly upgraded to new versions. 66090 66091 66092 For example, for the module cosmos.bank.module.v1.Module, we may chose 66093 66094 to simply name the module "bank" in the app. When we upgrade to 66095 66096 cosmos.bank.module.v2.Module, the app-specific name "bank" stays the 66097 same 66098 66099 and the framework knows that the v2 module should receive all the same 66100 state 66101 66102 that the v1 module had. Note: modules should provide info on which 66103 versions 66104 66105 they can migrate from in the ModuleDescriptor.can_migration_from 66106 field. 66107 config: 66108 description: >- 66109 config is the config object for the module. Module config messages 66110 should 66111 66112 define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module 66113 extension. 66114 type: object 66115 properties: 66116 type_url: 66117 type: string 66118 description: >- 66119 A URL/resource name that uniquely identifies the type of the 66120 serialized 66121 66122 protocol buffer message. This string must contain at least 66123 66124 one "/" character. The last segment of the URL's path must 66125 represent 66126 66127 the fully qualified name of the type (as in 66128 66129 `path/google.protobuf.Duration`). The name should be in a 66130 canonical form 66131 66132 (e.g., leading "." is not accepted). 66133 66134 66135 In practice, teams usually precompile into the binary all types 66136 that they 66137 66138 expect it to use in the context of Any. However, for URLs which 66139 use the 66140 66141 scheme `http`, `https`, or no scheme, one can optionally set up a 66142 type 66143 66144 server that maps type URLs to message definitions as follows: 66145 66146 66147 * If no scheme is provided, `https` is assumed. 66148 66149 * An HTTP GET on the URL must yield a [google.protobuf.Type][] 66150 value in binary format, or produce an error. 66151 * Applications are allowed to cache lookup results based on the 66152 URL, or have them precompiled into a binary to avoid any 66153 lookup. Therefore, binary compatibility needs to be preserved 66154 on changes to types. (Use versioned type names to manage 66155 breaking changes.) 66156 66157 Note: this functionality is not currently available in the 66158 official 66159 66160 protobuf release, and it is not used for type URLs beginning with 66161 66162 type.googleapis.com. 66163 66164 66165 Schemes other than `http`, `https` (or the empty scheme) might be 66166 66167 used with implementation specific semantics. 66168 value: 66169 type: string 66170 format: byte 66171 description: >- 66172 Must be a valid serialized protocol buffer of the above specified 66173 type. 66174 golang_bindings: 66175 type: array 66176 items: 66177 type: object 66178 properties: 66179 interface_type: 66180 type: string 66181 title: >- 66182 interface_type is the interface type which will be bound to a 66183 specific implementation type 66184 implementation: 66185 type: string 66186 title: >- 66187 implementation is the implementing type which will be supplied 66188 when an input of type interface is requested 66189 description: >- 66190 GolangBinding is an explicit interface type to implementing type 66191 binding for dependency injection. 66192 description: >- 66193 golang_bindings specifies explicit interface to implementation type 66194 bindings which 66195 66196 depinject uses to resolve interface inputs to provider functions. The 66197 scope of this 66198 66199 field's configuration is module specific. 66200 description: ModuleConfig is a module configuration for an app. 66201 cosmos.app.v1alpha1.QueryConfigResponse: 66202 type: object 66203 properties: 66204 config: 66205 description: config is the current app config. 66206 type: object 66207 properties: 66208 modules: 66209 type: array 66210 items: 66211 type: object 66212 properties: 66213 name: 66214 type: string 66215 description: >- 66216 name is the unique name of the module within the app. It 66217 should be a name 66218 66219 that persists between different versions of a module so that 66220 modules 66221 66222 can be smoothly upgraded to new versions. 66223 66224 66225 For example, for the module cosmos.bank.module.v1.Module, we 66226 may chose 66227 66228 to simply name the module "bank" in the app. When we upgrade 66229 to 66230 66231 cosmos.bank.module.v2.Module, the app-specific name "bank" 66232 stays the same 66233 66234 and the framework knows that the v2 module should receive 66235 all the same state 66236 66237 that the v1 module had. Note: modules should provide info on 66238 which versions 66239 66240 they can migrate from in the 66241 ModuleDescriptor.can_migration_from field. 66242 config: 66243 description: >- 66244 config is the config object for the module. Module config 66245 messages should 66246 66247 define a ModuleDescriptor using the 66248 cosmos.app.v1alpha1.is_module extension. 66249 type: object 66250 properties: 66251 type_url: 66252 type: string 66253 description: >- 66254 A URL/resource name that uniquely identifies the type of 66255 the serialized 66256 66257 protocol buffer message. This string must contain at 66258 least 66259 66260 one "/" character. The last segment of the URL's path 66261 must represent 66262 66263 the fully qualified name of the type (as in 66264 66265 `path/google.protobuf.Duration`). The name should be in 66266 a canonical form 66267 66268 (e.g., leading "." is not accepted). 66269 66270 66271 In practice, teams usually precompile into the binary 66272 all types that they 66273 66274 expect it to use in the context of Any. However, for 66275 URLs which use the 66276 66277 scheme `http`, `https`, or no scheme, one can optionally 66278 set up a type 66279 66280 server that maps type URLs to message definitions as 66281 follows: 66282 66283 66284 * If no scheme is provided, `https` is assumed. 66285 66286 * An HTTP GET on the URL must yield a 66287 [google.protobuf.Type][] 66288 value in binary format, or produce an error. 66289 * Applications are allowed to cache lookup results based 66290 on the 66291 URL, or have them precompiled into a binary to avoid any 66292 lookup. Therefore, binary compatibility needs to be preserved 66293 on changes to types. (Use versioned type names to manage 66294 breaking changes.) 66295 66296 Note: this functionality is not currently available in 66297 the official 66298 66299 protobuf release, and it is not used for type URLs 66300 beginning with 66301 66302 type.googleapis.com. 66303 66304 66305 Schemes other than `http`, `https` (or the empty scheme) 66306 might be 66307 66308 used with implementation specific semantics. 66309 value: 66310 type: string 66311 format: byte 66312 description: >- 66313 Must be a valid serialized protocol buffer of the above 66314 specified type. 66315 golang_bindings: 66316 type: array 66317 items: 66318 type: object 66319 properties: 66320 interface_type: 66321 type: string 66322 title: >- 66323 interface_type is the interface type which will be 66324 bound to a specific implementation type 66325 implementation: 66326 type: string 66327 title: >- 66328 implementation is the implementing type which will be 66329 supplied when an input of type interface is requested 66330 description: >- 66331 GolangBinding is an explicit interface type to 66332 implementing type binding for dependency injection. 66333 description: >- 66334 golang_bindings specifies explicit interface to 66335 implementation type bindings which 66336 66337 depinject uses to resolve interface inputs to provider 66338 functions. The scope of this 66339 66340 field's configuration is module specific. 66341 description: ModuleConfig is a module configuration for an app. 66342 description: modules are the module configurations for the app. 66343 golang_bindings: 66344 type: array 66345 items: 66346 type: object 66347 properties: 66348 interface_type: 66349 type: string 66350 title: >- 66351 interface_type is the interface type which will be bound to 66352 a specific implementation type 66353 implementation: 66354 type: string 66355 title: >- 66356 implementation is the implementing type which will be 66357 supplied when an input of type interface is requested 66358 description: >- 66359 GolangBinding is an explicit interface type to implementing type 66360 binding for dependency injection. 66361 description: >- 66362 golang_bindings specifies explicit interface to implementation 66363 type bindings which 66364 66365 depinject uses to resolve interface inputs to provider functions. 66366 The scope of this 66367 66368 field's configuration is global (not module specific). 66369 description: QueryConfigRequest is the Query/Config response type.