Skip to main content
added 17 characters in body
Source Link

Assuming solana-test-validator is running

  • cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/programcargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/program

this will create the output in dist/program

  • solana-keygen new -o ./wallets/Owner.jsonsolana-keygen new -o ./wallets/Owner.json this will spit an address "Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw"like "Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw" on terminal

  • solana airdrop 2 Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUwsolana airdrop 2 Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw

  • solana deploy dist/program/directoryName_program.sosolana deploy dist/program/directoryName_program.so - this will spit out this on terminal: "Program Id: 7zkE9MbN4yDybYP9j19kmZjTA855SMh2kFW2C1Pj8EHN"

this will spit out this on terminal: "Program Id: 7zkE9MbN4yDybYP9j19kmZjTA855SMh2kFW2C1Pj8EHN"

.so stands for shared object.'shared object'

Assuming solana-test-validator is running

  • cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/program

this will create the output in dist/program

  • solana-keygen new -o ./wallets/Owner.json this will spit an address "Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw" on terminal

  • solana airdrop 2 Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw

  • solana deploy dist/program/directoryName_program.so

this will spit out this on terminal: "Program Id: 7zkE9MbN4yDybYP9j19kmZjTA855SMh2kFW2C1Pj8EHN"

.so stands for shared object.

Assuming solana-test-validator is running

  • cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/program

this will create the output in dist/program

  • solana-keygen new -o ./wallets/Owner.json this will spit an address like "Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw" on terminal

  • solana airdrop 2 Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw

  • solana deploy dist/program/directoryName_program.so - this will spit out this on terminal: "Program Id: 7zkE9MbN4yDybYP9j19kmZjTA855SMh2kFW2C1Pj8EHN"

.so stands for 'shared object'

Source Link
Yilmaz
  • 1.3k
  • 7
  • 20

Assuming solana-test-validator is running

  • cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=dist/program

this will create the output in dist/program

  • solana-keygen new -o ./wallets/Owner.json this will spit an address "Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw" on terminal

  • solana airdrop 2 Be4PYPjaKFYsZN847SFBEPm6UNErfRD8qrCZ1rfn6rUw

  • solana deploy dist/program/directoryName_program.so

this will spit out this on terminal: "Program Id: 7zkE9MbN4yDybYP9j19kmZjTA855SMh2kFW2C1Pj8EHN"

.so stands for shared object.